From b8d6ee6443fb007c626db70a7744bef6bc201a79 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 24 Feb 2023 04:45:08 +0000 Subject: [PATCH] Update AutoRest C# version to 3.0.0-beta.20230223.2 --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- ...iceAlertModificationEvent.Serialization.cs | 18 +-- ...artGroupModificationEvent.Serialization.cs | 8 +- .../AnalysisConnectionMode.Serialization.cs | 4 +- .../src/Generated/AlignMode.Serialization.cs | 4 +- .../Generated/ModelStatus.Serialization.cs | 8 +- ...riateBatchDetectionStatus.Serialization.cs | 8 +- .../TimeGranularity.Serialization.cs | 18 +-- .../ApiManagementGroupType.Serialization.cs | 6 +- ...ApiManagementProductState.Serialization.cs | 4 +- ...viceNameUnavailableReason.Serialization.cs | 6 +- ...ementSkuCapacityScaleType.Serialization.cs | 6 +- ...SkuRestrictionsReasonCode.Serialization.cs | 4 +- ...gementSkuRestrictionsType.Serialization.cs | 4 +- .../AsyncOperationStatus.Serialization.cs | 8 +- .../AuthorizationMethod.Serialization.cs | 16 +-- .../GatewayRegenerateKeyType.Serialization.cs | 4 +- .../PolicyScopeContract.Serialization.cs | 10 +- .../Models/SubscriptionState.Serialization.cs | 12 +- ...okenGenerationUsedKeyType.Serialization.cs | 4 +- ...ppConfigurationCreateMode.Serialization.cs | 4 +- .../EncryptionKeySourceType.Serialization.cs | 4 +- .../ModuleProvisioningState.Serialization.cs | 32 +++--- .../Models/QueryTagOperator.Serialization.cs | 4 +- ...rationOperatingSystemType.Serialization.cs | 4 +- ...hAccountCertificateFormat.Serialization.cs | 4 +- .../BatchAccountKeySource.Serialization.cs | 4 +- .../BatchAccountKeyType.Serialization.cs | 4 +- ...AccountPoolAllocationMode.Serialization.cs | 4 +- ...ccountPoolAllocationState.Serialization.cs | 6 +- ...chApplicationPackageState.Serialization.cs | 4 +- .../BatchAuthenticationMode.Serialization.cs | 6 +- ...StorageAuthenticationMode.Serialization.cs | 4 +- .../BatchAutoUserScope.Serialization.cs | 4 +- ...hCertificateStoreLocation.Serialization.cs | 4 +- ...atchCertificateVisibility.Serialization.cs | 6 +- ...ContainerWorkingDirectory.Serialization.cs | 4 +- .../BatchDiskCachingType.Serialization.cs | 6 +- ...BatchDiskEncryptionTarget.Serialization.cs | 4 +- ...dpointAccessDefaultAction.Serialization.cs | 4 +- ...IPAddressProvisioningType.Serialization.cs | 6 +- ...chInboundEndpointProtocol.Serialization.cs | 4 +- ...atchNameUnavailableReason.Serialization.cs | 4 +- ...rkSecurityGroupRuleAccess.Serialization.cs | 4 +- ...tchNodeDeallocationOption.Serialization.cs | 8 +- .../Models/BatchNodeFillType.Serialization.cs | 4 +- ...chNodePlacementPolicyType.Serialization.cs | 4 +- ...nkServiceConnectionStatus.Serialization.cs | 8 +- .../BatchPublicNetworkAccess.Serialization.cs | 4 +- .../BatchStorageAccountType.Serialization.cs | 4 +- ...UserAccountElevationLevel.Serialization.cs | 4 +- .../BatchWindowsLoginMode.Serialization.cs | 4 +- ...ynamicVNetAssignmentScope.Serialization.cs | 4 +- ...terNodeCommunicationState.Serialization.cs | 4 +- .../NodeCommunicationMode.Serialization.cs | 6 +- .../src/Generated/Models/Key.Serialization.cs | 4 +- ...RegenerateKeysChannelName.Serialization.cs | 4 +- .../CdnMinimumTlsVersion.Serialization.cs | 6 +- ...rontDoorMinimumTlsVersion.Serialization.cs | 4 +- .../Models/GeoFilterAction.Serialization.cs | 4 +- .../HealthProbeProtocol.Serialization.cs | 6 +- .../HealthProbeRequestType.Serialization.cs | 6 +- ...ueryStringCachingBehavior.Serialization.cs | 8 +- ...nseBasedDetectedErrorType.Serialization.cs | 6 +- ...PrivateLinkResourceStatus.Serialization.cs | 10 +- .../Models/ChangeCategory.Serialization.cs | 4 +- .../Models/SelectorType.Serialization.cs | 8 +- ...rvicesSkuRestrictionsType.Serialization.cs | 4 +- .../ServiceAccountKeyName.Serialization.cs | 4 +- .../Models/JobStateSelector.Serialization.cs | 18 +-- .../Models/LabelOperator.Serialization.cs | 12 +- ...ringRuleParameterSelector.Serialization.cs | 4 +- .../WorkerStateSelector.Serialization.cs | 8 +- ...mmunicationServiceKeyType.Serialization.cs | 4 +- .../Models/CachingType.Serialization.cs | 6 +- ...ourceSkuCapacityScaleType.Serialization.cs | 6 +- ...SkuRestrictionsReasonCode.Serialization.cs | 4 +- ...sourceSkuRestrictionsType.Serialization.cs | 4 +- .../ComputeStatusLevelType.Serialization.cs | 6 +- .../DedicatedHostLicenseType.Serialization.cs | 6 +- ...CustomActionParameterType.Serialization.cs | 6 +- .../Models/HostCaching.Serialization.cs | 6 +- .../Models/InstanceViewType.Serialization.cs | 4 +- .../Models/IntervalInMins.Serialization.cs | 8 +- ...ceOperationResultCodeType.Serialization.cs | 8 +- .../OperatingSystemStateType.Serialization.cs | 4 +- .../RollingUpgradeActionType.Serialization.cs | 4 +- .../RollingUpgradeStatusCode.Serialization.cs | 8 +- .../Models/SettingName.Serialization.cs | 4 +- ...portedOperatingSystemType.Serialization.cs | 4 +- .../UpgradeOperationInvoker.Serialization.cs | 6 +- .../Models/UpgradeState.Serialization.cs | 8 +- ...chineScaleSetSkuScaleType.Serialization.cs | 4 +- ...achineScaleSetUpgradeMode.Serialization.cs | 6 +- ...WinRMListenerProtocolType.Serialization.cs | 4 +- ...ookieExpirationConvention.Serialization.cs | 4 +- ...DnsVerificationTestResult.Serialization.cs | 6 +- ...AppForwardProxyConvention.Serialization.cs | 6 +- ...thenticatedClientActionV2.Serialization.cs | 8 +- .../ArtifactManifestOrder.Serialization.cs | 6 +- .../Models/ArtifactTagOrder.Serialization.cs | 6 +- .../Models/TokenGrantType.Serialization.cs | 4 +- ...ainerRegistryPasswordName.Serialization.cs | 4 +- .../Models/MatcherType.Serialization.cs | 4 +- .../Models/SanitizerType.Serialization.cs | 6 +- ...osDBSqlRoleDefinitionType.Serialization.cs | 4 +- .../DefaultConsistencyLevel.Serialization.cs | 10 +- ...MongoDBRoleDefinitionType.Serialization.cs | 4 +- .../Models/NetworkAclBypass.Serialization.cs | 4 +- .../CalculationWindowType.Serialization.cs | 10 +- .../Models/CardinalityType.Serialization.cs | 6 +- .../CompletionOperationType.Serialization.cs | 6 +- .../ConnectorMappingState.Serialization.cs | 14 +-- .../Models/ConnectorState.Serialization.cs | 12 +- .../Models/EntityType.Serialization.cs | 8 +- .../ErrorManagementType.Serialization.cs | 6 +- .../Models/FrequencyType.Serialization.cs | 10 +- .../InstanceOperationType.Serialization.cs | 4 +- .../Models/KpiFunction.Serialization.cs | 16 +-- .../Models/LinkType.Serialization.cs | 4 +- .../Models/PermissionType.Serialization.cs | 6 +- .../Models/RoleType.Serialization.cs | 12 +- .../AddressValidationStatus.Serialization.cs | 6 +- .../CustomerResolutionCode.Serialization.cs | 10 +- .../Models/DataAccountType.Serialization.cs | 4 +- .../DataBoxAccessProtocol.Serialization.cs | 4 +- .../DataBoxDoubleEncryption.Serialization.cs | 4 +- .../DataBoxJobTransferType.Serialization.cs | 4 +- ...taBoxKeyEncryptionKeyType.Serialization.cs | 4 +- .../Models/DataBoxOrderType.Serialization.cs | 8 +- ...ataBoxShippingAddressType.Serialization.cs | 6 +- .../Models/DataBoxSkuName.Serialization.cs | 8 +- .../DataBoxStageStatus.Serialization.cs | 26 ++--- ...idationInputDiscriminator.Serialization.cs | 12 +- .../DataBoxValidationStatus.Serialization.cs | 6 +- .../DataCenterAddressType.Serialization.cs | 4 +- .../Models/FilterFileType.Serialization.cs | 4 +- .../Models/JobDeliveryType.Serialization.cs | 4 +- .../LogCollectionLevel.Serialization.cs | 4 +- .../OverallValidationStatus.Serialization.cs | 6 +- ...hareDestinationFormatType.Serialization.cs | 12 +- .../Models/SkuDisabledReason.Serialization.cs | 12 +- ...TransferConfigurationType.Serialization.cs | 4 +- .../TransportShipmentType.Serialization.cs | 4 +- .../Models/DayOfWeek.Serialization.cs | 14 +-- .../Models/FactoryDayOfWeek.Serialization.cs | 14 +-- ...LakeAnalyticsAccountState.Serialization.cs | 4 +- ...akeAnalyticsAccountStatus.Serialization.cs | 22 ++-- ...alyticsCommitmentTierType.Serialization.cs | 18 +-- ...irewallAllowAzureIPsState.Serialization.cs | 4 +- ...akeAnalyticsFirewallState.Serialization.cs | 4 +- ...csVirtualNetworkRuleState.Serialization.cs | 6 +- .../DebugDataAccessLevel.Serialization.cs | 6 +- ...ResourceProvisioningState.Serialization.cs | 6 +- ...countEncryptionConfigType.Serialization.cs | 4 +- ...DataLakeStoreAccountState.Serialization.cs | 4 +- ...ataLakeStoreAccountStatus.Serialization.cs | 22 ++-- ...keStoreCommitmentTierType.Serialization.cs | 14 +-- ...cryptionProvisioningState.Serialization.cs | 4 +- ...aLakeStoreEncryptionState.Serialization.cs | 4 +- ...irewallAllowAzureIPsState.Serialization.cs | 4 +- ...ataLakeStoreFirewallState.Serialization.cs | 4 +- ...oreTrustedIdProviderState.Serialization.cs | 4 +- .../DataLakeStoreUsageUnit.Serialization.cs | 12 +- ...rverLevelPermissionsGroup.Serialization.cs | 10 +- .../Models/DeploymentMode.Serialization.cs | 4 +- .../Models/RestAuthLocation.Serialization.cs | 4 +- .../Models/RestAuthType.Serialization.cs | 4 +- .../RestMatchQuantifier.Serialization.cs | 4 +- .../Models/RestRequestMethod.Serialization.cs | 4 +- .../Models/StepType.Serialization.cs | 4 +- ...ktopVirtualizationSkuTier.Serialization.cs | 8 +- .../Models/DevCenterSkuTier.Serialization.cs | 8 +- ...ervicesIPFilterActionType.Serialization.cs | 4 +- ...ervicesIPFilterTargetType.Serialization.cs | 6 +- .../Models/DnsRecordType.Serialization.cs | 20 ++-- .../Models/DnsZoneType.Serialization.cs | 4 +- ...anVirtualNetworkRuleState.Serialization.cs | 10 +- .../Models/MediaJobRetry.Serialization.cs | 4 +- .../Models/MediaJobState.Serialization.cs | 14 +-- ...ncodingCaptureDescription.Serialization.cs | 4 +- .../EventHubEntityStatus.Serialization.cs | 18 +-- ...RecoveryProvisioningState.Serialization.cs | 6 +- ...tHubsDisasterRecoveryRole.Serialization.cs | 6 +- ...HubsNameUnavailableReason.Serialization.cs | 12 +- .../Models/CmkIdentityType.Serialization.cs | 4 +- .../Models/FluidRelayKeyName.Serialization.cs | 4 +- ...lyzeResultOperationStatus.Serialization.cs | 8 +- .../Models/ContentType1.Serialization.cs | 14 +-- .../CustomFormModelStatus.Serialization.cs | 6 +- .../Models/DocumentFieldType.Serialization.cs | 26 ++--- .../DocumentOperationStatus.Serialization.cs | 10 +- .../Models/FieldValueType.Serialization.cs | 20 ++-- .../Models/FormContentType.Serialization.cs | 10 +- .../Models/FormReadingOrder.Serialization.cs | 4 +- .../Models/LengthUnit.Serialization.cs | 4 +- .../Models/OperationStatus.Serialization.cs | 8 +- .../SelectionMarkState.Serialization.cs | 4 +- .../Models/TrainingStatus.Serialization.cs | 6 +- .../FrontDoorResourceType.Serialization.cs | 4 +- .../Models/HealthBotSkuName.Serialization.cs | 6 +- .../HealthcareApisKind.Serialization.cs | 6 +- ...ApisNameUnavailableReason.Serialization.cs | 4 +- .../HybridDataJobRunLocation.Serialization.cs | 54 ++++----- .../HybridDataJobStatus.Serialization.cs | 16 +-- .../Models/HybridDataState.Serialization.cs | 6 +- .../JobCancellationSetting.Serialization.cs | 4 +- ...portedEncryptionAlgorithm.Serialization.cs | 8 +- .../UserConfirmationSetting.Serialization.cs | 4 +- .../IotHubIPFilterActionType.Serialization.cs | 4 +- .../Models/IotHubJobStatus.Serialization.cs | 12 +- ...tHubNameUnavailableReason.Serialization.cs | 4 +- .../Models/IotHubScaleType.Serialization.cs | 6 +- .../IotHubSharedAccessRight.Serialization.cs | 30 ++--- .../Models/IotHubSkuTier.Serialization.cs | 6 +- .../AccessPolicyUpdateKind.Serialization.cs | 6 +- .../KeyVaultCreateMode.Serialization.cs | 4 +- ...aultNameUnavailableReason.Serialization.cs | 4 +- .../Models/KeyVaultPatchMode.Serialization.cs | 4 +- .../Models/KeyVaultSkuName.Serialization.cs | 4 +- .../ManagedHsmCreateMode.Serialization.cs | 4 +- .../Models/ManagedHsmSkuName.Serialization.cs | 4 +- ...KustoDatabaseResourceType.Serialization.cs | 4 +- .../LabServicesDayOfWeek.Serialization.cs | 14 +-- .../LabServicesEnableState.Serialization.cs | 4 +- ...ServicesProvisioningState.Serialization.cs | 12 +- ...rvicesRecurrenceFrequency.Serialization.cs | 4 +- .../LabServicesSkuTier.Serialization.cs | 8 +- .../Models/LabState.Serialization.cs | 10 +- .../LabUserInvitationState.Serialization.cs | 8 +- .../LabUserRegistrationState.Serialization.cs | 4 +- ...tualMachineConnectionType.Serialization.cs | 6 +- ...irtualMachineCreateOption.Serialization.cs | 4 +- ...irtualMachineImageOSState.Serialization.cs | 4 +- ...VirtualMachineImageOSType.Serialization.cs | 4 +- ...MachineShutdownOnIdleMode.Serialization.cs | 6 +- .../LabVirtualMachineState.Serialization.cs | 14 +-- .../LabVirtualMachineType.Serialization.cs | 4 +- .../EdifactDecimalIndicator.Serialization.cs | 6 +- ...ationAccountAgreementType.Serialization.cs | 8 +- ...egrationAccountEventLevel.Serialization.cs | 12 +- .../LogicWorkflowDayOfWeek.Serialization.cs | 14 +-- .../SegmentTerminatorSuffix.Serialization.cs | 10 +- .../MachineLearningSkuTier.Serialization.cs | 8 +- .../Models/GeoJsonObjectType.Serialization.cs | 18 +-- .../Models/GeoJsonObjectType.Serialization.cs | 18 +-- .../AlertQueryTimeMode.Serialization.cs | 6 +- .../FeedbackQueryTimeMode.Serialization.cs | 4 +- .../MixedRealitySkuTier.Serialization.cs | 8 +- .../Models/CoreNetworkType.Serialization.cs | 4 +- .../MetricAggregationType.Serialization.cs | 12 +- .../Models/ResultType.Serialization.cs | 4 +- .../MetricStatisticType.Serialization.cs | 10 +- ...riggerComparisonOperation.Serialization.cs | 12 +- ...riggerTimeAggregationType.Serialization.cs | 12 +- .../MonitorConditionOperator.Serialization.cs | 10 +- .../Models/MonitorEventLevel.Serialization.cs | 10 +- .../MonitorReceiverStatus.Serialization.cs | 6 +- .../MonitorScaleDirection.Serialization.cs | 6 +- .../Models/MonitorScaleType.Serialization.cs | 8 +- ...eAutoscalePolicyScaleMode.Serialization.cs | 6 +- .../RecurrenceFrequency.Serialization.cs | 16 +-- ...ditionTimeAggregationType.Serialization.cs | 10 +- ...rSecurityAlertPolicyState.Serialization.cs | 4 +- .../MySqlSslEnforcementEnum.Serialization.cs | 4 +- ...eServerDataEncryptionType.Serialization.cs | 4 +- .../NetAppProvisioningState.Serialization.cs | 14 +-- ...horizationRuleAccessRight.Serialization.cs | 6 +- ...ificationHubNamespaceType.Serialization.cs | 4 +- .../AssetConversionStatus.Serialization.cs | 10 +- ...nalInsightsDataSourceType.Serialization.cs | 10 +- ...AutoTrackingConfiguration.Serialization.cs | 6 +- ...rSecurityAlertPolicyState.Serialization.cs | 4 +- ...tgreSqlSslEnforcementEnum.Serialization.cs | 4 +- .../Models/RecordType.Serialization.cs | 16 +-- .../Models/BackupDayOfWeek.Serialization.cs | 14 +-- .../Models/BackupMonthOfYear.Serialization.cs | 26 ++--- .../Models/BackupWeekOfMonth.Serialization.cs | 12 +- .../JobSupportedAction.Serialization.cs | 6 +- .../ProtectableContainerType.Serialization.cs | 36 +++--- .../RecoveryPointTierStatus.Serialization.cs | 10 +- .../RecoveryPointTierType.Serialization.cs | 8 +- .../Models/RedisDayOfWeek.Serialization.cs | 18 +-- .../RedisLinkedServerRole.Serialization.cs | 4 +- .../RedisRegenerateKeyType.Serialization.cs | 4 +- ...isEnterpriseAccessKeyType.Serialization.cs | 4 +- .../Models/RelayType.Serialization.cs | 4 +- .../AuthorizationScopeFilter.Serialization.cs | 8 +- .../Models/FacetSortOrder.Serialization.cs | 4 +- .../Models/ResultFormat.Serialization.cs | 4 +- .../Models/ResultTruncated.Serialization.cs | 4 +- .../Models/ArmSkuTier.Serialization.cs | 8 +- ...roupNameUnavailableReason.Serialization.cs | 4 +- .../Models/LocationType.Serialization.cs | 4 +- ...ourceTypeAliasPatternType.Serialization.cs | 4 +- .../ResourceTypeAliasType.Serialization.cs | 6 +- .../Models/SpendingLimit.Serialization.cs | 6 +- .../Models/SubscriptionState.Serialization.cs | 10 +- .../Models/TenantCategory.Serialization.cs | 6 +- ...rmApplicationArtifactType.Serialization.cs | 6 +- .../ArmApplicationLockLevel.Serialization.cs | 6 +- ...cationManagedIdentityType.Serialization.cs | 8 +- .../Models/ArmDeploymentMode.Serialization.cs | 4 +- .../ErrorDeploymentType.Serialization.cs | 4 +- ...ProvisioningOperationKind.Serialization.cs | 20 ++-- .../Models/WhatIfChangeType.Serialization.cs | 14 +-- .../WhatIfPropertyChangeType.Serialization.cs | 10 +- .../WhatIfResultFormat.Serialization.cs | 4 +- ...SearchServiceAdminKeyKind.Serialization.cs | 4 +- .../SearchServiceHostingMode.Serialization.cs | 4 +- ...nkServiceConnectionStatus.Serialization.cs | 8 +- ...hServiceProvisioningState.Serialization.cs | 6 +- ...ervicePublicNetworkAccess.Serialization.cs | 4 +- .../SearchServiceStatus.Serialization.cs | 12 +- .../Models/SearchSkuName.Serialization.cs | 14 +-- ...ResourceProvisioningState.Serialization.cs | 10 +- ...PrivateLinkResourceStatus.Serialization.cs | 8 +- .../Models/AutocompleteMode.Serialization.cs | 6 +- ...kBigramTokenFilterScripts.Serialization.cs | 8 +- .../EdgeNGramTokenFilterSide.Serialization.cs | 4 +- .../Models/IndexActionType.Serialization.cs | 8 +- .../IndexerExecutionStatus.Serialization.cs | 8 +- .../Models/IndexerStatus.Serialization.cs | 6 +- ...StemmingTokenizerLanguage.Serialization.cs | 90 +++++++-------- ...icrosoftTokenizerLanguage.Serialization.cs | 84 +++++++------- .../Models/PhoneticEncoder.Serialization.cs | 22 ++-- ...coringFunctionAggregation.Serialization.cs | 10 +- ...ringFunctionInterpolation.Serialization.cs | 8 +- .../Models/ScoringStatistics.Serialization.cs | 4 +- .../Models/SearchMode.Serialization.cs | 4 +- .../Models/SearchQueryType.Serialization.cs | 6 +- ...owballTokenFilterLanguage.Serialization.cs | 44 +++---- ...temmerTokenFilterLanguage.Serialization.cs | 108 +++++++++--------- .../Models/StopwordsList.Serialization.cs | 62 +++++----- .../TokenCharacterKind.Serialization.cs | 10 +- ...lertsSuppressionRuleState.Serialization.cs | 6 +- ...sAlertRuleTriggerOperator.Serialization.cs | 8 +- ...urityInsightsHostOSFamily.Serialization.cs | 10 +- ...MailMessageDeliveryAction.Serialization.cs | 10 +- ...ilMessageDeliveryLocation.Serialization.cs | 18 +-- ...ghtsProcessElevationToken.Serialization.cs | 6 +- .../ServiceBusAccessKeyType.Serialization.cs | 4 +- .../ServiceBusAccessRight.Serialization.cs | 6 +- ...RecoveryProvisioningState.Serialization.cs | 6 +- ...ceBusDisasterRecoveryRole.Serialization.cs | 6 +- .../ServiceBusFilterType.Serialization.cs | 4 +- ...eBusMessagingEntityStatus.Serialization.cs | 18 +-- ...eBusNameUnavailableReason.Serialization.cs | 12 +- .../Models/ServiceBusSkuName.Serialization.cs | 6 +- .../Models/ServiceBusSkuTier.Serialization.cs | 6 +- .../FrontendIPAddressVersion.Serialization.cs | 4 +- .../ActionRetryableState.Serialization.cs | 4 +- ...ncedThreatProtectionState.Serialization.cs | 6 +- .../Models/AutoExecuteStatus.Serialization.cs | 6 +- ...xecuteStatusInheritedFrom.Serialization.cs | 10 +- ...maticTuningDisabledReason.Serialization.cs | 14 +-- .../AutomaticTuningMode.Serialization.cs | 8 +- ...ticTuningOptionModeActual.Serialization.cs | 4 +- ...icTuningOptionModeDesired.Serialization.cs | 6 +- ...AutomaticTuningServerMode.Serialization.cs | 6 +- ...tomaticTuningServerReason.Serialization.cs | 6 +- .../BlobAuditingPolicyState.Serialization.cs | 4 +- .../DataMaskingFunction.Serialization.cs | 12 +- .../DataMaskingRuleState.Serialization.cs | 4 +- .../Models/DataMaskingState.Serialization.cs | 4 +- .../GeoBackupPolicyState.Serialization.cs | 4 +- .../ImplementationMethod.Serialization.cs | 4 +- ...TargetGroupMembershipType.Serialization.cs | 4 +- .../LedgerDigestUploadsState.Serialization.cs | 4 +- ...ommendedActionInitiatedBy.Serialization.cs | 4 +- ...ensitivityLabelUpdateKind.Serialization.cs | 4 +- .../Models/RestorePointType.Serialization.cs | 4 +- .../SecurityAlertPolicyState.Serialization.cs | 6 +- ...SecurityAlertsPolicyState.Serialization.cs | 4 +- .../Models/SecurityEventType.Serialization.cs | 6 +- .../SensitivityLabelRank.Serialization.cs | 10 +- .../SensitivityLabelSource.Serialization.cs | 4 +- ...ensitivityLabelUpdateKind.Serialization.cs | 4 +- .../Models/SqlAdvisorStatus.Serialization.cs | 8 +- .../SqlCapabilityStatus.Serialization.cs | 8 +- .../SqlNameUnavailableReason.Serialization.cs | 4 +- ...erDatabaseReplicationRole.Serialization.cs | 10 +- .../SqlServerJobScheduleType.Serialization.cs | 4 +- ...nerabilityAssessmentState.Serialization.cs | 4 +- ...parentDataEncryptionState.Serialization.cs | 4 +- ...essmentPolicyBaselineName.Serialization.cs | 4 +- .../SqlVmAssessmentDayOfWeek.Serialization.cs | 14 +-- ...qlVmAutoPatchingDayOfWeek.Serialization.cs | 16 +-- .../StorageAccountAccessTier.Serialization.cs | 6 +- .../StorageAccountExpand.Serialization.cs | 4 +- ...torageAccountHttpProtocol.Serialization.cs | 4 +- ...orageAccountKeyPermission.Serialization.cs | 4 +- ...ountNameUnavailableReason.Serialization.cs | 4 +- .../StorageAccountStatus.Serialization.cs | 4 +- ...orageNetworkDefaultAction.Serialization.cs | 4 +- .../StorageProvisioningState.Serialization.cs | 6 +- .../StoragePublicAccessType.Serialization.cs | 6 +- .../Models/StorageSkuTier.Serialization.cs | 4 +- .../Models/StorageUsageUnit.Serialization.cs | 12 +- .../Models/BlobDeleteType.Serialization.cs | 4 +- ...DeleteSnapshotsOptionType.Serialization.cs | 4 +- .../Models/AccountKind.Serialization.cs | 10 +- .../Models/ArchiveStatus.Serialization.cs | 4 +- .../BlobCopySourceTagsMode.Serialization.cs | 4 +- .../Models/BlobDeleteType.Serialization.cs | 4 +- .../BlobGeoReplicationStatus.Serialization.cs | 6 +- ...lobImmutabilityPolicyMode.Serialization.cs | 6 +- .../Models/BlobType.Serialization.cs | 6 +- .../Models/BlockListType.Serialization.cs | 6 +- .../Models/CopyStatus.Serialization.cs | 8 +- .../DeleteSnapshotsOption.Serialization.cs | 4 +- ...tionAlgorithmTypeInternal.Serialization.cs | 4 +- .../FilterBlobsIncludeItem.Serialization.cs | 4 +- .../Models/LeaseDurationType.Serialization.cs | 4 +- .../Models/LeaseState.Serialization.cs | 10 +- .../Models/LeaseStatus.Serialization.cs | 4 +- ...ListContainersIncludeType.Serialization.cs | 6 +- .../Models/PublicAccessType.Serialization.cs | 4 +- .../Models/QueryFormatType.Serialization.cs | 8 +- .../Models/RehydratePriority.Serialization.cs | 4 +- .../SequenceNumberAction.Serialization.cs | 6 +- .../Generated/Models/SkuName.Serialization.cs | 10 +- .../DataLakeLeaseAction.Serialization.cs | 8 +- ...tionAlgorithmTypeInternal.Serialization.cs | 4 +- .../ListBlobsIncludeItem.Serialization.cs | 14 +-- .../PathGetPropertiesAction.Serialization.cs | 4 +- .../Models/PathLeaseAction.Serialization.cs | 10 +- .../Models/PathRenameMode.Serialization.cs | 4 +- .../Models/PathResourceType.Serialization.cs | 4 +- ...ccessControlRecursiveMode.Serialization.cs | 6 +- .../Models/PathUpdateAction.Serialization.cs | 10 +- .../Models/CopyStatus.Serialization.cs | 8 +- ...DeleteSnapshotsOptionType.Serialization.cs | 4 +- .../FileLastWrittenMode.Serialization.cs | 4 +- .../ListFilesIncludeType.Serialization.cs | 8 +- .../ListSharesIncludeType.Serialization.cs | 6 +- .../PermissionCopyMode.Serialization.cs | 4 +- .../ShareFileRangeWriteType.Serialization.cs | 4 +- .../ShareLeaseDuration.Serialization.cs | 4 +- .../Models/ShareLeaseState.Serialization.cs | 10 +- .../Models/ShareLeaseStatus.Serialization.cs | 4 +- .../Models/ShareRootSquash.Serialization.cs | 6 +- ...QueueGeoReplicationStatus.Serialization.cs | 6 +- ...SkuRestrictionsReasonCode.Serialization.cs | 4 +- ...gePoolSkuRestrictionsType.Serialization.cs | 4 +- ...SyncNameUnavailableReason.Serialization.cs | 4 +- .../SupportResourceType.Serialization.cs | 4 +- .../Models/DayOfWeek.Serialization.cs | 14 +-- .../ResourceIdentityType.Serialization.cs | 4 +- .../KustoPoolDatabaseType.Serialization.cs | 4 +- ...seBlobAuditingPolicyState.Serialization.cs | 4 +- ...ynapseDataMaskingFunction.Serialization.cs | 12 +- ...napseDataMaskingRuleState.Serialization.cs | 4 +- .../SynapseDataMaskingState.Serialization.cs | 4 +- .../SynapseDesiredState.Serialization.cs | 4 +- ...napseGeoBackupPolicyState.Serialization.cs | 4 +- ...rolToManagedIdentityState.Serialization.cs | 10 +- ...ensitivityLabelUpdateKind.Serialization.cs | 4 +- .../SynapseReplicationRole.Serialization.cs | 10 +- .../SynapseRestorePointType.Serialization.cs | 4 +- ...eSecurityAlertPolicyState.Serialization.cs | 6 +- ...napseSensitivityLabelRank.Serialization.cs | 10 +- ...pseSensitivityLabelSource.Serialization.cs | 4 +- ...ensitivityLabelUpdateKind.Serialization.cs | 4 +- ...arentDataEncryptionStatus.Serialization.cs | 4 +- ...essmentPolicyBaselineName.Serialization.cs | 4 +- .../Models/Association.Serialization.cs | 4 +- .../Models/Certainty.Serialization.cs | 10 +- .../Models/Conditionality.Serialization.cs | 4 +- .../DocumentSentimentValue.Serialization.cs | 8 +- .../SentenceSentimentValue.Serialization.cs | 6 +- .../Generated/Models/State.Serialization.cs | 14 +-- .../TargetRelationType.Serialization.cs | 4 +- .../TokenSentimentValue.Serialization.cs | 6 +- .../Models/EntityAssociation.Serialization.cs | 4 +- .../Models/EntityCertainty.Serialization.cs | 10 +- .../EntityConditionality.Serialization.cs | 4 +- .../SentenceSentimentValue.Serialization.cs | 6 +- .../TargetRelationType.Serialization.cs | 4 +- .../Models/TextSentiment.Serialization.cs | 8 +- .../TokenSentimentValue.Serialization.cs | 6 +- .../Models/WarningCodeValue.Serialization.cs | 4 +- .../StorageInputUriKind.Serialization.cs | 4 +- .../Models/AppServiceDnsType.Serialization.cs | 4 +- .../AppServiceDomainStatus.Serialization.cs | 42 +++---- .../AppServiceDomainType.Serialization.cs | 4 +- .../AppServiceHostNameType.Serialization.cs | 4 +- .../AppServiceHostType.Serialization.cs | 4 +- ...AppServiceOperationStatus.Serialization.cs | 10 +- ...AppServicePlanRestriction.Serialization.cs | 12 +- .../AppServicePlanStatus.Serialization.cs | 6 +- .../AppServiceResourceType.Serialization.cs | 4 +- ...erviceStorageAccountState.Serialization.cs | 8 +- .../AppServiceStorageType.Serialization.cs | 4 +- .../AppServiceUsageState.Serialization.cs | 4 +- .../ArtifactStorageType.Serialization.cs | 4 +- .../AutoHealActionType.Serialization.cs | 6 +- .../BackupFrequencyUnit.Serialization.cs | 4 +- ...ackupRestoreOperationType.Serialization.cs | 10 +- ...tInAuthenticationProvider.Serialization.cs | 12 +- ...ertificateOrderActionType.Serialization.cs | 28 ++--- .../CertificateOrderStatus.Serialization.cs | 20 ++-- .../CertificateProductType.Serialization.cs | 4 +- .../Models/ClientCertMode.Serialization.cs | 6 +- .../CloneAbilityResult.Serialization.cs | 6 +- .../Models/ComputeModeOption.Serialization.cs | 6 +- .../ConnectionStringType.Serialization.cs | 22 ++-- .../ContinuousWebJobStatus.Serialization.cs | 10 +- ...ookieExpirationConvention.Serialization.cs | 4 +- ...stomHostNameDnsRecordType.Serialization.cs | 4 +- .../DetectorInsightStatus.Serialization.cs | 10 +- .../Models/DetectorIssueType.Serialization.cs | 16 +-- .../Models/DetectorType.Serialization.cs | 6 +- ...agnosticDataRenderingType.Serialization.cs | 50 ++++---- .../DiagnosticSolutionType.Serialization.cs | 6 +- ...DnsVerificationTestResult.Serialization.cs | 6 +- .../ForwardProxyConvention.Serialization.cs | 6 +- .../FrontEndServiceType.Serialization.cs | 4 +- .../HostNameBindingSslState.Serialization.cs | 6 +- .../HostingEnvironmentStatus.Serialization.cs | 8 +- .../KeyVaultSecretStatus.Serialization.cs | 22 ++-- ...ironmentProvisioningState.Serialization.cs | 20 ++-- ...MSDeployProvisioningState.Serialization.cs | 10 +- .../ManagedPipelineMode.Serialization.cs | 4 +- .../MySqlMigrationType.Serialization.cs | 4 +- .../Models/NotificationLevel.Serialization.cs | 8 +- .../Models/ProvisioningState.Serialization.cs | 10 +- ...PublicCertificateLocation.Serialization.cs | 6 +- .../RecommendationChannel.Serialization.cs | 10 +- .../Models/RedundancyMode.Serialization.cs | 10 +- .../Models/ResolveStatus.Serialization.cs | 22 ++-- .../Models/SiteExtensionType.Serialization.cs | 4 +- .../Models/SiteLoadBalancing.Serialization.cs | 12 +- .../Models/SiteRuntimeState.Serialization.cs | 6 +- .../Models/StackPreferredOS.Serialization.cs | 4 +- .../StagingEnvironmentPolicy.Serialization.cs | 4 +- .../TriggeredWebJobStatus.Serialization.cs | 6 +- ...authenticatedClientAction.Serialization.cs | 4 +- ...thenticatedClientActionV2.Serialization.cs | 8 +- .../WebAppBackupStatus.Serialization.cs | 20 ++-- .../Models/WebAppLogLevel.Serialization.cs | 10 +- ...ebAppMSDeployLogEntryType.Serialization.cs | 6 +- .../Models/WebJobType.Serialization.cs | 4 +- .../WebSiteAvailabilityState.Serialization.cs | 6 +- .../Models/WorkerSizeOption.Serialization.cs | 24 ++-- .../Models/DatabaseTier.Serialization.cs | 6 +- .../Models/DiskStorageType.Serialization.cs | 6 +- .../Models/WorkloadsSkuTier.Serialization.cs | 8 +- 549 files changed, 2216 insertions(+), 2216 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index f296222141462..7fec3a6183b7c 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -162,7 +162,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 4516b994b0aaa..d6298ee28ca05 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.20230221.2" + "@azure-tools/cadl-csharp": "0.1.11-beta.20230223.2" } } diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertModificationEvent.Serialization.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertModificationEvent.Serialization.cs index 1b2e7e5ade385..06fcd7587612d 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertModificationEvent.Serialization.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertModificationEvent.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class ServiceAlertModificationEventExtensions public static ServiceAlertModificationEvent ToServiceAlertModificationEvent(this string value) { - if (string.Equals(value, "AlertCreated", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.AlertCreated; - if (string.Equals(value, "StateChange", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.StateChange; - if (string.Equals(value, "MonitorConditionChange", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.MonitorConditionChange; - if (string.Equals(value, "SeverityChange", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.SeverityChange; - if (string.Equals(value, "ActionRuleTriggered", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.ActionRuleTriggered; - if (string.Equals(value, "ActionRuleSuppressed", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.ActionRuleSuppressed; - if (string.Equals(value, "ActionsTriggered", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.ActionsTriggered; - if (string.Equals(value, "ActionsSuppressed", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.ActionsSuppressed; - if (string.Equals(value, "ActionsFailed", StringComparison.InvariantCultureIgnoreCase)) return ServiceAlertModificationEvent.ActionsFailed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlertCreated")) return ServiceAlertModificationEvent.AlertCreated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StateChange")) return ServiceAlertModificationEvent.StateChange; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MonitorConditionChange")) return ServiceAlertModificationEvent.MonitorConditionChange; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SeverityChange")) return ServiceAlertModificationEvent.SeverityChange; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActionRuleTriggered")) return ServiceAlertModificationEvent.ActionRuleTriggered; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActionRuleSuppressed")) return ServiceAlertModificationEvent.ActionRuleSuppressed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActionsTriggered")) return ServiceAlertModificationEvent.ActionsTriggered; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActionsSuppressed")) return ServiceAlertModificationEvent.ActionsSuppressed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActionsFailed")) return ServiceAlertModificationEvent.ActionsFailed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceAlertModificationEvent value."); } } diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupModificationEvent.Serialization.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupModificationEvent.Serialization.cs index 0539f631da409..9a09fa10a1bfd 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupModificationEvent.Serialization.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupModificationEvent.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class SmartGroupModificationEventExtensions public static SmartGroupModificationEvent ToSmartGroupModificationEvent(this string value) { - if (string.Equals(value, "SmartGroupCreated", StringComparison.InvariantCultureIgnoreCase)) return SmartGroupModificationEvent.SmartGroupCreated; - if (string.Equals(value, "StateChange", StringComparison.InvariantCultureIgnoreCase)) return SmartGroupModificationEvent.StateChange; - if (string.Equals(value, "AlertAdded", StringComparison.InvariantCultureIgnoreCase)) return SmartGroupModificationEvent.AlertAdded; - if (string.Equals(value, "AlertRemoved", StringComparison.InvariantCultureIgnoreCase)) return SmartGroupModificationEvent.AlertRemoved; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SmartGroupCreated")) return SmartGroupModificationEvent.SmartGroupCreated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StateChange")) return SmartGroupModificationEvent.StateChange; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlertAdded")) return SmartGroupModificationEvent.AlertAdded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlertRemoved")) return SmartGroupModificationEvent.AlertRemoved; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SmartGroupModificationEvent value."); } } diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisConnectionMode.Serialization.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisConnectionMode.Serialization.cs index 86b6574e1065f..41a9fb851219a 100644 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisConnectionMode.Serialization.cs +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisConnectionMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AnalysisConnectionModeExtensions public static AnalysisConnectionMode ToAnalysisConnectionMode(this string value) { - if (string.Equals(value, "All", StringComparison.InvariantCultureIgnoreCase)) return AnalysisConnectionMode.All; - if (string.Equals(value, "ReadOnly", StringComparison.InvariantCultureIgnoreCase)) return AnalysisConnectionMode.ReadOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "All")) return AnalysisConnectionMode.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReadOnly")) return AnalysisConnectionMode.ReadOnly; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AnalysisConnectionMode value."); } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AlignMode.Serialization.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AlignMode.Serialization.cs index e6385552a67f8..fbaf9efecb4e9 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AlignMode.Serialization.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AlignMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AlignModeExtensions public static AlignMode ToAlignMode(this string value) { - if (string.Equals(value, "Inner", StringComparison.InvariantCultureIgnoreCase)) return AlignMode.Inner; - if (string.Equals(value, "Outer", StringComparison.InvariantCultureIgnoreCase)) return AlignMode.Outer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Inner")) return AlignMode.Inner; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Outer")) return AlignMode.Outer; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AlignMode value."); } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelStatus.Serialization.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelStatus.Serialization.cs index 42bfd8dffbbee..bbcb2bd5a95e3 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelStatus.Serialization.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class ModelStatusExtensions public static ModelStatus ToModelStatus(this string value) { - if (string.Equals(value, "CREATED", StringComparison.InvariantCultureIgnoreCase)) return ModelStatus.Created; - if (string.Equals(value, "RUNNING", StringComparison.InvariantCultureIgnoreCase)) return ModelStatus.Running; - if (string.Equals(value, "READY", StringComparison.InvariantCultureIgnoreCase)) return ModelStatus.Ready; - if (string.Equals(value, "FAILED", StringComparison.InvariantCultureIgnoreCase)) return ModelStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CREATED")) return ModelStatus.Created; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RUNNING")) return ModelStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "READY")) return ModelStatus.Ready; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FAILED")) return ModelStatus.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ModelStatus value."); } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateBatchDetectionStatus.Serialization.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateBatchDetectionStatus.Serialization.cs index 08fcfeb437d08..810d32dba207f 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateBatchDetectionStatus.Serialization.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateBatchDetectionStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class MultivariateBatchDetectionStatusExtensions public static MultivariateBatchDetectionStatus ToMultivariateBatchDetectionStatus(this string value) { - if (string.Equals(value, "CREATED", StringComparison.InvariantCultureIgnoreCase)) return MultivariateBatchDetectionStatus.Created; - if (string.Equals(value, "RUNNING", StringComparison.InvariantCultureIgnoreCase)) return MultivariateBatchDetectionStatus.Running; - if (string.Equals(value, "READY", StringComparison.InvariantCultureIgnoreCase)) return MultivariateBatchDetectionStatus.Ready; - if (string.Equals(value, "FAILED", StringComparison.InvariantCultureIgnoreCase)) return MultivariateBatchDetectionStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CREATED")) return MultivariateBatchDetectionStatus.Created; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RUNNING")) return MultivariateBatchDetectionStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "READY")) return MultivariateBatchDetectionStatus.Ready; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FAILED")) return MultivariateBatchDetectionStatus.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MultivariateBatchDetectionStatus value."); } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/TimeGranularity.Serialization.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/TimeGranularity.Serialization.cs index 2783b95872c61..00e7e757b6515 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/TimeGranularity.Serialization.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/TimeGranularity.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class TimeGranularityExtensions public static TimeGranularity ToTimeGranularity(this string value) { - if (string.Equals(value, "yearly", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.Yearly; - if (string.Equals(value, "monthly", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.Monthly; - if (string.Equals(value, "weekly", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.Weekly; - if (string.Equals(value, "daily", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.Daily; - if (string.Equals(value, "hourly", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.Hourly; - if (string.Equals(value, "minutely", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.PerMinute; - if (string.Equals(value, "secondly", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.PerSecond; - if (string.Equals(value, "microsecond", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.Microsecond; - if (string.Equals(value, "none", StringComparison.InvariantCultureIgnoreCase)) return TimeGranularity.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "yearly")) return TimeGranularity.Yearly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "monthly")) return TimeGranularity.Monthly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "weekly")) return TimeGranularity.Weekly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "daily")) return TimeGranularity.Daily; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hourly")) return TimeGranularity.Hourly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minutely")) return TimeGranularity.PerMinute; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "secondly")) return TimeGranularity.PerSecond; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "microsecond")) return TimeGranularity.Microsecond; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "none")) return TimeGranularity.None; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TimeGranularity value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupType.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupType.Serialization.cs index 4ef4d68708f27..1a3bb74a78fb1 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupType.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ApiManagementGroupTypeExtensions public static ApiManagementGroupType ToApiManagementGroupType(this string value) { - if (string.Equals(value, "custom", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementGroupType.Custom; - if (string.Equals(value, "system", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementGroupType.System; - if (string.Equals(value, "external", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementGroupType.External; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "custom")) return ApiManagementGroupType.Custom; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "system")) return ApiManagementGroupType.System; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "external")) return ApiManagementGroupType.External; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApiManagementGroupType value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductState.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductState.Serialization.cs index b251c9bca2b10..ddf16caccde4a 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductState.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ApiManagementProductStateExtensions public static ApiManagementProductState ToApiManagementProductState(this string value) { - if (string.Equals(value, "notPublished", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementProductState.NotPublished; - if (string.Equals(value, "published", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementProductState.Published; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "notPublished")) return ApiManagementProductState.NotPublished; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "published")) return ApiManagementProductState.Published; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApiManagementProductState value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceNameUnavailableReason.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceNameUnavailableReason.Serialization.cs index bde6dae55aa5e..94bc10674ae14 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceNameUnavailableReason.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceNameUnavailableReason.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ApiManagementServiceNameUnavailableReasonExtension public static ApiManagementServiceNameUnavailableReason ToApiManagementServiceNameUnavailableReason(this string value) { - if (string.Equals(value, "Valid", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementServiceNameUnavailableReason.Valid; - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementServiceNameUnavailableReason.Invalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementServiceNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Valid")) return ApiManagementServiceNameUnavailableReason.Valid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return ApiManagementServiceNameUnavailableReason.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return ApiManagementServiceNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApiManagementServiceNameUnavailableReason value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuCapacityScaleType.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuCapacityScaleType.Serialization.cs index 0a6caa6215465..fb4febb5b10c7 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuCapacityScaleType.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuCapacityScaleType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ApiManagementSkuCapacityScaleTypeExtensions public static ApiManagementSkuCapacityScaleType ToApiManagementSkuCapacityScaleType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementSkuCapacityScaleType.None; - if (string.Equals(value, "Automatic", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementSkuCapacityScaleType.Automatic; - if (string.Equals(value, "Manual", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementSkuCapacityScaleType.Manual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return ApiManagementSkuCapacityScaleType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Automatic")) return ApiManagementSkuCapacityScaleType.Automatic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Manual")) return ApiManagementSkuCapacityScaleType.Manual; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApiManagementSkuCapacityScaleType value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionsReasonCode.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionsReasonCode.Serialization.cs index 878d2e0dc5293..29e20d7491275 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionsReasonCode.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionsReasonCode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ApiManagementSkuRestrictionsReasonCodeExtensions public static ApiManagementSkuRestrictionsReasonCode ToApiManagementSkuRestrictionsReasonCode(this string value) { - if (string.Equals(value, "QuotaId", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementSkuRestrictionsReasonCode.QuotaId; - if (string.Equals(value, "NotAvailableForSubscription", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementSkuRestrictionsReasonCode.NotAvailableForSubscription; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "QuotaId")) return ApiManagementSkuRestrictionsReasonCode.QuotaId; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotAvailableForSubscription")) return ApiManagementSkuRestrictionsReasonCode.NotAvailableForSubscription; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApiManagementSkuRestrictionsReasonCode value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionsType.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionsType.Serialization.cs index e79ecadfebe89..df473bdbc7f22 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionsType.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionsType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ApiManagementSkuRestrictionsTypeExtensions public static ApiManagementSkuRestrictionsType ToApiManagementSkuRestrictionsType(this string value) { - if (string.Equals(value, "Location", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementSkuRestrictionsType.Location; - if (string.Equals(value, "Zone", StringComparison.InvariantCultureIgnoreCase)) return ApiManagementSkuRestrictionsType.Zone; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Location")) return ApiManagementSkuRestrictionsType.Location; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Zone")) return ApiManagementSkuRestrictionsType.Zone; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApiManagementSkuRestrictionsType value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AsyncOperationStatus.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AsyncOperationStatus.Serialization.cs index 8dadea8900612..054fbb5352ae9 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AsyncOperationStatus.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AsyncOperationStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class AsyncOperationStatusExtensions public static AsyncOperationStatus ToAsyncOperationStatus(this string value) { - if (string.Equals(value, "Started", StringComparison.InvariantCultureIgnoreCase)) return AsyncOperationStatus.Started; - if (string.Equals(value, "InProgress", StringComparison.InvariantCultureIgnoreCase)) return AsyncOperationStatus.InProgress; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return AsyncOperationStatus.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return AsyncOperationStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Started")) return AsyncOperationStatus.Started; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InProgress")) return AsyncOperationStatus.InProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return AsyncOperationStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return AsyncOperationStatus.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AsyncOperationStatus value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AuthorizationMethod.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AuthorizationMethod.Serialization.cs index 2daed8088f379..d61d6b77f65dd 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AuthorizationMethod.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AuthorizationMethod.Serialization.cs @@ -26,14 +26,14 @@ internal static partial class AuthorizationMethodExtensions public static AuthorizationMethod ToAuthorizationMethod(this string value) { - if (string.Equals(value, "HEAD", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationMethod.Head; - if (string.Equals(value, "OPTIONS", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationMethod.Options; - if (string.Equals(value, "TRACE", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationMethod.Trace; - if (string.Equals(value, "GET", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationMethod.Get; - if (string.Equals(value, "POST", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationMethod.Post; - if (string.Equals(value, "PUT", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationMethod.Put; - if (string.Equals(value, "PATCH", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationMethod.Patch; - if (string.Equals(value, "DELETE", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationMethod.Delete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "HEAD")) return AuthorizationMethod.Head; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OPTIONS")) return AuthorizationMethod.Options; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TRACE")) return AuthorizationMethod.Trace; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GET")) return AuthorizationMethod.Get; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "POST")) return AuthorizationMethod.Post; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PUT")) return AuthorizationMethod.Put; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PATCH")) return AuthorizationMethod.Patch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DELETE")) return AuthorizationMethod.Delete; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AuthorizationMethod value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayRegenerateKeyType.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayRegenerateKeyType.Serialization.cs index 8c117e74b9162..2f7129a181345 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayRegenerateKeyType.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayRegenerateKeyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class GatewayRegenerateKeyTypeExtensions public static GatewayRegenerateKeyType ToGatewayRegenerateKeyType(this string value) { - if (string.Equals(value, "primary", StringComparison.InvariantCultureIgnoreCase)) return GatewayRegenerateKeyType.Primary; - if (string.Equals(value, "secondary", StringComparison.InvariantCultureIgnoreCase)) return GatewayRegenerateKeyType.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "primary")) return GatewayRegenerateKeyType.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "secondary")) return GatewayRegenerateKeyType.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GatewayRegenerateKeyType value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyScopeContract.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyScopeContract.Serialization.cs index 037f1b7e6c23b..89dec5b880444 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyScopeContract.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyScopeContract.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class PolicyScopeContractExtensions public static PolicyScopeContract ToPolicyScopeContract(this string value) { - if (string.Equals(value, "Tenant", StringComparison.InvariantCultureIgnoreCase)) return PolicyScopeContract.Tenant; - if (string.Equals(value, "Product", StringComparison.InvariantCultureIgnoreCase)) return PolicyScopeContract.Product; - if (string.Equals(value, "Api", StringComparison.InvariantCultureIgnoreCase)) return PolicyScopeContract.Api; - if (string.Equals(value, "Operation", StringComparison.InvariantCultureIgnoreCase)) return PolicyScopeContract.Operation; - if (string.Equals(value, "All", StringComparison.InvariantCultureIgnoreCase)) return PolicyScopeContract.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tenant")) return PolicyScopeContract.Tenant; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Product")) return PolicyScopeContract.Product; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Api")) return PolicyScopeContract.Api; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Operation")) return PolicyScopeContract.Operation; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "All")) return PolicyScopeContract.All; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PolicyScopeContract value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SubscriptionState.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SubscriptionState.Serialization.cs index b13b268f83145..0f38d3f16dd7b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SubscriptionState.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SubscriptionState.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class SubscriptionStateExtensions public static SubscriptionState ToSubscriptionState(this string value) { - if (string.Equals(value, "suspended", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Suspended; - if (string.Equals(value, "active", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Active; - if (string.Equals(value, "expired", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Expired; - if (string.Equals(value, "submitted", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Submitted; - if (string.Equals(value, "rejected", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Rejected; - if (string.Equals(value, "cancelled", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "suspended")) return SubscriptionState.Suspended; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "active")) return SubscriptionState.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "expired")) return SubscriptionState.Expired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "submitted")) return SubscriptionState.Submitted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "rejected")) return SubscriptionState.Rejected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "cancelled")) return SubscriptionState.Cancelled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SubscriptionState value."); } } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TokenGenerationUsedKeyType.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TokenGenerationUsedKeyType.Serialization.cs index 291c8215d7553..a59573961419f 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TokenGenerationUsedKeyType.Serialization.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TokenGenerationUsedKeyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class TokenGenerationUsedKeyTypeExtensions public static TokenGenerationUsedKeyType ToTokenGenerationUsedKeyType(this string value) { - if (string.Equals(value, "primary", StringComparison.InvariantCultureIgnoreCase)) return TokenGenerationUsedKeyType.Primary; - if (string.Equals(value, "secondary", StringComparison.InvariantCultureIgnoreCase)) return TokenGenerationUsedKeyType.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "primary")) return TokenGenerationUsedKeyType.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "secondary")) return TokenGenerationUsedKeyType.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TokenGenerationUsedKeyType value."); } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationCreateMode.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationCreateMode.Serialization.cs index d799e8d5e32df..d1056c8ed143c 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationCreateMode.Serialization.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationCreateMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AppConfigurationCreateModeExtensions public static AppConfigurationCreateMode ToAppConfigurationCreateMode(this string value) { - if (string.Equals(value, "Recover", StringComparison.InvariantCultureIgnoreCase)) return AppConfigurationCreateMode.Recover; - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return AppConfigurationCreateMode.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Recover")) return AppConfigurationCreateMode.Recover; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return AppConfigurationCreateMode.Default; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppConfigurationCreateMode value."); } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionKeySourceType.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionKeySourceType.Serialization.cs index b1f5973ad6eae..9d676da87c6f0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionKeySourceType.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionKeySourceType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class EncryptionKeySourceTypeExtensions public static EncryptionKeySourceType ToEncryptionKeySourceType(this string value) { - if (string.Equals(value, "Microsoft.Automation", StringComparison.InvariantCultureIgnoreCase)) return EncryptionKeySourceType.MicrosoftAutomation; - if (string.Equals(value, "Microsoft.Keyvault", StringComparison.InvariantCultureIgnoreCase)) return EncryptionKeySourceType.MicrosoftKeyvault; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Automation")) return EncryptionKeySourceType.MicrosoftAutomation; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Keyvault")) return EncryptionKeySourceType.MicrosoftKeyvault; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EncryptionKeySourceType value."); } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs index 8f79681ca2ede..12f404ef471a6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs @@ -34,22 +34,22 @@ internal static partial class ModuleProvisioningStateExtensions public static ModuleProvisioningState ToModuleProvisioningState(this string value) { - if (string.Equals(value, "Created", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.Created; - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.Creating; - if (string.Equals(value, "StartingImportModuleRunbook", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.StartingImportModuleRunbook; - if (string.Equals(value, "RunningImportModuleRunbook", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.RunningImportModuleRunbook; - if (string.Equals(value, "ContentRetrieved", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.ContentRetrieved; - if (string.Equals(value, "ContentDownloaded", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.ContentDownloaded; - if (string.Equals(value, "ContentValidated", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.ContentValidated; - if (string.Equals(value, "ConnectionTypeImported", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.ConnectionTypeImported; - if (string.Equals(value, "ContentStored", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.ContentStored; - if (string.Equals(value, "ModuleDataStored", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.ModuleDataStored; - if (string.Equals(value, "ActivitiesStored", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.ActivitiesStored; - if (string.Equals(value, "ModuleImportRunbookComplete", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.ModuleImportRunbookComplete; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.Failed; - if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.Cancelled; - if (string.Equals(value, "Updating", StringComparison.InvariantCultureIgnoreCase)) return ModuleProvisioningState.Updating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Created")) return ModuleProvisioningState.Created; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return ModuleProvisioningState.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StartingImportModuleRunbook")) return ModuleProvisioningState.StartingImportModuleRunbook; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RunningImportModuleRunbook")) return ModuleProvisioningState.RunningImportModuleRunbook; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentRetrieved")) return ModuleProvisioningState.ContentRetrieved; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentDownloaded")) return ModuleProvisioningState.ContentDownloaded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentValidated")) return ModuleProvisioningState.ContentValidated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ConnectionTypeImported")) return ModuleProvisioningState.ConnectionTypeImported; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentStored")) return ModuleProvisioningState.ContentStored; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ModuleDataStored")) return ModuleProvisioningState.ModuleDataStored; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActivitiesStored")) return ModuleProvisioningState.ActivitiesStored; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ModuleImportRunbookComplete")) return ModuleProvisioningState.ModuleImportRunbookComplete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return ModuleProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return ModuleProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return ModuleProvisioningState.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Updating")) return ModuleProvisioningState.Updating; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ModuleProvisioningState value."); } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.Serialization.cs index a8eeed5621320..71e565f9667ab 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class QueryTagOperatorExtensions public static QueryTagOperator ToQueryTagOperator(this string value) { - if (string.Equals(value, "All", StringComparison.InvariantCultureIgnoreCase)) return QueryTagOperator.All; - if (string.Equals(value, "Any", StringComparison.InvariantCultureIgnoreCase)) return QueryTagOperator.Any; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "All")) return QueryTagOperator.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Any")) return QueryTagOperator.Any; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown QueryTagOperator value."); } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.Serialization.cs index 603e9092dd8e8..22dcb60ee5bd4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SoftwareUpdateConfigurationOperatingSystemTypeExte public static SoftwareUpdateConfigurationOperatingSystemType ToSoftwareUpdateConfigurationOperatingSystemType(this string value) { - if (string.Equals(value, "Windows", StringComparison.InvariantCultureIgnoreCase)) return SoftwareUpdateConfigurationOperatingSystemType.Windows; - if (string.Equals(value, "Linux", StringComparison.InvariantCultureIgnoreCase)) return SoftwareUpdateConfigurationOperatingSystemType.Linux; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Windows")) return SoftwareUpdateConfigurationOperatingSystemType.Windows; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Linux")) return SoftwareUpdateConfigurationOperatingSystemType.Linux; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SoftwareUpdateConfigurationOperatingSystemType value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCertificateFormat.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCertificateFormat.Serialization.cs index 992494d315ce2..d18501220c444 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCertificateFormat.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCertificateFormat.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchAccountCertificateFormatExtensions public static BatchAccountCertificateFormat ToBatchAccountCertificateFormat(this string value) { - if (string.Equals(value, "Pfx", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountCertificateFormat.Pfx; - if (string.Equals(value, "Cer", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountCertificateFormat.Cer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pfx")) return BatchAccountCertificateFormat.Pfx; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cer")) return BatchAccountCertificateFormat.Cer; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchAccountCertificateFormat value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountKeySource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountKeySource.Serialization.cs index 38b69388ac694..20ea99b590d53 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountKeySource.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountKeySource.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchAccountKeySourceExtensions public static BatchAccountKeySource ToBatchAccountKeySource(this string value) { - if (string.Equals(value, "Microsoft.Batch", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountKeySource.MicrosoftBatch; - if (string.Equals(value, "Microsoft.KeyVault", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountKeySource.MicrosoftKeyVault; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Batch")) return BatchAccountKeySource.MicrosoftBatch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.KeyVault")) return BatchAccountKeySource.MicrosoftKeyVault; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchAccountKeySource value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountKeyType.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountKeyType.Serialization.cs index 29fccf2482252..26cc993a8c4c6 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountKeyType.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountKeyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchAccountKeyTypeExtensions public static BatchAccountKeyType ToBatchAccountKeyType(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountKeyType.Primary; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountKeyType.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return BatchAccountKeyType.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return BatchAccountKeyType.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchAccountKeyType value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolAllocationMode.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolAllocationMode.Serialization.cs index 3029a84a87425..afb918e0b0e2f 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolAllocationMode.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolAllocationMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchAccountPoolAllocationModeExtensions public static BatchAccountPoolAllocationMode ToBatchAccountPoolAllocationMode(this string value) { - if (string.Equals(value, "BatchService", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountPoolAllocationMode.BatchService; - if (string.Equals(value, "UserSubscription", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountPoolAllocationMode.UserSubscription; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BatchService")) return BatchAccountPoolAllocationMode.BatchService; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserSubscription")) return BatchAccountPoolAllocationMode.UserSubscription; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchAccountPoolAllocationMode value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolAllocationState.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolAllocationState.Serialization.cs index c2e03013ae313..1fcac43fde5ac 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolAllocationState.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolAllocationState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BatchAccountPoolAllocationStateExtensions public static BatchAccountPoolAllocationState ToBatchAccountPoolAllocationState(this string value) { - if (string.Equals(value, "Steady", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountPoolAllocationState.Steady; - if (string.Equals(value, "Resizing", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountPoolAllocationState.Resizing; - if (string.Equals(value, "Stopping", StringComparison.InvariantCultureIgnoreCase)) return BatchAccountPoolAllocationState.Stopping; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Steady")) return BatchAccountPoolAllocationState.Steady; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Resizing")) return BatchAccountPoolAllocationState.Resizing; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Stopping")) return BatchAccountPoolAllocationState.Stopping; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchAccountPoolAllocationState value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationPackageState.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationPackageState.Serialization.cs index c9fc9a2dc4d15..3f8064212eef8 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationPackageState.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationPackageState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchApplicationPackageStateExtensions public static BatchApplicationPackageState ToBatchApplicationPackageState(this string value) { - if (string.Equals(value, "Pending", StringComparison.InvariantCultureIgnoreCase)) return BatchApplicationPackageState.Pending; - if (string.Equals(value, "Active", StringComparison.InvariantCultureIgnoreCase)) return BatchApplicationPackageState.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pending")) return BatchApplicationPackageState.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Active")) return BatchApplicationPackageState.Active; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchApplicationPackageState value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAuthenticationMode.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAuthenticationMode.Serialization.cs index 74285af202138..3a23bc40daa4b 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAuthenticationMode.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAuthenticationMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BatchAuthenticationModeExtensions public static BatchAuthenticationMode ToBatchAuthenticationMode(this string value) { - if (string.Equals(value, "SharedKey", StringComparison.InvariantCultureIgnoreCase)) return BatchAuthenticationMode.SharedKey; - if (string.Equals(value, "AAD", StringComparison.InvariantCultureIgnoreCase)) return BatchAuthenticationMode.Aad; - if (string.Equals(value, "TaskAuthenticationToken", StringComparison.InvariantCultureIgnoreCase)) return BatchAuthenticationMode.TaskAuthenticationToken; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SharedKey")) return BatchAuthenticationMode.SharedKey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AAD")) return BatchAuthenticationMode.Aad; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TaskAuthenticationToken")) return BatchAuthenticationMode.TaskAuthenticationToken; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchAuthenticationMode value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAutoStorageAuthenticationMode.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAutoStorageAuthenticationMode.Serialization.cs index d3692c3b1947e..80e2d63a84a15 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAutoStorageAuthenticationMode.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAutoStorageAuthenticationMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchAutoStorageAuthenticationModeExtensions public static BatchAutoStorageAuthenticationMode ToBatchAutoStorageAuthenticationMode(this string value) { - if (string.Equals(value, "StorageKeys", StringComparison.InvariantCultureIgnoreCase)) return BatchAutoStorageAuthenticationMode.StorageKeys; - if (string.Equals(value, "BatchAccountManagedIdentity", StringComparison.InvariantCultureIgnoreCase)) return BatchAutoStorageAuthenticationMode.BatchAccountManagedIdentity; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StorageKeys")) return BatchAutoStorageAuthenticationMode.StorageKeys; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BatchAccountManagedIdentity")) return BatchAutoStorageAuthenticationMode.BatchAccountManagedIdentity; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchAutoStorageAuthenticationMode value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAutoUserScope.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAutoUserScope.Serialization.cs index eda9915debcfb..f39a25a7af97c 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAutoUserScope.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAutoUserScope.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchAutoUserScopeExtensions public static BatchAutoUserScope ToBatchAutoUserScope(this string value) { - if (string.Equals(value, "Task", StringComparison.InvariantCultureIgnoreCase)) return BatchAutoUserScope.Task; - if (string.Equals(value, "Pool", StringComparison.InvariantCultureIgnoreCase)) return BatchAutoUserScope.Pool; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Task")) return BatchAutoUserScope.Task; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pool")) return BatchAutoUserScope.Pool; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchAutoUserScope value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateStoreLocation.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateStoreLocation.Serialization.cs index 7ba13c4d5df15..952e644fb372d 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateStoreLocation.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateStoreLocation.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchCertificateStoreLocationExtensions public static BatchCertificateStoreLocation ToBatchCertificateStoreLocation(this string value) { - if (string.Equals(value, "CurrentUser", StringComparison.InvariantCultureIgnoreCase)) return BatchCertificateStoreLocation.CurrentUser; - if (string.Equals(value, "LocalMachine", StringComparison.InvariantCultureIgnoreCase)) return BatchCertificateStoreLocation.LocalMachine; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CurrentUser")) return BatchCertificateStoreLocation.CurrentUser; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LocalMachine")) return BatchCertificateStoreLocation.LocalMachine; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchCertificateStoreLocation value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateVisibility.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateVisibility.Serialization.cs index 76c820bfefd58..442fab5ff1fd9 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateVisibility.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateVisibility.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BatchCertificateVisibilityExtensions public static BatchCertificateVisibility ToBatchCertificateVisibility(this string value) { - if (string.Equals(value, "StartTask", StringComparison.InvariantCultureIgnoreCase)) return BatchCertificateVisibility.StartTask; - if (string.Equals(value, "Task", StringComparison.InvariantCultureIgnoreCase)) return BatchCertificateVisibility.Task; - if (string.Equals(value, "RemoteUser", StringComparison.InvariantCultureIgnoreCase)) return BatchCertificateVisibility.RemoteUser; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StartTask")) return BatchCertificateVisibility.StartTask; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Task")) return BatchCertificateVisibility.Task; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RemoteUser")) return BatchCertificateVisibility.RemoteUser; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchCertificateVisibility value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchContainerWorkingDirectory.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchContainerWorkingDirectory.Serialization.cs index 8aaa4223881ea..2a56306b3bb6b 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchContainerWorkingDirectory.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchContainerWorkingDirectory.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchContainerWorkingDirectoryExtensions public static BatchContainerWorkingDirectory ToBatchContainerWorkingDirectory(this string value) { - if (string.Equals(value, "TaskWorkingDirectory", StringComparison.InvariantCultureIgnoreCase)) return BatchContainerWorkingDirectory.TaskWorkingDirectory; - if (string.Equals(value, "ContainerImageDefault", StringComparison.InvariantCultureIgnoreCase)) return BatchContainerWorkingDirectory.ContainerImageDefault; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TaskWorkingDirectory")) return BatchContainerWorkingDirectory.TaskWorkingDirectory; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContainerImageDefault")) return BatchContainerWorkingDirectory.ContainerImageDefault; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchContainerWorkingDirectory value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchDiskCachingType.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchDiskCachingType.Serialization.cs index a2519bda5758b..0a6b104471631 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchDiskCachingType.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchDiskCachingType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BatchDiskCachingTypeExtensions public static BatchDiskCachingType ToBatchDiskCachingType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return BatchDiskCachingType.None; - if (string.Equals(value, "ReadOnly", StringComparison.InvariantCultureIgnoreCase)) return BatchDiskCachingType.ReadOnly; - if (string.Equals(value, "ReadWrite", StringComparison.InvariantCultureIgnoreCase)) return BatchDiskCachingType.ReadWrite; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return BatchDiskCachingType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReadOnly")) return BatchDiskCachingType.ReadOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReadWrite")) return BatchDiskCachingType.ReadWrite; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchDiskCachingType value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchDiskEncryptionTarget.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchDiskEncryptionTarget.Serialization.cs index 3f051bddb1f0d..442ff2d703a50 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchDiskEncryptionTarget.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchDiskEncryptionTarget.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchDiskEncryptionTargetExtensions public static BatchDiskEncryptionTarget ToBatchDiskEncryptionTarget(this string value) { - if (string.Equals(value, "OsDisk", StringComparison.InvariantCultureIgnoreCase)) return BatchDiskEncryptionTarget.OSDisk; - if (string.Equals(value, "TemporaryDisk", StringComparison.InvariantCultureIgnoreCase)) return BatchDiskEncryptionTarget.TemporaryDisk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OsDisk")) return BatchDiskEncryptionTarget.OSDisk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TemporaryDisk")) return BatchDiskEncryptionTarget.TemporaryDisk; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchDiskEncryptionTarget value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchEndpointAccessDefaultAction.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchEndpointAccessDefaultAction.Serialization.cs index 645f652e118a9..95c820879fd7b 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchEndpointAccessDefaultAction.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchEndpointAccessDefaultAction.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchEndpointAccessDefaultActionExtensions public static BatchEndpointAccessDefaultAction ToBatchEndpointAccessDefaultAction(this string value) { - if (string.Equals(value, "Allow", StringComparison.InvariantCultureIgnoreCase)) return BatchEndpointAccessDefaultAction.Allow; - if (string.Equals(value, "Deny", StringComparison.InvariantCultureIgnoreCase)) return BatchEndpointAccessDefaultAction.Deny; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Allow")) return BatchEndpointAccessDefaultAction.Allow; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deny")) return BatchEndpointAccessDefaultAction.Deny; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchEndpointAccessDefaultAction value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchIPAddressProvisioningType.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchIPAddressProvisioningType.Serialization.cs index ae8e820a09d08..b037508716341 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchIPAddressProvisioningType.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchIPAddressProvisioningType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BatchIPAddressProvisioningTypeExtensions public static BatchIPAddressProvisioningType ToBatchIPAddressProvisioningType(this string value) { - if (string.Equals(value, "BatchManaged", StringComparison.InvariantCultureIgnoreCase)) return BatchIPAddressProvisioningType.BatchManaged; - if (string.Equals(value, "UserManaged", StringComparison.InvariantCultureIgnoreCase)) return BatchIPAddressProvisioningType.UserManaged; - if (string.Equals(value, "NoPublicIPAddresses", StringComparison.InvariantCultureIgnoreCase)) return BatchIPAddressProvisioningType.NoPublicIPAddresses; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BatchManaged")) return BatchIPAddressProvisioningType.BatchManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserManaged")) return BatchIPAddressProvisioningType.UserManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoPublicIPAddresses")) return BatchIPAddressProvisioningType.NoPublicIPAddresses; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchIPAddressProvisioningType value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchInboundEndpointProtocol.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchInboundEndpointProtocol.Serialization.cs index 026f1f1e3bcd1..fc46ebbab4828 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchInboundEndpointProtocol.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchInboundEndpointProtocol.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchInboundEndpointProtocolExtensions public static BatchInboundEndpointProtocol ToBatchInboundEndpointProtocol(this string value) { - if (string.Equals(value, "TCP", StringComparison.InvariantCultureIgnoreCase)) return BatchInboundEndpointProtocol.Tcp; - if (string.Equals(value, "UDP", StringComparison.InvariantCultureIgnoreCase)) return BatchInboundEndpointProtocol.Udp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TCP")) return BatchInboundEndpointProtocol.Tcp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UDP")) return BatchInboundEndpointProtocol.Udp; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchInboundEndpointProtocol value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNameUnavailableReason.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNameUnavailableReason.Serialization.cs index 835bf761b0c9b..f56d6dcda62e8 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNameUnavailableReason.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNameUnavailableReason.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchNameUnavailableReasonExtensions public static BatchNameUnavailableReason ToBatchNameUnavailableReason(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return BatchNameUnavailableReason.Invalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return BatchNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return BatchNameUnavailableReason.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return BatchNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchNameUnavailableReason value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkSecurityGroupRuleAccess.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkSecurityGroupRuleAccess.Serialization.cs index 5623719704e64..4fb0c7419a460 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkSecurityGroupRuleAccess.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkSecurityGroupRuleAccess.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchNetworkSecurityGroupRuleAccessExtensions public static BatchNetworkSecurityGroupRuleAccess ToBatchNetworkSecurityGroupRuleAccess(this string value) { - if (string.Equals(value, "Allow", StringComparison.InvariantCultureIgnoreCase)) return BatchNetworkSecurityGroupRuleAccess.Allow; - if (string.Equals(value, "Deny", StringComparison.InvariantCultureIgnoreCase)) return BatchNetworkSecurityGroupRuleAccess.Deny; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Allow")) return BatchNetworkSecurityGroupRuleAccess.Allow; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deny")) return BatchNetworkSecurityGroupRuleAccess.Deny; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchNetworkSecurityGroupRuleAccess value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodeDeallocationOption.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodeDeallocationOption.Serialization.cs index 35bf08c41b6ef..aae9bd3c8f1f2 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodeDeallocationOption.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodeDeallocationOption.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class BatchNodeDeallocationOptionExtensions public static BatchNodeDeallocationOption ToBatchNodeDeallocationOption(this string value) { - if (string.Equals(value, "Requeue", StringComparison.InvariantCultureIgnoreCase)) return BatchNodeDeallocationOption.Requeue; - if (string.Equals(value, "Terminate", StringComparison.InvariantCultureIgnoreCase)) return BatchNodeDeallocationOption.Terminate; - if (string.Equals(value, "TaskCompletion", StringComparison.InvariantCultureIgnoreCase)) return BatchNodeDeallocationOption.TaskCompletion; - if (string.Equals(value, "RetainedData", StringComparison.InvariantCultureIgnoreCase)) return BatchNodeDeallocationOption.RetainedData; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Requeue")) return BatchNodeDeallocationOption.Requeue; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Terminate")) return BatchNodeDeallocationOption.Terminate; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TaskCompletion")) return BatchNodeDeallocationOption.TaskCompletion; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RetainedData")) return BatchNodeDeallocationOption.RetainedData; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchNodeDeallocationOption value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodeFillType.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodeFillType.Serialization.cs index c043fbf6b0b1e..4470fb9263c45 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodeFillType.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodeFillType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchNodeFillTypeExtensions public static BatchNodeFillType ToBatchNodeFillType(this string value) { - if (string.Equals(value, "Spread", StringComparison.InvariantCultureIgnoreCase)) return BatchNodeFillType.Spread; - if (string.Equals(value, "Pack", StringComparison.InvariantCultureIgnoreCase)) return BatchNodeFillType.Pack; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Spread")) return BatchNodeFillType.Spread; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pack")) return BatchNodeFillType.Pack; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchNodeFillType value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodePlacementPolicyType.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodePlacementPolicyType.Serialization.cs index 8f849ed806e57..68a1d0f1f458b 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodePlacementPolicyType.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNodePlacementPolicyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchNodePlacementPolicyTypeExtensions public static BatchNodePlacementPolicyType ToBatchNodePlacementPolicyType(this string value) { - if (string.Equals(value, "Regional", StringComparison.InvariantCultureIgnoreCase)) return BatchNodePlacementPolicyType.Regional; - if (string.Equals(value, "Zonal", StringComparison.InvariantCultureIgnoreCase)) return BatchNodePlacementPolicyType.Zonal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Regional")) return BatchNodePlacementPolicyType.Regional; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Zonal")) return BatchNodePlacementPolicyType.Zonal; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchNodePlacementPolicyType value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionStatus.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionStatus.Serialization.cs index c9425746e534c..f50dd08382ed6 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionStatus.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkServiceConnectionStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class BatchPrivateLinkServiceConnectionStatusExtensions public static BatchPrivateLinkServiceConnectionStatus ToBatchPrivateLinkServiceConnectionStatus(this string value) { - if (string.Equals(value, "Approved", StringComparison.InvariantCultureIgnoreCase)) return BatchPrivateLinkServiceConnectionStatus.Approved; - if (string.Equals(value, "Pending", StringComparison.InvariantCultureIgnoreCase)) return BatchPrivateLinkServiceConnectionStatus.Pending; - if (string.Equals(value, "Rejected", StringComparison.InvariantCultureIgnoreCase)) return BatchPrivateLinkServiceConnectionStatus.Rejected; - if (string.Equals(value, "Disconnected", StringComparison.InvariantCultureIgnoreCase)) return BatchPrivateLinkServiceConnectionStatus.Disconnected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Approved")) return BatchPrivateLinkServiceConnectionStatus.Approved; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pending")) return BatchPrivateLinkServiceConnectionStatus.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Rejected")) return BatchPrivateLinkServiceConnectionStatus.Rejected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disconnected")) return BatchPrivateLinkServiceConnectionStatus.Disconnected; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchPrivateLinkServiceConnectionStatus value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPublicNetworkAccess.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPublicNetworkAccess.Serialization.cs index a72aec2182c56..0cc45310554c9 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPublicNetworkAccess.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPublicNetworkAccess.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchPublicNetworkAccessExtensions public static BatchPublicNetworkAccess ToBatchPublicNetworkAccess(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return BatchPublicNetworkAccess.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return BatchPublicNetworkAccess.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return BatchPublicNetworkAccess.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return BatchPublicNetworkAccess.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchPublicNetworkAccess value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchStorageAccountType.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchStorageAccountType.Serialization.cs index 7e713fbb54bbf..cbb5462eb9d48 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchStorageAccountType.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchStorageAccountType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchStorageAccountTypeExtensions public static BatchStorageAccountType ToBatchStorageAccountType(this string value) { - if (string.Equals(value, "Standard_LRS", StringComparison.InvariantCultureIgnoreCase)) return BatchStorageAccountType.StandardLrs; - if (string.Equals(value, "Premium_LRS", StringComparison.InvariantCultureIgnoreCase)) return BatchStorageAccountType.PremiumLrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard_LRS")) return BatchStorageAccountType.StandardLrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium_LRS")) return BatchStorageAccountType.PremiumLrs; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchStorageAccountType value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchUserAccountElevationLevel.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchUserAccountElevationLevel.Serialization.cs index ebdd83a742010..089f52ebffac6 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchUserAccountElevationLevel.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchUserAccountElevationLevel.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchUserAccountElevationLevelExtensions public static BatchUserAccountElevationLevel ToBatchUserAccountElevationLevel(this string value) { - if (string.Equals(value, "NonAdmin", StringComparison.InvariantCultureIgnoreCase)) return BatchUserAccountElevationLevel.NonAdmin; - if (string.Equals(value, "Admin", StringComparison.InvariantCultureIgnoreCase)) return BatchUserAccountElevationLevel.Admin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NonAdmin")) return BatchUserAccountElevationLevel.NonAdmin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Admin")) return BatchUserAccountElevationLevel.Admin; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchUserAccountElevationLevel value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchWindowsLoginMode.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchWindowsLoginMode.Serialization.cs index fa2ac8a5f8219..eebc06d3176c5 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchWindowsLoginMode.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchWindowsLoginMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BatchWindowsLoginModeExtensions public static BatchWindowsLoginMode ToBatchWindowsLoginMode(this string value) { - if (string.Equals(value, "Batch", StringComparison.InvariantCultureIgnoreCase)) return BatchWindowsLoginMode.Batch; - if (string.Equals(value, "Interactive", StringComparison.InvariantCultureIgnoreCase)) return BatchWindowsLoginMode.Interactive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Batch")) return BatchWindowsLoginMode.Batch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Interactive")) return BatchWindowsLoginMode.Interactive; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BatchWindowsLoginMode value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DynamicVNetAssignmentScope.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DynamicVNetAssignmentScope.Serialization.cs index 376265967e6ae..640467a695e22 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DynamicVNetAssignmentScope.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DynamicVNetAssignmentScope.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DynamicVNetAssignmentScopeExtensions public static DynamicVNetAssignmentScope ToDynamicVNetAssignmentScope(this string value) { - if (string.Equals(value, "none", StringComparison.InvariantCultureIgnoreCase)) return DynamicVNetAssignmentScope.None; - if (string.Equals(value, "job", StringComparison.InvariantCultureIgnoreCase)) return DynamicVNetAssignmentScope.Job; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "none")) return DynamicVNetAssignmentScope.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "job")) return DynamicVNetAssignmentScope.Job; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DynamicVNetAssignmentScope value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/InterNodeCommunicationState.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/InterNodeCommunicationState.Serialization.cs index 8d82df8592453..7e74b90d55274 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/InterNodeCommunicationState.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/InterNodeCommunicationState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class InterNodeCommunicationStateExtensions public static InterNodeCommunicationState ToInterNodeCommunicationState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return InterNodeCommunicationState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return InterNodeCommunicationState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return InterNodeCommunicationState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return InterNodeCommunicationState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown InterNodeCommunicationState value."); } } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.Serialization.cs index 940468b251e72..ebeffb2bb4bab 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.Serialization.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/NodeCommunicationMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class NodeCommunicationModeExtensions public static NodeCommunicationMode ToNodeCommunicationMode(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return NodeCommunicationMode.Default; - if (string.Equals(value, "Classic", StringComparison.InvariantCultureIgnoreCase)) return NodeCommunicationMode.Classic; - if (string.Equals(value, "Simplified", StringComparison.InvariantCultureIgnoreCase)) return NodeCommunicationMode.Simplified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return NodeCommunicationMode.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Classic")) return NodeCommunicationMode.Classic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Simplified")) return NodeCommunicationMode.Simplified; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NodeCommunicationMode value."); } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Key.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Key.Serialization.cs index eff30739afe12..aacfafe531493 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Key.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Key.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class KeyExtensions public static Key ToKey(this string value) { - if (string.Equals(value, "key1", StringComparison.InvariantCultureIgnoreCase)) return Key.Key1; - if (string.Equals(value, "key2", StringComparison.InvariantCultureIgnoreCase)) return Key.Key2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "key1")) return Key.Key1; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "key2")) return Key.Key2; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Key value."); } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/RegenerateKeysChannelName.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/RegenerateKeysChannelName.Serialization.cs index 3c3907a032191..b5d1e7cbe231d 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/RegenerateKeysChannelName.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/RegenerateKeysChannelName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RegenerateKeysChannelNameExtensions public static RegenerateKeysChannelName ToRegenerateKeysChannelName(this string value) { - if (string.Equals(value, "WebChatChannel", StringComparison.InvariantCultureIgnoreCase)) return RegenerateKeysChannelName.WebChatChannel; - if (string.Equals(value, "DirectLineChannel", StringComparison.InvariantCultureIgnoreCase)) return RegenerateKeysChannelName.DirectLineChannel; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WebChatChannel")) return RegenerateKeysChannelName.WebChatChannel; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DirectLineChannel")) return RegenerateKeysChannelName.DirectLineChannel; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RegenerateKeysChannelName value."); } } diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnMinimumTlsVersion.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnMinimumTlsVersion.Serialization.cs index c9d7bc4a1cf1d..4c0f5d3005319 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnMinimumTlsVersion.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnMinimumTlsVersion.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class CdnMinimumTlsVersionExtensions public static CdnMinimumTlsVersion ToCdnMinimumTlsVersion(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return CdnMinimumTlsVersion.None; - if (string.Equals(value, "TLS10", StringComparison.InvariantCultureIgnoreCase)) return CdnMinimumTlsVersion.Tls1_0; - if (string.Equals(value, "TLS12", StringComparison.InvariantCultureIgnoreCase)) return CdnMinimumTlsVersion.Tls1_2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return CdnMinimumTlsVersion.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TLS10")) return CdnMinimumTlsVersion.Tls1_0; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TLS12")) return CdnMinimumTlsVersion.Tls1_2; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CdnMinimumTlsVersion value."); } } diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorMinimumTlsVersion.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorMinimumTlsVersion.Serialization.cs index 9a7e613408e8e..1c42b53c24c7d 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorMinimumTlsVersion.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorMinimumTlsVersion.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FrontDoorMinimumTlsVersionExtensions public static FrontDoorMinimumTlsVersion ToFrontDoorMinimumTlsVersion(this string value) { - if (string.Equals(value, "TLS10", StringComparison.InvariantCultureIgnoreCase)) return FrontDoorMinimumTlsVersion.Tls1_0; - if (string.Equals(value, "TLS12", StringComparison.InvariantCultureIgnoreCase)) return FrontDoorMinimumTlsVersion.Tls1_2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TLS10")) return FrontDoorMinimumTlsVersion.Tls1_0; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TLS12")) return FrontDoorMinimumTlsVersion.Tls1_2; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FrontDoorMinimumTlsVersion value."); } } diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/GeoFilterAction.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/GeoFilterAction.Serialization.cs index ddaab05d4f72e..fdd078925f1cd 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/GeoFilterAction.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/GeoFilterAction.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class GeoFilterActionExtensions public static GeoFilterAction ToGeoFilterAction(this string value) { - if (string.Equals(value, "Block", StringComparison.InvariantCultureIgnoreCase)) return GeoFilterAction.Block; - if (string.Equals(value, "Allow", StringComparison.InvariantCultureIgnoreCase)) return GeoFilterAction.Allow; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Block")) return GeoFilterAction.Block; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Allow")) return GeoFilterAction.Allow; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GeoFilterAction value."); } } diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HealthProbeProtocol.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HealthProbeProtocol.Serialization.cs index e276b47208ad2..e554013a2b828 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HealthProbeProtocol.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HealthProbeProtocol.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class HealthProbeProtocolExtensions public static HealthProbeProtocol ToHealthProbeProtocol(this string value) { - if (string.Equals(value, "NotSet", StringComparison.InvariantCultureIgnoreCase)) return HealthProbeProtocol.NotSet; - if (string.Equals(value, "Http", StringComparison.InvariantCultureIgnoreCase)) return HealthProbeProtocol.Http; - if (string.Equals(value, "Https", StringComparison.InvariantCultureIgnoreCase)) return HealthProbeProtocol.Https; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSet")) return HealthProbeProtocol.NotSet; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Http")) return HealthProbeProtocol.Http; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Https")) return HealthProbeProtocol.Https; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HealthProbeProtocol value."); } } diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HealthProbeRequestType.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HealthProbeRequestType.Serialization.cs index b82ac0f933021..effeac9e02480 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HealthProbeRequestType.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HealthProbeRequestType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class HealthProbeRequestTypeExtensions public static HealthProbeRequestType ToHealthProbeRequestType(this string value) { - if (string.Equals(value, "NotSet", StringComparison.InvariantCultureIgnoreCase)) return HealthProbeRequestType.NotSet; - if (string.Equals(value, "GET", StringComparison.InvariantCultureIgnoreCase)) return HealthProbeRequestType.Get; - if (string.Equals(value, "HEAD", StringComparison.InvariantCultureIgnoreCase)) return HealthProbeRequestType.Head; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSet")) return HealthProbeRequestType.NotSet; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GET")) return HealthProbeRequestType.Get; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "HEAD")) return HealthProbeRequestType.Head; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HealthProbeRequestType value."); } } diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/QueryStringCachingBehavior.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/QueryStringCachingBehavior.Serialization.cs index 671f9dae86cb3..e0770d69e365f 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/QueryStringCachingBehavior.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/QueryStringCachingBehavior.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class QueryStringCachingBehaviorExtensions public static QueryStringCachingBehavior ToQueryStringCachingBehavior(this string value) { - if (string.Equals(value, "NotSet", StringComparison.InvariantCultureIgnoreCase)) return QueryStringCachingBehavior.NotSet; - if (string.Equals(value, "IgnoreQueryString", StringComparison.InvariantCultureIgnoreCase)) return QueryStringCachingBehavior.IgnoreQueryString; - if (string.Equals(value, "BypassCaching", StringComparison.InvariantCultureIgnoreCase)) return QueryStringCachingBehavior.BypassCaching; - if (string.Equals(value, "UseQueryString", StringComparison.InvariantCultureIgnoreCase)) return QueryStringCachingBehavior.UseQueryString; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSet")) return QueryStringCachingBehavior.NotSet; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IgnoreQueryString")) return QueryStringCachingBehavior.IgnoreQueryString; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BypassCaching")) return QueryStringCachingBehavior.BypassCaching; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UseQueryString")) return QueryStringCachingBehavior.UseQueryString; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown QueryStringCachingBehavior value."); } } diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResponseBasedDetectedErrorType.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResponseBasedDetectedErrorType.Serialization.cs index 1e71210d6c27f..723bcd0bd7e67 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResponseBasedDetectedErrorType.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResponseBasedDetectedErrorType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ResponseBasedDetectedErrorTypeExtensions public static ResponseBasedDetectedErrorType ToResponseBasedDetectedErrorType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ResponseBasedDetectedErrorType.None; - if (string.Equals(value, "TcpErrorsOnly", StringComparison.InvariantCultureIgnoreCase)) return ResponseBasedDetectedErrorType.TcpErrorsOnly; - if (string.Equals(value, "TcpAndHttpErrors", StringComparison.InvariantCultureIgnoreCase)) return ResponseBasedDetectedErrorType.TcpAndHttpErrors; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return ResponseBasedDetectedErrorType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TcpErrorsOnly")) return ResponseBasedDetectedErrorType.TcpErrorsOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TcpAndHttpErrors")) return ResponseBasedDetectedErrorType.TcpAndHttpErrors; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ResponseBasedDetectedErrorType value."); } } diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SharedPrivateLinkResourceStatus.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SharedPrivateLinkResourceStatus.Serialization.cs index 14d29dfc9df62..a6d5ef14c6aa4 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SharedPrivateLinkResourceStatus.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SharedPrivateLinkResourceStatus.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SharedPrivateLinkResourceStatusExtensions public static SharedPrivateLinkResourceStatus ToSharedPrivateLinkResourceStatus(this string value) { - if (string.Equals(value, "Pending", StringComparison.InvariantCultureIgnoreCase)) return SharedPrivateLinkResourceStatus.Pending; - if (string.Equals(value, "Approved", StringComparison.InvariantCultureIgnoreCase)) return SharedPrivateLinkResourceStatus.Approved; - if (string.Equals(value, "Rejected", StringComparison.InvariantCultureIgnoreCase)) return SharedPrivateLinkResourceStatus.Rejected; - if (string.Equals(value, "Disconnected", StringComparison.InvariantCultureIgnoreCase)) return SharedPrivateLinkResourceStatus.Disconnected; - if (string.Equals(value, "Timeout", StringComparison.InvariantCultureIgnoreCase)) return SharedPrivateLinkResourceStatus.Timeout; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pending")) return SharedPrivateLinkResourceStatus.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Approved")) return SharedPrivateLinkResourceStatus.Approved; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Rejected")) return SharedPrivateLinkResourceStatus.Rejected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disconnected")) return SharedPrivateLinkResourceStatus.Disconnected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Timeout")) return SharedPrivateLinkResourceStatus.Timeout; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SharedPrivateLinkResourceStatus value."); } } diff --git a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeCategory.Serialization.cs b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeCategory.Serialization.cs index 9e7aa76f0b602..584dcc5708fca 100644 --- a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeCategory.Serialization.cs +++ b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeCategory.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ChangeCategoryExtensions public static ChangeCategory ToChangeCategory(this string value) { - if (string.Equals(value, "User", StringComparison.InvariantCultureIgnoreCase)) return ChangeCategory.User; - if (string.Equals(value, "System", StringComparison.InvariantCultureIgnoreCase)) return ChangeCategory.System; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "User")) return ChangeCategory.User; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "System")) return ChangeCategory.System; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ChangeCategory value."); } } diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/SelectorType.Serialization.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/SelectorType.Serialization.cs index 7cff683352a5c..fc8bce524ad2a 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/SelectorType.Serialization.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/SelectorType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class SelectorTypeExtensions public static SelectorType ToSelectorType(this string value) { - if (string.Equals(value, "Percent", StringComparison.InvariantCultureIgnoreCase)) return SelectorType.Percent; - if (string.Equals(value, "Random", StringComparison.InvariantCultureIgnoreCase)) return SelectorType.Random; - if (string.Equals(value, "Tag", StringComparison.InvariantCultureIgnoreCase)) return SelectorType.Tag; - if (string.Equals(value, "List", StringComparison.InvariantCultureIgnoreCase)) return SelectorType.List; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Percent")) return SelectorType.Percent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Random")) return SelectorType.Random; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tag")) return SelectorType.Tag; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "List")) return SelectorType.List; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SelectorType value."); } } diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictionsType.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictionsType.Serialization.cs index 0c09be61fa9b2..f43065c9d8811 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictionsType.Serialization.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictionsType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class CognitiveServicesSkuRestrictionsTypeExtensions public static CognitiveServicesSkuRestrictionsType ToCognitiveServicesSkuRestrictionsType(this string value) { - if (string.Equals(value, "Location", StringComparison.InvariantCultureIgnoreCase)) return CognitiveServicesSkuRestrictionsType.Location; - if (string.Equals(value, "Zone", StringComparison.InvariantCultureIgnoreCase)) return CognitiveServicesSkuRestrictionsType.Zone; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Location")) return CognitiveServicesSkuRestrictionsType.Location; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Zone")) return CognitiveServicesSkuRestrictionsType.Zone; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CognitiveServicesSkuRestrictionsType value."); } } diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountKeyName.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountKeyName.Serialization.cs index 0e632c7285eef..1ab04e2033566 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountKeyName.Serialization.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountKeyName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ServiceAccountKeyNameExtensions public static ServiceAccountKeyName ToServiceAccountKeyName(this string value) { - if (string.Equals(value, "Key1", StringComparison.InvariantCultureIgnoreCase)) return ServiceAccountKeyName.Key1; - if (string.Equals(value, "Key2", StringComparison.InvariantCultureIgnoreCase)) return ServiceAccountKeyName.Key2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Key1")) return ServiceAccountKeyName.Key1; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Key2")) return ServiceAccountKeyName.Key2; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceAccountKeyName value."); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/JobStateSelector.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/JobStateSelector.Serialization.cs index 54b5b1b072e68..12d8293b049fa 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/JobStateSelector.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/JobStateSelector.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class JobStateSelectorExtensions public static JobStateSelector ToJobStateSelector(this string value) { - if (string.Equals(value, "all", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.All; - if (string.Equals(value, "pendingClassification", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.PendingClassification; - if (string.Equals(value, "queued", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.Queued; - if (string.Equals(value, "assigned", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.Assigned; - if (string.Equals(value, "completed", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.Completed; - if (string.Equals(value, "closed", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.Closed; - if (string.Equals(value, "cancelled", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.Cancelled; - if (string.Equals(value, "classificationFailed", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.ClassificationFailed; - if (string.Equals(value, "active", StringComparison.InvariantCultureIgnoreCase)) return JobStateSelector.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "all")) return JobStateSelector.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "pendingClassification")) return JobStateSelector.PendingClassification; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "queued")) return JobStateSelector.Queued; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "assigned")) return JobStateSelector.Assigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "completed")) return JobStateSelector.Completed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "closed")) return JobStateSelector.Closed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "cancelled")) return JobStateSelector.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "classificationFailed")) return JobStateSelector.ClassificationFailed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "active")) return JobStateSelector.Active; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown JobStateSelector value."); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/LabelOperator.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/LabelOperator.Serialization.cs index 26569f2b94a43..919c74fc8d8dd 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/LabelOperator.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/LabelOperator.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class LabelOperatorExtensions public static LabelOperator ToLabelOperator(this string value) { - if (string.Equals(value, "equal", StringComparison.InvariantCultureIgnoreCase)) return LabelOperator.Equal; - if (string.Equals(value, "notEqual", StringComparison.InvariantCultureIgnoreCase)) return LabelOperator.NotEqual; - if (string.Equals(value, "lessThan", StringComparison.InvariantCultureIgnoreCase)) return LabelOperator.LessThan; - if (string.Equals(value, "lessThanEqual", StringComparison.InvariantCultureIgnoreCase)) return LabelOperator.LessThanEqual; - if (string.Equals(value, "greaterThan", StringComparison.InvariantCultureIgnoreCase)) return LabelOperator.GreaterThan; - if (string.Equals(value, "greaterThanEqual", StringComparison.InvariantCultureIgnoreCase)) return LabelOperator.GreaterThanEqual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "equal")) return LabelOperator.Equal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "notEqual")) return LabelOperator.NotEqual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lessThan")) return LabelOperator.LessThan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lessThanEqual")) return LabelOperator.LessThanEqual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "greaterThan")) return LabelOperator.GreaterThan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "greaterThanEqual")) return LabelOperator.GreaterThanEqual; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabelOperator value."); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/ScoringRuleParameterSelector.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/ScoringRuleParameterSelector.Serialization.cs index 3e1405166db8e..9d0f8b1969be4 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/ScoringRuleParameterSelector.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/ScoringRuleParameterSelector.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ScoringRuleParameterSelectorExtensions public static ScoringRuleParameterSelector ToScoringRuleParameterSelector(this string value) { - if (string.Equals(value, "jobLabels", StringComparison.InvariantCultureIgnoreCase)) return ScoringRuleParameterSelector.JobLabels; - if (string.Equals(value, "workerSelectors", StringComparison.InvariantCultureIgnoreCase)) return ScoringRuleParameterSelector.WorkerSelectors; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "jobLabels")) return ScoringRuleParameterSelector.JobLabels; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "workerSelectors")) return ScoringRuleParameterSelector.WorkerSelectors; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ScoringRuleParameterSelector value."); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/WorkerStateSelector.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/WorkerStateSelector.Serialization.cs index c029066ac87db..83bc067538057 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/WorkerStateSelector.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/WorkerStateSelector.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class WorkerStateSelectorExtensions public static WorkerStateSelector ToWorkerStateSelector(this string value) { - if (string.Equals(value, "active", StringComparison.InvariantCultureIgnoreCase)) return WorkerStateSelector.Active; - if (string.Equals(value, "draining", StringComparison.InvariantCultureIgnoreCase)) return WorkerStateSelector.Draining; - if (string.Equals(value, "inactive", StringComparison.InvariantCultureIgnoreCase)) return WorkerStateSelector.Inactive; - if (string.Equals(value, "all", StringComparison.InvariantCultureIgnoreCase)) return WorkerStateSelector.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "active")) return WorkerStateSelector.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "draining")) return WorkerStateSelector.Draining; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "inactive")) return WorkerStateSelector.Inactive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "all")) return WorkerStateSelector.All; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WorkerStateSelector value."); } } diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceKeyType.Serialization.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceKeyType.Serialization.cs index b7fa64485cd73..6f85cafaf412f 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceKeyType.Serialization.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceKeyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class CommunicationServiceKeyTypeExtensions public static CommunicationServiceKeyType ToCommunicationServiceKeyType(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return CommunicationServiceKeyType.Primary; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return CommunicationServiceKeyType.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return CommunicationServiceKeyType.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return CommunicationServiceKeyType.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CommunicationServiceKeyType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CachingType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CachingType.Serialization.cs index 96b079aff64e5..1eafa3bbe06f0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CachingType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CachingType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class CachingTypeExtensions public static CachingType ToCachingType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return CachingType.None; - if (string.Equals(value, "ReadOnly", StringComparison.InvariantCultureIgnoreCase)) return CachingType.ReadOnly; - if (string.Equals(value, "ReadWrite", StringComparison.InvariantCultureIgnoreCase)) return CachingType.ReadWrite; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return CachingType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReadOnly")) return CachingType.ReadOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReadWrite")) return CachingType.ReadWrite; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CachingType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuCapacityScaleType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuCapacityScaleType.Serialization.cs index 18bcc6b02088b..846d1b608e3cd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuCapacityScaleType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuCapacityScaleType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ComputeResourceSkuCapacityScaleTypeExtensions public static ComputeResourceSkuCapacityScaleType ToComputeResourceSkuCapacityScaleType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ComputeResourceSkuCapacityScaleType.None; - if (string.Equals(value, "Automatic", StringComparison.InvariantCultureIgnoreCase)) return ComputeResourceSkuCapacityScaleType.Automatic; - if (string.Equals(value, "Manual", StringComparison.InvariantCultureIgnoreCase)) return ComputeResourceSkuCapacityScaleType.Manual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return ComputeResourceSkuCapacityScaleType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Automatic")) return ComputeResourceSkuCapacityScaleType.Automatic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Manual")) return ComputeResourceSkuCapacityScaleType.Manual; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ComputeResourceSkuCapacityScaleType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionsReasonCode.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionsReasonCode.Serialization.cs index 8f003b31aaeda..be2791e462dc3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionsReasonCode.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionsReasonCode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ComputeResourceSkuRestrictionsReasonCodeExtensions public static ComputeResourceSkuRestrictionsReasonCode ToComputeResourceSkuRestrictionsReasonCode(this string value) { - if (string.Equals(value, "QuotaId", StringComparison.InvariantCultureIgnoreCase)) return ComputeResourceSkuRestrictionsReasonCode.QuotaId; - if (string.Equals(value, "NotAvailableForSubscription", StringComparison.InvariantCultureIgnoreCase)) return ComputeResourceSkuRestrictionsReasonCode.NotAvailableForSubscription; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "QuotaId")) return ComputeResourceSkuRestrictionsReasonCode.QuotaId; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotAvailableForSubscription")) return ComputeResourceSkuRestrictionsReasonCode.NotAvailableForSubscription; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ComputeResourceSkuRestrictionsReasonCode value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionsType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionsType.Serialization.cs index ae8404bf61b11..6acbecde9667a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionsType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionsType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ComputeResourceSkuRestrictionsTypeExtensions public static ComputeResourceSkuRestrictionsType ToComputeResourceSkuRestrictionsType(this string value) { - if (string.Equals(value, "Location", StringComparison.InvariantCultureIgnoreCase)) return ComputeResourceSkuRestrictionsType.Location; - if (string.Equals(value, "Zone", StringComparison.InvariantCultureIgnoreCase)) return ComputeResourceSkuRestrictionsType.Zone; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Location")) return ComputeResourceSkuRestrictionsType.Location; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Zone")) return ComputeResourceSkuRestrictionsType.Zone; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ComputeResourceSkuRestrictionsType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeStatusLevelType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeStatusLevelType.Serialization.cs index b213c9e2a3875..5775acac67746 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeStatusLevelType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeStatusLevelType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ComputeStatusLevelTypeExtensions public static ComputeStatusLevelType ToComputeStatusLevelType(this string value) { - if (string.Equals(value, "Info", StringComparison.InvariantCultureIgnoreCase)) return ComputeStatusLevelType.Info; - if (string.Equals(value, "Warning", StringComparison.InvariantCultureIgnoreCase)) return ComputeStatusLevelType.Warning; - if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return ComputeStatusLevelType.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Info")) return ComputeStatusLevelType.Info; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Warning")) return ComputeStatusLevelType.Warning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Error")) return ComputeStatusLevelType.Error; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ComputeStatusLevelType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostLicenseType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostLicenseType.Serialization.cs index bf1e9f6aadca7..0dadb0e60cf2d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostLicenseType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostLicenseType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DedicatedHostLicenseTypeExtensions public static DedicatedHostLicenseType ToDedicatedHostLicenseType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return DedicatedHostLicenseType.None; - if (string.Equals(value, "Windows_Server_Hybrid", StringComparison.InvariantCultureIgnoreCase)) return DedicatedHostLicenseType.WindowsServerHybrid; - if (string.Equals(value, "Windows_Server_Perpetual", StringComparison.InvariantCultureIgnoreCase)) return DedicatedHostLicenseType.WindowsServerPerpetual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return DedicatedHostLicenseType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Windows_Server_Hybrid")) return DedicatedHostLicenseType.WindowsServerHybrid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Windows_Server_Perpetual")) return DedicatedHostLicenseType.WindowsServerPerpetual; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DedicatedHostLicenseType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.Serialization.cs index 4c9e56ac998fd..061995321b94c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class GalleryApplicationCustomActionParameterTypeExtensi public static GalleryApplicationCustomActionParameterType ToGalleryApplicationCustomActionParameterType(this string value) { - if (string.Equals(value, "String", StringComparison.InvariantCultureIgnoreCase)) return GalleryApplicationCustomActionParameterType.String; - if (string.Equals(value, "ConfigurationDataBlob", StringComparison.InvariantCultureIgnoreCase)) return GalleryApplicationCustomActionParameterType.ConfigurationDataBlob; - if (string.Equals(value, "LogOutputBlob", StringComparison.InvariantCultureIgnoreCase)) return GalleryApplicationCustomActionParameterType.LogOutputBlob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "String")) return GalleryApplicationCustomActionParameterType.String; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ConfigurationDataBlob")) return GalleryApplicationCustomActionParameterType.ConfigurationDataBlob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LogOutputBlob")) return GalleryApplicationCustomActionParameterType.LogOutputBlob; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GalleryApplicationCustomActionParameterType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HostCaching.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HostCaching.Serialization.cs index 48126c2575aa7..2e7ad666d5a79 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HostCaching.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HostCaching.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class HostCachingExtensions public static HostCaching ToHostCaching(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return HostCaching.None; - if (string.Equals(value, "ReadOnly", StringComparison.InvariantCultureIgnoreCase)) return HostCaching.ReadOnly; - if (string.Equals(value, "ReadWrite", StringComparison.InvariantCultureIgnoreCase)) return HostCaching.ReadWrite; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return HostCaching.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReadOnly")) return HostCaching.ReadOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReadWrite")) return HostCaching.ReadWrite; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HostCaching value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/InstanceViewType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/InstanceViewType.Serialization.cs index 860071d7351fc..2eca4169be8ff 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/InstanceViewType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/InstanceViewType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class InstanceViewTypeExtensions public static InstanceViewType ToInstanceViewType(this string value) { - if (string.Equals(value, "instanceView", StringComparison.InvariantCultureIgnoreCase)) return InstanceViewType.InstanceView; - if (string.Equals(value, "userData", StringComparison.InvariantCultureIgnoreCase)) return InstanceViewType.UserData; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "instanceView")) return InstanceViewType.InstanceView; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "userData")) return InstanceViewType.UserData; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown InstanceViewType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/IntervalInMins.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/IntervalInMins.Serialization.cs index 3fcd17d6aa336..c9dfe82614da7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/IntervalInMins.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/IntervalInMins.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class IntervalInMinsExtensions public static IntervalInMins ToIntervalInMins(this string value) { - if (string.Equals(value, "ThreeMins", StringComparison.InvariantCultureIgnoreCase)) return IntervalInMins.ThreeMins; - if (string.Equals(value, "FiveMins", StringComparison.InvariantCultureIgnoreCase)) return IntervalInMins.FiveMins; - if (string.Equals(value, "ThirtyMins", StringComparison.InvariantCultureIgnoreCase)) return IntervalInMins.ThirtyMins; - if (string.Equals(value, "SixtyMins", StringComparison.InvariantCultureIgnoreCase)) return IntervalInMins.SixtyMins; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ThreeMins")) return IntervalInMins.ThreeMins; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FiveMins")) return IntervalInMins.FiveMins; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ThirtyMins")) return IntervalInMins.ThirtyMins; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SixtyMins")) return IntervalInMins.SixtyMins; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IntervalInMins value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/MaintenanceOperationResultCodeType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/MaintenanceOperationResultCodeType.Serialization.cs index ae4bf90346dba..01adf89169608 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/MaintenanceOperationResultCodeType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/MaintenanceOperationResultCodeType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class MaintenanceOperationResultCodeTypeExtensions public static MaintenanceOperationResultCodeType ToMaintenanceOperationResultCodeType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return MaintenanceOperationResultCodeType.None; - if (string.Equals(value, "RetryLater", StringComparison.InvariantCultureIgnoreCase)) return MaintenanceOperationResultCodeType.RetryLater; - if (string.Equals(value, "MaintenanceAborted", StringComparison.InvariantCultureIgnoreCase)) return MaintenanceOperationResultCodeType.MaintenanceAborted; - if (string.Equals(value, "MaintenanceCompleted", StringComparison.InvariantCultureIgnoreCase)) return MaintenanceOperationResultCodeType.MaintenanceCompleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return MaintenanceOperationResultCodeType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RetryLater")) return MaintenanceOperationResultCodeType.RetryLater; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MaintenanceAborted")) return MaintenanceOperationResultCodeType.MaintenanceAborted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MaintenanceCompleted")) return MaintenanceOperationResultCodeType.MaintenanceCompleted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MaintenanceOperationResultCodeType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OperatingSystemStateType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OperatingSystemStateType.Serialization.cs index af88408201a35..16d05fe64e6de 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OperatingSystemStateType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OperatingSystemStateType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class OperatingSystemStateTypeExtensions public static OperatingSystemStateType ToOperatingSystemStateType(this string value) { - if (string.Equals(value, "Generalized", StringComparison.InvariantCultureIgnoreCase)) return OperatingSystemStateType.Generalized; - if (string.Equals(value, "Specialized", StringComparison.InvariantCultureIgnoreCase)) return OperatingSystemStateType.Specialized; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Generalized")) return OperatingSystemStateType.Generalized; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Specialized")) return OperatingSystemStateType.Specialized; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown OperatingSystemStateType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RollingUpgradeActionType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RollingUpgradeActionType.Serialization.cs index 72650d24cbbc1..1f6752f9a9916 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RollingUpgradeActionType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RollingUpgradeActionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RollingUpgradeActionTypeExtensions public static RollingUpgradeActionType ToRollingUpgradeActionType(this string value) { - if (string.Equals(value, "Start", StringComparison.InvariantCultureIgnoreCase)) return RollingUpgradeActionType.Start; - if (string.Equals(value, "Cancel", StringComparison.InvariantCultureIgnoreCase)) return RollingUpgradeActionType.Cancel; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Start")) return RollingUpgradeActionType.Start; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancel")) return RollingUpgradeActionType.Cancel; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RollingUpgradeActionType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RollingUpgradeStatusCode.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RollingUpgradeStatusCode.Serialization.cs index 8dfda31547f7c..eb3ef571e34f4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RollingUpgradeStatusCode.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RollingUpgradeStatusCode.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class RollingUpgradeStatusCodeExtensions public static RollingUpgradeStatusCode ToRollingUpgradeStatusCode(this string value) { - if (string.Equals(value, "RollingForward", StringComparison.InvariantCultureIgnoreCase)) return RollingUpgradeStatusCode.RollingForward; - if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return RollingUpgradeStatusCode.Cancelled; - if (string.Equals(value, "Completed", StringComparison.InvariantCultureIgnoreCase)) return RollingUpgradeStatusCode.Completed; - if (string.Equals(value, "Faulted", StringComparison.InvariantCultureIgnoreCase)) return RollingUpgradeStatusCode.Faulted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RollingForward")) return RollingUpgradeStatusCode.RollingForward; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return RollingUpgradeStatusCode.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Completed")) return RollingUpgradeStatusCode.Completed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Faulted")) return RollingUpgradeStatusCode.Faulted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RollingUpgradeStatusCode value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SettingName.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SettingName.Serialization.cs index 437aa4eb9d2b0..9f27c0fb3944f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SettingName.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SettingName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SettingNameExtensions public static SettingName ToSettingName(this string value) { - if (string.Equals(value, "AutoLogon", StringComparison.InvariantCultureIgnoreCase)) return SettingName.AutoLogon; - if (string.Equals(value, "FirstLogonCommands", StringComparison.InvariantCultureIgnoreCase)) return SettingName.FirstLogonCommands; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AutoLogon")) return SettingName.AutoLogon; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FirstLogonCommands")) return SettingName.FirstLogonCommands; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SettingName value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.Serialization.cs index b3eec3c106f39..a16efecc281de 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SupportedOperatingSystemTypeExtensions public static SupportedOperatingSystemType ToSupportedOperatingSystemType(this string value) { - if (string.Equals(value, "Windows", StringComparison.InvariantCultureIgnoreCase)) return SupportedOperatingSystemType.Windows; - if (string.Equals(value, "Linux", StringComparison.InvariantCultureIgnoreCase)) return SupportedOperatingSystemType.Linux; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Windows")) return SupportedOperatingSystemType.Windows; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Linux")) return SupportedOperatingSystemType.Linux; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SupportedOperatingSystemType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpgradeOperationInvoker.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpgradeOperationInvoker.Serialization.cs index 1f3df064cd74c..1821a34108362 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpgradeOperationInvoker.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpgradeOperationInvoker.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class UpgradeOperationInvokerExtensions public static UpgradeOperationInvoker ToUpgradeOperationInvoker(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return UpgradeOperationInvoker.Unknown; - if (string.Equals(value, "User", StringComparison.InvariantCultureIgnoreCase)) return UpgradeOperationInvoker.User; - if (string.Equals(value, "Platform", StringComparison.InvariantCultureIgnoreCase)) return UpgradeOperationInvoker.Platform; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return UpgradeOperationInvoker.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "User")) return UpgradeOperationInvoker.User; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Platform")) return UpgradeOperationInvoker.Platform; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UpgradeOperationInvoker value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpgradeState.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpgradeState.Serialization.cs index e3874debe1cce..2ca6ccde1b47d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpgradeState.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UpgradeState.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class UpgradeStateExtensions public static UpgradeState ToUpgradeState(this string value) { - if (string.Equals(value, "RollingForward", StringComparison.InvariantCultureIgnoreCase)) return UpgradeState.RollingForward; - if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return UpgradeState.Cancelled; - if (string.Equals(value, "Completed", StringComparison.InvariantCultureIgnoreCase)) return UpgradeState.Completed; - if (string.Equals(value, "Faulted", StringComparison.InvariantCultureIgnoreCase)) return UpgradeState.Faulted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RollingForward")) return UpgradeState.RollingForward; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return UpgradeState.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Completed")) return UpgradeState.Completed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Faulted")) return UpgradeState.Faulted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UpgradeState value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetSkuScaleType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetSkuScaleType.Serialization.cs index 787f0a14811e3..3eefbfdddd251 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetSkuScaleType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetSkuScaleType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class VirtualMachineScaleSetSkuScaleTypeExtensions public static VirtualMachineScaleSetSkuScaleType ToVirtualMachineScaleSetSkuScaleType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return VirtualMachineScaleSetSkuScaleType.None; - if (string.Equals(value, "Automatic", StringComparison.InvariantCultureIgnoreCase)) return VirtualMachineScaleSetSkuScaleType.Automatic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return VirtualMachineScaleSetSkuScaleType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Automatic")) return VirtualMachineScaleSetSkuScaleType.Automatic; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown VirtualMachineScaleSetSkuScaleType value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpgradeMode.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpgradeMode.Serialization.cs index 515fdd743226c..c1852d6ca72ba 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpgradeMode.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpgradeMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class VirtualMachineScaleSetUpgradeModeExtensions public static VirtualMachineScaleSetUpgradeMode ToVirtualMachineScaleSetUpgradeMode(this string value) { - if (string.Equals(value, "Automatic", StringComparison.InvariantCultureIgnoreCase)) return VirtualMachineScaleSetUpgradeMode.Automatic; - if (string.Equals(value, "Manual", StringComparison.InvariantCultureIgnoreCase)) return VirtualMachineScaleSetUpgradeMode.Manual; - if (string.Equals(value, "Rolling", StringComparison.InvariantCultureIgnoreCase)) return VirtualMachineScaleSetUpgradeMode.Rolling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Automatic")) return VirtualMachineScaleSetUpgradeMode.Automatic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Manual")) return VirtualMachineScaleSetUpgradeMode.Manual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Rolling")) return VirtualMachineScaleSetUpgradeMode.Rolling; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown VirtualMachineScaleSetUpgradeMode value."); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WinRMListenerProtocolType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WinRMListenerProtocolType.Serialization.cs index 52ba51767cf53..25d17fac0c1ab 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WinRMListenerProtocolType.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WinRMListenerProtocolType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class WinRMListenerProtocolTypeExtensions public static WinRMListenerProtocolType ToWinRMListenerProtocolType(this string value) { - if (string.Equals(value, "Http", StringComparison.InvariantCultureIgnoreCase)) return WinRMListenerProtocolType.Http; - if (string.Equals(value, "Https", StringComparison.InvariantCultureIgnoreCase)) return WinRMListenerProtocolType.Https; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Http")) return WinRMListenerProtocolType.Http; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Https")) return WinRMListenerProtocolType.Https; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WinRMListenerProtocolType value."); } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCookieExpirationConvention.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCookieExpirationConvention.Serialization.cs index a09fccca6b5c8..ff5c433f242e3 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCookieExpirationConvention.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCookieExpirationConvention.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ContainerAppCookieExpirationConventionExtensions public static ContainerAppCookieExpirationConvention ToContainerAppCookieExpirationConvention(this string value) { - if (string.Equals(value, "FixedTime", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppCookieExpirationConvention.FixedTime; - if (string.Equals(value, "IdentityProviderDerived", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppCookieExpirationConvention.IdentityProviderDerived; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FixedTime")) return ContainerAppCookieExpirationConvention.FixedTime; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IdentityProviderDerived")) return ContainerAppCookieExpirationConvention.IdentityProviderDerived; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContainerAppCookieExpirationConvention value."); } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDnsVerificationTestResult.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDnsVerificationTestResult.Serialization.cs index 1fd00a8d25d63..0db5f7e5fdbbe 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDnsVerificationTestResult.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDnsVerificationTestResult.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ContainerAppDnsVerificationTestResultExtensions public static ContainerAppDnsVerificationTestResult ToContainerAppDnsVerificationTestResult(this string value) { - if (string.Equals(value, "Passed", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppDnsVerificationTestResult.Passed; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppDnsVerificationTestResult.Failed; - if (string.Equals(value, "Skipped", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppDnsVerificationTestResult.Skipped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Passed")) return ContainerAppDnsVerificationTestResult.Passed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return ContainerAppDnsVerificationTestResult.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Skipped")) return ContainerAppDnsVerificationTestResult.Skipped; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContainerAppDnsVerificationTestResult value."); } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppForwardProxyConvention.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppForwardProxyConvention.Serialization.cs index 12609269495e8..6469a997cabaf 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppForwardProxyConvention.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppForwardProxyConvention.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ContainerAppForwardProxyConventionExtensions public static ContainerAppForwardProxyConvention ToContainerAppForwardProxyConvention(this string value) { - if (string.Equals(value, "NoProxy", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppForwardProxyConvention.NoProxy; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppForwardProxyConvention.Standard; - if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppForwardProxyConvention.Custom; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoProxy")) return ContainerAppForwardProxyConvention.NoProxy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return ContainerAppForwardProxyConvention.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Custom")) return ContainerAppForwardProxyConvention.Custom; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContainerAppForwardProxyConvention value."); } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppUnauthenticatedClientActionV2.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppUnauthenticatedClientActionV2.Serialization.cs index a3f2a132f53cf..c63c906c33bd8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppUnauthenticatedClientActionV2.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppUnauthenticatedClientActionV2.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class ContainerAppUnauthenticatedClientActionV2Extension public static ContainerAppUnauthenticatedClientActionV2 ToContainerAppUnauthenticatedClientActionV2(this string value) { - if (string.Equals(value, "RedirectToLoginPage", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppUnauthenticatedClientActionV2.RedirectToLoginPage; - if (string.Equals(value, "AllowAnonymous", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppUnauthenticatedClientActionV2.AllowAnonymous; - if (string.Equals(value, "Return401", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppUnauthenticatedClientActionV2.Return401; - if (string.Equals(value, "Return403", StringComparison.InvariantCultureIgnoreCase)) return ContainerAppUnauthenticatedClientActionV2.Return403; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RedirectToLoginPage")) return ContainerAppUnauthenticatedClientActionV2.RedirectToLoginPage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AllowAnonymous")) return ContainerAppUnauthenticatedClientActionV2.AllowAnonymous; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Return401")) return ContainerAppUnauthenticatedClientActionV2.Return401; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Return403")) return ContainerAppUnauthenticatedClientActionV2.Return403; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContainerAppUnauthenticatedClientActionV2 value."); } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestOrder.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestOrder.Serialization.cs index e33485bb61ef5..adab78964a579 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestOrder.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestOrder.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ArtifactManifestOrderExtensions public static ArtifactManifestOrder ToArtifactManifestOrder(this string value) { - if (string.Equals(value, "none", StringComparison.InvariantCultureIgnoreCase)) return ArtifactManifestOrder.None; - if (string.Equals(value, "timedesc", StringComparison.InvariantCultureIgnoreCase)) return ArtifactManifestOrder.LastUpdatedOnDescending; - if (string.Equals(value, "timeasc", StringComparison.InvariantCultureIgnoreCase)) return ArtifactManifestOrder.LastUpdatedOnAscending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "none")) return ArtifactManifestOrder.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "timedesc")) return ArtifactManifestOrder.LastUpdatedOnDescending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "timeasc")) return ArtifactManifestOrder.LastUpdatedOnAscending; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArtifactManifestOrder value."); } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactTagOrder.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactTagOrder.Serialization.cs index 200dadfd61b39..819692c66287a 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactTagOrder.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactTagOrder.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ArtifactTagOrderExtensions public static ArtifactTagOrder ToArtifactTagOrder(this string value) { - if (string.Equals(value, "none", StringComparison.InvariantCultureIgnoreCase)) return ArtifactTagOrder.None; - if (string.Equals(value, "timedesc", StringComparison.InvariantCultureIgnoreCase)) return ArtifactTagOrder.LastUpdatedOnDescending; - if (string.Equals(value, "timeasc", StringComparison.InvariantCultureIgnoreCase)) return ArtifactTagOrder.LastUpdatedOnAscending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "none")) return ArtifactTagOrder.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "timedesc")) return ArtifactTagOrder.LastUpdatedOnDescending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "timeasc")) return ArtifactTagOrder.LastUpdatedOnAscending; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArtifactTagOrder value."); } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TokenGrantType.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TokenGrantType.Serialization.cs index 9baf8c5176b2d..892458971864d 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TokenGrantType.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TokenGrantType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class TokenGrantTypeExtensions public static TokenGrantType ToTokenGrantType(this string value) { - if (string.Equals(value, "refresh_token", StringComparison.InvariantCultureIgnoreCase)) return TokenGrantType.RefreshToken; - if (string.Equals(value, "password", StringComparison.InvariantCultureIgnoreCase)) return TokenGrantType.Password; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "refresh_token")) return TokenGrantType.RefreshToken; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "password")) return TokenGrantType.Password; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TokenGrantType value."); } } diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPasswordName.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPasswordName.Serialization.cs index cf4a89e1fba7f..262bb40434711 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPasswordName.Serialization.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPasswordName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ContainerRegistryPasswordNameExtensions public static ContainerRegistryPasswordName ToContainerRegistryPasswordName(this string value) { - if (string.Equals(value, "password", StringComparison.InvariantCultureIgnoreCase)) return ContainerRegistryPasswordName.Password; - if (string.Equals(value, "password2", StringComparison.InvariantCultureIgnoreCase)) return ContainerRegistryPasswordName.Password2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "password")) return ContainerRegistryPasswordName.Password; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "password2")) return ContainerRegistryPasswordName.Password2; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContainerRegistryPasswordName value."); } } diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/MatcherType.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/MatcherType.Serialization.cs index e2e83a360d471..6ea40f36d6cf3 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/MatcherType.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/MatcherType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class MatcherTypeExtensions public static MatcherType ToMatcherType(this string value) { - if (string.Equals(value, "BodilessMatcher", StringComparison.InvariantCultureIgnoreCase)) return MatcherType.BodilessMatcher; - if (string.Equals(value, "CustomDefaultMatcher", StringComparison.InvariantCultureIgnoreCase)) return MatcherType.CustomDefaultMatcher; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BodilessMatcher")) return MatcherType.BodilessMatcher; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomDefaultMatcher")) return MatcherType.CustomDefaultMatcher; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MatcherType value."); } } diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/SanitizerType.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/SanitizerType.Serialization.cs index 508a1aeb6072d..935345c021fbc 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/SanitizerType.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/SanitizerType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SanitizerTypeExtensions public static SanitizerType ToSanitizerType(this string value) { - if (string.Equals(value, "BodyKeySanitizer", StringComparison.InvariantCultureIgnoreCase)) return SanitizerType.BodyKeySanitizer; - if (string.Equals(value, "HeaderRegexSanitizer", StringComparison.InvariantCultureIgnoreCase)) return SanitizerType.HeaderRegexSanitizer; - if (string.Equals(value, "UriRegexSanitizer", StringComparison.InvariantCultureIgnoreCase)) return SanitizerType.UriRegexSanitizer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BodyKeySanitizer")) return SanitizerType.BodyKeySanitizer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "HeaderRegexSanitizer")) return SanitizerType.HeaderRegexSanitizer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UriRegexSanitizer")) return SanitizerType.UriRegexSanitizer; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SanitizerType value."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionType.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionType.Serialization.cs index cdcc6d8e19b4d..c75d34f52b8eb 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionType.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class CosmosDBSqlRoleDefinitionTypeExtensions public static CosmosDBSqlRoleDefinitionType ToCosmosDBSqlRoleDefinitionType(this string value) { - if (string.Equals(value, "BuiltInRole", StringComparison.InvariantCultureIgnoreCase)) return CosmosDBSqlRoleDefinitionType.BuiltInRole; - if (string.Equals(value, "CustomRole", StringComparison.InvariantCultureIgnoreCase)) return CosmosDBSqlRoleDefinitionType.CustomRole; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BuiltInRole")) return CosmosDBSqlRoleDefinitionType.BuiltInRole; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomRole")) return CosmosDBSqlRoleDefinitionType.CustomRole; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CosmosDBSqlRoleDefinitionType value."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DefaultConsistencyLevel.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DefaultConsistencyLevel.Serialization.cs index 9f0c59f204a52..85b50aaf77c30 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DefaultConsistencyLevel.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DefaultConsistencyLevel.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class DefaultConsistencyLevelExtensions public static DefaultConsistencyLevel ToDefaultConsistencyLevel(this string value) { - if (string.Equals(value, "Eventual", StringComparison.InvariantCultureIgnoreCase)) return DefaultConsistencyLevel.Eventual; - if (string.Equals(value, "Session", StringComparison.InvariantCultureIgnoreCase)) return DefaultConsistencyLevel.Session; - if (string.Equals(value, "BoundedStaleness", StringComparison.InvariantCultureIgnoreCase)) return DefaultConsistencyLevel.BoundedStaleness; - if (string.Equals(value, "Strong", StringComparison.InvariantCultureIgnoreCase)) return DefaultConsistencyLevel.Strong; - if (string.Equals(value, "ConsistentPrefix", StringComparison.InvariantCultureIgnoreCase)) return DefaultConsistencyLevel.ConsistentPrefix; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Eventual")) return DefaultConsistencyLevel.Eventual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Session")) return DefaultConsistencyLevel.Session; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BoundedStaleness")) return DefaultConsistencyLevel.BoundedStaleness; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Strong")) return DefaultConsistencyLevel.Strong; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ConsistentPrefix")) return DefaultConsistencyLevel.ConsistentPrefix; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DefaultConsistencyLevel value."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionType.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionType.Serialization.cs index 0e0ecb79eaa5f..bd6035af3b1e7 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionType.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class MongoDBRoleDefinitionTypeExtensions public static MongoDBRoleDefinitionType ToMongoDBRoleDefinitionType(this string value) { - if (string.Equals(value, "BuiltInRole", StringComparison.InvariantCultureIgnoreCase)) return MongoDBRoleDefinitionType.BuiltInRole; - if (string.Equals(value, "CustomRole", StringComparison.InvariantCultureIgnoreCase)) return MongoDBRoleDefinitionType.CustomRole; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BuiltInRole")) return MongoDBRoleDefinitionType.BuiltInRole; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomRole")) return MongoDBRoleDefinitionType.CustomRole; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MongoDBRoleDefinitionType value."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/NetworkAclBypass.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/NetworkAclBypass.Serialization.cs index a450e60059489..0e083992d977a 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/NetworkAclBypass.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/NetworkAclBypass.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class NetworkAclBypassExtensions public static NetworkAclBypass ToNetworkAclBypass(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return NetworkAclBypass.None; - if (string.Equals(value, "AzureServices", StringComparison.InvariantCultureIgnoreCase)) return NetworkAclBypass.AzureServices; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return NetworkAclBypass.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureServices")) return NetworkAclBypass.AzureServices; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NetworkAclBypass value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CalculationWindowType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CalculationWindowType.Serialization.cs index 24874c3d60e20..4934fcaa8c5a8 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CalculationWindowType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CalculationWindowType.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class CalculationWindowTypeExtensions public static CalculationWindowType ToCalculationWindowType(this string value) { - if (string.Equals(value, "Lifetime", StringComparison.InvariantCultureIgnoreCase)) return CalculationWindowType.Lifetime; - if (string.Equals(value, "Hour", StringComparison.InvariantCultureIgnoreCase)) return CalculationWindowType.Hour; - if (string.Equals(value, "Day", StringComparison.InvariantCultureIgnoreCase)) return CalculationWindowType.Day; - if (string.Equals(value, "Week", StringComparison.InvariantCultureIgnoreCase)) return CalculationWindowType.Week; - if (string.Equals(value, "Month", StringComparison.InvariantCultureIgnoreCase)) return CalculationWindowType.Month; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Lifetime")) return CalculationWindowType.Lifetime; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Hour")) return CalculationWindowType.Hour; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Day")) return CalculationWindowType.Day; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Week")) return CalculationWindowType.Week; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Month")) return CalculationWindowType.Month; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CalculationWindowType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CardinalityType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CardinalityType.Serialization.cs index 89a0c5fc4e784..71bbdb4320b40 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CardinalityType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CardinalityType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class CardinalityTypeExtensions public static CardinalityType ToCardinalityType(this string value) { - if (string.Equals(value, "OneToOne", StringComparison.InvariantCultureIgnoreCase)) return CardinalityType.OneToOne; - if (string.Equals(value, "OneToMany", StringComparison.InvariantCultureIgnoreCase)) return CardinalityType.OneToMany; - if (string.Equals(value, "ManyToMany", StringComparison.InvariantCultureIgnoreCase)) return CardinalityType.ManyToMany; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OneToOne")) return CardinalityType.OneToOne; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OneToMany")) return CardinalityType.OneToMany; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ManyToMany")) return CardinalityType.ManyToMany; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CardinalityType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CompletionOperationType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CompletionOperationType.Serialization.cs index 32ef7d1420039..2b378a08c8089 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CompletionOperationType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CompletionOperationType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class CompletionOperationTypeExtensions public static CompletionOperationType ToCompletionOperationType(this string value) { - if (string.Equals(value, "DoNothing", StringComparison.InvariantCultureIgnoreCase)) return CompletionOperationType.DoNothing; - if (string.Equals(value, "DeleteFile", StringComparison.InvariantCultureIgnoreCase)) return CompletionOperationType.DeleteFile; - if (string.Equals(value, "MoveFile", StringComparison.InvariantCultureIgnoreCase)) return CompletionOperationType.MoveFile; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DoNothing")) return CompletionOperationType.DoNothing; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DeleteFile")) return CompletionOperationType.DeleteFile; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MoveFile")) return CompletionOperationType.MoveFile; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CompletionOperationType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingState.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingState.Serialization.cs index ed4b1e71275ba..288cbf1aa7a63 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingState.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingState.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class ConnectorMappingStateExtensions public static ConnectorMappingState ToConnectorMappingState(this string value) { - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return ConnectorMappingState.Creating; - if (string.Equals(value, "Created", StringComparison.InvariantCultureIgnoreCase)) return ConnectorMappingState.Created; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return ConnectorMappingState.Failed; - if (string.Equals(value, "Ready", StringComparison.InvariantCultureIgnoreCase)) return ConnectorMappingState.Ready; - if (string.Equals(value, "Running", StringComparison.InvariantCultureIgnoreCase)) return ConnectorMappingState.Running; - if (string.Equals(value, "Stopped", StringComparison.InvariantCultureIgnoreCase)) return ConnectorMappingState.Stopped; - if (string.Equals(value, "Expiring", StringComparison.InvariantCultureIgnoreCase)) return ConnectorMappingState.Expiring; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return ConnectorMappingState.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Created")) return ConnectorMappingState.Created; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return ConnectorMappingState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Ready")) return ConnectorMappingState.Ready; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Running")) return ConnectorMappingState.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Stopped")) return ConnectorMappingState.Stopped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Expiring")) return ConnectorMappingState.Expiring; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ConnectorMappingState value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorState.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorState.Serialization.cs index 19aab47e22479..7a5f8e6c16b52 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorState.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorState.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class ConnectorStateExtensions public static ConnectorState ToConnectorState(this string value) { - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return ConnectorState.Creating; - if (string.Equals(value, "Created", StringComparison.InvariantCultureIgnoreCase)) return ConnectorState.Created; - if (string.Equals(value, "Ready", StringComparison.InvariantCultureIgnoreCase)) return ConnectorState.Ready; - if (string.Equals(value, "Expiring", StringComparison.InvariantCultureIgnoreCase)) return ConnectorState.Expiring; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return ConnectorState.Deleting; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return ConnectorState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return ConnectorState.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Created")) return ConnectorState.Created; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Ready")) return ConnectorState.Ready; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Expiring")) return ConnectorState.Expiring; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return ConnectorState.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return ConnectorState.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ConnectorState value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/EntityType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/EntityType.Serialization.cs index 9ee841118c63e..de971e6715eb9 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/EntityType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/EntityType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class EntityTypeExtensions public static EntityType ToEntityType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return EntityType.None; - if (string.Equals(value, "Profile", StringComparison.InvariantCultureIgnoreCase)) return EntityType.Profile; - if (string.Equals(value, "Interaction", StringComparison.InvariantCultureIgnoreCase)) return EntityType.Interaction; - if (string.Equals(value, "Relationship", StringComparison.InvariantCultureIgnoreCase)) return EntityType.Relationship; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return EntityType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Profile")) return EntityType.Profile; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Interaction")) return EntityType.Interaction; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Relationship")) return EntityType.Relationship; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EntityType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ErrorManagementType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ErrorManagementType.Serialization.cs index f2894bc3b084e..5556187d8b2c7 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ErrorManagementType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ErrorManagementType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ErrorManagementTypeExtensions public static ErrorManagementType ToErrorManagementType(this string value) { - if (string.Equals(value, "RejectAndContinue", StringComparison.InvariantCultureIgnoreCase)) return ErrorManagementType.RejectAndContinue; - if (string.Equals(value, "StopImport", StringComparison.InvariantCultureIgnoreCase)) return ErrorManagementType.StopImport; - if (string.Equals(value, "RejectUntilLimit", StringComparison.InvariantCultureIgnoreCase)) return ErrorManagementType.RejectUntilLimit; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RejectAndContinue")) return ErrorManagementType.RejectAndContinue; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StopImport")) return ErrorManagementType.StopImport; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RejectUntilLimit")) return ErrorManagementType.RejectUntilLimit; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ErrorManagementType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/FrequencyType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/FrequencyType.Serialization.cs index a1dd59b05aa7a..83f43ae807d96 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/FrequencyType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/FrequencyType.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class FrequencyTypeExtensions public static FrequencyType ToFrequencyType(this string value) { - if (string.Equals(value, "Minute", StringComparison.InvariantCultureIgnoreCase)) return FrequencyType.Minute; - if (string.Equals(value, "Hour", StringComparison.InvariantCultureIgnoreCase)) return FrequencyType.Hour; - if (string.Equals(value, "Day", StringComparison.InvariantCultureIgnoreCase)) return FrequencyType.Day; - if (string.Equals(value, "Week", StringComparison.InvariantCultureIgnoreCase)) return FrequencyType.Week; - if (string.Equals(value, "Month", StringComparison.InvariantCultureIgnoreCase)) return FrequencyType.Month; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Minute")) return FrequencyType.Minute; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Hour")) return FrequencyType.Hour; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Day")) return FrequencyType.Day; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Week")) return FrequencyType.Week; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Month")) return FrequencyType.Month; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FrequencyType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InstanceOperationType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InstanceOperationType.Serialization.cs index 1e39369593e7a..31831761b1c4f 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InstanceOperationType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InstanceOperationType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class InstanceOperationTypeExtensions public static InstanceOperationType ToInstanceOperationType(this string value) { - if (string.Equals(value, "Upsert", StringComparison.InvariantCultureIgnoreCase)) return InstanceOperationType.Upsert; - if (string.Equals(value, "Delete", StringComparison.InvariantCultureIgnoreCase)) return InstanceOperationType.Delete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Upsert")) return InstanceOperationType.Upsert; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Delete")) return InstanceOperationType.Delete; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown InstanceOperationType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiFunction.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiFunction.Serialization.cs index 25c45e2e14e88..295769d65b5a9 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiFunction.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiFunction.Serialization.cs @@ -26,14 +26,14 @@ internal static partial class KpiFunctionExtensions public static KpiFunction ToKpiFunction(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return KpiFunction.None; - if (string.Equals(value, "Sum", StringComparison.InvariantCultureIgnoreCase)) return KpiFunction.Sum; - if (string.Equals(value, "Avg", StringComparison.InvariantCultureIgnoreCase)) return KpiFunction.Avg; - if (string.Equals(value, "Min", StringComparison.InvariantCultureIgnoreCase)) return KpiFunction.Min; - if (string.Equals(value, "Max", StringComparison.InvariantCultureIgnoreCase)) return KpiFunction.Max; - if (string.Equals(value, "Last", StringComparison.InvariantCultureIgnoreCase)) return KpiFunction.Last; - if (string.Equals(value, "Count", StringComparison.InvariantCultureIgnoreCase)) return KpiFunction.Count; - if (string.Equals(value, "CountDistinct", StringComparison.InvariantCultureIgnoreCase)) return KpiFunction.CountDistinct; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return KpiFunction.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sum")) return KpiFunction.Sum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Avg")) return KpiFunction.Avg; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Min")) return KpiFunction.Min; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Max")) return KpiFunction.Max; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Last")) return KpiFunction.Last; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Count")) return KpiFunction.Count; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CountDistinct")) return KpiFunction.CountDistinct; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KpiFunction value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkType.Serialization.cs index d5141e42c7b42..b66751f576896 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LinkTypeExtensions public static LinkType ToLinkType(this string value) { - if (string.Equals(value, "UpdateAlways", StringComparison.InvariantCultureIgnoreCase)) return LinkType.UpdateAlways; - if (string.Equals(value, "CopyIfNull", StringComparison.InvariantCultureIgnoreCase)) return LinkType.CopyIfNull; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UpdateAlways")) return LinkType.UpdateAlways; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CopyIfNull")) return LinkType.CopyIfNull; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LinkType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PermissionType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PermissionType.Serialization.cs index 0cb4df881596e..93f360a157c11 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PermissionType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PermissionType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class PermissionTypeExtensions public static PermissionType ToPermissionType(this string value) { - if (string.Equals(value, "Read", StringComparison.InvariantCultureIgnoreCase)) return PermissionType.Read; - if (string.Equals(value, "Write", StringComparison.InvariantCultureIgnoreCase)) return PermissionType.Write; - if (string.Equals(value, "Manage", StringComparison.InvariantCultureIgnoreCase)) return PermissionType.Manage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Read")) return PermissionType.Read; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Write")) return PermissionType.Write; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Manage")) return PermissionType.Manage; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PermissionType value."); } } diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleType.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleType.Serialization.cs index 5982edfa98460..fb3a26e3ac9ab 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleType.Serialization.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleType.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class RoleTypeExtensions public static RoleType ToRoleType(this string value) { - if (string.Equals(value, "Admin", StringComparison.InvariantCultureIgnoreCase)) return RoleType.Admin; - if (string.Equals(value, "Reader", StringComparison.InvariantCultureIgnoreCase)) return RoleType.Reader; - if (string.Equals(value, "ManageAdmin", StringComparison.InvariantCultureIgnoreCase)) return RoleType.ManageAdmin; - if (string.Equals(value, "ManageReader", StringComparison.InvariantCultureIgnoreCase)) return RoleType.ManageReader; - if (string.Equals(value, "DataAdmin", StringComparison.InvariantCultureIgnoreCase)) return RoleType.DataAdmin; - if (string.Equals(value, "DataReader", StringComparison.InvariantCultureIgnoreCase)) return RoleType.DataReader; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Admin")) return RoleType.Admin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reader")) return RoleType.Reader; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ManageAdmin")) return RoleType.ManageAdmin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ManageReader")) return RoleType.ManageReader; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataAdmin")) return RoleType.DataAdmin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataReader")) return RoleType.DataReader; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RoleType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationStatus.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationStatus.Serialization.cs index 65b51bf9e49ab..d644b61fe2be0 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationStatus.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AddressValidationStatusExtensions public static AddressValidationStatus ToAddressValidationStatus(this string value) { - if (string.Equals(value, "Valid", StringComparison.InvariantCultureIgnoreCase)) return AddressValidationStatus.Valid; - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return AddressValidationStatus.Invalid; - if (string.Equals(value, "Ambiguous", StringComparison.InvariantCultureIgnoreCase)) return AddressValidationStatus.Ambiguous; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Valid")) return AddressValidationStatus.Valid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return AddressValidationStatus.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Ambiguous")) return AddressValidationStatus.Ambiguous; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AddressValidationStatus value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/CustomerResolutionCode.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/CustomerResolutionCode.Serialization.cs index b2c1a7fc87760..921c19fbda80e 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/CustomerResolutionCode.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/CustomerResolutionCode.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class CustomerResolutionCodeExtensions public static CustomerResolutionCode ToCustomerResolutionCode(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return CustomerResolutionCode.None; - if (string.Equals(value, "MoveToCleanUpDevice", StringComparison.InvariantCultureIgnoreCase)) return CustomerResolutionCode.MoveToCleanUpDevice; - if (string.Equals(value, "Resume", StringComparison.InvariantCultureIgnoreCase)) return CustomerResolutionCode.Resume; - if (string.Equals(value, "Restart", StringComparison.InvariantCultureIgnoreCase)) return CustomerResolutionCode.Restart; - if (string.Equals(value, "ReachOutToOperation", StringComparison.InvariantCultureIgnoreCase)) return CustomerResolutionCode.ReachOutToOperation; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return CustomerResolutionCode.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MoveToCleanUpDevice")) return CustomerResolutionCode.MoveToCleanUpDevice; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Resume")) return CustomerResolutionCode.Resume; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Restart")) return CustomerResolutionCode.Restart; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReachOutToOperation")) return CustomerResolutionCode.ReachOutToOperation; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CustomerResolutionCode value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataAccountType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataAccountType.Serialization.cs index c95b99b9736cb..e109d3addc714 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataAccountType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataAccountType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataAccountTypeExtensions public static DataAccountType ToDataAccountType(this string value) { - if (string.Equals(value, "StorageAccount", StringComparison.InvariantCultureIgnoreCase)) return DataAccountType.StorageAccount; - if (string.Equals(value, "ManagedDisk", StringComparison.InvariantCultureIgnoreCase)) return DataAccountType.ManagedDisk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StorageAccount")) return DataAccountType.StorageAccount; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ManagedDisk")) return DataAccountType.ManagedDisk; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataAccountType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxAccessProtocol.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxAccessProtocol.Serialization.cs index c015880193cd4..0f0cce28f27cc 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxAccessProtocol.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxAccessProtocol.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataBoxAccessProtocolExtensions public static DataBoxAccessProtocol ToDataBoxAccessProtocol(this string value) { - if (string.Equals(value, "SMB", StringComparison.InvariantCultureIgnoreCase)) return DataBoxAccessProtocol.Smb; - if (string.Equals(value, "NFS", StringComparison.InvariantCultureIgnoreCase)) return DataBoxAccessProtocol.Nfs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SMB")) return DataBoxAccessProtocol.Smb; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NFS")) return DataBoxAccessProtocol.Nfs; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxAccessProtocol value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDoubleEncryption.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDoubleEncryption.Serialization.cs index 5163e9e1ca362..b2a2e8a8c443b 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDoubleEncryption.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDoubleEncryption.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataBoxDoubleEncryptionExtensions public static DataBoxDoubleEncryption ToDataBoxDoubleEncryption(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataBoxDoubleEncryption.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataBoxDoubleEncryption.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataBoxDoubleEncryption.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataBoxDoubleEncryption.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxDoubleEncryption value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobTransferType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobTransferType.Serialization.cs index 14735753117e9..9b1a9e0bc977a 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobTransferType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobTransferType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataBoxJobTransferTypeExtensions public static DataBoxJobTransferType ToDataBoxJobTransferType(this string value) { - if (string.Equals(value, "ImportToAzure", StringComparison.InvariantCultureIgnoreCase)) return DataBoxJobTransferType.ImportToAzure; - if (string.Equals(value, "ExportFromAzure", StringComparison.InvariantCultureIgnoreCase)) return DataBoxJobTransferType.ExportFromAzure; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ImportToAzure")) return DataBoxJobTransferType.ImportToAzure; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ExportFromAzure")) return DataBoxJobTransferType.ExportFromAzure; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxJobTransferType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxKeyEncryptionKeyType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxKeyEncryptionKeyType.Serialization.cs index 4e3b3ab32a920..30c8d2f6c4584 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxKeyEncryptionKeyType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxKeyEncryptionKeyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataBoxKeyEncryptionKeyTypeExtensions public static DataBoxKeyEncryptionKeyType ToDataBoxKeyEncryptionKeyType(this string value) { - if (string.Equals(value, "MicrosoftManaged", StringComparison.InvariantCultureIgnoreCase)) return DataBoxKeyEncryptionKeyType.MicrosoftManaged; - if (string.Equals(value, "CustomerManaged", StringComparison.InvariantCultureIgnoreCase)) return DataBoxKeyEncryptionKeyType.CustomerManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MicrosoftManaged")) return DataBoxKeyEncryptionKeyType.MicrosoftManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomerManaged")) return DataBoxKeyEncryptionKeyType.CustomerManaged; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxKeyEncryptionKeyType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderType.Serialization.cs index 825420517c486..ecd6d739067ae 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class DataBoxOrderTypeExtensions public static DataBoxOrderType ToDataBoxOrderType(this string value) { - if (string.Equals(value, "DataBox", StringComparison.InvariantCultureIgnoreCase)) return DataBoxOrderType.DataBox; - if (string.Equals(value, "DataBoxDisk", StringComparison.InvariantCultureIgnoreCase)) return DataBoxOrderType.DataBoxDisk; - if (string.Equals(value, "DataBoxHeavy", StringComparison.InvariantCultureIgnoreCase)) return DataBoxOrderType.DataBoxHeavy; - if (string.Equals(value, "DataBoxCustomerDisk", StringComparison.InvariantCultureIgnoreCase)) return DataBoxOrderType.DataBoxCustomerDisk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataBox")) return DataBoxOrderType.DataBox; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataBoxDisk")) return DataBoxOrderType.DataBoxDisk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataBoxHeavy")) return DataBoxOrderType.DataBoxHeavy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataBoxCustomerDisk")) return DataBoxOrderType.DataBoxCustomerDisk; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxOrderType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxShippingAddressType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxShippingAddressType.Serialization.cs index c07f4d2558623..0592b1109e4d6 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxShippingAddressType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxShippingAddressType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DataBoxShippingAddressTypeExtensions public static DataBoxShippingAddressType ToDataBoxShippingAddressType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return DataBoxShippingAddressType.None; - if (string.Equals(value, "Residential", StringComparison.InvariantCultureIgnoreCase)) return DataBoxShippingAddressType.Residential; - if (string.Equals(value, "Commercial", StringComparison.InvariantCultureIgnoreCase)) return DataBoxShippingAddressType.Commercial; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return DataBoxShippingAddressType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Residential")) return DataBoxShippingAddressType.Residential; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commercial")) return DataBoxShippingAddressType.Commercial; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxShippingAddressType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuName.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuName.Serialization.cs index c5cdaba58944e..cc7aa354bc9af 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuName.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuName.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class DataBoxSkuNameExtensions public static DataBoxSkuName ToDataBoxSkuName(this string value) { - if (string.Equals(value, "DataBox", StringComparison.InvariantCultureIgnoreCase)) return DataBoxSkuName.DataBox; - if (string.Equals(value, "DataBoxDisk", StringComparison.InvariantCultureIgnoreCase)) return DataBoxSkuName.DataBoxDisk; - if (string.Equals(value, "DataBoxHeavy", StringComparison.InvariantCultureIgnoreCase)) return DataBoxSkuName.DataBoxHeavy; - if (string.Equals(value, "DataBoxCustomerDisk", StringComparison.InvariantCultureIgnoreCase)) return DataBoxSkuName.DataBoxCustomerDisk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataBox")) return DataBoxSkuName.DataBox; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataBoxDisk")) return DataBoxSkuName.DataBoxDisk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataBoxHeavy")) return DataBoxSkuName.DataBoxHeavy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataBoxCustomerDisk")) return DataBoxSkuName.DataBoxCustomerDisk; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxSkuName value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxStageStatus.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxStageStatus.Serialization.cs index 156dd77f88038..f50c39b0213bf 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxStageStatus.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxStageStatus.Serialization.cs @@ -31,19 +31,19 @@ internal static partial class DataBoxStageStatusExtensions public static DataBoxStageStatus ToDataBoxStageStatus(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.None; - if (string.Equals(value, "InProgress", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.InProgress; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.Failed; - if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.Cancelled; - if (string.Equals(value, "Cancelling", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.Cancelling; - if (string.Equals(value, "SucceededWithErrors", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.SucceededWithErrors; - if (string.Equals(value, "WaitingForCustomerAction", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.WaitingForCustomerAction; - if (string.Equals(value, "SucceededWithWarnings", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.SucceededWithWarnings; - if (string.Equals(value, "WaitingForCustomerActionForKek", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.WaitingForCustomerActionForKek; - if (string.Equals(value, "WaitingForCustomerActionForCleanUp", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.WaitingForCustomerActionForCleanUp; - if (string.Equals(value, "CustomerActionPerformedForCleanUp", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.CustomerActionPerformedForCleanUp; - if (string.Equals(value, "CustomerActionPerformed", StringComparison.InvariantCultureIgnoreCase)) return DataBoxStageStatus.CustomerActionPerformed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return DataBoxStageStatus.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InProgress")) return DataBoxStageStatus.InProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return DataBoxStageStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return DataBoxStageStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return DataBoxStageStatus.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelling")) return DataBoxStageStatus.Cancelling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SucceededWithErrors")) return DataBoxStageStatus.SucceededWithErrors; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WaitingForCustomerAction")) return DataBoxStageStatus.WaitingForCustomerAction; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SucceededWithWarnings")) return DataBoxStageStatus.SucceededWithWarnings; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WaitingForCustomerActionForKek")) return DataBoxStageStatus.WaitingForCustomerActionForKek; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WaitingForCustomerActionForCleanUp")) return DataBoxStageStatus.WaitingForCustomerActionForCleanUp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomerActionPerformedForCleanUp")) return DataBoxStageStatus.CustomerActionPerformedForCleanUp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomerActionPerformed")) return DataBoxStageStatus.CustomerActionPerformed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxStageStatus value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationInputDiscriminator.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationInputDiscriminator.Serialization.cs index f4350c4d452a6..92124b134158b 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationInputDiscriminator.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationInputDiscriminator.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class DataBoxValidationInputDiscriminatorExtensions public static DataBoxValidationInputDiscriminator ToDataBoxValidationInputDiscriminator(this string value) { - if (string.Equals(value, "ValidateAddress", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationInputDiscriminator.ValidateAddress; - if (string.Equals(value, "ValidateSubscriptionIsAllowedToCreateJob", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationInputDiscriminator.ValidateSubscriptionIsAllowedToCreateJob; - if (string.Equals(value, "ValidatePreferences", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationInputDiscriminator.ValidatePreferences; - if (string.Equals(value, "ValidateCreateOrderLimit", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationInputDiscriminator.ValidateCreateOrderLimit; - if (string.Equals(value, "ValidateSkuAvailability", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationInputDiscriminator.ValidateSkuAvailability; - if (string.Equals(value, "ValidateDataTransferDetails", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationInputDiscriminator.ValidateDataTransferDetails; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ValidateAddress")) return DataBoxValidationInputDiscriminator.ValidateAddress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ValidateSubscriptionIsAllowedToCreateJob")) return DataBoxValidationInputDiscriminator.ValidateSubscriptionIsAllowedToCreateJob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ValidatePreferences")) return DataBoxValidationInputDiscriminator.ValidatePreferences; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ValidateCreateOrderLimit")) return DataBoxValidationInputDiscriminator.ValidateCreateOrderLimit; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ValidateSkuAvailability")) return DataBoxValidationInputDiscriminator.ValidateSkuAvailability; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ValidateDataTransferDetails")) return DataBoxValidationInputDiscriminator.ValidateDataTransferDetails; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxValidationInputDiscriminator value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationStatus.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationStatus.Serialization.cs index 33698b82c377c..b93b4cd6ff016 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationStatus.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DataBoxValidationStatusExtensions public static DataBoxValidationStatus ToDataBoxValidationStatus(this string value) { - if (string.Equals(value, "Valid", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationStatus.Valid; - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationStatus.Invalid; - if (string.Equals(value, "Skipped", StringComparison.InvariantCultureIgnoreCase)) return DataBoxValidationStatus.Skipped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Valid")) return DataBoxValidationStatus.Valid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return DataBoxValidationStatus.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Skipped")) return DataBoxValidationStatus.Skipped; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataBoxValidationStatus value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataCenterAddressType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataCenterAddressType.Serialization.cs index ef8af4dc3b03f..1b75dff87cd22 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataCenterAddressType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataCenterAddressType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataCenterAddressTypeExtensions public static DataCenterAddressType ToDataCenterAddressType(this string value) { - if (string.Equals(value, "DatacenterAddressLocation", StringComparison.InvariantCultureIgnoreCase)) return DataCenterAddressType.DataCenterAddressLocation; - if (string.Equals(value, "DatacenterAddressInstruction", StringComparison.InvariantCultureIgnoreCase)) return DataCenterAddressType.DataCenterAddressInstruction; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DatacenterAddressLocation")) return DataCenterAddressType.DataCenterAddressLocation; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DatacenterAddressInstruction")) return DataCenterAddressType.DataCenterAddressInstruction; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataCenterAddressType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/FilterFileType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/FilterFileType.Serialization.cs index a414852e6667d..1e2828d8631bc 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/FilterFileType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/FilterFileType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FilterFileTypeExtensions public static FilterFileType ToFilterFileType(this string value) { - if (string.Equals(value, "AzureBlob", StringComparison.InvariantCultureIgnoreCase)) return FilterFileType.AzureBlob; - if (string.Equals(value, "AzureFile", StringComparison.InvariantCultureIgnoreCase)) return FilterFileType.AzureFile; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureBlob")) return FilterFileType.AzureBlob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureFile")) return FilterFileType.AzureFile; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FilterFileType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDeliveryType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDeliveryType.Serialization.cs index ab8b246d9cc92..901772a6cf8ad 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDeliveryType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDeliveryType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class JobDeliveryTypeExtensions public static JobDeliveryType ToJobDeliveryType(this string value) { - if (string.Equals(value, "NonScheduled", StringComparison.InvariantCultureIgnoreCase)) return JobDeliveryType.NonScheduled; - if (string.Equals(value, "Scheduled", StringComparison.InvariantCultureIgnoreCase)) return JobDeliveryType.Scheduled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NonScheduled")) return JobDeliveryType.NonScheduled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Scheduled")) return JobDeliveryType.Scheduled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown JobDeliveryType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/LogCollectionLevel.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/LogCollectionLevel.Serialization.cs index 3cd9b9be17298..2ee85014d022c 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/LogCollectionLevel.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/LogCollectionLevel.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LogCollectionLevelExtensions public static LogCollectionLevel ToLogCollectionLevel(this string value) { - if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return LogCollectionLevel.Error; - if (string.Equals(value, "Verbose", StringComparison.InvariantCultureIgnoreCase)) return LogCollectionLevel.Verbose; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Error")) return LogCollectionLevel.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Verbose")) return LogCollectionLevel.Verbose; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LogCollectionLevel value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/OverallValidationStatus.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/OverallValidationStatus.Serialization.cs index 2a72ceee826bc..ecc74452c2a0b 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/OverallValidationStatus.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/OverallValidationStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class OverallValidationStatusExtensions public static OverallValidationStatus ToOverallValidationStatus(this string value) { - if (string.Equals(value, "AllValidToProceed", StringComparison.InvariantCultureIgnoreCase)) return OverallValidationStatus.AllValidToProceed; - if (string.Equals(value, "InputsRevisitRequired", StringComparison.InvariantCultureIgnoreCase)) return OverallValidationStatus.InputsRevisitRequired; - if (string.Equals(value, "CertainInputValidationsSkipped", StringComparison.InvariantCultureIgnoreCase)) return OverallValidationStatus.CertainInputValidationsSkipped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AllValidToProceed")) return OverallValidationStatus.AllValidToProceed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InputsRevisitRequired")) return OverallValidationStatus.InputsRevisitRequired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertainInputValidationsSkipped")) return OverallValidationStatus.CertainInputValidationsSkipped; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown OverallValidationStatus value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ShareDestinationFormatType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ShareDestinationFormatType.Serialization.cs index bf58970bb4025..b4d7724f074f8 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ShareDestinationFormatType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ShareDestinationFormatType.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class ShareDestinationFormatTypeExtensions public static ShareDestinationFormatType ToShareDestinationFormatType(this string value) { - if (string.Equals(value, "UnknownType", StringComparison.InvariantCultureIgnoreCase)) return ShareDestinationFormatType.UnknownType; - if (string.Equals(value, "HCS", StringComparison.InvariantCultureIgnoreCase)) return ShareDestinationFormatType.Hcs; - if (string.Equals(value, "BlockBlob", StringComparison.InvariantCultureIgnoreCase)) return ShareDestinationFormatType.BlockBlob; - if (string.Equals(value, "PageBlob", StringComparison.InvariantCultureIgnoreCase)) return ShareDestinationFormatType.PageBlob; - if (string.Equals(value, "AzureFile", StringComparison.InvariantCultureIgnoreCase)) return ShareDestinationFormatType.AzureFile; - if (string.Equals(value, "ManagedDisk", StringComparison.InvariantCultureIgnoreCase)) return ShareDestinationFormatType.ManagedDisk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UnknownType")) return ShareDestinationFormatType.UnknownType; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "HCS")) return ShareDestinationFormatType.Hcs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BlockBlob")) return ShareDestinationFormatType.BlockBlob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PageBlob")) return ShareDestinationFormatType.PageBlob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureFile")) return ShareDestinationFormatType.AzureFile; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ManagedDisk")) return ShareDestinationFormatType.ManagedDisk; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ShareDestinationFormatType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/SkuDisabledReason.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/SkuDisabledReason.Serialization.cs index be21823990e5e..6c9d2ffb92b41 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/SkuDisabledReason.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/SkuDisabledReason.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class SkuDisabledReasonExtensions public static SkuDisabledReason ToSkuDisabledReason(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return SkuDisabledReason.None; - if (string.Equals(value, "Country", StringComparison.InvariantCultureIgnoreCase)) return SkuDisabledReason.Country; - if (string.Equals(value, "Region", StringComparison.InvariantCultureIgnoreCase)) return SkuDisabledReason.Region; - if (string.Equals(value, "Feature", StringComparison.InvariantCultureIgnoreCase)) return SkuDisabledReason.Feature; - if (string.Equals(value, "OfferType", StringComparison.InvariantCultureIgnoreCase)) return SkuDisabledReason.OfferType; - if (string.Equals(value, "NoSubscriptionInfo", StringComparison.InvariantCultureIgnoreCase)) return SkuDisabledReason.NoSubscriptionInfo; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return SkuDisabledReason.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Country")) return SkuDisabledReason.Country; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Region")) return SkuDisabledReason.Region; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Feature")) return SkuDisabledReason.Feature; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OfferType")) return SkuDisabledReason.OfferType; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoSubscriptionInfo")) return SkuDisabledReason.NoSubscriptionInfo; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SkuDisabledReason value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransferConfigurationType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransferConfigurationType.Serialization.cs index d741458e6b1bb..52cf23a6f83f3 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransferConfigurationType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransferConfigurationType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class TransferConfigurationTypeExtensions public static TransferConfigurationType ToTransferConfigurationType(this string value) { - if (string.Equals(value, "TransferAll", StringComparison.InvariantCultureIgnoreCase)) return TransferConfigurationType.TransferAll; - if (string.Equals(value, "TransferUsingFilter", StringComparison.InvariantCultureIgnoreCase)) return TransferConfigurationType.TransferUsingFilter; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TransferAll")) return TransferConfigurationType.TransferAll; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TransferUsingFilter")) return TransferConfigurationType.TransferUsingFilter; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TransferConfigurationType value."); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportShipmentType.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportShipmentType.Serialization.cs index 0737b2c70bc1f..beb9d1e15f277 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportShipmentType.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportShipmentType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class TransportShipmentTypeExtensions public static TransportShipmentType ToTransportShipmentType(this string value) { - if (string.Equals(value, "CustomerManaged", StringComparison.InvariantCultureIgnoreCase)) return TransportShipmentType.CustomerManaged; - if (string.Equals(value, "MicrosoftManaged", StringComparison.InvariantCultureIgnoreCase)) return TransportShipmentType.MicrosoftManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomerManaged")) return TransportShipmentType.CustomerManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MicrosoftManaged")) return TransportShipmentType.MicrosoftManaged; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TransportShipmentType value."); } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.Serialization.cs index ce0c909a4e04f..f15efd445b78b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class DayOfWeekExtensions 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; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return DayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return DayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return DayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return DayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return DayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return DayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return DayOfWeek.Saturday; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DayOfWeek value."); } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryDayOfWeek.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryDayOfWeek.Serialization.cs index 95c79fbeda48c..fe8be123813ab 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryDayOfWeek.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryDayOfWeek.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class FactoryDayOfWeekExtensions public static FactoryDayOfWeek ToFactoryDayOfWeek(this string value) { - if (string.Equals(value, "Sunday", StringComparison.InvariantCultureIgnoreCase)) return FactoryDayOfWeek.Sunday; - if (string.Equals(value, "Monday", StringComparison.InvariantCultureIgnoreCase)) return FactoryDayOfWeek.Monday; - if (string.Equals(value, "Tuesday", StringComparison.InvariantCultureIgnoreCase)) return FactoryDayOfWeek.Tuesday; - if (string.Equals(value, "Wednesday", StringComparison.InvariantCultureIgnoreCase)) return FactoryDayOfWeek.Wednesday; - if (string.Equals(value, "Thursday", StringComparison.InvariantCultureIgnoreCase)) return FactoryDayOfWeek.Thursday; - if (string.Equals(value, "Friday", StringComparison.InvariantCultureIgnoreCase)) return FactoryDayOfWeek.Friday; - if (string.Equals(value, "Saturday", StringComparison.InvariantCultureIgnoreCase)) return FactoryDayOfWeek.Saturday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return FactoryDayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return FactoryDayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return FactoryDayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return FactoryDayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return FactoryDayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return FactoryDayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return FactoryDayOfWeek.Saturday; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FactoryDayOfWeek value."); } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountState.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountState.Serialization.cs index d3237ffe80e0b..3858203044eb3 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountState.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeAnalyticsAccountStateExtensions public static DataLakeAnalyticsAccountState ToDataLakeAnalyticsAccountState(this string value) { - if (string.Equals(value, "Active", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountState.Active; - if (string.Equals(value, "Suspended", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountState.Suspended; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Active")) return DataLakeAnalyticsAccountState.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Suspended")) return DataLakeAnalyticsAccountState.Suspended; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeAnalyticsAccountState value."); } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountStatus.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountStatus.Serialization.cs index d5063724b052d..6bdb73f8fdae3 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountStatus.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountStatus.Serialization.cs @@ -29,17 +29,17 @@ internal static partial class DataLakeAnalyticsAccountStatusExtensions public static DataLakeAnalyticsAccountStatus ToDataLakeAnalyticsAccountStatus(this string value) { - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Failed; - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Creating; - if (string.Equals(value, "Running", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Running; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Succeeded; - if (string.Equals(value, "Patching", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Patching; - if (string.Equals(value, "Suspending", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Suspending; - if (string.Equals(value, "Resuming", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Resuming; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Deleting; - if (string.Equals(value, "Deleted", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Deleted; - if (string.Equals(value, "Undeleting", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Undeleting; - if (string.Equals(value, "Canceled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsAccountStatus.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return DataLakeAnalyticsAccountStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return DataLakeAnalyticsAccountStatus.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Running")) return DataLakeAnalyticsAccountStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return DataLakeAnalyticsAccountStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Patching")) return DataLakeAnalyticsAccountStatus.Patching; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Suspending")) return DataLakeAnalyticsAccountStatus.Suspending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Resuming")) return DataLakeAnalyticsAccountStatus.Resuming; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return DataLakeAnalyticsAccountStatus.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleted")) return DataLakeAnalyticsAccountStatus.Deleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Undeleting")) return DataLakeAnalyticsAccountStatus.Undeleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return DataLakeAnalyticsAccountStatus.Canceled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeAnalyticsAccountStatus value."); } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsCommitmentTierType.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsCommitmentTierType.Serialization.cs index 9ad0426a796b5..0baac55008f65 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsCommitmentTierType.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsCommitmentTierType.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class DataLakeAnalyticsCommitmentTierTypeExtensions public static DataLakeAnalyticsCommitmentTierType ToDataLakeAnalyticsCommitmentTierType(this string value) { - if (string.Equals(value, "Consumption", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Consumption; - if (string.Equals(value, "Commitment_100AUHours", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Commitment100AUHours; - if (string.Equals(value, "Commitment_500AUHours", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Commitment500AUHours; - if (string.Equals(value, "Commitment_1000AUHours", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Commitment1000AUHours; - if (string.Equals(value, "Commitment_5000AUHours", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Commitment5000AUHours; - if (string.Equals(value, "Commitment_10000AUHours", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Commitment10000AUHours; - if (string.Equals(value, "Commitment_50000AUHours", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Commitment50000AUHours; - if (string.Equals(value, "Commitment_100000AUHours", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Commitment100000AUHours; - if (string.Equals(value, "Commitment_500000AUHours", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsCommitmentTierType.Commitment500000AUHours; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Consumption")) return DataLakeAnalyticsCommitmentTierType.Consumption; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_100AUHours")) return DataLakeAnalyticsCommitmentTierType.Commitment100AUHours; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_500AUHours")) return DataLakeAnalyticsCommitmentTierType.Commitment500AUHours; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_1000AUHours")) return DataLakeAnalyticsCommitmentTierType.Commitment1000AUHours; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_5000AUHours")) return DataLakeAnalyticsCommitmentTierType.Commitment5000AUHours; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_10000AUHours")) return DataLakeAnalyticsCommitmentTierType.Commitment10000AUHours; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_50000AUHours")) return DataLakeAnalyticsCommitmentTierType.Commitment50000AUHours; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_100000AUHours")) return DataLakeAnalyticsCommitmentTierType.Commitment100000AUHours; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_500000AUHours")) return DataLakeAnalyticsCommitmentTierType.Commitment500000AUHours; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeAnalyticsCommitmentTierType value."); } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.Serialization.cs index e8ca4d36d5200..9bea69087bf56 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeAnalyticsFirewallAllowAzureIPsStateExtensi public static DataLakeAnalyticsFirewallAllowAzureIPsState ToDataLakeAnalyticsFirewallAllowAzureIPsState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsFirewallAllowAzureIPsState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsFirewallAllowAzureIPsState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataLakeAnalyticsFirewallAllowAzureIPsState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataLakeAnalyticsFirewallAllowAzureIPsState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeAnalyticsFirewallAllowAzureIPsState value."); } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallState.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallState.Serialization.cs index 9664d3825a6aa..f3d29cb0c0307 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallState.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeAnalyticsFirewallStateExtensions public static DataLakeAnalyticsFirewallState ToDataLakeAnalyticsFirewallState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsFirewallState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsFirewallState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataLakeAnalyticsFirewallState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataLakeAnalyticsFirewallState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeAnalyticsFirewallState value."); } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsVirtualNetworkRuleState.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsVirtualNetworkRuleState.Serialization.cs index 746f341b3307e..dabb4c7d596c2 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsVirtualNetworkRuleState.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsVirtualNetworkRuleState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DataLakeAnalyticsVirtualNetworkRuleStateExtensions public static DataLakeAnalyticsVirtualNetworkRuleState ToDataLakeAnalyticsVirtualNetworkRuleState(this string value) { - if (string.Equals(value, "Active", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsVirtualNetworkRuleState.Active; - if (string.Equals(value, "NetworkSourceDeleted", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsVirtualNetworkRuleState.NetworkSourceDeleted; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return DataLakeAnalyticsVirtualNetworkRuleState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Active")) return DataLakeAnalyticsVirtualNetworkRuleState.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NetworkSourceDeleted")) return DataLakeAnalyticsVirtualNetworkRuleState.NetworkSourceDeleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return DataLakeAnalyticsVirtualNetworkRuleState.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeAnalyticsVirtualNetworkRuleState value."); } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DebugDataAccessLevel.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DebugDataAccessLevel.Serialization.cs index d1c072c2a4cea..80d4e44f08177 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DebugDataAccessLevel.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DebugDataAccessLevel.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DebugDataAccessLevelExtensions public static DebugDataAccessLevel ToDebugDataAccessLevel(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return DebugDataAccessLevel.None; - if (string.Equals(value, "All", StringComparison.InvariantCultureIgnoreCase)) return DebugDataAccessLevel.All; - if (string.Equals(value, "Customer", StringComparison.InvariantCultureIgnoreCase)) return DebugDataAccessLevel.Customer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return DebugDataAccessLevel.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "All")) return DebugDataAccessLevel.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Customer")) return DebugDataAccessLevel.Customer; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DebugDataAccessLevel value."); } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/NestedResourceProvisioningState.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/NestedResourceProvisioningState.Serialization.cs index 5c68b90c41159..21ff4af4b7f7b 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/NestedResourceProvisioningState.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/NestedResourceProvisioningState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class NestedResourceProvisioningStateExtensions public static NestedResourceProvisioningState ToNestedResourceProvisioningState(this string value) { - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return NestedResourceProvisioningState.Succeeded; - if (string.Equals(value, "Canceled", StringComparison.InvariantCultureIgnoreCase)) return NestedResourceProvisioningState.Canceled; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return NestedResourceProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return NestedResourceProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return NestedResourceProvisioningState.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return NestedResourceProvisioningState.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NestedResourceProvisioningState value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountEncryptionConfigType.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountEncryptionConfigType.Serialization.cs index eb3d90cdf6cf6..0373c0724d5f2 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountEncryptionConfigType.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountEncryptionConfigType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeStoreAccountEncryptionConfigTypeExtensions public static DataLakeStoreAccountEncryptionConfigType ToDataLakeStoreAccountEncryptionConfigType(this string value) { - if (string.Equals(value, "UserManaged", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountEncryptionConfigType.UserManaged; - if (string.Equals(value, "ServiceManaged", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountEncryptionConfigType.ServiceManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserManaged")) return DataLakeStoreAccountEncryptionConfigType.UserManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ServiceManaged")) return DataLakeStoreAccountEncryptionConfigType.ServiceManaged; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreAccountEncryptionConfigType value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountState.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountState.Serialization.cs index 0619015910244..32b913c216274 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountState.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeStoreAccountStateExtensions public static DataLakeStoreAccountState ToDataLakeStoreAccountState(this string value) { - if (string.Equals(value, "Active", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountState.Active; - if (string.Equals(value, "Suspended", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountState.Suspended; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Active")) return DataLakeStoreAccountState.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Suspended")) return DataLakeStoreAccountState.Suspended; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreAccountState value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountStatus.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountStatus.Serialization.cs index eb57e46b5d9f1..afb66cf18c7fb 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountStatus.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountStatus.Serialization.cs @@ -29,17 +29,17 @@ internal static partial class DataLakeStoreAccountStatusExtensions public static DataLakeStoreAccountStatus ToDataLakeStoreAccountStatus(this string value) { - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Failed; - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Creating; - if (string.Equals(value, "Running", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Running; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Succeeded; - if (string.Equals(value, "Patching", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Patching; - if (string.Equals(value, "Suspending", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Suspending; - if (string.Equals(value, "Resuming", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Resuming; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Deleting; - if (string.Equals(value, "Deleted", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Deleted; - if (string.Equals(value, "Undeleting", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Undeleting; - if (string.Equals(value, "Canceled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreAccountStatus.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return DataLakeStoreAccountStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return DataLakeStoreAccountStatus.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Running")) return DataLakeStoreAccountStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return DataLakeStoreAccountStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Patching")) return DataLakeStoreAccountStatus.Patching; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Suspending")) return DataLakeStoreAccountStatus.Suspending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Resuming")) return DataLakeStoreAccountStatus.Resuming; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return DataLakeStoreAccountStatus.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleted")) return DataLakeStoreAccountStatus.Deleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Undeleting")) return DataLakeStoreAccountStatus.Undeleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return DataLakeStoreAccountStatus.Canceled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreAccountStatus value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreCommitmentTierType.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreCommitmentTierType.Serialization.cs index 25ccffb18c8b6..1e1c7274fb6be 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreCommitmentTierType.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreCommitmentTierType.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class DataLakeStoreCommitmentTierTypeExtensions public static DataLakeStoreCommitmentTierType ToDataLakeStoreCommitmentTierType(this string value) { - if (string.Equals(value, "Consumption", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreCommitmentTierType.Consumption; - if (string.Equals(value, "Commitment_1TB", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreCommitmentTierType.Commitment1TB; - if (string.Equals(value, "Commitment_10TB", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreCommitmentTierType.Commitment10TB; - if (string.Equals(value, "Commitment_100TB", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreCommitmentTierType.Commitment100TB; - if (string.Equals(value, "Commitment_500TB", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreCommitmentTierType.Commitment500TB; - if (string.Equals(value, "Commitment_1PB", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreCommitmentTierType.Commitment1PB; - if (string.Equals(value, "Commitment_5PB", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreCommitmentTierType.Commitment5PB; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Consumption")) return DataLakeStoreCommitmentTierType.Consumption; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_1TB")) return DataLakeStoreCommitmentTierType.Commitment1TB; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_10TB")) return DataLakeStoreCommitmentTierType.Commitment10TB; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_100TB")) return DataLakeStoreCommitmentTierType.Commitment100TB; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_500TB")) return DataLakeStoreCommitmentTierType.Commitment500TB; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_1PB")) return DataLakeStoreCommitmentTierType.Commitment1PB; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Commitment_5PB")) return DataLakeStoreCommitmentTierType.Commitment5PB; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreCommitmentTierType value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreEncryptionProvisioningState.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreEncryptionProvisioningState.Serialization.cs index 789d1e641cba8..45dc5ea1dcd91 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreEncryptionProvisioningState.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreEncryptionProvisioningState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeStoreEncryptionProvisioningStateExtensions public static DataLakeStoreEncryptionProvisioningState ToDataLakeStoreEncryptionProvisioningState(this string value) { - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreEncryptionProvisioningState.Creating; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreEncryptionProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return DataLakeStoreEncryptionProvisioningState.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return DataLakeStoreEncryptionProvisioningState.Succeeded; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreEncryptionProvisioningState value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreEncryptionState.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreEncryptionState.Serialization.cs index 273825a32fdf1..745294bb65e34 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreEncryptionState.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreEncryptionState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeStoreEncryptionStateExtensions public static DataLakeStoreEncryptionState ToDataLakeStoreEncryptionState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreEncryptionState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreEncryptionState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataLakeStoreEncryptionState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataLakeStoreEncryptionState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreEncryptionState value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.Serialization.cs index a05d709dc7779..4af8c189417bb 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeStoreFirewallAllowAzureIPsStateExtensions public static DataLakeStoreFirewallAllowAzureIPsState ToDataLakeStoreFirewallAllowAzureIPsState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreFirewallAllowAzureIPsState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreFirewallAllowAzureIPsState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataLakeStoreFirewallAllowAzureIPsState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataLakeStoreFirewallAllowAzureIPsState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreFirewallAllowAzureIPsState value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallState.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallState.Serialization.cs index de613bdda162d..04343614c9141 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallState.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeStoreFirewallStateExtensions public static DataLakeStoreFirewallState ToDataLakeStoreFirewallState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreFirewallState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreFirewallState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataLakeStoreFirewallState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataLakeStoreFirewallState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreFirewallState value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderState.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderState.Serialization.cs index 8eb45523225b4..df79cabf53638 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderState.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataLakeStoreTrustedIdProviderStateExtensions public static DataLakeStoreTrustedIdProviderState ToDataLakeStoreTrustedIdProviderState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreTrustedIdProviderState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreTrustedIdProviderState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataLakeStoreTrustedIdProviderState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataLakeStoreTrustedIdProviderState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreTrustedIdProviderState value."); } } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreUsageUnit.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreUsageUnit.Serialization.cs index 293f84a79e4b5..a4d8faf1b4235 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreUsageUnit.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreUsageUnit.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class DataLakeStoreUsageUnitExtensions public static DataLakeStoreUsageUnit ToDataLakeStoreUsageUnit(this string value) { - if (string.Equals(value, "Count", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreUsageUnit.Count; - if (string.Equals(value, "Bytes", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreUsageUnit.Bytes; - if (string.Equals(value, "Seconds", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreUsageUnit.Seconds; - if (string.Equals(value, "Percent", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreUsageUnit.Percent; - if (string.Equals(value, "CountsPerSecond", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreUsageUnit.CountsPerSecond; - if (string.Equals(value, "BytesPerSecond", StringComparison.InvariantCultureIgnoreCase)) return DataLakeStoreUsageUnit.BytesPerSecond; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Count")) return DataLakeStoreUsageUnit.Count; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Bytes")) return DataLakeStoreUsageUnit.Bytes; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Seconds")) return DataLakeStoreUsageUnit.Seconds; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Percent")) return DataLakeStoreUsageUnit.Percent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CountsPerSecond")) return DataLakeStoreUsageUnit.CountsPerSecond; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BytesPerSecond")) return DataLakeStoreUsageUnit.BytesPerSecond; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreUsageUnit value."); } } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServerLevelPermissionsGroup.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServerLevelPermissionsGroup.Serialization.cs index 60e47b728da11..340b53f5af5e0 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServerLevelPermissionsGroup.Serialization.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServerLevelPermissionsGroup.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class ServerLevelPermissionsGroupExtensions public static ServerLevelPermissionsGroup ToServerLevelPermissionsGroup(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return ServerLevelPermissionsGroup.Default; - if (string.Equals(value, "MigrationFromSqlServerToAzureDB", StringComparison.InvariantCultureIgnoreCase)) return ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureDB; - if (string.Equals(value, "MigrationFromSqlServerToAzureMI", StringComparison.InvariantCultureIgnoreCase)) return ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureMI; - if (string.Equals(value, "MigrationFromMySQLToAzureDBForMySQL", StringComparison.InvariantCultureIgnoreCase)) return ServerLevelPermissionsGroup.MigrationFromMySqlToAzureDBForMySql; - if (string.Equals(value, "MigrationFromSqlServerToAzureVM", StringComparison.InvariantCultureIgnoreCase)) return ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureVm; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return ServerLevelPermissionsGroup.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MigrationFromSqlServerToAzureDB")) return ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureDB; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MigrationFromSqlServerToAzureMI")) return ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureMI; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MigrationFromMySQLToAzureDBForMySQL")) return ServerLevelPermissionsGroup.MigrationFromMySqlToAzureDBForMySql; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MigrationFromSqlServerToAzureVM")) return ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureVm; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServerLevelPermissionsGroup value."); } } diff --git a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/DeploymentMode.Serialization.cs b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/DeploymentMode.Serialization.cs index c034805351b56..2ce51138834dd 100644 --- a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/DeploymentMode.Serialization.cs +++ b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/DeploymentMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DeploymentModeExtensions public static DeploymentMode ToDeploymentMode(this string value) { - if (string.Equals(value, "Incremental", StringComparison.InvariantCultureIgnoreCase)) return DeploymentMode.Incremental; - if (string.Equals(value, "Complete", StringComparison.InvariantCultureIgnoreCase)) return DeploymentMode.Complete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Incremental")) return DeploymentMode.Incremental; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Complete")) return DeploymentMode.Complete; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeploymentMode value."); } } diff --git a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestAuthLocation.Serialization.cs b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestAuthLocation.Serialization.cs index 97e263fbd95e6..318757066b092 100644 --- a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestAuthLocation.Serialization.cs +++ b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestAuthLocation.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RestAuthLocationExtensions public static RestAuthLocation ToRestAuthLocation(this string value) { - if (string.Equals(value, "Query", StringComparison.InvariantCultureIgnoreCase)) return RestAuthLocation.Query; - if (string.Equals(value, "Header", StringComparison.InvariantCultureIgnoreCase)) return RestAuthLocation.Header; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Query")) return RestAuthLocation.Query; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Header")) return RestAuthLocation.Header; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RestAuthLocation value."); } } diff --git a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestAuthType.Serialization.cs b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestAuthType.Serialization.cs index 8ed5b77482a9d..299ca082b94fd 100644 --- a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestAuthType.Serialization.cs +++ b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestAuthType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RestAuthTypeExtensions public static RestAuthType ToRestAuthType(this string value) { - if (string.Equals(value, "ApiKey", StringComparison.InvariantCultureIgnoreCase)) return RestAuthType.ApiKey; - if (string.Equals(value, "RolloutIdentity", StringComparison.InvariantCultureIgnoreCase)) return RestAuthType.RolloutIdentity; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ApiKey")) return RestAuthType.ApiKey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RolloutIdentity")) return RestAuthType.RolloutIdentity; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RestAuthType value."); } } diff --git a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestMatchQuantifier.Serialization.cs b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestMatchQuantifier.Serialization.cs index ba44a99f6c395..041fb1825cf15 100644 --- a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestMatchQuantifier.Serialization.cs +++ b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestMatchQuantifier.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RestMatchQuantifierExtensions public static RestMatchQuantifier ToRestMatchQuantifier(this string value) { - if (string.Equals(value, "All", StringComparison.InvariantCultureIgnoreCase)) return RestMatchQuantifier.All; - if (string.Equals(value, "Any", StringComparison.InvariantCultureIgnoreCase)) return RestMatchQuantifier.Any; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "All")) return RestMatchQuantifier.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Any")) return RestMatchQuantifier.Any; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RestMatchQuantifier value."); } } diff --git a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestRequestMethod.Serialization.cs b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestRequestMethod.Serialization.cs index 1a7decfe02955..02f7bf6563eff 100644 --- a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestRequestMethod.Serialization.cs +++ b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/RestRequestMethod.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RestRequestMethodExtensions public static RestRequestMethod ToRestRequestMethod(this string value) { - if (string.Equals(value, "GET", StringComparison.InvariantCultureIgnoreCase)) return RestRequestMethod.GET; - if (string.Equals(value, "POST", StringComparison.InvariantCultureIgnoreCase)) return RestRequestMethod.Post; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GET")) return RestRequestMethod.GET; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "POST")) return RestRequestMethod.Post; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RestRequestMethod value."); } } diff --git a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/StepType.Serialization.cs b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/StepType.Serialization.cs index 3feded8f7e4a0..55abfcf74f388 100644 --- a/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/StepType.Serialization.cs +++ b/sdk/deploymentmanager/Azure.ResourceManager.DeploymentManager/src/Generated/Models/StepType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StepTypeExtensions public static StepType ToStepType(this string value) { - if (string.Equals(value, "Wait", StringComparison.InvariantCultureIgnoreCase)) return StepType.Wait; - if (string.Equals(value, "HealthCheck", StringComparison.InvariantCultureIgnoreCase)) return StepType.HealthCheck; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wait")) return StepType.Wait; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "HealthCheck")) return StepType.HealthCheck; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StepType value."); } } diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationSkuTier.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationSkuTier.Serialization.cs index fc2c651159b31..5ec459d0ae178 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationSkuTier.Serialization.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationSkuTier.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class DesktopVirtualizationSkuTierExtensions public static DesktopVirtualizationSkuTier ToDesktopVirtualizationSkuTier(this string value) { - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return DesktopVirtualizationSkuTier.Free; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return DesktopVirtualizationSkuTier.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return DesktopVirtualizationSkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return DesktopVirtualizationSkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return DesktopVirtualizationSkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return DesktopVirtualizationSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return DesktopVirtualizationSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return DesktopVirtualizationSkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DesktopVirtualizationSkuTier value."); } } diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterSkuTier.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterSkuTier.Serialization.cs index 8255d77f684fe..05bf7894bd340 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterSkuTier.Serialization.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterSkuTier.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class DevCenterSkuTierExtensions public static DevCenterSkuTier ToDevCenterSkuTier(this string value) { - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return DevCenterSkuTier.Free; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return DevCenterSkuTier.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return DevCenterSkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return DevCenterSkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return DevCenterSkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return DevCenterSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return DevCenterSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return DevCenterSkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DevCenterSkuTier value."); } } diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesIPFilterActionType.Serialization.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesIPFilterActionType.Serialization.cs index 36c0882cbea1c..80dd00cdec26b 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesIPFilterActionType.Serialization.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesIPFilterActionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DeviceProvisioningServicesIPFilterActionTypeExtens public static DeviceProvisioningServicesIPFilterActionType ToDeviceProvisioningServicesIPFilterActionType(this string value) { - if (string.Equals(value, "Accept", StringComparison.InvariantCultureIgnoreCase)) return DeviceProvisioningServicesIPFilterActionType.Accept; - if (string.Equals(value, "Reject", StringComparison.InvariantCultureIgnoreCase)) return DeviceProvisioningServicesIPFilterActionType.Reject; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accept")) return DeviceProvisioningServicesIPFilterActionType.Accept; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reject")) return DeviceProvisioningServicesIPFilterActionType.Reject; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeviceProvisioningServicesIPFilterActionType value."); } } diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesIPFilterTargetType.Serialization.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesIPFilterTargetType.Serialization.cs index af62b7d333988..8188e210624f0 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesIPFilterTargetType.Serialization.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesIPFilterTargetType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DeviceProvisioningServicesIPFilterTargetTypeExtens public static DeviceProvisioningServicesIPFilterTargetType ToDeviceProvisioningServicesIPFilterTargetType(this string value) { - if (string.Equals(value, "all", StringComparison.InvariantCultureIgnoreCase)) return DeviceProvisioningServicesIPFilterTargetType.All; - if (string.Equals(value, "serviceApi", StringComparison.InvariantCultureIgnoreCase)) return DeviceProvisioningServicesIPFilterTargetType.ServiceApi; - if (string.Equals(value, "deviceApi", StringComparison.InvariantCultureIgnoreCase)) return DeviceProvisioningServicesIPFilterTargetType.DeviceApi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "all")) return DeviceProvisioningServicesIPFilterTargetType.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "serviceApi")) return DeviceProvisioningServicesIPFilterTargetType.ServiceApi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "deviceApi")) return DeviceProvisioningServicesIPFilterTargetType.DeviceApi; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeviceProvisioningServicesIPFilterTargetType value."); } } diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsRecordType.Serialization.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsRecordType.Serialization.cs index ec98c4446a9c4..255b1fc656a9e 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsRecordType.Serialization.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsRecordType.Serialization.cs @@ -28,16 +28,16 @@ internal static partial class DnsRecordTypeExtensions public static DnsRecordType ToDnsRecordType(this string value) { - if (string.Equals(value, "A", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.A; - if (string.Equals(value, "AAAA", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.Aaaa; - if (string.Equals(value, "CAA", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.CAA; - if (string.Equals(value, "CNAME", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.Cname; - if (string.Equals(value, "MX", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.MX; - if (string.Equals(value, "NS", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.NS; - if (string.Equals(value, "PTR", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.PTR; - if (string.Equals(value, "SOA", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.SOA; - if (string.Equals(value, "SRV", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.SRV; - if (string.Equals(value, "TXT", StringComparison.InvariantCultureIgnoreCase)) return DnsRecordType.TXT; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "A")) return DnsRecordType.A; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AAAA")) return DnsRecordType.Aaaa; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CAA")) return DnsRecordType.CAA; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CNAME")) return DnsRecordType.Cname; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MX")) return DnsRecordType.MX; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NS")) return DnsRecordType.NS; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PTR")) return DnsRecordType.PTR; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SOA")) return DnsRecordType.SOA; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SRV")) return DnsRecordType.SRV; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TXT")) return DnsRecordType.TXT; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DnsRecordType value."); } } diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsZoneType.Serialization.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsZoneType.Serialization.cs index 056fcc095000b..81a85b49010e3 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsZoneType.Serialization.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsZoneType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DnsZoneTypeExtensions public static DnsZoneType ToDnsZoneType(this string value) { - if (string.Equals(value, "Public", StringComparison.InvariantCultureIgnoreCase)) return DnsZoneType.Public; - if (string.Equals(value, "Private", StringComparison.InvariantCultureIgnoreCase)) return DnsZoneType.Private; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Public")) return DnsZoneType.Public; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Private")) return DnsZoneType.Private; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DnsZoneType value."); } } diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVirtualNetworkRuleState.Serialization.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVirtualNetworkRuleState.Serialization.cs index 352f3e333bdba..ba588f2c42bbe 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVirtualNetworkRuleState.Serialization.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVirtualNetworkRuleState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class ElasticSanVirtualNetworkRuleStateExtensions public static ElasticSanVirtualNetworkRuleState ToElasticSanVirtualNetworkRuleState(this string value) { - if (string.Equals(value, "provisioning", StringComparison.InvariantCultureIgnoreCase)) return ElasticSanVirtualNetworkRuleState.Provisioning; - if (string.Equals(value, "deprovisioning", StringComparison.InvariantCultureIgnoreCase)) return ElasticSanVirtualNetworkRuleState.Deprovisioning; - if (string.Equals(value, "succeeded", StringComparison.InvariantCultureIgnoreCase)) return ElasticSanVirtualNetworkRuleState.Succeeded; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return ElasticSanVirtualNetworkRuleState.Failed; - if (string.Equals(value, "networkSourceDeleted", StringComparison.InvariantCultureIgnoreCase)) return ElasticSanVirtualNetworkRuleState.NetworkSourceDeleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "provisioning")) return ElasticSanVirtualNetworkRuleState.Provisioning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "deprovisioning")) return ElasticSanVirtualNetworkRuleState.Deprovisioning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "succeeded")) return ElasticSanVirtualNetworkRuleState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return ElasticSanVirtualNetworkRuleState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "networkSourceDeleted")) return ElasticSanVirtualNetworkRuleState.NetworkSourceDeleted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ElasticSanVirtualNetworkRuleState value."); } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobRetry.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobRetry.Serialization.cs index 52b757ff6de98..c83fa4c53b14a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobRetry.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobRetry.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class MediaJobRetryExtensions public static MediaJobRetry ToMediaJobRetry(this string value) { - if (string.Equals(value, "DoNotRetry", StringComparison.InvariantCultureIgnoreCase)) return MediaJobRetry.DoNotRetry; - if (string.Equals(value, "MayRetry", StringComparison.InvariantCultureIgnoreCase)) return MediaJobRetry.MayRetry; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DoNotRetry")) return MediaJobRetry.DoNotRetry; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MayRetry")) return MediaJobRetry.MayRetry; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MediaJobRetry value."); } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobState.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobState.Serialization.cs index 2d7f86987a4fc..a5ff210df2ece 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobState.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobState.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class MediaJobStateExtensions public static MediaJobState ToMediaJobState(this string value) { - if (string.Equals(value, "Canceled", StringComparison.InvariantCultureIgnoreCase)) return MediaJobState.Canceled; - if (string.Equals(value, "Canceling", StringComparison.InvariantCultureIgnoreCase)) return MediaJobState.Canceling; - if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return MediaJobState.Error; - if (string.Equals(value, "Finished", StringComparison.InvariantCultureIgnoreCase)) return MediaJobState.Finished; - if (string.Equals(value, "Processing", StringComparison.InvariantCultureIgnoreCase)) return MediaJobState.Processing; - if (string.Equals(value, "Queued", StringComparison.InvariantCultureIgnoreCase)) return MediaJobState.Queued; - if (string.Equals(value, "Scheduled", StringComparison.InvariantCultureIgnoreCase)) return MediaJobState.Scheduled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return MediaJobState.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceling")) return MediaJobState.Canceling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Error")) return MediaJobState.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Finished")) return MediaJobState.Finished; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Processing")) return MediaJobState.Processing; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Queued")) return MediaJobState.Queued; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Scheduled")) return MediaJobState.Scheduled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MediaJobState value."); } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EncodingCaptureDescription.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EncodingCaptureDescription.Serialization.cs index 3d5c4d2e8b0ce..8e9112ff9a5b3 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EncodingCaptureDescription.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EncodingCaptureDescription.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class EncodingCaptureDescriptionExtensions public static EncodingCaptureDescription ToEncodingCaptureDescription(this string value) { - if (string.Equals(value, "Avro", StringComparison.InvariantCultureIgnoreCase)) return EncodingCaptureDescription.Avro; - if (string.Equals(value, "AvroDeflate", StringComparison.InvariantCultureIgnoreCase)) return EncodingCaptureDescription.AvroDeflate; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Avro")) return EncodingCaptureDescription.Avro; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AvroDeflate")) return EncodingCaptureDescription.AvroDeflate; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EncodingCaptureDescription value."); } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubEntityStatus.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubEntityStatus.Serialization.cs index 34ccd109a4332..97c764a63f1df 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubEntityStatus.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubEntityStatus.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class EventHubEntityStatusExtensions public static EventHubEntityStatus ToEventHubEntityStatus(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.Unknown; - if (string.Equals(value, "Active", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.Active; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.Disabled; - if (string.Equals(value, "Restoring", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.Restoring; - if (string.Equals(value, "SendDisabled", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.SendDisabled; - if (string.Equals(value, "ReceiveDisabled", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.ReceiveDisabled; - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.Creating; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.Deleting; - if (string.Equals(value, "Renaming", StringComparison.InvariantCultureIgnoreCase)) return EventHubEntityStatus.Renaming; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return EventHubEntityStatus.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Active")) return EventHubEntityStatus.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return EventHubEntityStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Restoring")) return EventHubEntityStatus.Restoring; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SendDisabled")) return EventHubEntityStatus.SendDisabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReceiveDisabled")) return EventHubEntityStatus.ReceiveDisabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return EventHubEntityStatus.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return EventHubEntityStatus.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Renaming")) return EventHubEntityStatus.Renaming; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EventHubEntityStatus value."); } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryProvisioningState.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryProvisioningState.Serialization.cs index cd0da859b4181..3ad3e0af8bdc1 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryProvisioningState.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryProvisioningState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class EventHubsDisasterRecoveryProvisioningStateExtensio public static EventHubsDisasterRecoveryProvisioningState ToEventHubsDisasterRecoveryProvisioningState(this string value) { - if (string.Equals(value, "Accepted", StringComparison.InvariantCultureIgnoreCase)) return EventHubsDisasterRecoveryProvisioningState.Accepted; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return EventHubsDisasterRecoveryProvisioningState.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return EventHubsDisasterRecoveryProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accepted")) return EventHubsDisasterRecoveryProvisioningState.Accepted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return EventHubsDisasterRecoveryProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return EventHubsDisasterRecoveryProvisioningState.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EventHubsDisasterRecoveryProvisioningState value."); } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryRole.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryRole.Serialization.cs index 798d6d261eb32..002c541d50c82 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryRole.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryRole.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class EventHubsDisasterRecoveryRoleExtensions public static EventHubsDisasterRecoveryRole ToEventHubsDisasterRecoveryRole(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return EventHubsDisasterRecoveryRole.Primary; - if (string.Equals(value, "PrimaryNotReplicating", StringComparison.InvariantCultureIgnoreCase)) return EventHubsDisasterRecoveryRole.PrimaryNotReplicating; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return EventHubsDisasterRecoveryRole.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return EventHubsDisasterRecoveryRole.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PrimaryNotReplicating")) return EventHubsDisasterRecoveryRole.PrimaryNotReplicating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return EventHubsDisasterRecoveryRole.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EventHubsDisasterRecoveryRole value."); } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNameUnavailableReason.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNameUnavailableReason.Serialization.cs index 86a85304a34bc..5436f375738f8 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNameUnavailableReason.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNameUnavailableReason.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class EventHubsNameUnavailableReasonExtensions public static EventHubsNameUnavailableReason ToEventHubsNameUnavailableReason(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return EventHubsNameUnavailableReason.None; - if (string.Equals(value, "InvalidName", StringComparison.InvariantCultureIgnoreCase)) return EventHubsNameUnavailableReason.InvalidName; - if (string.Equals(value, "SubscriptionIsDisabled", StringComparison.InvariantCultureIgnoreCase)) return EventHubsNameUnavailableReason.SubscriptionIsDisabled; - if (string.Equals(value, "NameInUse", StringComparison.InvariantCultureIgnoreCase)) return EventHubsNameUnavailableReason.NameInUse; - if (string.Equals(value, "NameInLockdown", StringComparison.InvariantCultureIgnoreCase)) return EventHubsNameUnavailableReason.NameInLockdown; - if (string.Equals(value, "TooManyNamespaceInCurrentSubscription", StringComparison.InvariantCultureIgnoreCase)) return EventHubsNameUnavailableReason.TooManyNamespaceInCurrentSubscription; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return EventHubsNameUnavailableReason.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InvalidName")) return EventHubsNameUnavailableReason.InvalidName; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SubscriptionIsDisabled")) return EventHubsNameUnavailableReason.SubscriptionIsDisabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NameInUse")) return EventHubsNameUnavailableReason.NameInUse; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NameInLockdown")) return EventHubsNameUnavailableReason.NameInLockdown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TooManyNamespaceInCurrentSubscription")) return EventHubsNameUnavailableReason.TooManyNamespaceInCurrentSubscription; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EventHubsNameUnavailableReason value."); } } diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/CmkIdentityType.Serialization.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/CmkIdentityType.Serialization.cs index bb70feb47a52e..6100d6a394555 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/CmkIdentityType.Serialization.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/CmkIdentityType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class CmkIdentityTypeExtensions public static CmkIdentityType ToCmkIdentityType(this string value) { - if (string.Equals(value, "SystemAssigned", StringComparison.InvariantCultureIgnoreCase)) return CmkIdentityType.SystemAssigned; - if (string.Equals(value, "UserAssigned", StringComparison.InvariantCultureIgnoreCase)) return CmkIdentityType.UserAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SystemAssigned")) return CmkIdentityType.SystemAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserAssigned")) return CmkIdentityType.UserAssigned; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CmkIdentityType value."); } } diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayKeyName.Serialization.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayKeyName.Serialization.cs index f01746439ca50..e1a335aee35a8 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayKeyName.Serialization.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayKeyName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FluidRelayKeyNameExtensions public static FluidRelayKeyName ToFluidRelayKeyName(this string value) { - if (string.Equals(value, "key1", StringComparison.InvariantCultureIgnoreCase)) return FluidRelayKeyName.PrimaryKey; - if (string.Equals(value, "key2", StringComparison.InvariantCultureIgnoreCase)) return FluidRelayKeyName.SecondaryKey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "key1")) return FluidRelayKeyName.PrimaryKey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "key2")) return FluidRelayKeyName.SecondaryKey; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FluidRelayKeyName value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResultOperationStatus.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResultOperationStatus.Serialization.cs index cbbc94f93063c..7f7063b3226a6 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResultOperationStatus.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResultOperationStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class AnalyzeResultOperationStatusExtensions public static AnalyzeResultOperationStatus ToAnalyzeResultOperationStatus(this string value) { - if (string.Equals(value, "notStarted", StringComparison.InvariantCultureIgnoreCase)) return AnalyzeResultOperationStatus.NotStarted; - if (string.Equals(value, "running", StringComparison.InvariantCultureIgnoreCase)) return AnalyzeResultOperationStatus.Running; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return AnalyzeResultOperationStatus.Failed; - if (string.Equals(value, "succeeded", StringComparison.InvariantCultureIgnoreCase)) return AnalyzeResultOperationStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "notStarted")) return AnalyzeResultOperationStatus.NotStarted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "running")) return AnalyzeResultOperationStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return AnalyzeResultOperationStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "succeeded")) return AnalyzeResultOperationStatus.Succeeded; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AnalyzeResultOperationStatus value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ContentType1.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ContentType1.Serialization.cs index 5405c779967a3..8942d21e0b50b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ContentType1.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ContentType1.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class ContentType1Extensions public static ContentType1 ToContentType1(this string value) { - if (string.Equals(value, "application/octet-stream", StringComparison.InvariantCultureIgnoreCase)) return ContentType1.ApplicationOctetStream; - if (string.Equals(value, "application/pdf", StringComparison.InvariantCultureIgnoreCase)) return ContentType1.ApplicationPdf; - if (string.Equals(value, "image/bmp", StringComparison.InvariantCultureIgnoreCase)) return ContentType1.ImageBmp; - if (string.Equals(value, "image/heif", StringComparison.InvariantCultureIgnoreCase)) return ContentType1.ImageHeif; - if (string.Equals(value, "image/jpeg", StringComparison.InvariantCultureIgnoreCase)) return ContentType1.ImageJpeg; - if (string.Equals(value, "image/png", StringComparison.InvariantCultureIgnoreCase)) return ContentType1.ImagePng; - if (string.Equals(value, "image/tiff", StringComparison.InvariantCultureIgnoreCase)) return ContentType1.ImageTiff; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "application/octet-stream")) return ContentType1.ApplicationOctetStream; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "application/pdf")) return ContentType1.ApplicationPdf; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/bmp")) return ContentType1.ImageBmp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/heif")) return ContentType1.ImageHeif; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/jpeg")) return ContentType1.ImageJpeg; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/png")) return ContentType1.ImagePng; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/tiff")) return ContentType1.ImageTiff; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContentType1 value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelStatus.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelStatus.Serialization.cs index f98c7b033e5ca..c1ecbd18c07a5 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelStatus.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class CustomFormModelStatusExtensions public static CustomFormModelStatus ToCustomFormModelStatus(this string value) { - if (string.Equals(value, "creating", StringComparison.InvariantCultureIgnoreCase)) return CustomFormModelStatus.Creating; - if (string.Equals(value, "ready", StringComparison.InvariantCultureIgnoreCase)) return CustomFormModelStatus.Ready; - if (string.Equals(value, "invalid", StringComparison.InvariantCultureIgnoreCase)) return CustomFormModelStatus.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "creating")) return CustomFormModelStatus.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ready")) return CustomFormModelStatus.Ready; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "invalid")) return CustomFormModelStatus.Invalid; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CustomFormModelStatus value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFieldType.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFieldType.Serialization.cs index ca0e1f37bbf04..38c72be088f02 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFieldType.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFieldType.Serialization.cs @@ -31,19 +31,19 @@ internal static partial class DocumentFieldTypeExtensions public static DocumentFieldType ToDocumentFieldType(this string value) { - if (string.Equals(value, "string", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.String; - if (string.Equals(value, "date", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.Date; - if (string.Equals(value, "time", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.Time; - if (string.Equals(value, "phoneNumber", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.PhoneNumber; - if (string.Equals(value, "number", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.Double; - if (string.Equals(value, "integer", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.Int64; - if (string.Equals(value, "selectionMark", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.SelectionMark; - if (string.Equals(value, "countryRegion", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.CountryRegion; - if (string.Equals(value, "signature", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.Signature; - if (string.Equals(value, "array", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.List; - if (string.Equals(value, "object", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.Dictionary; - if (string.Equals(value, "currency", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.Currency; - if (string.Equals(value, "address", StringComparison.InvariantCultureIgnoreCase)) return DocumentFieldType.Address; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "string")) return DocumentFieldType.String; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "date")) return DocumentFieldType.Date; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "time")) return DocumentFieldType.Time; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "phoneNumber")) return DocumentFieldType.PhoneNumber; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "number")) return DocumentFieldType.Double; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "integer")) return DocumentFieldType.Int64; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "selectionMark")) return DocumentFieldType.SelectionMark; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "countryRegion")) return DocumentFieldType.CountryRegion; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "signature")) return DocumentFieldType.Signature; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "array")) return DocumentFieldType.List; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "object")) return DocumentFieldType.Dictionary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "currency")) return DocumentFieldType.Currency; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "address")) return DocumentFieldType.Address; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DocumentFieldType value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentOperationStatus.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentOperationStatus.Serialization.cs index 4d2e556530222..9a11bdfeabf75 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentOperationStatus.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentOperationStatus.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class DocumentOperationStatusExtensions public static DocumentOperationStatus ToDocumentOperationStatus(this string value) { - if (string.Equals(value, "notStarted", StringComparison.InvariantCultureIgnoreCase)) return DocumentOperationStatus.NotStarted; - if (string.Equals(value, "running", StringComparison.InvariantCultureIgnoreCase)) return DocumentOperationStatus.Running; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return DocumentOperationStatus.Failed; - if (string.Equals(value, "succeeded", StringComparison.InvariantCultureIgnoreCase)) return DocumentOperationStatus.Succeeded; - if (string.Equals(value, "canceled", StringComparison.InvariantCultureIgnoreCase)) return DocumentOperationStatus.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "notStarted")) return DocumentOperationStatus.NotStarted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "running")) return DocumentOperationStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return DocumentOperationStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "succeeded")) return DocumentOperationStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "canceled")) return DocumentOperationStatus.Canceled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DocumentOperationStatus value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValueType.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValueType.Serialization.cs index c566f5b1409e1..fda2737501ef1 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValueType.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValueType.Serialization.cs @@ -28,16 +28,16 @@ internal static partial class FieldValueTypeExtensions public static FieldValueType ToFieldValueType(this string value) { - if (string.Equals(value, "string", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.String; - if (string.Equals(value, "date", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.Date; - if (string.Equals(value, "time", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.Time; - if (string.Equals(value, "phoneNumber", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.PhoneNumber; - if (string.Equals(value, "number", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.Float; - if (string.Equals(value, "integer", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.Int64; - if (string.Equals(value, "array", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.List; - if (string.Equals(value, "object", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.Dictionary; - if (string.Equals(value, "selectionMark", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.SelectionMark; - if (string.Equals(value, "countryRegion", StringComparison.InvariantCultureIgnoreCase)) return FieldValueType.CountryRegion; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "string")) return FieldValueType.String; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "date")) return FieldValueType.Date; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "time")) return FieldValueType.Time; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "phoneNumber")) return FieldValueType.PhoneNumber; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "number")) return FieldValueType.Float; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "integer")) return FieldValueType.Int64; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "array")) return FieldValueType.List; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "object")) return FieldValueType.Dictionary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "selectionMark")) return FieldValueType.SelectionMark; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "countryRegion")) return FieldValueType.CountryRegion; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FieldValueType value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormContentType.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormContentType.Serialization.cs index 94b7c558e02ef..5643464b42a08 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormContentType.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormContentType.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class FormContentTypeExtensions public static FormContentType ToFormContentType(this string value) { - if (string.Equals(value, "application/pdf", StringComparison.InvariantCultureIgnoreCase)) return FormContentType.Pdf; - if (string.Equals(value, "image/bmp", StringComparison.InvariantCultureIgnoreCase)) return FormContentType.Bmp; - if (string.Equals(value, "image/jpeg", StringComparison.InvariantCultureIgnoreCase)) return FormContentType.Jpeg; - if (string.Equals(value, "image/png", StringComparison.InvariantCultureIgnoreCase)) return FormContentType.Png; - if (string.Equals(value, "image/tiff", StringComparison.InvariantCultureIgnoreCase)) return FormContentType.Tiff; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "application/pdf")) return FormContentType.Pdf; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/bmp")) return FormContentType.Bmp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/jpeg")) return FormContentType.Jpeg; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/png")) return FormContentType.Png; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "image/tiff")) return FormContentType.Tiff; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FormContentType value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormReadingOrder.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormReadingOrder.Serialization.cs index 14d398dc87673..908776d01acad 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormReadingOrder.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormReadingOrder.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FormReadingOrderExtensions public static FormReadingOrder ToFormReadingOrder(this string value) { - if (string.Equals(value, "basic", StringComparison.InvariantCultureIgnoreCase)) return FormReadingOrder.Basic; - if (string.Equals(value, "natural", StringComparison.InvariantCultureIgnoreCase)) return FormReadingOrder.Natural; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "basic")) return FormReadingOrder.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "natural")) return FormReadingOrder.Natural; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FormReadingOrder value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/LengthUnit.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/LengthUnit.Serialization.cs index 6fa42656fe548..cec04c06e5282 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/LengthUnit.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/LengthUnit.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LengthUnitExtensions public static LengthUnit ToLengthUnit(this string value) { - if (string.Equals(value, "pixel", StringComparison.InvariantCultureIgnoreCase)) return LengthUnit.Pixel; - if (string.Equals(value, "inch", StringComparison.InvariantCultureIgnoreCase)) return LengthUnit.Inch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "pixel")) return LengthUnit.Pixel; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "inch")) return LengthUnit.Inch; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LengthUnit value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationStatus.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationStatus.Serialization.cs index 9fda16017a040..b71885683f002 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationStatus.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class OperationStatusExtensions public static OperationStatus ToOperationStatus(this string value) { - if (string.Equals(value, "notStarted", StringComparison.InvariantCultureIgnoreCase)) return OperationStatus.NotStarted; - if (string.Equals(value, "running", StringComparison.InvariantCultureIgnoreCase)) return OperationStatus.Running; - if (string.Equals(value, "succeeded", StringComparison.InvariantCultureIgnoreCase)) return OperationStatus.Succeeded; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return OperationStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "notStarted")) return OperationStatus.NotStarted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "running")) return OperationStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "succeeded")) return OperationStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return OperationStatus.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown OperationStatus value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMarkState.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMarkState.Serialization.cs index 1a0d496c76ebe..c496706faec6b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMarkState.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMarkState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SelectionMarkStateExtensions public static SelectionMarkState ToSelectionMarkState(this string value) { - if (string.Equals(value, "selected", StringComparison.InvariantCultureIgnoreCase)) return SelectionMarkState.Selected; - if (string.Equals(value, "unselected", StringComparison.InvariantCultureIgnoreCase)) return SelectionMarkState.Unselected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "selected")) return SelectionMarkState.Selected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "unselected")) return SelectionMarkState.Unselected; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SelectionMarkState value."); } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingStatus.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingStatus.Serialization.cs index af9b1a90c9f84..184157ed2f799 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingStatus.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class TrainingStatusExtensions public static TrainingStatus ToTrainingStatus(this string value) { - if (string.Equals(value, "succeeded", StringComparison.InvariantCultureIgnoreCase)) return TrainingStatus.Succeeded; - if (string.Equals(value, "partiallySucceeded", StringComparison.InvariantCultureIgnoreCase)) return TrainingStatus.PartiallySucceeded; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return TrainingStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "succeeded")) return TrainingStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "partiallySucceeded")) return TrainingStatus.PartiallySucceeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return TrainingStatus.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TrainingStatus value."); } } diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorResourceType.Serialization.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorResourceType.Serialization.cs index 8e72a91033e4c..7f33b273893ff 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorResourceType.Serialization.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorResourceType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FrontDoorResourceTypeExtensions public static FrontDoorResourceType ToFrontDoorResourceType(this string value) { - if (string.Equals(value, "Microsoft.Network/frontDoors", StringComparison.InvariantCultureIgnoreCase)) return FrontDoorResourceType.MicrosoftNetworkFrontDoors; - if (string.Equals(value, "Microsoft.Network/frontDoors/frontendEndpoints", StringComparison.InvariantCultureIgnoreCase)) return FrontDoorResourceType.MicrosoftNetworkFrontDoorsFrontendEndpoints; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Network/frontDoors")) return FrontDoorResourceType.MicrosoftNetworkFrontDoors; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Network/frontDoors/frontendEndpoints")) return FrontDoorResourceType.MicrosoftNetworkFrontDoorsFrontendEndpoints; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FrontDoorResourceType value."); } } diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/HealthBotSkuName.Serialization.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/HealthBotSkuName.Serialization.cs index 2ffd8979e151f..4d4bc3e849359 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/HealthBotSkuName.Serialization.cs +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/HealthBotSkuName.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class HealthBotSkuNameExtensions public static HealthBotSkuName ToHealthBotSkuName(this string value) { - if (string.Equals(value, "F0", StringComparison.InvariantCultureIgnoreCase)) return HealthBotSkuName.F0; - if (string.Equals(value, "S1", StringComparison.InvariantCultureIgnoreCase)) return HealthBotSkuName.S1; - if (string.Equals(value, "C0", StringComparison.InvariantCultureIgnoreCase)) return HealthBotSkuName.C0; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "F0")) return HealthBotSkuName.F0; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "S1")) return HealthBotSkuName.S1; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "C0")) return HealthBotSkuName.C0; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HealthBotSkuName value."); } } diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisKind.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisKind.Serialization.cs index 99832da26d2b4..2569b4ae8c9ee 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisKind.Serialization.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisKind.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class HealthcareApisKindExtensions public static HealthcareApisKind ToHealthcareApisKind(this string value) { - if (string.Equals(value, "fhir", StringComparison.InvariantCultureIgnoreCase)) return HealthcareApisKind.Fhir; - if (string.Equals(value, "fhir-Stu3", StringComparison.InvariantCultureIgnoreCase)) return HealthcareApisKind.FhirStu3; - if (string.Equals(value, "fhir-R4", StringComparison.InvariantCultureIgnoreCase)) return HealthcareApisKind.FhirR4; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "fhir")) return HealthcareApisKind.Fhir; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "fhir-Stu3")) return HealthcareApisKind.FhirStu3; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "fhir-R4")) return HealthcareApisKind.FhirR4; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HealthcareApisKind value."); } } diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisNameUnavailableReason.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisNameUnavailableReason.Serialization.cs index 5a713b6648d5f..8916fd0e8aee2 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisNameUnavailableReason.Serialization.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisNameUnavailableReason.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class HealthcareApisNameUnavailableReasonExtensions public static HealthcareApisNameUnavailableReason ToHealthcareApisNameUnavailableReason(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return HealthcareApisNameUnavailableReason.Invalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return HealthcareApisNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return HealthcareApisNameUnavailableReason.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return HealthcareApisNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HealthcareApisNameUnavailableReason value."); } } diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataJobRunLocation.Serialization.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataJobRunLocation.Serialization.cs index 774b801dc4093..1f63b752fb351 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataJobRunLocation.Serialization.cs +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataJobRunLocation.Serialization.cs @@ -45,33 +45,33 @@ internal static partial class HybridDataJobRunLocationExtensions public static HybridDataJobRunLocation ToHybridDataJobRunLocation(this string value) { - if (string.Equals(value, "none", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.None; - if (string.Equals(value, "australiaeast", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.AustraliaEast; - if (string.Equals(value, "australiasoutheast", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.AustraliaSoutheast; - if (string.Equals(value, "brazilsouth", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.BrazilSouth; - if (string.Equals(value, "canadacentral", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.CanadaCentral; - if (string.Equals(value, "canadaeast", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.CanadaEast; - if (string.Equals(value, "centralindia", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.CentralIndia; - if (string.Equals(value, "centralus", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.CentralUS; - if (string.Equals(value, "eastasia", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.EastAsia; - if (string.Equals(value, "eastus", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.EastUS; - if (string.Equals(value, "eastus2", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.EastUS2; - if (string.Equals(value, "japaneast", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.JapanEast; - if (string.Equals(value, "japanwest", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.JapanWest; - if (string.Equals(value, "koreacentral", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.KoreaCentral; - if (string.Equals(value, "koreasouth", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.KoreaSouth; - if (string.Equals(value, "southeastasia", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.SoutheastAsia; - if (string.Equals(value, "southcentralus", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.SouthCentralUS; - if (string.Equals(value, "southindia", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.SouthIndia; - if (string.Equals(value, "northcentralus", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.NorthCentralUS; - if (string.Equals(value, "northeurope", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.NorthEurope; - if (string.Equals(value, "uksouth", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.UKSouth; - if (string.Equals(value, "ukwest", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.UKWest; - if (string.Equals(value, "westcentralus", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.WestCentralUS; - if (string.Equals(value, "westeurope", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.WestEurope; - if (string.Equals(value, "westindia", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.WestIndia; - if (string.Equals(value, "westus", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.WestUS; - if (string.Equals(value, "westus2", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobRunLocation.WestUS2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "none")) return HybridDataJobRunLocation.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "australiaeast")) return HybridDataJobRunLocation.AustraliaEast; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "australiasoutheast")) return HybridDataJobRunLocation.AustraliaSoutheast; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "brazilsouth")) return HybridDataJobRunLocation.BrazilSouth; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "canadacentral")) return HybridDataJobRunLocation.CanadaCentral; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "canadaeast")) return HybridDataJobRunLocation.CanadaEast; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "centralindia")) return HybridDataJobRunLocation.CentralIndia; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "centralus")) return HybridDataJobRunLocation.CentralUS; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "eastasia")) return HybridDataJobRunLocation.EastAsia; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "eastus")) return HybridDataJobRunLocation.EastUS; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "eastus2")) return HybridDataJobRunLocation.EastUS2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "japaneast")) return HybridDataJobRunLocation.JapanEast; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "japanwest")) return HybridDataJobRunLocation.JapanWest; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "koreacentral")) return HybridDataJobRunLocation.KoreaCentral; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "koreasouth")) return HybridDataJobRunLocation.KoreaSouth; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "southeastasia")) return HybridDataJobRunLocation.SoutheastAsia; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "southcentralus")) return HybridDataJobRunLocation.SouthCentralUS; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "southindia")) return HybridDataJobRunLocation.SouthIndia; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "northcentralus")) return HybridDataJobRunLocation.NorthCentralUS; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "northeurope")) return HybridDataJobRunLocation.NorthEurope; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "uksouth")) return HybridDataJobRunLocation.UKSouth; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ukwest")) return HybridDataJobRunLocation.UKWest; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "westcentralus")) return HybridDataJobRunLocation.WestCentralUS; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "westeurope")) return HybridDataJobRunLocation.WestEurope; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "westindia")) return HybridDataJobRunLocation.WestIndia; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "westus")) return HybridDataJobRunLocation.WestUS; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "westus2")) return HybridDataJobRunLocation.WestUS2; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HybridDataJobRunLocation value."); } } diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataJobStatus.Serialization.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataJobStatus.Serialization.cs index 2d4d412224a95..e80e3020a02e9 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataJobStatus.Serialization.cs +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataJobStatus.Serialization.cs @@ -26,14 +26,14 @@ internal static partial class HybridDataJobStatusExtensions public static HybridDataJobStatus ToHybridDataJobStatus(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobStatus.None; - if (string.Equals(value, "InProgress", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobStatus.InProgress; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobStatus.Succeeded; - if (string.Equals(value, "WaitingForAction", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobStatus.WaitingForAction; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobStatus.Failed; - if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobStatus.Cancelled; - if (string.Equals(value, "Cancelling", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobStatus.Cancelling; - if (string.Equals(value, "PartiallySucceeded", StringComparison.InvariantCultureIgnoreCase)) return HybridDataJobStatus.PartiallySucceeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return HybridDataJobStatus.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InProgress")) return HybridDataJobStatus.InProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return HybridDataJobStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WaitingForAction")) return HybridDataJobStatus.WaitingForAction; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return HybridDataJobStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return HybridDataJobStatus.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelling")) return HybridDataJobStatus.Cancelling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PartiallySucceeded")) return HybridDataJobStatus.PartiallySucceeded; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HybridDataJobStatus value."); } } diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataState.Serialization.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataState.Serialization.cs index 812f237505200..0b84e0bce5e9f 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataState.Serialization.cs +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/HybridDataState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class HybridDataStateExtensions public static HybridDataState ToHybridDataState(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return HybridDataState.Disabled; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return HybridDataState.Enabled; - if (string.Equals(value, "Supported", StringComparison.InvariantCultureIgnoreCase)) return HybridDataState.Supported; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return HybridDataState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return HybridDataState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Supported")) return HybridDataState.Supported; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HybridDataState value."); } } diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/JobCancellationSetting.Serialization.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/JobCancellationSetting.Serialization.cs index 14a32b52e8fcf..f12c87b2625dd 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/JobCancellationSetting.Serialization.cs +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/JobCancellationSetting.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class JobCancellationSettingExtensions public static JobCancellationSetting ToJobCancellationSetting(this string value) { - if (string.Equals(value, "NotCancellable", StringComparison.InvariantCultureIgnoreCase)) return JobCancellationSetting.NotCancellable; - if (string.Equals(value, "Cancellable", StringComparison.InvariantCultureIgnoreCase)) return JobCancellationSetting.Cancellable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotCancellable")) return JobCancellationSetting.NotCancellable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancellable")) return JobCancellationSetting.Cancellable; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown JobCancellationSetting value."); } } diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/SupportedEncryptionAlgorithm.Serialization.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/SupportedEncryptionAlgorithm.Serialization.cs index 3698a915fd02f..6eb3750cb1564 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/SupportedEncryptionAlgorithm.Serialization.cs +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/SupportedEncryptionAlgorithm.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class SupportedEncryptionAlgorithmExtensions public static SupportedEncryptionAlgorithm ToSupportedEncryptionAlgorithm(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return SupportedEncryptionAlgorithm.None; - if (string.Equals(value, "RSA1_5", StringComparison.InvariantCultureIgnoreCase)) return SupportedEncryptionAlgorithm.Rsa1_5; - if (string.Equals(value, "RSA_OAEP", StringComparison.InvariantCultureIgnoreCase)) return SupportedEncryptionAlgorithm.Rsa_Oaep; - if (string.Equals(value, "PlainText", StringComparison.InvariantCultureIgnoreCase)) return SupportedEncryptionAlgorithm.PlainText; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return SupportedEncryptionAlgorithm.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RSA1_5")) return SupportedEncryptionAlgorithm.Rsa1_5; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RSA_OAEP")) return SupportedEncryptionAlgorithm.Rsa_Oaep; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PlainText")) return SupportedEncryptionAlgorithm.PlainText; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SupportedEncryptionAlgorithm value."); } } diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/UserConfirmationSetting.Serialization.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/UserConfirmationSetting.Serialization.cs index c2c92519e00a5..d76a3048629b4 100644 --- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/UserConfirmationSetting.Serialization.cs +++ b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Models/UserConfirmationSetting.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class UserConfirmationSettingExtensions public static UserConfirmationSetting ToUserConfirmationSetting(this string value) { - if (string.Equals(value, "NotRequired", StringComparison.InvariantCultureIgnoreCase)) return UserConfirmationSetting.NotRequired; - if (string.Equals(value, "Required", StringComparison.InvariantCultureIgnoreCase)) return UserConfirmationSetting.Required; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotRequired")) return UserConfirmationSetting.NotRequired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Required")) return UserConfirmationSetting.Required; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UserConfirmationSetting value."); } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.Serialization.cs index 874413dc78426..dfd800f7f2536 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class IotHubIPFilterActionTypeExtensions public static IotHubIPFilterActionType ToIotHubIPFilterActionType(this string value) { - if (string.Equals(value, "Accept", StringComparison.InvariantCultureIgnoreCase)) return IotHubIPFilterActionType.Accept; - if (string.Equals(value, "Reject", StringComparison.InvariantCultureIgnoreCase)) return IotHubIPFilterActionType.Reject; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accept")) return IotHubIPFilterActionType.Accept; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reject")) return IotHubIPFilterActionType.Reject; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IotHubIPFilterActionType value."); } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubJobStatus.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubJobStatus.Serialization.cs index b706fbebc895e..14cef8d330e62 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubJobStatus.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubJobStatus.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class IotHubJobStatusExtensions public static IotHubJobStatus ToIotHubJobStatus(this string value) { - if (string.Equals(value, "unknown", StringComparison.InvariantCultureIgnoreCase)) return IotHubJobStatus.Unknown; - if (string.Equals(value, "enqueued", StringComparison.InvariantCultureIgnoreCase)) return IotHubJobStatus.Enqueued; - if (string.Equals(value, "running", StringComparison.InvariantCultureIgnoreCase)) return IotHubJobStatus.Running; - if (string.Equals(value, "completed", StringComparison.InvariantCultureIgnoreCase)) return IotHubJobStatus.Completed; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return IotHubJobStatus.Failed; - if (string.Equals(value, "cancelled", StringComparison.InvariantCultureIgnoreCase)) return IotHubJobStatus.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "unknown")) return IotHubJobStatus.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "enqueued")) return IotHubJobStatus.Enqueued; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "running")) return IotHubJobStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "completed")) return IotHubJobStatus.Completed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return IotHubJobStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "cancelled")) return IotHubJobStatus.Cancelled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IotHubJobStatus value."); } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNameUnavailableReason.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNameUnavailableReason.Serialization.cs index 5028a93a087e2..33b1b5bb934b4 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNameUnavailableReason.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNameUnavailableReason.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class IotHubNameUnavailableReasonExtensions public static IotHubNameUnavailableReason ToIotHubNameUnavailableReason(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return IotHubNameUnavailableReason.Invalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return IotHubNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return IotHubNameUnavailableReason.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return IotHubNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IotHubNameUnavailableReason value."); } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubScaleType.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubScaleType.Serialization.cs index 58160f5dcd8f8..5009b7d33f86a 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubScaleType.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubScaleType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class IotHubScaleTypeExtensions public static IotHubScaleType ToIotHubScaleType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return IotHubScaleType.None; - if (string.Equals(value, "Automatic", StringComparison.InvariantCultureIgnoreCase)) return IotHubScaleType.Automatic; - if (string.Equals(value, "Manual", StringComparison.InvariantCultureIgnoreCase)) return IotHubScaleType.Manual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return IotHubScaleType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Automatic")) return IotHubScaleType.Automatic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Manual")) return IotHubScaleType.Manual; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IotHubScaleType value."); } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSharedAccessRight.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSharedAccessRight.Serialization.cs index 6e8f1a205695e..191954fbbb063 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSharedAccessRight.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSharedAccessRight.Serialization.cs @@ -33,21 +33,21 @@ internal static partial class IotHubSharedAccessRightExtensions public static IotHubSharedAccessRight ToIotHubSharedAccessRight(this string value) { - if (string.Equals(value, "RegistryRead", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryRead; - if (string.Equals(value, "RegistryWrite", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryWrite; - if (string.Equals(value, "ServiceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.ServiceConnect; - if (string.Equals(value, "DeviceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.DeviceConnect; - if (string.Equals(value, "RegistryRead, RegistryWrite", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryReadRegistryWrite; - if (string.Equals(value, "RegistryRead, ServiceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryReadServiceConnect; - if (string.Equals(value, "RegistryRead, DeviceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryReadDeviceConnect; - if (string.Equals(value, "RegistryWrite, ServiceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryWriteServiceConnect; - if (string.Equals(value, "RegistryWrite, DeviceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryWriteDeviceConnect; - if (string.Equals(value, "ServiceConnect, DeviceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.ServiceConnectDeviceConnect; - if (string.Equals(value, "RegistryRead, RegistryWrite, ServiceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryReadRegistryWriteServiceConnect; - if (string.Equals(value, "RegistryRead, RegistryWrite, DeviceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryReadRegistryWriteDeviceConnect; - if (string.Equals(value, "RegistryRead, ServiceConnect, DeviceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryReadServiceConnectDeviceConnect; - if (string.Equals(value, "RegistryWrite, ServiceConnect, DeviceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryWriteServiceConnectDeviceConnect; - if (string.Equals(value, "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect", StringComparison.InvariantCultureIgnoreCase)) return IotHubSharedAccessRight.RegistryReadRegistryWriteServiceConnectDeviceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryRead")) return IotHubSharedAccessRight.RegistryRead; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryWrite")) return IotHubSharedAccessRight.RegistryWrite; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ServiceConnect")) return IotHubSharedAccessRight.ServiceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DeviceConnect")) return IotHubSharedAccessRight.DeviceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryRead, RegistryWrite")) return IotHubSharedAccessRight.RegistryReadRegistryWrite; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryRead, ServiceConnect")) return IotHubSharedAccessRight.RegistryReadServiceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryRead, DeviceConnect")) return IotHubSharedAccessRight.RegistryReadDeviceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryWrite, ServiceConnect")) return IotHubSharedAccessRight.RegistryWriteServiceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryWrite, DeviceConnect")) return IotHubSharedAccessRight.RegistryWriteDeviceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ServiceConnect, DeviceConnect")) return IotHubSharedAccessRight.ServiceConnectDeviceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryRead, RegistryWrite, ServiceConnect")) return IotHubSharedAccessRight.RegistryReadRegistryWriteServiceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryRead, RegistryWrite, DeviceConnect")) return IotHubSharedAccessRight.RegistryReadRegistryWriteDeviceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryRead, ServiceConnect, DeviceConnect")) return IotHubSharedAccessRight.RegistryReadServiceConnectDeviceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryWrite, ServiceConnect, DeviceConnect")) return IotHubSharedAccessRight.RegistryWriteServiceConnectDeviceConnect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect")) return IotHubSharedAccessRight.RegistryReadRegistryWriteServiceConnectDeviceConnect; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IotHubSharedAccessRight value."); } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSkuTier.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSkuTier.Serialization.cs index a04f0aa7907f8..dca9393827c5f 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSkuTier.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSkuTier.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class IotHubSkuTierExtensions public static IotHubSkuTier ToIotHubSkuTier(this string value) { - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return IotHubSkuTier.Free; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return IotHubSkuTier.Standard; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return IotHubSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return IotHubSkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return IotHubSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return IotHubSkuTier.Basic; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IotHubSkuTier value."); } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.Serialization.cs index 0a96114e238de..0c09c6f039528 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AccessPolicyUpdateKindExtensions public static AccessPolicyUpdateKind ToAccessPolicyUpdateKind(this string value) { - if (string.Equals(value, "add", StringComparison.InvariantCultureIgnoreCase)) return AccessPolicyUpdateKind.Add; - if (string.Equals(value, "replace", StringComparison.InvariantCultureIgnoreCase)) return AccessPolicyUpdateKind.Replace; - if (string.Equals(value, "remove", StringComparison.InvariantCultureIgnoreCase)) return AccessPolicyUpdateKind.Remove; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "add")) return AccessPolicyUpdateKind.Add; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "replace")) return AccessPolicyUpdateKind.Replace; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "remove")) return AccessPolicyUpdateKind.Remove; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AccessPolicyUpdateKind value."); } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultCreateMode.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultCreateMode.Serialization.cs index 6eac305b0f09f..65bce180566e1 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultCreateMode.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultCreateMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class KeyVaultCreateModeExtensions public static KeyVaultCreateMode ToKeyVaultCreateMode(this string value) { - if (string.Equals(value, "default", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultCreateMode.Default; - if (string.Equals(value, "recover", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultCreateMode.Recover; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "default")) return KeyVaultCreateMode.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "recover")) return KeyVaultCreateMode.Recover; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KeyVaultCreateMode value."); } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameUnavailableReason.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameUnavailableReason.Serialization.cs index e5b12a6afee7a..b16319c3638a9 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameUnavailableReason.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameUnavailableReason.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class KeyVaultNameUnavailableReasonExtensions public static KeyVaultNameUnavailableReason ToKeyVaultNameUnavailableReason(this string value) { - if (string.Equals(value, "AccountNameInvalid", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultNameUnavailableReason.AccountNameInvalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AccountNameInvalid")) return KeyVaultNameUnavailableReason.AccountNameInvalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return KeyVaultNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KeyVaultNameUnavailableReason value."); } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchMode.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchMode.Serialization.cs index 7e86aa8ea10a6..562f2beb7c5b2 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchMode.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class KeyVaultPatchModeExtensions public static KeyVaultPatchMode ToKeyVaultPatchMode(this string value) { - if (string.Equals(value, "default", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultPatchMode.Default; - if (string.Equals(value, "recover", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultPatchMode.Recover; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "default")) return KeyVaultPatchMode.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "recover")) return KeyVaultPatchMode.Recover; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KeyVaultPatchMode value."); } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSkuName.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSkuName.Serialization.cs index 653e30553175e..847fd402d5048 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSkuName.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSkuName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class KeyVaultSkuNameExtensions public static KeyVaultSkuName ToKeyVaultSkuName(this string value) { - if (string.Equals(value, "standard", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSkuName.Standard; - if (string.Equals(value, "premium", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSkuName.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "standard")) return KeyVaultSkuName.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "premium")) return KeyVaultSkuName.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KeyVaultSkuName value."); } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmCreateMode.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmCreateMode.Serialization.cs index 48e773e7f5f39..a951d228ef680 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmCreateMode.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmCreateMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ManagedHsmCreateModeExtensions public static ManagedHsmCreateMode ToManagedHsmCreateMode(this string value) { - if (string.Equals(value, "default", StringComparison.InvariantCultureIgnoreCase)) return ManagedHsmCreateMode.Default; - if (string.Equals(value, "recover", StringComparison.InvariantCultureIgnoreCase)) return ManagedHsmCreateMode.Recover; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "default")) return ManagedHsmCreateMode.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "recover")) return ManagedHsmCreateMode.Recover; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ManagedHsmCreateMode value."); } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmSkuName.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmSkuName.Serialization.cs index bf06a7469db80..110565af589ce 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmSkuName.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmSkuName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ManagedHsmSkuNameExtensions public static ManagedHsmSkuName ToManagedHsmSkuName(this string value) { - if (string.Equals(value, "Standard_B1", StringComparison.InvariantCultureIgnoreCase)) return ManagedHsmSkuName.StandardB1; - if (string.Equals(value, "Custom_B32", StringComparison.InvariantCultureIgnoreCase)) return ManagedHsmSkuName.CustomB32; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard_B1")) return ManagedHsmSkuName.StandardB1; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Custom_B32")) return ManagedHsmSkuName.CustomB32; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ManagedHsmSkuName value."); } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseResourceType.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseResourceType.Serialization.cs index 086d5961ec2ed..3f82429c70108 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseResourceType.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseResourceType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class KustoDatabaseResourceTypeExtensions public static KustoDatabaseResourceType ToKustoDatabaseResourceType(this string value) { - if (string.Equals(value, "Microsoft.Kusto/clusters/databases", StringComparison.InvariantCultureIgnoreCase)) return KustoDatabaseResourceType.MicrosoftKustoClustersDatabases; - if (string.Equals(value, "Microsoft.Kusto/clusters/attachedDatabaseConfigurations", StringComparison.InvariantCultureIgnoreCase)) return KustoDatabaseResourceType.MicrosoftKustoClustersAttachedDatabaseConfigurations; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Kusto/clusters/databases")) return KustoDatabaseResourceType.MicrosoftKustoClustersDatabases; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Kusto/clusters/attachedDatabaseConfigurations")) return KustoDatabaseResourceType.MicrosoftKustoClustersAttachedDatabaseConfigurations; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KustoDatabaseResourceType value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesDayOfWeek.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesDayOfWeek.Serialization.cs index ad307ae3de9a0..39d83c38acc5f 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesDayOfWeek.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesDayOfWeek.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class LabServicesDayOfWeekExtensions public static LabServicesDayOfWeek ToLabServicesDayOfWeek(this string value) { - if (string.Equals(value, "Sunday", StringComparison.InvariantCultureIgnoreCase)) return LabServicesDayOfWeek.Sunday; - if (string.Equals(value, "Monday", StringComparison.InvariantCultureIgnoreCase)) return LabServicesDayOfWeek.Monday; - if (string.Equals(value, "Tuesday", StringComparison.InvariantCultureIgnoreCase)) return LabServicesDayOfWeek.Tuesday; - if (string.Equals(value, "Wednesday", StringComparison.InvariantCultureIgnoreCase)) return LabServicesDayOfWeek.Wednesday; - if (string.Equals(value, "Thursday", StringComparison.InvariantCultureIgnoreCase)) return LabServicesDayOfWeek.Thursday; - if (string.Equals(value, "Friday", StringComparison.InvariantCultureIgnoreCase)) return LabServicesDayOfWeek.Friday; - if (string.Equals(value, "Saturday", StringComparison.InvariantCultureIgnoreCase)) return LabServicesDayOfWeek.Saturday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return LabServicesDayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return LabServicesDayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return LabServicesDayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return LabServicesDayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return LabServicesDayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return LabServicesDayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return LabServicesDayOfWeek.Saturday; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabServicesDayOfWeek value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesEnableState.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesEnableState.Serialization.cs index 35a43e96d5524..bc1bee773b4ca 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesEnableState.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesEnableState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LabServicesEnableStateExtensions public static LabServicesEnableState ToLabServicesEnableState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return LabServicesEnableState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return LabServicesEnableState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return LabServicesEnableState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return LabServicesEnableState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabServicesEnableState value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesProvisioningState.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesProvisioningState.Serialization.cs index 4554330253079..45fe48ba4a9ba 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesProvisioningState.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesProvisioningState.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class LabServicesProvisioningStateExtensions public static LabServicesProvisioningState ToLabServicesProvisioningState(this string value) { - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return LabServicesProvisioningState.Creating; - if (string.Equals(value, "Updating", StringComparison.InvariantCultureIgnoreCase)) return LabServicesProvisioningState.Updating; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return LabServicesProvisioningState.Deleting; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return LabServicesProvisioningState.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return LabServicesProvisioningState.Failed; - if (string.Equals(value, "Locked", StringComparison.InvariantCultureIgnoreCase)) return LabServicesProvisioningState.Locked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return LabServicesProvisioningState.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Updating")) return LabServicesProvisioningState.Updating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return LabServicesProvisioningState.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return LabServicesProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return LabServicesProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Locked")) return LabServicesProvisioningState.Locked; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabServicesProvisioningState value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesRecurrenceFrequency.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesRecurrenceFrequency.Serialization.cs index 55711f0f98dd4..3700af2817b45 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesRecurrenceFrequency.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesRecurrenceFrequency.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LabServicesRecurrenceFrequencyExtensions public static LabServicesRecurrenceFrequency ToLabServicesRecurrenceFrequency(this string value) { - if (string.Equals(value, "Daily", StringComparison.InvariantCultureIgnoreCase)) return LabServicesRecurrenceFrequency.Daily; - if (string.Equals(value, "Weekly", StringComparison.InvariantCultureIgnoreCase)) return LabServicesRecurrenceFrequency.Weekly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Daily")) return LabServicesRecurrenceFrequency.Daily; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Weekly")) return LabServicesRecurrenceFrequency.Weekly; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabServicesRecurrenceFrequency value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesSkuTier.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesSkuTier.Serialization.cs index cbaee17937b8a..22c9aa0877c81 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesSkuTier.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesSkuTier.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class LabServicesSkuTierExtensions public static LabServicesSkuTier ToLabServicesSkuTier(this string value) { - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return LabServicesSkuTier.Free; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return LabServicesSkuTier.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return LabServicesSkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return LabServicesSkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return LabServicesSkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return LabServicesSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return LabServicesSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return LabServicesSkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabServicesSkuTier value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabState.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabState.Serialization.cs index 49bff2c404931..f52a3ba6f076a 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabState.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class LabStateExtensions public static LabState ToLabState(this string value) { - if (string.Equals(value, "Draft", StringComparison.InvariantCultureIgnoreCase)) return LabState.Draft; - if (string.Equals(value, "Publishing", StringComparison.InvariantCultureIgnoreCase)) return LabState.Publishing; - if (string.Equals(value, "Scaling", StringComparison.InvariantCultureIgnoreCase)) return LabState.Scaling; - if (string.Equals(value, "Syncing", StringComparison.InvariantCultureIgnoreCase)) return LabState.Syncing; - if (string.Equals(value, "Published", StringComparison.InvariantCultureIgnoreCase)) return LabState.Published; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Draft")) return LabState.Draft; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Publishing")) return LabState.Publishing; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Scaling")) return LabState.Scaling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Syncing")) return LabState.Syncing; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Published")) return LabState.Published; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabState value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserInvitationState.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserInvitationState.Serialization.cs index 921803e6fdac8..4095efd93c900 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserInvitationState.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserInvitationState.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class LabUserInvitationStateExtensions public static LabUserInvitationState ToLabUserInvitationState(this string value) { - if (string.Equals(value, "NotSent", StringComparison.InvariantCultureIgnoreCase)) return LabUserInvitationState.NotSent; - if (string.Equals(value, "Sending", StringComparison.InvariantCultureIgnoreCase)) return LabUserInvitationState.Sending; - if (string.Equals(value, "Sent", StringComparison.InvariantCultureIgnoreCase)) return LabUserInvitationState.Sent; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return LabUserInvitationState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSent")) return LabUserInvitationState.NotSent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sending")) return LabUserInvitationState.Sending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sent")) return LabUserInvitationState.Sent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return LabUserInvitationState.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabUserInvitationState value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserRegistrationState.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserRegistrationState.Serialization.cs index 3b7f041a48f7e..1038c7a1c99ad 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserRegistrationState.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserRegistrationState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LabUserRegistrationStateExtensions public static LabUserRegistrationState ToLabUserRegistrationState(this string value) { - if (string.Equals(value, "Registered", StringComparison.InvariantCultureIgnoreCase)) return LabUserRegistrationState.Registered; - if (string.Equals(value, "NotRegistered", StringComparison.InvariantCultureIgnoreCase)) return LabUserRegistrationState.NotRegistered; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Registered")) return LabUserRegistrationState.Registered; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotRegistered")) return LabUserRegistrationState.NotRegistered; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabUserRegistrationState value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineConnectionType.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineConnectionType.Serialization.cs index ced0c3df2b7df..116c5d5ea90bd 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineConnectionType.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineConnectionType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class LabVirtualMachineConnectionTypeExtensions public static LabVirtualMachineConnectionType ToLabVirtualMachineConnectionType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineConnectionType.None; - if (string.Equals(value, "Public", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineConnectionType.Public; - if (string.Equals(value, "Private", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineConnectionType.Private; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return LabVirtualMachineConnectionType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Public")) return LabVirtualMachineConnectionType.Public; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Private")) return LabVirtualMachineConnectionType.Private; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabVirtualMachineConnectionType value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineCreateOption.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineCreateOption.Serialization.cs index 15062282c03e1..2d28a36f9da63 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineCreateOption.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineCreateOption.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LabVirtualMachineCreateOptionExtensions public static LabVirtualMachineCreateOption ToLabVirtualMachineCreateOption(this string value) { - if (string.Equals(value, "Image", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineCreateOption.Image; - if (string.Equals(value, "TemplateVM", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineCreateOption.TemplateVm; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Image")) return LabVirtualMachineCreateOption.Image; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TemplateVM")) return LabVirtualMachineCreateOption.TemplateVm; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabVirtualMachineCreateOption value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageOSState.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageOSState.Serialization.cs index d13fb953044a2..ac6fdb2142136 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageOSState.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageOSState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LabVirtualMachineImageOSStateExtensions public static LabVirtualMachineImageOSState ToLabVirtualMachineImageOSState(this string value) { - if (string.Equals(value, "Generalized", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineImageOSState.Generalized; - if (string.Equals(value, "Specialized", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineImageOSState.Specialized; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Generalized")) return LabVirtualMachineImageOSState.Generalized; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Specialized")) return LabVirtualMachineImageOSState.Specialized; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabVirtualMachineImageOSState value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageOSType.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageOSType.Serialization.cs index 6373cb3ad7c6d..7dd70bb33ab11 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageOSType.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageOSType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LabVirtualMachineImageOSTypeExtensions public static LabVirtualMachineImageOSType ToLabVirtualMachineImageOSType(this string value) { - if (string.Equals(value, "Windows", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineImageOSType.Windows; - if (string.Equals(value, "Linux", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineImageOSType.Linux; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Windows")) return LabVirtualMachineImageOSType.Windows; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Linux")) return LabVirtualMachineImageOSType.Linux; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabVirtualMachineImageOSType value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineShutdownOnIdleMode.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineShutdownOnIdleMode.Serialization.cs index fbefade50abf4..7a9c9c3fb1d7b 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineShutdownOnIdleMode.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineShutdownOnIdleMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class LabVirtualMachineShutdownOnIdleModeExtensions public static LabVirtualMachineShutdownOnIdleMode ToLabVirtualMachineShutdownOnIdleMode(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineShutdownOnIdleMode.None; - if (string.Equals(value, "UserAbsence", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineShutdownOnIdleMode.UserAbsence; - if (string.Equals(value, "LowUsage", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineShutdownOnIdleMode.LowUsage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return LabVirtualMachineShutdownOnIdleMode.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserAbsence")) return LabVirtualMachineShutdownOnIdleMode.UserAbsence; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LowUsage")) return LabVirtualMachineShutdownOnIdleMode.LowUsage; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabVirtualMachineShutdownOnIdleMode value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineState.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineState.Serialization.cs index 2c34aca433cf5..6b6d15d82dade 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineState.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineState.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class LabVirtualMachineStateExtensions public static LabVirtualMachineState ToLabVirtualMachineState(this string value) { - if (string.Equals(value, "Stopped", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineState.Stopped; - if (string.Equals(value, "Starting", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineState.Starting; - if (string.Equals(value, "Running", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineState.Running; - if (string.Equals(value, "Stopping", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineState.Stopping; - if (string.Equals(value, "ResettingPassword", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineState.ResettingPassword; - if (string.Equals(value, "Reimaging", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineState.Reimaging; - if (string.Equals(value, "Redeploying", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineState.Redeploying; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Stopped")) return LabVirtualMachineState.Stopped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Starting")) return LabVirtualMachineState.Starting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Running")) return LabVirtualMachineState.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Stopping")) return LabVirtualMachineState.Stopping; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ResettingPassword")) return LabVirtualMachineState.ResettingPassword; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reimaging")) return LabVirtualMachineState.Reimaging; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Redeploying")) return LabVirtualMachineState.Redeploying; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabVirtualMachineState value."); } } diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineType.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineType.Serialization.cs index 417b9a40960b0..05311fdecf397 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineType.Serialization.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LabVirtualMachineTypeExtensions public static LabVirtualMachineType ToLabVirtualMachineType(this string value) { - if (string.Equals(value, "User", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineType.User; - if (string.Equals(value, "Template", StringComparison.InvariantCultureIgnoreCase)) return LabVirtualMachineType.Template; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "User")) return LabVirtualMachineType.User; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Template")) return LabVirtualMachineType.Template; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LabVirtualMachineType value."); } } diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/EdifactDecimalIndicator.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/EdifactDecimalIndicator.Serialization.cs index da23d765d0c19..a458bd8ac0325 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/EdifactDecimalIndicator.Serialization.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/EdifactDecimalIndicator.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class EdifactDecimalIndicatorExtensions public static EdifactDecimalIndicator ToEdifactDecimalIndicator(this string value) { - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return EdifactDecimalIndicator.NotSpecified; - if (string.Equals(value, "Comma", StringComparison.InvariantCultureIgnoreCase)) return EdifactDecimalIndicator.Comma; - if (string.Equals(value, "Decimal", StringComparison.InvariantCultureIgnoreCase)) return EdifactDecimalIndicator.Decimal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSpecified")) return EdifactDecimalIndicator.NotSpecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Comma")) return EdifactDecimalIndicator.Comma; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Decimal")) return EdifactDecimalIndicator.Decimal; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EdifactDecimalIndicator value."); } } diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementType.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementType.Serialization.cs index 97a393ad0bcf9..5aebbad44b6a0 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementType.Serialization.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class IntegrationAccountAgreementTypeExtensions public static IntegrationAccountAgreementType ToIntegrationAccountAgreementType(this string value) { - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountAgreementType.NotSpecified; - if (string.Equals(value, "AS2", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountAgreementType.AS2; - if (string.Equals(value, "X12", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountAgreementType.X12; - if (string.Equals(value, "Edifact", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountAgreementType.Edifact; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSpecified")) return IntegrationAccountAgreementType.NotSpecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AS2")) return IntegrationAccountAgreementType.AS2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "X12")) return IntegrationAccountAgreementType.X12; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Edifact")) return IntegrationAccountAgreementType.Edifact; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IntegrationAccountAgreementType value."); } } diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountEventLevel.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountEventLevel.Serialization.cs index 7727809d4e1a8..a1a45fca2c7c4 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountEventLevel.Serialization.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountEventLevel.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class IntegrationAccountEventLevelExtensions public static IntegrationAccountEventLevel ToIntegrationAccountEventLevel(this string value) { - if (string.Equals(value, "LogAlways", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountEventLevel.LogAlways; - if (string.Equals(value, "Critical", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountEventLevel.Critical; - if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountEventLevel.Error; - if (string.Equals(value, "Warning", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountEventLevel.Warning; - if (string.Equals(value, "Informational", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountEventLevel.Informational; - if (string.Equals(value, "Verbose", StringComparison.InvariantCultureIgnoreCase)) return IntegrationAccountEventLevel.Verbose; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LogAlways")) return IntegrationAccountEventLevel.LogAlways; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Critical")) return IntegrationAccountEventLevel.Critical; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Error")) return IntegrationAccountEventLevel.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Warning")) return IntegrationAccountEventLevel.Warning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Informational")) return IntegrationAccountEventLevel.Informational; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Verbose")) return IntegrationAccountEventLevel.Verbose; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IntegrationAccountEventLevel value."); } } diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowDayOfWeek.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowDayOfWeek.Serialization.cs index 75dd9ebd83b25..1cc577b064906 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowDayOfWeek.Serialization.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowDayOfWeek.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class LogicWorkflowDayOfWeekExtensions public static LogicWorkflowDayOfWeek ToLogicWorkflowDayOfWeek(this string value) { - if (string.Equals(value, "Sunday", StringComparison.InvariantCultureIgnoreCase)) return LogicWorkflowDayOfWeek.Sunday; - if (string.Equals(value, "Monday", StringComparison.InvariantCultureIgnoreCase)) return LogicWorkflowDayOfWeek.Monday; - if (string.Equals(value, "Tuesday", StringComparison.InvariantCultureIgnoreCase)) return LogicWorkflowDayOfWeek.Tuesday; - if (string.Equals(value, "Wednesday", StringComparison.InvariantCultureIgnoreCase)) return LogicWorkflowDayOfWeek.Wednesday; - if (string.Equals(value, "Thursday", StringComparison.InvariantCultureIgnoreCase)) return LogicWorkflowDayOfWeek.Thursday; - if (string.Equals(value, "Friday", StringComparison.InvariantCultureIgnoreCase)) return LogicWorkflowDayOfWeek.Friday; - if (string.Equals(value, "Saturday", StringComparison.InvariantCultureIgnoreCase)) return LogicWorkflowDayOfWeek.Saturday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return LogicWorkflowDayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return LogicWorkflowDayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return LogicWorkflowDayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return LogicWorkflowDayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return LogicWorkflowDayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return LogicWorkflowDayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return LogicWorkflowDayOfWeek.Saturday; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LogicWorkflowDayOfWeek value."); } } diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/SegmentTerminatorSuffix.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/SegmentTerminatorSuffix.Serialization.cs index 4e7d696c2bfa0..35fea368a0460 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/SegmentTerminatorSuffix.Serialization.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/SegmentTerminatorSuffix.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SegmentTerminatorSuffixExtensions public static SegmentTerminatorSuffix ToSegmentTerminatorSuffix(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return SegmentTerminatorSuffix.None; - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return SegmentTerminatorSuffix.NotSpecified; - if (string.Equals(value, "CR", StringComparison.InvariantCultureIgnoreCase)) return SegmentTerminatorSuffix.CR; - if (string.Equals(value, "LF", StringComparison.InvariantCultureIgnoreCase)) return SegmentTerminatorSuffix.LF; - if (string.Equals(value, "CRLF", StringComparison.InvariantCultureIgnoreCase)) return SegmentTerminatorSuffix.Crlf; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return SegmentTerminatorSuffix.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSpecified")) return SegmentTerminatorSuffix.NotSpecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CR")) return SegmentTerminatorSuffix.CR; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LF")) return SegmentTerminatorSuffix.LF; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CRLF")) return SegmentTerminatorSuffix.Crlf; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SegmentTerminatorSuffix value."); } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSkuTier.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSkuTier.Serialization.cs index 4bc9151252753..adcf608ed4617 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSkuTier.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningSkuTier.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class MachineLearningSkuTierExtensions public static MachineLearningSkuTier ToMachineLearningSkuTier(this string value) { - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return MachineLearningSkuTier.Free; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return MachineLearningSkuTier.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return MachineLearningSkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return MachineLearningSkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return MachineLearningSkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return MachineLearningSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return MachineLearningSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return MachineLearningSkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MachineLearningSkuTier value."); } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObjectType.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObjectType.Serialization.cs index 097c8f0a99903..669ce6131baf5 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObjectType.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObjectType.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class GeoJsonObjectTypeExtensions public static GeoJsonObjectType ToGeoJsonObjectType(this string value) { - if (string.Equals(value, "Point", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonPoint; - if (string.Equals(value, "MultiPoint", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonMultiPoint; - if (string.Equals(value, "LineString", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonLineString; - if (string.Equals(value, "MultiLineString", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonMultiLineString; - if (string.Equals(value, "Polygon", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonPolygon; - if (string.Equals(value, "MultiPolygon", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonMultiPolygon; - if (string.Equals(value, "GeometryCollection", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonGeometryCollection; - if (string.Equals(value, "Feature", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonFeature; - if (string.Equals(value, "FeatureCollection", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonFeatureCollection; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Point")) return GeoJsonObjectType.GeoJsonPoint; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MultiPoint")) return GeoJsonObjectType.GeoJsonMultiPoint; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LineString")) return GeoJsonObjectType.GeoJsonLineString; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MultiLineString")) return GeoJsonObjectType.GeoJsonMultiLineString; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Polygon")) return GeoJsonObjectType.GeoJsonPolygon; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MultiPolygon")) return GeoJsonObjectType.GeoJsonMultiPolygon; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GeometryCollection")) return GeoJsonObjectType.GeoJsonGeometryCollection; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Feature")) return GeoJsonObjectType.GeoJsonFeature; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FeatureCollection")) return GeoJsonObjectType.GeoJsonFeatureCollection; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GeoJsonObjectType value."); } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonObjectType.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonObjectType.Serialization.cs index dec6a0c6663f2..9c9c6e3d64a0e 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonObjectType.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonObjectType.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class GeoJsonObjectTypeExtensions public static GeoJsonObjectType ToGeoJsonObjectType(this string value) { - if (string.Equals(value, "Point", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonPoint; - if (string.Equals(value, "MultiPoint", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonMultiPoint; - if (string.Equals(value, "LineString", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonLineString; - if (string.Equals(value, "MultiLineString", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonMultiLineString; - if (string.Equals(value, "Polygon", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonPolygon; - if (string.Equals(value, "MultiPolygon", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonMultiPolygon; - if (string.Equals(value, "GeometryCollection", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonGeometryCollection; - if (string.Equals(value, "Feature", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonFeature; - if (string.Equals(value, "FeatureCollection", StringComparison.InvariantCultureIgnoreCase)) return GeoJsonObjectType.GeoJsonFeatureCollection; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Point")) return GeoJsonObjectType.GeoJsonPoint; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MultiPoint")) return GeoJsonObjectType.GeoJsonMultiPoint; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LineString")) return GeoJsonObjectType.GeoJsonLineString; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MultiLineString")) return GeoJsonObjectType.GeoJsonMultiLineString; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Polygon")) return GeoJsonObjectType.GeoJsonPolygon; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MultiPolygon")) return GeoJsonObjectType.GeoJsonMultiPolygon; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GeometryCollection")) return GeoJsonObjectType.GeoJsonGeometryCollection; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Feature")) return GeoJsonObjectType.GeoJsonFeature; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FeatureCollection")) return GeoJsonObjectType.GeoJsonFeatureCollection; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GeoJsonObjectType value."); } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertQueryTimeMode.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertQueryTimeMode.Serialization.cs index 60a85acf4dfbc..969ede6eac07e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertQueryTimeMode.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertQueryTimeMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AlertQueryTimeModeExtensions public static AlertQueryTimeMode ToAlertQueryTimeMode(this string value) { - if (string.Equals(value, "AnomalyTime", StringComparison.InvariantCultureIgnoreCase)) return AlertQueryTimeMode.AnomalyDetectedOn; - if (string.Equals(value, "CreatedTime", StringComparison.InvariantCultureIgnoreCase)) return AlertQueryTimeMode.CreatedOn; - if (string.Equals(value, "ModifiedTime", StringComparison.InvariantCultureIgnoreCase)) return AlertQueryTimeMode.LastModified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AnomalyTime")) return AlertQueryTimeMode.AnomalyDetectedOn; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CreatedTime")) return AlertQueryTimeMode.CreatedOn; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ModifiedTime")) return AlertQueryTimeMode.LastModified; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AlertQueryTimeMode value."); } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackQueryTimeMode.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackQueryTimeMode.Serialization.cs index 34821c054c7d0..3efd169384d9d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackQueryTimeMode.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackQueryTimeMode.Serialization.cs @@ -14,8 +14,8 @@ internal static partial class FeedbackQueryTimeModeExtensions public static FeedbackQueryTimeMode ToFeedbackQueryTimeMode(this string value) { - if (string.Equals(value, "MetricTimestamp", StringComparison.InvariantCultureIgnoreCase)) return FeedbackQueryTimeMode.MetricTimestamp; - if (string.Equals(value, "FeedbackCreatedTime", StringComparison.InvariantCultureIgnoreCase)) return FeedbackQueryTimeMode.FeedbackCreatedOn; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MetricTimestamp")) return FeedbackQueryTimeMode.MetricTimestamp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FeedbackCreatedTime")) return FeedbackQueryTimeMode.FeedbackCreatedOn; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FeedbackQueryTimeMode value."); } } diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/MixedRealitySkuTier.Serialization.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/MixedRealitySkuTier.Serialization.cs index 63e558e5d0075..46644130a9c84 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/MixedRealitySkuTier.Serialization.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/MixedRealitySkuTier.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class MixedRealitySkuTierExtensions public static MixedRealitySkuTier ToMixedRealitySkuTier(this string value) { - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return MixedRealitySkuTier.Free; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return MixedRealitySkuTier.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return MixedRealitySkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return MixedRealitySkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return MixedRealitySkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return MixedRealitySkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return MixedRealitySkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return MixedRealitySkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MixedRealitySkuTier value."); } } diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/CoreNetworkType.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/CoreNetworkType.Serialization.cs index 305c2280ebb5f..fc57bcad926fe 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/CoreNetworkType.Serialization.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/CoreNetworkType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class CoreNetworkTypeExtensions public static CoreNetworkType ToCoreNetworkType(this string value) { - if (string.Equals(value, "5GC", StringComparison.InvariantCultureIgnoreCase)) return CoreNetworkType.FiveGC; - if (string.Equals(value, "EPC", StringComparison.InvariantCultureIgnoreCase)) return CoreNetworkType.EPC; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "5GC")) return CoreNetworkType.FiveGC; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "EPC")) return CoreNetworkType.EPC; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CoreNetworkType value."); } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricAggregationType.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricAggregationType.Serialization.cs index 9b13b0e6e063a..ba3183d81a009 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricAggregationType.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricAggregationType.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class MetricAggregationTypeExtensions public static MetricAggregationType ToMetricAggregationType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return MetricAggregationType.None; - if (string.Equals(value, "Average", StringComparison.InvariantCultureIgnoreCase)) return MetricAggregationType.Average; - if (string.Equals(value, "Count", StringComparison.InvariantCultureIgnoreCase)) return MetricAggregationType.Count; - if (string.Equals(value, "Minimum", StringComparison.InvariantCultureIgnoreCase)) return MetricAggregationType.Minimum; - if (string.Equals(value, "Maximum", StringComparison.InvariantCultureIgnoreCase)) return MetricAggregationType.Maximum; - if (string.Equals(value, "Total", StringComparison.InvariantCultureIgnoreCase)) return MetricAggregationType.Total; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return MetricAggregationType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Average")) return MetricAggregationType.Average; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Count")) return MetricAggregationType.Count; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Minimum")) return MetricAggregationType.Minimum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Maximum")) return MetricAggregationType.Maximum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Total")) return MetricAggregationType.Total; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MetricAggregationType value."); } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResultType.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResultType.Serialization.cs index da62ed092731d..52771231f5205 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResultType.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResultType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ResultTypeExtensions public static ResultType ToResultType(this string value) { - if (string.Equals(value, "Data", StringComparison.InvariantCultureIgnoreCase)) return ResultType.Data; - if (string.Equals(value, "Metadata", StringComparison.InvariantCultureIgnoreCase)) return ResultType.Metadata; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Data")) return ResultType.Data; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Metadata")) return ResultType.Metadata; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ResultType value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricStatisticType.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricStatisticType.Serialization.cs index c1dfeac955c08..4b5816ade7080 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricStatisticType.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricStatisticType.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class MetricStatisticTypeExtensions public static MetricStatisticType ToMetricStatisticType(this string value) { - if (string.Equals(value, "Average", StringComparison.InvariantCultureIgnoreCase)) return MetricStatisticType.Average; - if (string.Equals(value, "Min", StringComparison.InvariantCultureIgnoreCase)) return MetricStatisticType.Min; - if (string.Equals(value, "Max", StringComparison.InvariantCultureIgnoreCase)) return MetricStatisticType.Max; - if (string.Equals(value, "Sum", StringComparison.InvariantCultureIgnoreCase)) return MetricStatisticType.Sum; - if (string.Equals(value, "Count", StringComparison.InvariantCultureIgnoreCase)) return MetricStatisticType.Count; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Average")) return MetricStatisticType.Average; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Min")) return MetricStatisticType.Min; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Max")) return MetricStatisticType.Max; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sum")) return MetricStatisticType.Sum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Count")) return MetricStatisticType.Count; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MetricStatisticType value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTriggerComparisonOperation.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTriggerComparisonOperation.Serialization.cs index b2d86a35d49d1..dae89f799d062 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTriggerComparisonOperation.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTriggerComparisonOperation.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class MetricTriggerComparisonOperationExtensions public static MetricTriggerComparisonOperation ToMetricTriggerComparisonOperation(this string value) { - if (string.Equals(value, "Equals", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerComparisonOperation.EqualsValue; - if (string.Equals(value, "NotEquals", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerComparisonOperation.NotEquals; - if (string.Equals(value, "GreaterThan", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerComparisonOperation.GreaterThan; - if (string.Equals(value, "GreaterThanOrEqual", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerComparisonOperation.GreaterThanOrEqual; - if (string.Equals(value, "LessThan", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerComparisonOperation.LessThan; - if (string.Equals(value, "LessThanOrEqual", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerComparisonOperation.LessThanOrEqual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Equals")) return MetricTriggerComparisonOperation.EqualsValue; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotEquals")) return MetricTriggerComparisonOperation.NotEquals; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GreaterThan")) return MetricTriggerComparisonOperation.GreaterThan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GreaterThanOrEqual")) return MetricTriggerComparisonOperation.GreaterThanOrEqual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LessThan")) return MetricTriggerComparisonOperation.LessThan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LessThanOrEqual")) return MetricTriggerComparisonOperation.LessThanOrEqual; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MetricTriggerComparisonOperation value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTriggerTimeAggregationType.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTriggerTimeAggregationType.Serialization.cs index a0fafa77a3848..57202abbd10d8 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTriggerTimeAggregationType.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTriggerTimeAggregationType.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class MetricTriggerTimeAggregationTypeExtensions public static MetricTriggerTimeAggregationType ToMetricTriggerTimeAggregationType(this string value) { - if (string.Equals(value, "Average", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerTimeAggregationType.Average; - if (string.Equals(value, "Minimum", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerTimeAggregationType.Minimum; - if (string.Equals(value, "Maximum", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerTimeAggregationType.Maximum; - if (string.Equals(value, "Total", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerTimeAggregationType.Total; - if (string.Equals(value, "Count", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerTimeAggregationType.Count; - if (string.Equals(value, "Last", StringComparison.InvariantCultureIgnoreCase)) return MetricTriggerTimeAggregationType.Last; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Average")) return MetricTriggerTimeAggregationType.Average; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Minimum")) return MetricTriggerTimeAggregationType.Minimum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Maximum")) return MetricTriggerTimeAggregationType.Maximum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Total")) return MetricTriggerTimeAggregationType.Total; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Count")) return MetricTriggerTimeAggregationType.Count; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Last")) return MetricTriggerTimeAggregationType.Last; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MetricTriggerTimeAggregationType value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorConditionOperator.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorConditionOperator.Serialization.cs index 5c82053277b99..24ff807dfa5cc 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorConditionOperator.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorConditionOperator.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class MonitorConditionOperatorExtensions public static MonitorConditionOperator ToMonitorConditionOperator(this string value) { - if (string.Equals(value, "GreaterThan", StringComparison.InvariantCultureIgnoreCase)) return MonitorConditionOperator.GreaterThan; - if (string.Equals(value, "GreaterThanOrEqual", StringComparison.InvariantCultureIgnoreCase)) return MonitorConditionOperator.GreaterThanOrEqual; - if (string.Equals(value, "LessThan", StringComparison.InvariantCultureIgnoreCase)) return MonitorConditionOperator.LessThan; - if (string.Equals(value, "LessThanOrEqual", StringComparison.InvariantCultureIgnoreCase)) return MonitorConditionOperator.LessThanOrEqual; - if (string.Equals(value, "Equals", StringComparison.InvariantCultureIgnoreCase)) return MonitorConditionOperator.EqualsValue; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GreaterThan")) return MonitorConditionOperator.GreaterThan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GreaterThanOrEqual")) return MonitorConditionOperator.GreaterThanOrEqual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LessThan")) return MonitorConditionOperator.LessThan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LessThanOrEqual")) return MonitorConditionOperator.LessThanOrEqual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Equals")) return MonitorConditionOperator.EqualsValue; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MonitorConditionOperator value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorEventLevel.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorEventLevel.Serialization.cs index 26042804c3ebf..818be0cd4d9b9 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorEventLevel.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorEventLevel.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class MonitorEventLevelExtensions public static MonitorEventLevel ToMonitorEventLevel(this string value) { - if (string.Equals(value, "Critical", StringComparison.InvariantCultureIgnoreCase)) return MonitorEventLevel.Critical; - if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return MonitorEventLevel.Error; - if (string.Equals(value, "Warning", StringComparison.InvariantCultureIgnoreCase)) return MonitorEventLevel.Warning; - if (string.Equals(value, "Informational", StringComparison.InvariantCultureIgnoreCase)) return MonitorEventLevel.Informational; - if (string.Equals(value, "Verbose", StringComparison.InvariantCultureIgnoreCase)) return MonitorEventLevel.Verbose; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Critical")) return MonitorEventLevel.Critical; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Error")) return MonitorEventLevel.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Warning")) return MonitorEventLevel.Warning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Informational")) return MonitorEventLevel.Informational; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Verbose")) return MonitorEventLevel.Verbose; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MonitorEventLevel value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorReceiverStatus.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorReceiverStatus.Serialization.cs index a4719a5bc20d5..eaf7723d057ed 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorReceiverStatus.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorReceiverStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class MonitorReceiverStatusExtensions public static MonitorReceiverStatus ToMonitorReceiverStatus(this string value) { - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return MonitorReceiverStatus.NotSpecified; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return MonitorReceiverStatus.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return MonitorReceiverStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSpecified")) return MonitorReceiverStatus.NotSpecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return MonitorReceiverStatus.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return MonitorReceiverStatus.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MonitorReceiverStatus value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorScaleDirection.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorScaleDirection.Serialization.cs index 25c9004038361..25269e8c344b8 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorScaleDirection.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorScaleDirection.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class MonitorScaleDirectionExtensions public static MonitorScaleDirection ToMonitorScaleDirection(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return MonitorScaleDirection.None; - if (string.Equals(value, "Increase", StringComparison.InvariantCultureIgnoreCase)) return MonitorScaleDirection.Increase; - if (string.Equals(value, "Decrease", StringComparison.InvariantCultureIgnoreCase)) return MonitorScaleDirection.Decrease; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return MonitorScaleDirection.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Increase")) return MonitorScaleDirection.Increase; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Decrease")) return MonitorScaleDirection.Decrease; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MonitorScaleDirection value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorScaleType.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorScaleType.Serialization.cs index 6669985e0b92c..3634bba5ab1d3 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorScaleType.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorScaleType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class MonitorScaleTypeExtensions public static MonitorScaleType ToMonitorScaleType(this string value) { - if (string.Equals(value, "ChangeCount", StringComparison.InvariantCultureIgnoreCase)) return MonitorScaleType.ChangeCount; - if (string.Equals(value, "PercentChangeCount", StringComparison.InvariantCultureIgnoreCase)) return MonitorScaleType.PercentChangeCount; - if (string.Equals(value, "ExactCount", StringComparison.InvariantCultureIgnoreCase)) return MonitorScaleType.ExactCount; - if (string.Equals(value, "ServiceAllowedNextValue", StringComparison.InvariantCultureIgnoreCase)) return MonitorScaleType.ServiceAllowedNextValue; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ChangeCount")) return MonitorScaleType.ChangeCount; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PercentChangeCount")) return MonitorScaleType.PercentChangeCount; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ExactCount")) return MonitorScaleType.ExactCount; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ServiceAllowedNextValue")) return MonitorScaleType.ServiceAllowedNextValue; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MonitorScaleType value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PredictiveAutoscalePolicyScaleMode.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PredictiveAutoscalePolicyScaleMode.Serialization.cs index 52c358e0c0885..efdc9d935f26a 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PredictiveAutoscalePolicyScaleMode.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PredictiveAutoscalePolicyScaleMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class PredictiveAutoscalePolicyScaleModeExtensions public static PredictiveAutoscalePolicyScaleMode ToPredictiveAutoscalePolicyScaleMode(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return PredictiveAutoscalePolicyScaleMode.Disabled; - if (string.Equals(value, "ForecastOnly", StringComparison.InvariantCultureIgnoreCase)) return PredictiveAutoscalePolicyScaleMode.ForecastOnly; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return PredictiveAutoscalePolicyScaleMode.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return PredictiveAutoscalePolicyScaleMode.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ForecastOnly")) return PredictiveAutoscalePolicyScaleMode.ForecastOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return PredictiveAutoscalePolicyScaleMode.Enabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PredictiveAutoscalePolicyScaleMode value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/RecurrenceFrequency.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/RecurrenceFrequency.Serialization.cs index 3f6b049ee1250..e54a4bbf80349 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/RecurrenceFrequency.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/RecurrenceFrequency.Serialization.cs @@ -26,14 +26,14 @@ internal static partial class RecurrenceFrequencyExtensions public static RecurrenceFrequency ToRecurrenceFrequency(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return RecurrenceFrequency.None; - if (string.Equals(value, "Second", StringComparison.InvariantCultureIgnoreCase)) return RecurrenceFrequency.Second; - if (string.Equals(value, "Minute", StringComparison.InvariantCultureIgnoreCase)) return RecurrenceFrequency.Minute; - if (string.Equals(value, "Hour", StringComparison.InvariantCultureIgnoreCase)) return RecurrenceFrequency.Hour; - if (string.Equals(value, "Day", StringComparison.InvariantCultureIgnoreCase)) return RecurrenceFrequency.Day; - if (string.Equals(value, "Week", StringComparison.InvariantCultureIgnoreCase)) return RecurrenceFrequency.Week; - if (string.Equals(value, "Month", StringComparison.InvariantCultureIgnoreCase)) return RecurrenceFrequency.Month; - if (string.Equals(value, "Year", StringComparison.InvariantCultureIgnoreCase)) return RecurrenceFrequency.Year; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return RecurrenceFrequency.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Second")) return RecurrenceFrequency.Second; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Minute")) return RecurrenceFrequency.Minute; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Hour")) return RecurrenceFrequency.Hour; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Day")) return RecurrenceFrequency.Day; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Week")) return RecurrenceFrequency.Week; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Month")) return RecurrenceFrequency.Month; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Year")) return RecurrenceFrequency.Year; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RecurrenceFrequency value."); } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ThresholdRuleConditionTimeAggregationType.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ThresholdRuleConditionTimeAggregationType.Serialization.cs index 3e74e0855f1f3..34bbad8e25b06 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ThresholdRuleConditionTimeAggregationType.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ThresholdRuleConditionTimeAggregationType.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class ThresholdRuleConditionTimeAggregationTypeExtension public static ThresholdRuleConditionTimeAggregationType ToThresholdRuleConditionTimeAggregationType(this string value) { - if (string.Equals(value, "Average", StringComparison.InvariantCultureIgnoreCase)) return ThresholdRuleConditionTimeAggregationType.Average; - if (string.Equals(value, "Minimum", StringComparison.InvariantCultureIgnoreCase)) return ThresholdRuleConditionTimeAggregationType.Minimum; - if (string.Equals(value, "Maximum", StringComparison.InvariantCultureIgnoreCase)) return ThresholdRuleConditionTimeAggregationType.Maximum; - if (string.Equals(value, "Total", StringComparison.InvariantCultureIgnoreCase)) return ThresholdRuleConditionTimeAggregationType.Total; - if (string.Equals(value, "Last", StringComparison.InvariantCultureIgnoreCase)) return ThresholdRuleConditionTimeAggregationType.Last; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Average")) return ThresholdRuleConditionTimeAggregationType.Average; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Minimum")) return ThresholdRuleConditionTimeAggregationType.Minimum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Maximum")) return ThresholdRuleConditionTimeAggregationType.Maximum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Total")) return ThresholdRuleConditionTimeAggregationType.Total; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Last")) return ThresholdRuleConditionTimeAggregationType.Last; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ThresholdRuleConditionTimeAggregationType value."); } } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyState.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyState.Serialization.cs index 73b2937e0b5f5..e65ca80a2a8a1 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyState.Serialization.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class MySqlServerSecurityAlertPolicyStateExtensions public static MySqlServerSecurityAlertPolicyState ToMySqlServerSecurityAlertPolicyState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return MySqlServerSecurityAlertPolicyState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return MySqlServerSecurityAlertPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return MySqlServerSecurityAlertPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return MySqlServerSecurityAlertPolicyState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MySqlServerSecurityAlertPolicyState value."); } } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlSslEnforcementEnum.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlSslEnforcementEnum.Serialization.cs index d5233ba54d83d..b4187e7d208ca 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlSslEnforcementEnum.Serialization.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlSslEnforcementEnum.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class MySqlSslEnforcementEnumExtensions public static MySqlSslEnforcementEnum ToMySqlSslEnforcementEnum(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return MySqlSslEnforcementEnum.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return MySqlSslEnforcementEnum.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return MySqlSslEnforcementEnum.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return MySqlSslEnforcementEnum.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MySqlSslEnforcementEnum value."); } } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDataEncryptionType.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDataEncryptionType.Serialization.cs index 89f67842a15f0..5023dceeaeb1a 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDataEncryptionType.Serialization.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDataEncryptionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class MySqlFlexibleServerDataEncryptionTypeExtensions public static MySqlFlexibleServerDataEncryptionType ToMySqlFlexibleServerDataEncryptionType(this string value) { - if (string.Equals(value, "AzureKeyVault", StringComparison.InvariantCultureIgnoreCase)) return MySqlFlexibleServerDataEncryptionType.AzureKeyVault; - if (string.Equals(value, "SystemManaged", StringComparison.InvariantCultureIgnoreCase)) return MySqlFlexibleServerDataEncryptionType.SystemManaged; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureKeyVault")) return MySqlFlexibleServerDataEncryptionType.AzureKeyVault; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SystemManaged")) return MySqlFlexibleServerDataEncryptionType.SystemManaged; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MySqlFlexibleServerDataEncryptionType value."); } } diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppProvisioningState.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppProvisioningState.Serialization.cs index 45006d1518e56..40786d8656b8e 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppProvisioningState.Serialization.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppProvisioningState.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class NetAppProvisioningStateExtensions public static NetAppProvisioningState ToNetAppProvisioningState(this string value) { - if (string.Equals(value, "Accepted", StringComparison.InvariantCultureIgnoreCase)) return NetAppProvisioningState.Accepted; - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return NetAppProvisioningState.Creating; - if (string.Equals(value, "Patching", StringComparison.InvariantCultureIgnoreCase)) return NetAppProvisioningState.Patching; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return NetAppProvisioningState.Deleting; - if (string.Equals(value, "Moving", StringComparison.InvariantCultureIgnoreCase)) return NetAppProvisioningState.Moving; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return NetAppProvisioningState.Failed; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return NetAppProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accepted")) return NetAppProvisioningState.Accepted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return NetAppProvisioningState.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Patching")) return NetAppProvisioningState.Patching; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return NetAppProvisioningState.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Moving")) return NetAppProvisioningState.Moving; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return NetAppProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return NetAppProvisioningState.Succeeded; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NetAppProvisioningState value."); } } diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/AuthorizationRuleAccessRight.Serialization.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/AuthorizationRuleAccessRight.Serialization.cs index b3ea1fd7b4752..4ae0c95cc47cd 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/AuthorizationRuleAccessRight.Serialization.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/AuthorizationRuleAccessRight.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AuthorizationRuleAccessRightExtensions public static AuthorizationRuleAccessRight ToAuthorizationRuleAccessRight(this string value) { - if (string.Equals(value, "Manage", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationRuleAccessRight.Manage; - if (string.Equals(value, "Send", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationRuleAccessRight.Send; - if (string.Equals(value, "Listen", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationRuleAccessRight.Listen; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Manage")) return AuthorizationRuleAccessRight.Manage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Send")) return AuthorizationRuleAccessRight.Send; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Listen")) return AuthorizationRuleAccessRight.Listen; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AuthorizationRuleAccessRight value."); } } diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceType.Serialization.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceType.Serialization.cs index fe51b1ebe1be7..a3ec4d1f1383f 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceType.Serialization.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class NotificationHubNamespaceTypeExtensions public static NotificationHubNamespaceType ToNotificationHubNamespaceType(this string value) { - if (string.Equals(value, "Messaging", StringComparison.InvariantCultureIgnoreCase)) return NotificationHubNamespaceType.Messaging; - if (string.Equals(value, "NotificationHub", StringComparison.InvariantCultureIgnoreCase)) return NotificationHubNamespaceType.NotificationHub; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Messaging")) return NotificationHubNamespaceType.Messaging; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotificationHub")) return NotificationHubNamespaceType.NotificationHub; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NotificationHubNamespaceType value."); } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionStatus.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionStatus.Serialization.cs index 3ac79d2ecc51d..df8814dd65979 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionStatus.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionStatus.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class AssetConversionStatusExtensions public static AssetConversionStatus ToAssetConversionStatus(this string value) { - if (string.Equals(value, "NotStarted", StringComparison.InvariantCultureIgnoreCase)) return AssetConversionStatus.NotStarted; - if (string.Equals(value, "Running", StringComparison.InvariantCultureIgnoreCase)) return AssetConversionStatus.Running; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return AssetConversionStatus.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return AssetConversionStatus.Failed; - if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return AssetConversionStatus.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotStarted")) return AssetConversionStatus.NotStarted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Running")) return AssetConversionStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return AssetConversionStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return AssetConversionStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return AssetConversionStatus.Cancelled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AssetConversionStatus value."); } } diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataSourceType.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataSourceType.Serialization.cs index b06703f074e43..e0aef94438d5c 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataSourceType.Serialization.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataSourceType.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class OperationalInsightsDataSourceTypeExtensions public static OperationalInsightsDataSourceType ToOperationalInsightsDataSourceType(this string value) { - if (string.Equals(value, "CustomLogs", StringComparison.InvariantCultureIgnoreCase)) return OperationalInsightsDataSourceType.CustomLogs; - if (string.Equals(value, "AzureWatson", StringComparison.InvariantCultureIgnoreCase)) return OperationalInsightsDataSourceType.AzureWatson; - if (string.Equals(value, "Query", StringComparison.InvariantCultureIgnoreCase)) return OperationalInsightsDataSourceType.Query; - if (string.Equals(value, "Ingestion", StringComparison.InvariantCultureIgnoreCase)) return OperationalInsightsDataSourceType.Ingestion; - if (string.Equals(value, "Alerts", StringComparison.InvariantCultureIgnoreCase)) return OperationalInsightsDataSourceType.Alerts; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomLogs")) return OperationalInsightsDataSourceType.CustomLogs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureWatson")) return OperationalInsightsDataSourceType.AzureWatson; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Query")) return OperationalInsightsDataSourceType.Query; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Ingestion")) return OperationalInsightsDataSourceType.Ingestion; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Alerts")) return OperationalInsightsDataSourceType.Alerts; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown OperationalInsightsDataSourceType value."); } } diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AutoTrackingConfiguration.Serialization.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AutoTrackingConfiguration.Serialization.cs index a4d8c830e9185..c9e44c82571c1 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AutoTrackingConfiguration.Serialization.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AutoTrackingConfiguration.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AutoTrackingConfigurationExtensions public static AutoTrackingConfiguration ToAutoTrackingConfiguration(this string value) { - if (string.Equals(value, "disabled", StringComparison.InvariantCultureIgnoreCase)) return AutoTrackingConfiguration.Disabled; - if (string.Equals(value, "xBand", StringComparison.InvariantCultureIgnoreCase)) return AutoTrackingConfiguration.XBand; - if (string.Equals(value, "sBand", StringComparison.InvariantCultureIgnoreCase)) return AutoTrackingConfiguration.SBand; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "disabled")) return AutoTrackingConfiguration.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "xBand")) return AutoTrackingConfiguration.XBand; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "sBand")) return AutoTrackingConfiguration.SBand; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutoTrackingConfiguration value."); } } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyState.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyState.Serialization.cs index 5cac451943303..8be00f0a90405 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyState.Serialization.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class PostgreSqlServerSecurityAlertPolicyStateExtensions public static PostgreSqlServerSecurityAlertPolicyState ToPostgreSqlServerSecurityAlertPolicyState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return PostgreSqlServerSecurityAlertPolicyState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return PostgreSqlServerSecurityAlertPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return PostgreSqlServerSecurityAlertPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return PostgreSqlServerSecurityAlertPolicyState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PostgreSqlServerSecurityAlertPolicyState value."); } } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlSslEnforcementEnum.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlSslEnforcementEnum.Serialization.cs index ddd102e04db40..38cd2eb2919d5 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlSslEnforcementEnum.Serialization.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlSslEnforcementEnum.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class PostgreSqlSslEnforcementEnumExtensions public static PostgreSqlSslEnforcementEnum ToPostgreSqlSslEnforcementEnum(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return PostgreSqlSslEnforcementEnum.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return PostgreSqlSslEnforcementEnum.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return PostgreSqlSslEnforcementEnum.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return PostgreSqlSslEnforcementEnum.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PostgreSqlSslEnforcementEnum value."); } } diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/RecordType.Serialization.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/RecordType.Serialization.cs index 1233bac376dc2..aa3b7c83b1580 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/RecordType.Serialization.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/RecordType.Serialization.cs @@ -26,14 +26,14 @@ internal static partial class RecordTypeExtensions public static RecordType ToRecordType(this string value) { - if (string.Equals(value, "A", StringComparison.InvariantCultureIgnoreCase)) return RecordType.A; - if (string.Equals(value, "AAAA", StringComparison.InvariantCultureIgnoreCase)) return RecordType.Aaaa; - if (string.Equals(value, "CNAME", StringComparison.InvariantCultureIgnoreCase)) return RecordType.Cname; - if (string.Equals(value, "MX", StringComparison.InvariantCultureIgnoreCase)) return RecordType.MX; - if (string.Equals(value, "PTR", StringComparison.InvariantCultureIgnoreCase)) return RecordType.PTR; - if (string.Equals(value, "SOA", StringComparison.InvariantCultureIgnoreCase)) return RecordType.SOA; - if (string.Equals(value, "SRV", StringComparison.InvariantCultureIgnoreCase)) return RecordType.SRV; - if (string.Equals(value, "TXT", StringComparison.InvariantCultureIgnoreCase)) return RecordType.TXT; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "A")) return RecordType.A; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AAAA")) return RecordType.Aaaa; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CNAME")) return RecordType.Cname; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MX")) return RecordType.MX; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PTR")) return RecordType.PTR; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SOA")) return RecordType.SOA; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SRV")) return RecordType.SRV; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TXT")) return RecordType.TXT; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RecordType value."); } } 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 index 8bf3250c559e0..505b40967660b 100644 --- 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 @@ -25,13 +25,13 @@ internal static partial class BackupDayOfWeekExtensions 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; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return BackupDayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return BackupDayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return BackupDayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return BackupDayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return BackupDayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return BackupDayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return BackupDayOfWeek.Saturday; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupDayOfWeek value."); } } 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 index c1fdfc28e2488..4aea5b6ef6878 100644 --- 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 @@ -31,19 +31,19 @@ internal static partial class BackupMonthOfYearExtensions 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; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return BackupMonthOfYear.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "January")) return BackupMonthOfYear.January; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "February")) return BackupMonthOfYear.February; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "March")) return BackupMonthOfYear.March; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "April")) return BackupMonthOfYear.April; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "May")) return BackupMonthOfYear.May; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "June")) return BackupMonthOfYear.June; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "July")) return BackupMonthOfYear.July; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "August")) return BackupMonthOfYear.August; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "September")) return BackupMonthOfYear.September; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "October")) return BackupMonthOfYear.October; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "November")) return BackupMonthOfYear.November; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "December")) return BackupMonthOfYear.December; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupMonthOfYear 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 index dd23ecc3d8663..ccea6b245df2d 100644 --- 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 @@ -24,12 +24,12 @@ internal static partial class BackupWeekOfMonthExtensions 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; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "First")) return BackupWeekOfMonth.First; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Second")) return BackupWeekOfMonth.Second; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Third")) return BackupWeekOfMonth.Third; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Fourth")) return BackupWeekOfMonth.Fourth; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Last")) return BackupWeekOfMonth.Last; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return BackupWeekOfMonth.Invalid; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupWeekOfMonth value."); } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobSupportedAction.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobSupportedAction.Serialization.cs index d5fa9969d4c61..c135c4b72140e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobSupportedAction.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobSupportedAction.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class JobSupportedActionExtensions public static JobSupportedAction ToJobSupportedAction(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return JobSupportedAction.Invalid; - if (string.Equals(value, "Cancellable", StringComparison.InvariantCultureIgnoreCase)) return JobSupportedAction.Cancellable; - if (string.Equals(value, "Retriable", StringComparison.InvariantCultureIgnoreCase)) return JobSupportedAction.Retriable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return JobSupportedAction.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancellable")) return JobSupportedAction.Cancellable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Retriable")) return JobSupportedAction.Retriable; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown JobSupportedAction value."); } } 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 ed29a303baf15..608ae68d7fcec 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 @@ -36,24 +36,24 @@ internal static partial class ProtectableContainerTypeExtensions public static ProtectableContainerType ToProtectableContainerType(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.Unknown; - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.Invalid; - if (string.Equals(value, "IaasVMContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.IaasVmContainer; - if (string.Equals(value, "IaasVMServiceContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.IaasVmServiceContainer; - if (string.Equals(value, "DPMContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.DpmContainer; - if (string.Equals(value, "AzureBackupServerContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.AzureBackupServerContainer; - if (string.Equals(value, "MABContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.MabContainer; - if (string.Equals(value, "Cluster", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.Cluster; - if (string.Equals(value, "AzureSqlContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.AzureSqlContainer; - 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.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; - if (string.Equals(value, "Microsoft.Compute/virtualMachines", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.MicrosoftComputeVirtualMachines; - if (string.Equals(value, "AzureWorkloadContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.AzureWorkloadContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return ProtectableContainerType.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return ProtectableContainerType.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IaasVMContainer")) return ProtectableContainerType.IaasVmContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IaasVMServiceContainer")) return ProtectableContainerType.IaasVmServiceContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DPMContainer")) return ProtectableContainerType.DpmContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureBackupServerContainer")) return ProtectableContainerType.AzureBackupServerContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MABContainer")) return ProtectableContainerType.MabContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cluster")) return ProtectableContainerType.Cluster; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureSqlContainer")) return ProtectableContainerType.AzureSqlContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Windows")) return ProtectableContainerType.Windows; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "VCenter")) return ProtectableContainerType.VCenter; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "VMAppContainer")) return ProtectableContainerType.VmAppContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SQLAGWorkLoadContainer")) return ProtectableContainerType.SqlAvailabilityGroupWorkLoadContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StorageContainer")) return ProtectableContainerType.StorageContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GenericContainer")) return ProtectableContainerType.GenericContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.ClassicCompute/virtualMachines")) return ProtectableContainerType.MicrosoftClassicComputeVirtualMachines; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Compute/virtualMachines")) return ProtectableContainerType.MicrosoftComputeVirtualMachines; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureWorkloadContainer")) return ProtectableContainerType.AzureWorkloadContainer; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ProtectableContainerType value."); } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointTierStatus.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointTierStatus.Serialization.cs index 64e0e90658edd..911b3e63a262c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointTierStatus.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointTierStatus.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class RecoveryPointTierStatusExtensions public static RecoveryPointTierStatus ToRecoveryPointTierStatus(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierStatus.Invalid; - if (string.Equals(value, "Valid", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierStatus.Valid; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierStatus.Disabled; - if (string.Equals(value, "Deleted", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierStatus.Deleted; - if (string.Equals(value, "Rehydrated", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierStatus.Rehydrated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return RecoveryPointTierStatus.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Valid")) return RecoveryPointTierStatus.Valid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return RecoveryPointTierStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleted")) return RecoveryPointTierStatus.Deleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Rehydrated")) return RecoveryPointTierStatus.Rehydrated; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RecoveryPointTierStatus value."); } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointTierType.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointTierType.Serialization.cs index 3dacc153dc7a2..3a6b9566e0f6d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointTierType.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointTierType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class RecoveryPointTierTypeExtensions public static RecoveryPointTierType ToRecoveryPointTierType(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierType.Invalid; - if (string.Equals(value, "InstantRP", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierType.InstantRP; - if (string.Equals(value, "HardenedRP", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierType.HardenedRP; - if (string.Equals(value, "ArchivedRP", StringComparison.InvariantCultureIgnoreCase)) return RecoveryPointTierType.ArchivedRP; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return RecoveryPointTierType.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InstantRP")) return RecoveryPointTierType.InstantRP; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "HardenedRP")) return RecoveryPointTierType.HardenedRP; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ArchivedRP")) return RecoveryPointTierType.ArchivedRP; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RecoveryPointTierType value."); } } diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisDayOfWeek.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisDayOfWeek.Serialization.cs index 01b25f437ee7f..1bd8f1eb0380f 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisDayOfWeek.Serialization.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisDayOfWeek.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class RedisDayOfWeekExtensions public static RedisDayOfWeek ToRedisDayOfWeek(this string value) { - if (string.Equals(value, "Monday", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Monday; - if (string.Equals(value, "Tuesday", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Tuesday; - if (string.Equals(value, "Wednesday", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Wednesday; - if (string.Equals(value, "Thursday", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Thursday; - if (string.Equals(value, "Friday", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Friday; - if (string.Equals(value, "Saturday", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Saturday; - if (string.Equals(value, "Sunday", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Sunday; - if (string.Equals(value, "Everyday", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Everyday; - if (string.Equals(value, "Weekend", StringComparison.InvariantCultureIgnoreCase)) return RedisDayOfWeek.Weekend; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return RedisDayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return RedisDayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return RedisDayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return RedisDayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return RedisDayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return RedisDayOfWeek.Saturday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return RedisDayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Everyday")) return RedisDayOfWeek.Everyday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Weekend")) return RedisDayOfWeek.Weekend; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RedisDayOfWeek value."); } } diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerRole.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerRole.Serialization.cs index f02dbd8a85ec6..5caa670a74750 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerRole.Serialization.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerRole.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RedisLinkedServerRoleExtensions public static RedisLinkedServerRole ToRedisLinkedServerRole(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return RedisLinkedServerRole.Primary; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return RedisLinkedServerRole.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return RedisLinkedServerRole.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return RedisLinkedServerRole.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RedisLinkedServerRole value."); } } diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisRegenerateKeyType.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisRegenerateKeyType.Serialization.cs index cd4fdc0d8dbcd..ac9e806c38a03 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisRegenerateKeyType.Serialization.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisRegenerateKeyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RedisRegenerateKeyTypeExtensions public static RedisRegenerateKeyType ToRedisRegenerateKeyType(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return RedisRegenerateKeyType.Primary; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return RedisRegenerateKeyType.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return RedisRegenerateKeyType.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return RedisRegenerateKeyType.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RedisRegenerateKeyType value."); } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseAccessKeyType.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseAccessKeyType.Serialization.cs index a29fe1c7cca16..4cf199c417d5d 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseAccessKeyType.Serialization.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseAccessKeyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RedisEnterpriseAccessKeyTypeExtensions public static RedisEnterpriseAccessKeyType ToRedisEnterpriseAccessKeyType(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return RedisEnterpriseAccessKeyType.Primary; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return RedisEnterpriseAccessKeyType.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return RedisEnterpriseAccessKeyType.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return RedisEnterpriseAccessKeyType.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RedisEnterpriseAccessKeyType value."); } } diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayType.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayType.Serialization.cs index 4067643a05305..6b54c7416cdf9 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayType.Serialization.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RelayTypeExtensions public static RelayType ToRelayType(this string value) { - if (string.Equals(value, "NetTcp", StringComparison.InvariantCultureIgnoreCase)) return RelayType.NetTcp; - if (string.Equals(value, "Http", StringComparison.InvariantCultureIgnoreCase)) return RelayType.Http; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NetTcp")) return RelayType.NetTcp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Http")) return RelayType.Http; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RelayType value."); } } diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/AuthorizationScopeFilter.Serialization.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/AuthorizationScopeFilter.Serialization.cs index a754891c9b017..e1af339c14417 100644 --- a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/AuthorizationScopeFilter.Serialization.cs +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/AuthorizationScopeFilter.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class AuthorizationScopeFilterExtensions public static AuthorizationScopeFilter ToAuthorizationScopeFilter(this string value) { - if (string.Equals(value, "AtScopeAndBelow", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationScopeFilter.AtScopeAndBelow; - if (string.Equals(value, "AtScopeAndAbove", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationScopeFilter.AtScopeAndAbove; - if (string.Equals(value, "AtScopeExact", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationScopeFilter.AtScopeExact; - if (string.Equals(value, "AtScopeAboveAndBelow", StringComparison.InvariantCultureIgnoreCase)) return AuthorizationScopeFilter.AtScopeAboveAndBelow; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AtScopeAndBelow")) return AuthorizationScopeFilter.AtScopeAndBelow; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AtScopeAndAbove")) return AuthorizationScopeFilter.AtScopeAndAbove; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AtScopeExact")) return AuthorizationScopeFilter.AtScopeExact; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AtScopeAboveAndBelow")) return AuthorizationScopeFilter.AtScopeAboveAndBelow; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AuthorizationScopeFilter value."); } } diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/FacetSortOrder.Serialization.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/FacetSortOrder.Serialization.cs index d326f86883820..f76d95994df39 100644 --- a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/FacetSortOrder.Serialization.cs +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/FacetSortOrder.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FacetSortOrderExtensions public static FacetSortOrder ToFacetSortOrder(this string value) { - if (string.Equals(value, "asc", StringComparison.InvariantCultureIgnoreCase)) return FacetSortOrder.Asc; - if (string.Equals(value, "desc", StringComparison.InvariantCultureIgnoreCase)) return FacetSortOrder.Desc; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "asc")) return FacetSortOrder.Asc; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "desc")) return FacetSortOrder.Desc; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FacetSortOrder value."); } } diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResultFormat.Serialization.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResultFormat.Serialization.cs index 14d6cae81063f..25b5c79ff9662 100644 --- a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResultFormat.Serialization.cs +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResultFormat.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ResultFormatExtensions public static ResultFormat ToResultFormat(this string value) { - if (string.Equals(value, "table", StringComparison.InvariantCultureIgnoreCase)) return ResultFormat.Table; - if (string.Equals(value, "objectArray", StringComparison.InvariantCultureIgnoreCase)) return ResultFormat.ObjectArray; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "table")) return ResultFormat.Table; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "objectArray")) return ResultFormat.ObjectArray; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ResultFormat value."); } } diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResultTruncated.Serialization.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResultTruncated.Serialization.cs index d1620efec096d..9e00caa461839 100644 --- a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResultTruncated.Serialization.cs +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResultTruncated.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ResultTruncatedExtensions public static ResultTruncated ToResultTruncated(this string value) { - if (string.Equals(value, "true", StringComparison.InvariantCultureIgnoreCase)) return ResultTruncated.True; - if (string.Equals(value, "false", StringComparison.InvariantCultureIgnoreCase)) return ResultTruncated.False; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "true")) return ResultTruncated.True; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "false")) return ResultTruncated.False; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ResultTruncated value."); } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSkuTier.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSkuTier.Serialization.cs index a1f81cc0fe4ab..c640e16a48b4e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSkuTier.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSkuTier.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class ArmSkuTierExtensions public static ArmSkuTier ToArmSkuTier(this string value) { - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return ArmSkuTier.Free; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return ArmSkuTier.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return ArmSkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return ArmSkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return ArmSkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return ArmSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return ArmSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return ArmSkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmSkuTier value."); } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameUnavailableReason.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameUnavailableReason.Serialization.cs index ab6492c76a39c..682fa73fb99bb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameUnavailableReason.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameUnavailableReason.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ManagementGroupNameUnavailableReasonExtensions public static ManagementGroupNameUnavailableReason ToManagementGroupNameUnavailableReason(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return ManagementGroupNameUnavailableReason.Invalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return ManagementGroupNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return ManagementGroupNameUnavailableReason.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return ManagementGroupNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ManagementGroupNameUnavailableReason value."); } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationType.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationType.Serialization.cs index 98ebae7f009e5..95769ed54d3be 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationType.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LocationTypeExtensions public static LocationType ToLocationType(this string value) { - if (string.Equals(value, "Region", StringComparison.InvariantCultureIgnoreCase)) return LocationType.Region; - if (string.Equals(value, "EdgeZone", StringComparison.InvariantCultureIgnoreCase)) return LocationType.EdgeZone; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Region")) return LocationType.Region; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "EdgeZone")) return LocationType.EdgeZone; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LocationType value."); } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPatternType.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPatternType.Serialization.cs index 7b079d0c92854..8faaf01391126 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPatternType.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPatternType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ResourceTypeAliasPatternTypeExtensions public static ResourceTypeAliasPatternType ToResourceTypeAliasPatternType(this string value) { - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return ResourceTypeAliasPatternType.NotSpecified; - if (string.Equals(value, "Extract", StringComparison.InvariantCultureIgnoreCase)) return ResourceTypeAliasPatternType.Extract; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSpecified")) return ResourceTypeAliasPatternType.NotSpecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Extract")) return ResourceTypeAliasPatternType.Extract; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ResourceTypeAliasPatternType value."); } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasType.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasType.Serialization.cs index 013c650d68252..2ddd82d437652 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasType.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ResourceTypeAliasTypeExtensions public static ResourceTypeAliasType ToResourceTypeAliasType(this string value) { - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return ResourceTypeAliasType.NotSpecified; - if (string.Equals(value, "PlainText", StringComparison.InvariantCultureIgnoreCase)) return ResourceTypeAliasType.PlainText; - if (string.Equals(value, "Mask", StringComparison.InvariantCultureIgnoreCase)) return ResourceTypeAliasType.Mask; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSpecified")) return ResourceTypeAliasType.NotSpecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PlainText")) return ResourceTypeAliasType.PlainText; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Mask")) return ResourceTypeAliasType.Mask; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ResourceTypeAliasType value."); } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SpendingLimit.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SpendingLimit.Serialization.cs index fdd2152e7a96e..1330415ea34e3 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SpendingLimit.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SpendingLimit.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SpendingLimitExtensions public static SpendingLimit ToSpendingLimit(this string value) { - if (string.Equals(value, "On", StringComparison.InvariantCultureIgnoreCase)) return SpendingLimit.On; - if (string.Equals(value, "Off", StringComparison.InvariantCultureIgnoreCase)) return SpendingLimit.Off; - if (string.Equals(value, "CurrentPeriodOff", StringComparison.InvariantCultureIgnoreCase)) return SpendingLimit.CurrentPeriodOff; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "On")) return SpendingLimit.On; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Off")) return SpendingLimit.Off; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CurrentPeriodOff")) return SpendingLimit.CurrentPeriodOff; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SpendingLimit value."); } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionState.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionState.Serialization.cs index 6b0a2ce1f82f4..51a2212e62bb6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionState.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SubscriptionStateExtensions public static SubscriptionState ToSubscriptionState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Enabled; - if (string.Equals(value, "Warned", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Warned; - if (string.Equals(value, "PastDue", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.PastDue; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Disabled; - if (string.Equals(value, "Deleted", StringComparison.InvariantCultureIgnoreCase)) return SubscriptionState.Deleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SubscriptionState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Warned")) return SubscriptionState.Warned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PastDue")) return SubscriptionState.PastDue; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SubscriptionState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleted")) return SubscriptionState.Deleted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SubscriptionState value."); } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantCategory.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantCategory.Serialization.cs index 29ba555a7c4e2..a3d824a90a5ce 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantCategory.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantCategory.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class TenantCategoryExtensions public static TenantCategory ToTenantCategory(this string value) { - if (string.Equals(value, "Home", StringComparison.InvariantCultureIgnoreCase)) return TenantCategory.Home; - if (string.Equals(value, "ProjectedBy", StringComparison.InvariantCultureIgnoreCase)) return TenantCategory.ProjectedBy; - if (string.Equals(value, "ManagedBy", StringComparison.InvariantCultureIgnoreCase)) return TenantCategory.ManagedBy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Home")) return TenantCategory.Home; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ProjectedBy")) return TenantCategory.ProjectedBy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ManagedBy")) return TenantCategory.ManagedBy; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TenantCategory value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.Serialization.cs index 23bdb0eb42835..58643e30cc47d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ArmApplicationArtifactTypeExtensions public static ArmApplicationArtifactType ToArmApplicationArtifactType(this string value) { - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationArtifactType.NotSpecified; - if (string.Equals(value, "Template", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationArtifactType.Template; - if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationArtifactType.Custom; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSpecified")) return ArmApplicationArtifactType.NotSpecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Template")) return ArmApplicationArtifactType.Template; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Custom")) return ArmApplicationArtifactType.Custom; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationArtifactType value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.Serialization.cs index 80c06a034841a..5d547476b057c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ArmApplicationLockLevelExtensions public static ArmApplicationLockLevel ToArmApplicationLockLevel(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationLockLevel.None; - if (string.Equals(value, "CanNotDelete", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationLockLevel.CanNotDelete; - if (string.Equals(value, "ReadOnly", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationLockLevel.ReadOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return ArmApplicationLockLevel.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CanNotDelete")) return ArmApplicationLockLevel.CanNotDelete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReadOnly")) return ArmApplicationLockLevel.ReadOnly; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationLockLevel value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.Serialization.cs index af34dc8d06a93..16628a4ea99d3 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class ArmApplicationManagedIdentityTypeExtensions public static ArmApplicationManagedIdentityType ToArmApplicationManagedIdentityType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationManagedIdentityType.None; - if (string.Equals(value, "SystemAssigned", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationManagedIdentityType.SystemAssigned; - if (string.Equals(value, "UserAssigned", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationManagedIdentityType.UserAssigned; - if (string.Equals(value, "SystemAssigned, UserAssigned", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationManagedIdentityType.SystemAssignedUserAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return ArmApplicationManagedIdentityType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SystemAssigned")) return ArmApplicationManagedIdentityType.SystemAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserAssigned")) return ArmApplicationManagedIdentityType.UserAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SystemAssigned, UserAssigned")) return ArmApplicationManagedIdentityType.SystemAssignedUserAssigned; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationManagedIdentityType value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.Serialization.cs index 5579e0d875094..a8b0e7803adde 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ArmDeploymentModeExtensions public static ArmDeploymentMode ToArmDeploymentMode(this string value) { - if (string.Equals(value, "Incremental", StringComparison.InvariantCultureIgnoreCase)) return ArmDeploymentMode.Incremental; - if (string.Equals(value, "Complete", StringComparison.InvariantCultureIgnoreCase)) return ArmDeploymentMode.Complete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Incremental")) return ArmDeploymentMode.Incremental; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Complete")) return ArmDeploymentMode.Complete; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmDeploymentMode value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeploymentType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeploymentType.Serialization.cs index 968772d8a4da9..d5019c89f8809 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeploymentType.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeploymentType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ErrorDeploymentTypeExtensions public static ErrorDeploymentType ToErrorDeploymentType(this string value) { - if (string.Equals(value, "LastSuccessful", StringComparison.InvariantCultureIgnoreCase)) return ErrorDeploymentType.LastSuccessful; - if (string.Equals(value, "SpecificDeployment", StringComparison.InvariantCultureIgnoreCase)) return ErrorDeploymentType.SpecificDeployment; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LastSuccessful")) return ErrorDeploymentType.LastSuccessful; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SpecificDeployment")) return ErrorDeploymentType.SpecificDeployment; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ErrorDeploymentType value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ProvisioningOperationKind.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ProvisioningOperationKind.Serialization.cs index 75e8ec0608edd..2480ad1f34c3b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ProvisioningOperationKind.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ProvisioningOperationKind.Serialization.cs @@ -28,16 +28,16 @@ internal static partial class ProvisioningOperationKindExtensions public static ProvisioningOperationKind ToProvisioningOperationKind(this string value) { - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.NotSpecified; - if (string.Equals(value, "Create", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.Create; - if (string.Equals(value, "Delete", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.Delete; - if (string.Equals(value, "Waiting", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.Waiting; - if (string.Equals(value, "AzureAsyncOperationWaiting", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.AzureAsyncOperationWaiting; - if (string.Equals(value, "ResourceCacheWaiting", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.ResourceCacheWaiting; - if (string.Equals(value, "Action", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.Action; - if (string.Equals(value, "Read", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.Read; - if (string.Equals(value, "EvaluateDeploymentOutput", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.EvaluateDeploymentOutput; - if (string.Equals(value, "DeploymentCleanup", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningOperationKind.DeploymentCleanup; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSpecified")) return ProvisioningOperationKind.NotSpecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Create")) return ProvisioningOperationKind.Create; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Delete")) return ProvisioningOperationKind.Delete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Waiting")) return ProvisioningOperationKind.Waiting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureAsyncOperationWaiting")) return ProvisioningOperationKind.AzureAsyncOperationWaiting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ResourceCacheWaiting")) return ProvisioningOperationKind.ResourceCacheWaiting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Action")) return ProvisioningOperationKind.Action; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Read")) return ProvisioningOperationKind.Read; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "EvaluateDeploymentOutput")) return ProvisioningOperationKind.EvaluateDeploymentOutput; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DeploymentCleanup")) return ProvisioningOperationKind.DeploymentCleanup; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ProvisioningOperationKind value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChangeType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChangeType.Serialization.cs index 71325a9abe0aa..3b900ad46e9a7 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChangeType.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChangeType.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class WhatIfChangeTypeExtensions public static WhatIfChangeType ToWhatIfChangeType(this string value) { - if (string.Equals(value, "Create", StringComparison.InvariantCultureIgnoreCase)) return WhatIfChangeType.Create; - if (string.Equals(value, "Delete", StringComparison.InvariantCultureIgnoreCase)) return WhatIfChangeType.Delete; - if (string.Equals(value, "Ignore", StringComparison.InvariantCultureIgnoreCase)) return WhatIfChangeType.Ignore; - if (string.Equals(value, "Deploy", StringComparison.InvariantCultureIgnoreCase)) return WhatIfChangeType.Deploy; - if (string.Equals(value, "NoChange", StringComparison.InvariantCultureIgnoreCase)) return WhatIfChangeType.NoChange; - if (string.Equals(value, "Modify", StringComparison.InvariantCultureIgnoreCase)) return WhatIfChangeType.Modify; - if (string.Equals(value, "Unsupported", StringComparison.InvariantCultureIgnoreCase)) return WhatIfChangeType.Unsupported; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Create")) return WhatIfChangeType.Create; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Delete")) return WhatIfChangeType.Delete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Ignore")) return WhatIfChangeType.Ignore; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deploy")) return WhatIfChangeType.Deploy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoChange")) return WhatIfChangeType.NoChange; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Modify")) return WhatIfChangeType.Modify; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unsupported")) return WhatIfChangeType.Unsupported; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WhatIfChangeType value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChangeType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChangeType.Serialization.cs index 0edb385ec6db4..719c3b2f8d216 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChangeType.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChangeType.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class WhatIfPropertyChangeTypeExtensions public static WhatIfPropertyChangeType ToWhatIfPropertyChangeType(this string value) { - if (string.Equals(value, "Create", StringComparison.InvariantCultureIgnoreCase)) return WhatIfPropertyChangeType.Create; - if (string.Equals(value, "Delete", StringComparison.InvariantCultureIgnoreCase)) return WhatIfPropertyChangeType.Delete; - if (string.Equals(value, "Modify", StringComparison.InvariantCultureIgnoreCase)) return WhatIfPropertyChangeType.Modify; - if (string.Equals(value, "Array", StringComparison.InvariantCultureIgnoreCase)) return WhatIfPropertyChangeType.Array; - if (string.Equals(value, "NoEffect", StringComparison.InvariantCultureIgnoreCase)) return WhatIfPropertyChangeType.NoEffect; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Create")) return WhatIfPropertyChangeType.Create; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Delete")) return WhatIfPropertyChangeType.Delete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Modify")) return WhatIfPropertyChangeType.Modify; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Array")) return WhatIfPropertyChangeType.Array; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoEffect")) return WhatIfPropertyChangeType.NoEffect; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WhatIfPropertyChangeType value."); } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfResultFormat.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfResultFormat.Serialization.cs index bf4e8104e6883..be53b9fbaef26 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfResultFormat.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfResultFormat.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class WhatIfResultFormatExtensions public static WhatIfResultFormat ToWhatIfResultFormat(this string value) { - if (string.Equals(value, "ResourceIdOnly", StringComparison.InvariantCultureIgnoreCase)) return WhatIfResultFormat.ResourceIdOnly; - if (string.Equals(value, "FullResourcePayloads", StringComparison.InvariantCultureIgnoreCase)) return WhatIfResultFormat.FullResourcePayloads; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ResourceIdOnly")) return WhatIfResultFormat.ResourceIdOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FullResourcePayloads")) return WhatIfResultFormat.FullResourcePayloads; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WhatIfResultFormat value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceAdminKeyKind.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceAdminKeyKind.Serialization.cs index c0b0f0005aaac..f2a70d172707d 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceAdminKeyKind.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceAdminKeyKind.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SearchServiceAdminKeyKindExtensions public static SearchServiceAdminKeyKind ToSearchServiceAdminKeyKind(this string value) { - if (string.Equals(value, "primary", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceAdminKeyKind.Primary; - if (string.Equals(value, "secondary", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceAdminKeyKind.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "primary")) return SearchServiceAdminKeyKind.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "secondary")) return SearchServiceAdminKeyKind.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchServiceAdminKeyKind value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceHostingMode.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceHostingMode.Serialization.cs index b583154f9bb77..c575c9cd86774 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceHostingMode.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceHostingMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SearchServiceHostingModeExtensions public static SearchServiceHostingMode ToSearchServiceHostingMode(this string value) { - if (string.Equals(value, "default", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceHostingMode.Default; - if (string.Equals(value, "highDensity", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceHostingMode.HighDensity; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "default")) return SearchServiceHostingMode.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "highDensity")) return SearchServiceHostingMode.HighDensity; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchServiceHostingMode value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionStatus.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionStatus.Serialization.cs index 30c68d007affa..9c650687e4528 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionStatus.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class SearchServicePrivateLinkServiceConnectionStatusExt public static SearchServicePrivateLinkServiceConnectionStatus ToSearchServicePrivateLinkServiceConnectionStatus(this string value) { - if (string.Equals(value, "Pending", StringComparison.InvariantCultureIgnoreCase)) return SearchServicePrivateLinkServiceConnectionStatus.Pending; - if (string.Equals(value, "Approved", StringComparison.InvariantCultureIgnoreCase)) return SearchServicePrivateLinkServiceConnectionStatus.Approved; - if (string.Equals(value, "Rejected", StringComparison.InvariantCultureIgnoreCase)) return SearchServicePrivateLinkServiceConnectionStatus.Rejected; - if (string.Equals(value, "Disconnected", StringComparison.InvariantCultureIgnoreCase)) return SearchServicePrivateLinkServiceConnectionStatus.Disconnected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pending")) return SearchServicePrivateLinkServiceConnectionStatus.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Approved")) return SearchServicePrivateLinkServiceConnectionStatus.Approved; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Rejected")) return SearchServicePrivateLinkServiceConnectionStatus.Rejected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disconnected")) return SearchServicePrivateLinkServiceConnectionStatus.Disconnected; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchServicePrivateLinkServiceConnectionStatus value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceProvisioningState.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceProvisioningState.Serialization.cs index dc3085ee8f2e4..0c29a1a9066c1 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceProvisioningState.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceProvisioningState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SearchServiceProvisioningStateExtensions public static SearchServiceProvisioningState ToSearchServiceProvisioningState(this string value) { - if (string.Equals(value, "succeeded", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceProvisioningState.Succeeded; - if (string.Equals(value, "provisioning", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceProvisioningState.Provisioning; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "succeeded")) return SearchServiceProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "provisioning")) return SearchServiceProvisioningState.Provisioning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return SearchServiceProvisioningState.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchServiceProvisioningState value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePublicNetworkAccess.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePublicNetworkAccess.Serialization.cs index 4d2638da788cf..002df72e91b80 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePublicNetworkAccess.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePublicNetworkAccess.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SearchServicePublicNetworkAccessExtensions public static SearchServicePublicNetworkAccess ToSearchServicePublicNetworkAccess(this string value) { - if (string.Equals(value, "enabled", StringComparison.InvariantCultureIgnoreCase)) return SearchServicePublicNetworkAccess.Enabled; - if (string.Equals(value, "disabled", StringComparison.InvariantCultureIgnoreCase)) return SearchServicePublicNetworkAccess.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "enabled")) return SearchServicePublicNetworkAccess.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "disabled")) return SearchServicePublicNetworkAccess.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchServicePublicNetworkAccess value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceStatus.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceStatus.Serialization.cs index 56545cfbcf98b..4649a04f075cb 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceStatus.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceStatus.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class SearchServiceStatusExtensions public static SearchServiceStatus ToSearchServiceStatus(this string value) { - if (string.Equals(value, "running", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceStatus.Running; - if (string.Equals(value, "provisioning", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceStatus.Provisioning; - if (string.Equals(value, "deleting", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceStatus.Deleting; - if (string.Equals(value, "degraded", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceStatus.Degraded; - if (string.Equals(value, "disabled", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceStatus.Disabled; - if (string.Equals(value, "error", StringComparison.InvariantCultureIgnoreCase)) return SearchServiceStatus.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "running")) return SearchServiceStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "provisioning")) return SearchServiceStatus.Provisioning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "deleting")) return SearchServiceStatus.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "degraded")) return SearchServiceStatus.Degraded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "disabled")) return SearchServiceStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "error")) return SearchServiceStatus.Error; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchServiceStatus value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSkuName.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSkuName.Serialization.cs index 2846012d0321c..ce86428c14424 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSkuName.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSkuName.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class SearchSkuNameExtensions public static SearchSkuName ToSearchSkuName(this string value) { - if (string.Equals(value, "free", StringComparison.InvariantCultureIgnoreCase)) return SearchSkuName.Free; - if (string.Equals(value, "basic", StringComparison.InvariantCultureIgnoreCase)) return SearchSkuName.Basic; - if (string.Equals(value, "standard", StringComparison.InvariantCultureIgnoreCase)) return SearchSkuName.Standard; - if (string.Equals(value, "standard2", StringComparison.InvariantCultureIgnoreCase)) return SearchSkuName.Standard2; - if (string.Equals(value, "standard3", StringComparison.InvariantCultureIgnoreCase)) return SearchSkuName.Standard3; - if (string.Equals(value, "storage_optimized_l1", StringComparison.InvariantCultureIgnoreCase)) return SearchSkuName.StorageOptimizedL1; - if (string.Equals(value, "storage_optimized_l2", StringComparison.InvariantCultureIgnoreCase)) return SearchSkuName.StorageOptimizedL2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "free")) return SearchSkuName.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "basic")) return SearchSkuName.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "standard")) return SearchSkuName.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "standard2")) return SearchSkuName.Standard2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "standard3")) return SearchSkuName.Standard3; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "storage_optimized_l1")) return SearchSkuName.StorageOptimizedL1; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "storage_optimized_l2")) return SearchSkuName.StorageOptimizedL2; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchSkuName value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProvisioningState.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProvisioningState.Serialization.cs index 0ea81df155e41..813cbbcd3456d 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProvisioningState.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProvisioningState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SharedSearchServicePrivateLinkResourceProvisioning public static SharedSearchServicePrivateLinkResourceProvisioningState ToSharedSearchServicePrivateLinkResourceProvisioningState(this string value) { - if (string.Equals(value, "Updating", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceProvisioningState.Updating; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceProvisioningState.Deleting; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceProvisioningState.Failed; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceProvisioningState.Succeeded; - if (string.Equals(value, "Incomplete", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceProvisioningState.Incomplete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Updating")) return SharedSearchServicePrivateLinkResourceProvisioningState.Updating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return SharedSearchServicePrivateLinkResourceProvisioningState.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return SharedSearchServicePrivateLinkResourceProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return SharedSearchServicePrivateLinkResourceProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Incomplete")) return SharedSearchServicePrivateLinkResourceProvisioningState.Incomplete; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SharedSearchServicePrivateLinkResourceProvisioningState value."); } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceStatus.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceStatus.Serialization.cs index a89123fcf61df..897dec9229b8f 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceStatus.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class SharedSearchServicePrivateLinkResourceStatusExtens public static SharedSearchServicePrivateLinkResourceStatus ToSharedSearchServicePrivateLinkResourceStatus(this string value) { - if (string.Equals(value, "Pending", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceStatus.Pending; - if (string.Equals(value, "Approved", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceStatus.Approved; - if (string.Equals(value, "Rejected", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceStatus.Rejected; - if (string.Equals(value, "Disconnected", StringComparison.InvariantCultureIgnoreCase)) return SharedSearchServicePrivateLinkResourceStatus.Disconnected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pending")) return SharedSearchServicePrivateLinkResourceStatus.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Approved")) return SharedSearchServicePrivateLinkResourceStatus.Approved; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Rejected")) return SharedSearchServicePrivateLinkResourceStatus.Rejected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disconnected")) return SharedSearchServicePrivateLinkResourceStatus.Disconnected; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SharedSearchServicePrivateLinkResourceStatus value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteMode.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteMode.Serialization.cs index b2c7bab116045..114f3dc11bdfb 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteMode.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AutocompleteModeExtensions public static AutocompleteMode ToAutocompleteMode(this string value) { - if (string.Equals(value, "oneTerm", StringComparison.InvariantCultureIgnoreCase)) return AutocompleteMode.OneTerm; - if (string.Equals(value, "twoTerms", StringComparison.InvariantCultureIgnoreCase)) return AutocompleteMode.TwoTerms; - if (string.Equals(value, "oneTermWithContext", StringComparison.InvariantCultureIgnoreCase)) return AutocompleteMode.OneTermWithContext; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "oneTerm")) return AutocompleteMode.OneTerm; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "twoTerms")) return AutocompleteMode.TwoTerms; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "oneTermWithContext")) return AutocompleteMode.OneTermWithContext; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutocompleteMode value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilterScripts.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilterScripts.Serialization.cs index 3f103083571a7..86ec9db573175 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilterScripts.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilterScripts.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class CjkBigramTokenFilterScriptsExtensions public static CjkBigramTokenFilterScripts ToCjkBigramTokenFilterScripts(this string value) { - if (string.Equals(value, "han", StringComparison.InvariantCultureIgnoreCase)) return CjkBigramTokenFilterScripts.Han; - if (string.Equals(value, "hiragana", StringComparison.InvariantCultureIgnoreCase)) return CjkBigramTokenFilterScripts.Hiragana; - if (string.Equals(value, "katakana", StringComparison.InvariantCultureIgnoreCase)) return CjkBigramTokenFilterScripts.Katakana; - if (string.Equals(value, "hangul", StringComparison.InvariantCultureIgnoreCase)) return CjkBigramTokenFilterScripts.Hangul; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "han")) return CjkBigramTokenFilterScripts.Han; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hiragana")) return CjkBigramTokenFilterScripts.Hiragana; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "katakana")) return CjkBigramTokenFilterScripts.Katakana; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hangul")) return CjkBigramTokenFilterScripts.Hangul; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CjkBigramTokenFilterScripts value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenFilterSide.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenFilterSide.Serialization.cs index 297075f1669c0..608f2d2dd27f7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenFilterSide.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenFilterSide.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class EdgeNGramTokenFilterSideExtensions public static EdgeNGramTokenFilterSide ToEdgeNGramTokenFilterSide(this string value) { - if (string.Equals(value, "front", StringComparison.InvariantCultureIgnoreCase)) return EdgeNGramTokenFilterSide.Front; - if (string.Equals(value, "back", StringComparison.InvariantCultureIgnoreCase)) return EdgeNGramTokenFilterSide.Back; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "front")) return EdgeNGramTokenFilterSide.Front; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "back")) return EdgeNGramTokenFilterSide.Back; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EdgeNGramTokenFilterSide value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexActionType.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexActionType.Serialization.cs index 7902fa099d5bd..fc7e47e966c1e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexActionType.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexActionType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class IndexActionTypeExtensions public static IndexActionType ToIndexActionType(this string value) { - if (string.Equals(value, "upload", StringComparison.InvariantCultureIgnoreCase)) return IndexActionType.Upload; - if (string.Equals(value, "merge", StringComparison.InvariantCultureIgnoreCase)) return IndexActionType.Merge; - if (string.Equals(value, "mergeOrUpload", StringComparison.InvariantCultureIgnoreCase)) return IndexActionType.MergeOrUpload; - if (string.Equals(value, "delete", StringComparison.InvariantCultureIgnoreCase)) return IndexActionType.Delete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "upload")) return IndexActionType.Upload; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "merge")) return IndexActionType.Merge; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "mergeOrUpload")) return IndexActionType.MergeOrUpload; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "delete")) return IndexActionType.Delete; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IndexActionType value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerExecutionStatus.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerExecutionStatus.Serialization.cs index 6dcde8f741b49..307184571578b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerExecutionStatus.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerExecutionStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class IndexerExecutionStatusExtensions public static IndexerExecutionStatus ToIndexerExecutionStatus(this string value) { - if (string.Equals(value, "transientFailure", StringComparison.InvariantCultureIgnoreCase)) return IndexerExecutionStatus.TransientFailure; - if (string.Equals(value, "success", StringComparison.InvariantCultureIgnoreCase)) return IndexerExecutionStatus.Success; - if (string.Equals(value, "inProgress", StringComparison.InvariantCultureIgnoreCase)) return IndexerExecutionStatus.InProgress; - if (string.Equals(value, "reset", StringComparison.InvariantCultureIgnoreCase)) return IndexerExecutionStatus.Reset; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "transientFailure")) return IndexerExecutionStatus.TransientFailure; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "success")) return IndexerExecutionStatus.Success; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "inProgress")) return IndexerExecutionStatus.InProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "reset")) return IndexerExecutionStatus.Reset; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IndexerExecutionStatus value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerStatus.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerStatus.Serialization.cs index e6c3f42280f25..816a545302b9d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerStatus.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class IndexerStatusExtensions public static IndexerStatus ToIndexerStatus(this string value) { - if (string.Equals(value, "unknown", StringComparison.InvariantCultureIgnoreCase)) return IndexerStatus.Unknown; - if (string.Equals(value, "error", StringComparison.InvariantCultureIgnoreCase)) return IndexerStatus.Error; - if (string.Equals(value, "running", StringComparison.InvariantCultureIgnoreCase)) return IndexerStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "unknown")) return IndexerStatus.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "error")) return IndexerStatus.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "running")) return IndexerStatus.Running; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IndexerStatus value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftStemmingTokenizerLanguage.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftStemmingTokenizerLanguage.Serialization.cs index e13b5c3fc55cd..21ab03cfa2c51 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftStemmingTokenizerLanguage.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftStemmingTokenizerLanguage.Serialization.cs @@ -63,51 +63,51 @@ internal static partial class MicrosoftStemmingTokenizerLanguageExtensions public static MicrosoftStemmingTokenizerLanguage ToMicrosoftStemmingTokenizerLanguage(this string value) { - if (string.Equals(value, "arabic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Arabic; - if (string.Equals(value, "bangla", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Bangla; - if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Bulgarian; - if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Catalan; - if (string.Equals(value, "croatian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Croatian; - if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Czech; - if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Danish; - if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Dutch; - if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.English; - if (string.Equals(value, "estonian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Estonian; - if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Finnish; - if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.French; - if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.German; - if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Greek; - if (string.Equals(value, "gujarati", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Gujarati; - if (string.Equals(value, "hebrew", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Hebrew; - if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Hindi; - if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Hungarian; - if (string.Equals(value, "icelandic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Icelandic; - if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Indonesian; - if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Italian; - if (string.Equals(value, "kannada", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Kannada; - if (string.Equals(value, "latvian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Latvian; - if (string.Equals(value, "lithuanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Lithuanian; - if (string.Equals(value, "malay", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Malay; - if (string.Equals(value, "malayalam", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Malayalam; - if (string.Equals(value, "marathi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Marathi; - if (string.Equals(value, "norwegianBokmaal", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.NorwegianBokmaal; - if (string.Equals(value, "polish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Polish; - if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Portuguese; - if (string.Equals(value, "portugueseBrazilian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.PortugueseBrazilian; - if (string.Equals(value, "punjabi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Punjabi; - if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Romanian; - if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Russian; - if (string.Equals(value, "serbianCyrillic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.SerbianCyrillic; - if (string.Equals(value, "serbianLatin", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.SerbianLatin; - if (string.Equals(value, "slovak", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Slovak; - if (string.Equals(value, "slovenian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Slovenian; - if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Spanish; - if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Swedish; - if (string.Equals(value, "tamil", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Tamil; - if (string.Equals(value, "telugu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Telugu; - if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Turkish; - if (string.Equals(value, "ukrainian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Ukrainian; - if (string.Equals(value, "urdu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTokenizerLanguage.Urdu; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "arabic")) return MicrosoftStemmingTokenizerLanguage.Arabic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "bangla")) return MicrosoftStemmingTokenizerLanguage.Bangla; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "bulgarian")) return MicrosoftStemmingTokenizerLanguage.Bulgarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "catalan")) return MicrosoftStemmingTokenizerLanguage.Catalan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "croatian")) return MicrosoftStemmingTokenizerLanguage.Croatian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "czech")) return MicrosoftStemmingTokenizerLanguage.Czech; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "danish")) return MicrosoftStemmingTokenizerLanguage.Danish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "dutch")) return MicrosoftStemmingTokenizerLanguage.Dutch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "english")) return MicrosoftStemmingTokenizerLanguage.English; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "estonian")) return MicrosoftStemmingTokenizerLanguage.Estonian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "finnish")) return MicrosoftStemmingTokenizerLanguage.Finnish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "french")) return MicrosoftStemmingTokenizerLanguage.French; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "german")) return MicrosoftStemmingTokenizerLanguage.German; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "greek")) return MicrosoftStemmingTokenizerLanguage.Greek; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "gujarati")) return MicrosoftStemmingTokenizerLanguage.Gujarati; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hebrew")) return MicrosoftStemmingTokenizerLanguage.Hebrew; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hindi")) return MicrosoftStemmingTokenizerLanguage.Hindi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hungarian")) return MicrosoftStemmingTokenizerLanguage.Hungarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "icelandic")) return MicrosoftStemmingTokenizerLanguage.Icelandic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "indonesian")) return MicrosoftStemmingTokenizerLanguage.Indonesian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "italian")) return MicrosoftStemmingTokenizerLanguage.Italian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "kannada")) return MicrosoftStemmingTokenizerLanguage.Kannada; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "latvian")) return MicrosoftStemmingTokenizerLanguage.Latvian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lithuanian")) return MicrosoftStemmingTokenizerLanguage.Lithuanian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "malay")) return MicrosoftStemmingTokenizerLanguage.Malay; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "malayalam")) return MicrosoftStemmingTokenizerLanguage.Malayalam; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "marathi")) return MicrosoftStemmingTokenizerLanguage.Marathi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "norwegianBokmaal")) return MicrosoftStemmingTokenizerLanguage.NorwegianBokmaal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "polish")) return MicrosoftStemmingTokenizerLanguage.Polish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "portuguese")) return MicrosoftStemmingTokenizerLanguage.Portuguese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "portugueseBrazilian")) return MicrosoftStemmingTokenizerLanguage.PortugueseBrazilian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "punjabi")) return MicrosoftStemmingTokenizerLanguage.Punjabi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "romanian")) return MicrosoftStemmingTokenizerLanguage.Romanian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "russian")) return MicrosoftStemmingTokenizerLanguage.Russian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "serbianCyrillic")) return MicrosoftStemmingTokenizerLanguage.SerbianCyrillic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "serbianLatin")) return MicrosoftStemmingTokenizerLanguage.SerbianLatin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "slovak")) return MicrosoftStemmingTokenizerLanguage.Slovak; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "slovenian")) return MicrosoftStemmingTokenizerLanguage.Slovenian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "spanish")) return MicrosoftStemmingTokenizerLanguage.Spanish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "swedish")) return MicrosoftStemmingTokenizerLanguage.Swedish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "tamil")) return MicrosoftStemmingTokenizerLanguage.Tamil; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "telugu")) return MicrosoftStemmingTokenizerLanguage.Telugu; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "turkish")) return MicrosoftStemmingTokenizerLanguage.Turkish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ukrainian")) return MicrosoftStemmingTokenizerLanguage.Ukrainian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "urdu")) return MicrosoftStemmingTokenizerLanguage.Urdu; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftStemmingTokenizerLanguage value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftTokenizerLanguage.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftTokenizerLanguage.Serialization.cs index aebb02d24d12c..69c7798a2bfa0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftTokenizerLanguage.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftTokenizerLanguage.Serialization.cs @@ -60,48 +60,48 @@ internal static partial class MicrosoftTokenizerLanguageExtensions public static MicrosoftTokenizerLanguage ToMicrosoftTokenizerLanguage(this string value) { - if (string.Equals(value, "bangla", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Bangla; - if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Bulgarian; - if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Catalan; - if (string.Equals(value, "chineseSimplified", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.ChineseSimplified; - if (string.Equals(value, "chineseTraditional", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.ChineseTraditional; - if (string.Equals(value, "croatian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Croatian; - if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Czech; - if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Danish; - if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Dutch; - if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.English; - if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.French; - if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.German; - if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Greek; - if (string.Equals(value, "gujarati", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Gujarati; - if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Hindi; - if (string.Equals(value, "icelandic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Icelandic; - if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Indonesian; - if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Italian; - if (string.Equals(value, "japanese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Japanese; - if (string.Equals(value, "kannada", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Kannada; - if (string.Equals(value, "korean", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Korean; - if (string.Equals(value, "malay", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Malay; - if (string.Equals(value, "malayalam", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Malayalam; - if (string.Equals(value, "marathi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Marathi; - if (string.Equals(value, "norwegianBokmaal", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.NorwegianBokmaal; - if (string.Equals(value, "polish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Polish; - if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Portuguese; - if (string.Equals(value, "portugueseBrazilian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.PortugueseBrazilian; - if (string.Equals(value, "punjabi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Punjabi; - if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Romanian; - if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Russian; - if (string.Equals(value, "serbianCyrillic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.SerbianCyrillic; - if (string.Equals(value, "serbianLatin", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.SerbianLatin; - if (string.Equals(value, "slovenian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Slovenian; - if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Spanish; - if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Swedish; - if (string.Equals(value, "tamil", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Tamil; - if (string.Equals(value, "telugu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Telugu; - if (string.Equals(value, "thai", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Thai; - if (string.Equals(value, "ukrainian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Ukrainian; - if (string.Equals(value, "urdu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Urdu; - if (string.Equals(value, "vietnamese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLanguage.Vietnamese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "bangla")) return MicrosoftTokenizerLanguage.Bangla; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "bulgarian")) return MicrosoftTokenizerLanguage.Bulgarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "catalan")) return MicrosoftTokenizerLanguage.Catalan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "chineseSimplified")) return MicrosoftTokenizerLanguage.ChineseSimplified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "chineseTraditional")) return MicrosoftTokenizerLanguage.ChineseTraditional; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "croatian")) return MicrosoftTokenizerLanguage.Croatian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "czech")) return MicrosoftTokenizerLanguage.Czech; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "danish")) return MicrosoftTokenizerLanguage.Danish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "dutch")) return MicrosoftTokenizerLanguage.Dutch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "english")) return MicrosoftTokenizerLanguage.English; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "french")) return MicrosoftTokenizerLanguage.French; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "german")) return MicrosoftTokenizerLanguage.German; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "greek")) return MicrosoftTokenizerLanguage.Greek; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "gujarati")) return MicrosoftTokenizerLanguage.Gujarati; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hindi")) return MicrosoftTokenizerLanguage.Hindi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "icelandic")) return MicrosoftTokenizerLanguage.Icelandic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "indonesian")) return MicrosoftTokenizerLanguage.Indonesian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "italian")) return MicrosoftTokenizerLanguage.Italian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "japanese")) return MicrosoftTokenizerLanguage.Japanese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "kannada")) return MicrosoftTokenizerLanguage.Kannada; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "korean")) return MicrosoftTokenizerLanguage.Korean; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "malay")) return MicrosoftTokenizerLanguage.Malay; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "malayalam")) return MicrosoftTokenizerLanguage.Malayalam; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "marathi")) return MicrosoftTokenizerLanguage.Marathi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "norwegianBokmaal")) return MicrosoftTokenizerLanguage.NorwegianBokmaal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "polish")) return MicrosoftTokenizerLanguage.Polish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "portuguese")) return MicrosoftTokenizerLanguage.Portuguese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "portugueseBrazilian")) return MicrosoftTokenizerLanguage.PortugueseBrazilian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "punjabi")) return MicrosoftTokenizerLanguage.Punjabi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "romanian")) return MicrosoftTokenizerLanguage.Romanian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "russian")) return MicrosoftTokenizerLanguage.Russian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "serbianCyrillic")) return MicrosoftTokenizerLanguage.SerbianCyrillic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "serbianLatin")) return MicrosoftTokenizerLanguage.SerbianLatin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "slovenian")) return MicrosoftTokenizerLanguage.Slovenian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "spanish")) return MicrosoftTokenizerLanguage.Spanish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "swedish")) return MicrosoftTokenizerLanguage.Swedish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "tamil")) return MicrosoftTokenizerLanguage.Tamil; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "telugu")) return MicrosoftTokenizerLanguage.Telugu; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "thai")) return MicrosoftTokenizerLanguage.Thai; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ukrainian")) return MicrosoftTokenizerLanguage.Ukrainian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "urdu")) return MicrosoftTokenizerLanguage.Urdu; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "vietnamese")) return MicrosoftTokenizerLanguage.Vietnamese; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftTokenizerLanguage value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PhoneticEncoder.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PhoneticEncoder.Serialization.cs index 3f1fb4e204366..36b8215fd6e2d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PhoneticEncoder.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PhoneticEncoder.Serialization.cs @@ -29,17 +29,17 @@ internal static partial class PhoneticEncoderExtensions public static PhoneticEncoder ToPhoneticEncoder(this string value) { - if (string.Equals(value, "metaphone", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.Metaphone; - if (string.Equals(value, "doubleMetaphone", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.DoubleMetaphone; - if (string.Equals(value, "soundex", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.Soundex; - if (string.Equals(value, "refinedSoundex", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.RefinedSoundex; - if (string.Equals(value, "caverphone1", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.Caverphone1; - if (string.Equals(value, "caverphone2", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.Caverphone2; - if (string.Equals(value, "cologne", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.Cologne; - if (string.Equals(value, "nysiis", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.Nysiis; - if (string.Equals(value, "koelnerPhonetik", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.KoelnerPhonetik; - if (string.Equals(value, "haasePhonetik", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.HaasePhonetik; - if (string.Equals(value, "beiderMorse", StringComparison.InvariantCultureIgnoreCase)) return PhoneticEncoder.BeiderMorse; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "metaphone")) return PhoneticEncoder.Metaphone; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "doubleMetaphone")) return PhoneticEncoder.DoubleMetaphone; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "soundex")) return PhoneticEncoder.Soundex; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "refinedSoundex")) return PhoneticEncoder.RefinedSoundex; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "caverphone1")) return PhoneticEncoder.Caverphone1; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "caverphone2")) return PhoneticEncoder.Caverphone2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "cologne")) return PhoneticEncoder.Cologne; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "nysiis")) return PhoneticEncoder.Nysiis; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "koelnerPhonetik")) return PhoneticEncoder.KoelnerPhonetik; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "haasePhonetik")) return PhoneticEncoder.HaasePhonetik; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "beiderMorse")) return PhoneticEncoder.BeiderMorse; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PhoneticEncoder value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.Serialization.cs index 2e14207c9230a..fa763b68d5dae 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class ScoringFunctionAggregationExtensions public static ScoringFunctionAggregation ToScoringFunctionAggregation(this string value) { - if (string.Equals(value, "sum", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionAggregation.Sum; - if (string.Equals(value, "average", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionAggregation.Average; - if (string.Equals(value, "minimum", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionAggregation.Minimum; - if (string.Equals(value, "maximum", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionAggregation.Maximum; - if (string.Equals(value, "firstMatching", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionAggregation.FirstMatching; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "sum")) return ScoringFunctionAggregation.Sum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "average")) return ScoringFunctionAggregation.Average; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimum")) return ScoringFunctionAggregation.Minimum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "maximum")) return ScoringFunctionAggregation.Maximum; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "firstMatching")) return ScoringFunctionAggregation.FirstMatching; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ScoringFunctionAggregation value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionInterpolation.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionInterpolation.Serialization.cs index 1fb941c3d258d..b24a148109ba0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionInterpolation.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionInterpolation.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class ScoringFunctionInterpolationExtensions public static ScoringFunctionInterpolation ToScoringFunctionInterpolation(this string value) { - if (string.Equals(value, "linear", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionInterpolation.Linear; - if (string.Equals(value, "constant", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionInterpolation.Constant; - if (string.Equals(value, "quadratic", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionInterpolation.Quadratic; - if (string.Equals(value, "logarithmic", StringComparison.InvariantCultureIgnoreCase)) return ScoringFunctionInterpolation.Logarithmic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "linear")) return ScoringFunctionInterpolation.Linear; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "constant")) return ScoringFunctionInterpolation.Constant; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "quadratic")) return ScoringFunctionInterpolation.Quadratic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "logarithmic")) return ScoringFunctionInterpolation.Logarithmic; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ScoringFunctionInterpolation value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringStatistics.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringStatistics.Serialization.cs index eb7bdc45465f7..7b4d9276bf10b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringStatistics.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringStatistics.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ScoringStatisticsExtensions public static ScoringStatistics ToScoringStatistics(this string value) { - if (string.Equals(value, "local", StringComparison.InvariantCultureIgnoreCase)) return ScoringStatistics.Local; - if (string.Equals(value, "global", StringComparison.InvariantCultureIgnoreCase)) return ScoringStatistics.Global; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "local")) return ScoringStatistics.Local; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "global")) return ScoringStatistics.Global; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ScoringStatistics value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchMode.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchMode.Serialization.cs index 7b53e3971fa95..d9ca59cbfe576 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchMode.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SearchModeExtensions public static SearchMode ToSearchMode(this string value) { - if (string.Equals(value, "any", StringComparison.InvariantCultureIgnoreCase)) return SearchMode.Any; - if (string.Equals(value, "all", StringComparison.InvariantCultureIgnoreCase)) return SearchMode.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "any")) return SearchMode.Any; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "all")) return SearchMode.All; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchMode value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryType.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryType.Serialization.cs index 3503d0c060fff..f589d44abd48b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryType.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SearchQueryTypeExtensions public static SearchQueryType ToSearchQueryType(this string value) { - if (string.Equals(value, "simple", StringComparison.InvariantCultureIgnoreCase)) return SearchQueryType.Simple; - if (string.Equals(value, "full", StringComparison.InvariantCultureIgnoreCase)) return SearchQueryType.Full; - if (string.Equals(value, "semantic", StringComparison.InvariantCultureIgnoreCase)) return SearchQueryType.Semantic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "simple")) return SearchQueryType.Simple; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "full")) return SearchQueryType.Full; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "semantic")) return SearchQueryType.Semantic; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SearchQueryType value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SnowballTokenFilterLanguage.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SnowballTokenFilterLanguage.Serialization.cs index c8d9affe2b4d0..37f94538d2252 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SnowballTokenFilterLanguage.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SnowballTokenFilterLanguage.Serialization.cs @@ -40,28 +40,28 @@ internal static partial class SnowballTokenFilterLanguageExtensions public static SnowballTokenFilterLanguage ToSnowballTokenFilterLanguage(this string value) { - if (string.Equals(value, "armenian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Armenian; - if (string.Equals(value, "basque", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Basque; - if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Catalan; - if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Danish; - if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Dutch; - if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.English; - if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Finnish; - if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.French; - if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.German; - if (string.Equals(value, "german2", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.German2; - if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Hungarian; - if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Italian; - if (string.Equals(value, "kp", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Kp; - if (string.Equals(value, "lovins", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Lovins; - if (string.Equals(value, "norwegian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Norwegian; - if (string.Equals(value, "porter", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Porter; - if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Portuguese; - if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Romanian; - if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Russian; - if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Spanish; - if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Swedish; - if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLanguage.Turkish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "armenian")) return SnowballTokenFilterLanguage.Armenian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "basque")) return SnowballTokenFilterLanguage.Basque; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "catalan")) return SnowballTokenFilterLanguage.Catalan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "danish")) return SnowballTokenFilterLanguage.Danish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "dutch")) return SnowballTokenFilterLanguage.Dutch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "english")) return SnowballTokenFilterLanguage.English; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "finnish")) return SnowballTokenFilterLanguage.Finnish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "french")) return SnowballTokenFilterLanguage.French; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "german")) return SnowballTokenFilterLanguage.German; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "german2")) return SnowballTokenFilterLanguage.German2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hungarian")) return SnowballTokenFilterLanguage.Hungarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "italian")) return SnowballTokenFilterLanguage.Italian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "kp")) return SnowballTokenFilterLanguage.Kp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lovins")) return SnowballTokenFilterLanguage.Lovins; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "norwegian")) return SnowballTokenFilterLanguage.Norwegian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "porter")) return SnowballTokenFilterLanguage.Porter; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "portuguese")) return SnowballTokenFilterLanguage.Portuguese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "romanian")) return SnowballTokenFilterLanguage.Romanian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "russian")) return SnowballTokenFilterLanguage.Russian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "spanish")) return SnowballTokenFilterLanguage.Spanish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "swedish")) return SnowballTokenFilterLanguage.Swedish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "turkish")) return SnowballTokenFilterLanguage.Turkish; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SnowballTokenFilterLanguage value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerTokenFilterLanguage.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerTokenFilterLanguage.Serialization.cs index 9c98031702fc3..fd41b82b8fbf1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerTokenFilterLanguage.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerTokenFilterLanguage.Serialization.cs @@ -72,60 +72,60 @@ internal static partial class StemmerTokenFilterLanguageExtensions public static StemmerTokenFilterLanguage ToStemmerTokenFilterLanguage(this string value) { - if (string.Equals(value, "arabic", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Arabic; - if (string.Equals(value, "armenian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Armenian; - if (string.Equals(value, "basque", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Basque; - if (string.Equals(value, "brazilian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Brazilian; - if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Bulgarian; - if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Catalan; - if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Czech; - if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Danish; - if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Dutch; - if (string.Equals(value, "dutchKp", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.DutchKp; - if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.English; - if (string.Equals(value, "lightEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightEnglish; - if (string.Equals(value, "minimalEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.MinimalEnglish; - if (string.Equals(value, "possessiveEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.PossessiveEnglish; - if (string.Equals(value, "porter2", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Porter2; - if (string.Equals(value, "lovins", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Lovins; - if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Finnish; - if (string.Equals(value, "lightFinnish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightFinnish; - if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.French; - if (string.Equals(value, "lightFrench", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightFrench; - if (string.Equals(value, "minimalFrench", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.MinimalFrench; - if (string.Equals(value, "galician", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Galician; - if (string.Equals(value, "minimalGalician", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.MinimalGalician; - if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.German; - if (string.Equals(value, "german2", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.German2; - if (string.Equals(value, "lightGerman", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightGerman; - if (string.Equals(value, "minimalGerman", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.MinimalGerman; - if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Greek; - if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Hindi; - if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Hungarian; - if (string.Equals(value, "lightHungarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightHungarian; - if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Indonesian; - if (string.Equals(value, "irish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Irish; - if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Italian; - if (string.Equals(value, "lightItalian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightItalian; - if (string.Equals(value, "sorani", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Sorani; - if (string.Equals(value, "latvian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Latvian; - if (string.Equals(value, "norwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Norwegian; - if (string.Equals(value, "lightNorwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightNorwegian; - if (string.Equals(value, "minimalNorwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.MinimalNorwegian; - if (string.Equals(value, "lightNynorsk", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightNynorsk; - if (string.Equals(value, "minimalNynorsk", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.MinimalNynorsk; - if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Portuguese; - if (string.Equals(value, "lightPortuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightPortuguese; - if (string.Equals(value, "minimalPortuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.MinimalPortuguese; - if (string.Equals(value, "portugueseRslp", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.PortugueseRslp; - if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Romanian; - if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Russian; - if (string.Equals(value, "lightRussian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightRussian; - if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Spanish; - if (string.Equals(value, "lightSpanish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightSpanish; - if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Swedish; - if (string.Equals(value, "lightSwedish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.LightSwedish; - if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLanguage.Turkish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "arabic")) return StemmerTokenFilterLanguage.Arabic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "armenian")) return StemmerTokenFilterLanguage.Armenian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "basque")) return StemmerTokenFilterLanguage.Basque; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "brazilian")) return StemmerTokenFilterLanguage.Brazilian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "bulgarian")) return StemmerTokenFilterLanguage.Bulgarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "catalan")) return StemmerTokenFilterLanguage.Catalan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "czech")) return StemmerTokenFilterLanguage.Czech; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "danish")) return StemmerTokenFilterLanguage.Danish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "dutch")) return StemmerTokenFilterLanguage.Dutch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "dutchKp")) return StemmerTokenFilterLanguage.DutchKp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "english")) return StemmerTokenFilterLanguage.English; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightEnglish")) return StemmerTokenFilterLanguage.LightEnglish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimalEnglish")) return StemmerTokenFilterLanguage.MinimalEnglish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "possessiveEnglish")) return StemmerTokenFilterLanguage.PossessiveEnglish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "porter2")) return StemmerTokenFilterLanguage.Porter2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lovins")) return StemmerTokenFilterLanguage.Lovins; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "finnish")) return StemmerTokenFilterLanguage.Finnish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightFinnish")) return StemmerTokenFilterLanguage.LightFinnish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "french")) return StemmerTokenFilterLanguage.French; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightFrench")) return StemmerTokenFilterLanguage.LightFrench; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimalFrench")) return StemmerTokenFilterLanguage.MinimalFrench; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "galician")) return StemmerTokenFilterLanguage.Galician; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimalGalician")) return StemmerTokenFilterLanguage.MinimalGalician; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "german")) return StemmerTokenFilterLanguage.German; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "german2")) return StemmerTokenFilterLanguage.German2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightGerman")) return StemmerTokenFilterLanguage.LightGerman; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimalGerman")) return StemmerTokenFilterLanguage.MinimalGerman; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "greek")) return StemmerTokenFilterLanguage.Greek; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hindi")) return StemmerTokenFilterLanguage.Hindi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hungarian")) return StemmerTokenFilterLanguage.Hungarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightHungarian")) return StemmerTokenFilterLanguage.LightHungarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "indonesian")) return StemmerTokenFilterLanguage.Indonesian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "irish")) return StemmerTokenFilterLanguage.Irish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "italian")) return StemmerTokenFilterLanguage.Italian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightItalian")) return StemmerTokenFilterLanguage.LightItalian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "sorani")) return StemmerTokenFilterLanguage.Sorani; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "latvian")) return StemmerTokenFilterLanguage.Latvian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "norwegian")) return StemmerTokenFilterLanguage.Norwegian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightNorwegian")) return StemmerTokenFilterLanguage.LightNorwegian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimalNorwegian")) return StemmerTokenFilterLanguage.MinimalNorwegian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightNynorsk")) return StemmerTokenFilterLanguage.LightNynorsk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimalNynorsk")) return StemmerTokenFilterLanguage.MinimalNynorsk; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "portuguese")) return StemmerTokenFilterLanguage.Portuguese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightPortuguese")) return StemmerTokenFilterLanguage.LightPortuguese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimalPortuguese")) return StemmerTokenFilterLanguage.MinimalPortuguese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "portugueseRslp")) return StemmerTokenFilterLanguage.PortugueseRslp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "romanian")) return StemmerTokenFilterLanguage.Romanian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "russian")) return StemmerTokenFilterLanguage.Russian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightRussian")) return StemmerTokenFilterLanguage.LightRussian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "spanish")) return StemmerTokenFilterLanguage.Spanish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightSpanish")) return StemmerTokenFilterLanguage.LightSpanish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "swedish")) return StemmerTokenFilterLanguage.Swedish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "lightSwedish")) return StemmerTokenFilterLanguage.LightSwedish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "turkish")) return StemmerTokenFilterLanguage.Turkish; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StemmerTokenFilterLanguage value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsList.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsList.Serialization.cs index 76e0132fa5b5d..fb33087015cf0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsList.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsList.Serialization.cs @@ -49,37 +49,37 @@ internal static partial class StopwordsListExtensions public static StopwordsList ToStopwordsList(this string value) { - if (string.Equals(value, "arabic", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Arabic; - if (string.Equals(value, "armenian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Armenian; - if (string.Equals(value, "basque", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Basque; - if (string.Equals(value, "brazilian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Brazilian; - if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Bulgarian; - if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Catalan; - if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Czech; - if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Danish; - if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Dutch; - if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.English; - if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Finnish; - if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.French; - if (string.Equals(value, "galician", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Galician; - if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.German; - if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Greek; - if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Hindi; - if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Hungarian; - if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Indonesian; - if (string.Equals(value, "irish", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Irish; - if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Italian; - if (string.Equals(value, "latvian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Latvian; - if (string.Equals(value, "norwegian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Norwegian; - if (string.Equals(value, "persian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Persian; - if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Portuguese; - if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Romanian; - if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Russian; - if (string.Equals(value, "sorani", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Sorani; - if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Spanish; - if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Swedish; - if (string.Equals(value, "thai", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Thai; - if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return StopwordsList.Turkish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "arabic")) return StopwordsList.Arabic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "armenian")) return StopwordsList.Armenian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "basque")) return StopwordsList.Basque; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "brazilian")) return StopwordsList.Brazilian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "bulgarian")) return StopwordsList.Bulgarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "catalan")) return StopwordsList.Catalan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "czech")) return StopwordsList.Czech; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "danish")) return StopwordsList.Danish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "dutch")) return StopwordsList.Dutch; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "english")) return StopwordsList.English; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "finnish")) return StopwordsList.Finnish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "french")) return StopwordsList.French; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "galician")) return StopwordsList.Galician; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "german")) return StopwordsList.German; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "greek")) return StopwordsList.Greek; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hindi")) return StopwordsList.Hindi; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hungarian")) return StopwordsList.Hungarian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "indonesian")) return StopwordsList.Indonesian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "irish")) return StopwordsList.Irish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "italian")) return StopwordsList.Italian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "latvian")) return StopwordsList.Latvian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "norwegian")) return StopwordsList.Norwegian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "persian")) return StopwordsList.Persian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "portuguese")) return StopwordsList.Portuguese; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "romanian")) return StopwordsList.Romanian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "russian")) return StopwordsList.Russian; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "sorani")) return StopwordsList.Sorani; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "spanish")) return StopwordsList.Spanish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "swedish")) return StopwordsList.Swedish; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "thai")) return StopwordsList.Thai; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "turkish")) return StopwordsList.Turkish; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StopwordsList value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/TokenCharacterKind.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/TokenCharacterKind.Serialization.cs index e516c6b62776c..e676e936b5429 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/TokenCharacterKind.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/TokenCharacterKind.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class TokenCharacterKindExtensions public static TokenCharacterKind ToTokenCharacterKind(this string value) { - if (string.Equals(value, "letter", StringComparison.InvariantCultureIgnoreCase)) return TokenCharacterKind.Letter; - if (string.Equals(value, "digit", StringComparison.InvariantCultureIgnoreCase)) return TokenCharacterKind.Digit; - if (string.Equals(value, "whitespace", StringComparison.InvariantCultureIgnoreCase)) return TokenCharacterKind.Whitespace; - if (string.Equals(value, "punctuation", StringComparison.InvariantCultureIgnoreCase)) return TokenCharacterKind.Punctuation; - if (string.Equals(value, "symbol", StringComparison.InvariantCultureIgnoreCase)) return TokenCharacterKind.Symbol; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "letter")) return TokenCharacterKind.Letter; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "digit")) return TokenCharacterKind.Digit; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "whitespace")) return TokenCharacterKind.Whitespace; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "punctuation")) return TokenCharacterKind.Punctuation; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "symbol")) return TokenCharacterKind.Symbol; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TokenCharacterKind value."); } } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertsSuppressionRuleState.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertsSuppressionRuleState.Serialization.cs index ecab80ae599ba..d979f92247e88 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertsSuppressionRuleState.Serialization.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertsSuppressionRuleState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SecurityAlertsSuppressionRuleStateExtensions public static SecurityAlertsSuppressionRuleState ToSecurityAlertsSuppressionRuleState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SecurityAlertsSuppressionRuleState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SecurityAlertsSuppressionRuleState.Disabled; - if (string.Equals(value, "Expired", StringComparison.InvariantCultureIgnoreCase)) return SecurityAlertsSuppressionRuleState.Expired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SecurityAlertsSuppressionRuleState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SecurityAlertsSuppressionRuleState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Expired")) return SecurityAlertsSuppressionRuleState.Expired; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityAlertsSuppressionRuleState value."); } } diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleTriggerOperator.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleTriggerOperator.Serialization.cs index fdef00e868f2a..7497d2a4ebadb 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleTriggerOperator.Serialization.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleTriggerOperator.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class SecurityInsightsAlertRuleTriggerOperatorExtensions public static SecurityInsightsAlertRuleTriggerOperator ToSecurityInsightsAlertRuleTriggerOperator(this string value) { - if (string.Equals(value, "GreaterThan", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsAlertRuleTriggerOperator.GreaterThan; - if (string.Equals(value, "LessThan", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsAlertRuleTriggerOperator.LessThan; - if (string.Equals(value, "Equal", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsAlertRuleTriggerOperator.Equal; - if (string.Equals(value, "NotEqual", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsAlertRuleTriggerOperator.NotEqual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GreaterThan")) return SecurityInsightsAlertRuleTriggerOperator.GreaterThan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LessThan")) return SecurityInsightsAlertRuleTriggerOperator.LessThan; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Equal")) return SecurityInsightsAlertRuleTriggerOperator.Equal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotEqual")) return SecurityInsightsAlertRuleTriggerOperator.NotEqual; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityInsightsAlertRuleTriggerOperator value."); } } diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsHostOSFamily.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsHostOSFamily.Serialization.cs index 3bc3015a90d0d..d3cdd36772e44 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsHostOSFamily.Serialization.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsHostOSFamily.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SecurityInsightsHostOSFamilyExtensions public static SecurityInsightsHostOSFamily ToSecurityInsightsHostOSFamily(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsHostOSFamily.Unknown; - if (string.Equals(value, "Linux", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsHostOSFamily.Linux; - if (string.Equals(value, "Windows", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsHostOSFamily.Windows; - if (string.Equals(value, "Android", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsHostOSFamily.Android; - if (string.Equals(value, "IOS", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsHostOSFamily.Ios; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return SecurityInsightsHostOSFamily.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Linux")) return SecurityInsightsHostOSFamily.Linux; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Windows")) return SecurityInsightsHostOSFamily.Windows; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Android")) return SecurityInsightsHostOSFamily.Android; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IOS")) return SecurityInsightsHostOSFamily.Ios; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityInsightsHostOSFamily value."); } } diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageDeliveryAction.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageDeliveryAction.Serialization.cs index 5374ecdf2ac34..ed5aa5d33b4a6 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageDeliveryAction.Serialization.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageDeliveryAction.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SecurityInsightsMailMessageDeliveryActionExtension public static SecurityInsightsMailMessageDeliveryAction ToSecurityInsightsMailMessageDeliveryAction(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryAction.Unknown; - if (string.Equals(value, "DeliveredAsSpam", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryAction.DeliveredAsSpam; - if (string.Equals(value, "Delivered", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryAction.Delivered; - if (string.Equals(value, "Blocked", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryAction.Blocked; - if (string.Equals(value, "Replaced", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryAction.Replaced; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return SecurityInsightsMailMessageDeliveryAction.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DeliveredAsSpam")) return SecurityInsightsMailMessageDeliveryAction.DeliveredAsSpam; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Delivered")) return SecurityInsightsMailMessageDeliveryAction.Delivered; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Blocked")) return SecurityInsightsMailMessageDeliveryAction.Blocked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Replaced")) return SecurityInsightsMailMessageDeliveryAction.Replaced; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityInsightsMailMessageDeliveryAction value."); } } diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageDeliveryLocation.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageDeliveryLocation.Serialization.cs index 24f39ed178d11..eb88b39c067e8 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageDeliveryLocation.Serialization.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageDeliveryLocation.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class SecurityInsightsMailMessageDeliveryLocationExtensi public static SecurityInsightsMailMessageDeliveryLocation ToSecurityInsightsMailMessageDeliveryLocation(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.Unknown; - if (string.Equals(value, "Inbox", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.Inbox; - if (string.Equals(value, "JunkFolder", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.JunkFolder; - if (string.Equals(value, "DeletedFolder", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.DeletedFolder; - if (string.Equals(value, "Quarantine", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.Quarantine; - if (string.Equals(value, "External", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.External; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.Failed; - if (string.Equals(value, "Dropped", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.Dropped; - if (string.Equals(value, "Forwarded", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsMailMessageDeliveryLocation.Forwarded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return SecurityInsightsMailMessageDeliveryLocation.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Inbox")) return SecurityInsightsMailMessageDeliveryLocation.Inbox; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "JunkFolder")) return SecurityInsightsMailMessageDeliveryLocation.JunkFolder; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DeletedFolder")) return SecurityInsightsMailMessageDeliveryLocation.DeletedFolder; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Quarantine")) return SecurityInsightsMailMessageDeliveryLocation.Quarantine; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "External")) return SecurityInsightsMailMessageDeliveryLocation.External; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return SecurityInsightsMailMessageDeliveryLocation.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Dropped")) return SecurityInsightsMailMessageDeliveryLocation.Dropped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Forwarded")) return SecurityInsightsMailMessageDeliveryLocation.Forwarded; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityInsightsMailMessageDeliveryLocation value."); } } diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsProcessElevationToken.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsProcessElevationToken.Serialization.cs index c1019a15c0eff..fb0e2b4c3b241 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsProcessElevationToken.Serialization.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsProcessElevationToken.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SecurityInsightsProcessElevationTokenExtensions public static SecurityInsightsProcessElevationToken ToSecurityInsightsProcessElevationToken(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsProcessElevationToken.Default; - if (string.Equals(value, "Full", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsProcessElevationToken.Full; - if (string.Equals(value, "Limited", StringComparison.InvariantCultureIgnoreCase)) return SecurityInsightsProcessElevationToken.Limited; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return SecurityInsightsProcessElevationToken.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Full")) return SecurityInsightsProcessElevationToken.Full; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Limited")) return SecurityInsightsProcessElevationToken.Limited; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityInsightsProcessElevationToken value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusAccessKeyType.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusAccessKeyType.Serialization.cs index 35548e9e4515f..8c33fd5e0f178 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusAccessKeyType.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusAccessKeyType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ServiceBusAccessKeyTypeExtensions public static ServiceBusAccessKeyType ToServiceBusAccessKeyType(this string value) { - if (string.Equals(value, "PrimaryKey", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusAccessKeyType.PrimaryKey; - if (string.Equals(value, "SecondaryKey", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusAccessKeyType.SecondaryKey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PrimaryKey")) return ServiceBusAccessKeyType.PrimaryKey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SecondaryKey")) return ServiceBusAccessKeyType.SecondaryKey; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusAccessKeyType value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusAccessRight.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusAccessRight.Serialization.cs index 54cf921690c56..02898bebb8ed1 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusAccessRight.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusAccessRight.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ServiceBusAccessRightExtensions public static ServiceBusAccessRight ToServiceBusAccessRight(this string value) { - if (string.Equals(value, "Manage", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusAccessRight.Manage; - if (string.Equals(value, "Send", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusAccessRight.Send; - if (string.Equals(value, "Listen", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusAccessRight.Listen; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Manage")) return ServiceBusAccessRight.Manage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Send")) return ServiceBusAccessRight.Send; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Listen")) return ServiceBusAccessRight.Listen; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusAccessRight value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryProvisioningState.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryProvisioningState.Serialization.cs index 87c00dc422045..a163d8cda310a 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryProvisioningState.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryProvisioningState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ServiceBusDisasterRecoveryProvisioningStateExtensi public static ServiceBusDisasterRecoveryProvisioningState ToServiceBusDisasterRecoveryProvisioningState(this string value) { - if (string.Equals(value, "Accepted", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusDisasterRecoveryProvisioningState.Accepted; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusDisasterRecoveryProvisioningState.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusDisasterRecoveryProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accepted")) return ServiceBusDisasterRecoveryProvisioningState.Accepted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return ServiceBusDisasterRecoveryProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return ServiceBusDisasterRecoveryProvisioningState.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusDisasterRecoveryProvisioningState value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryRole.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryRole.Serialization.cs index 517fcdea79eae..aa68f23d125b8 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryRole.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryRole.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ServiceBusDisasterRecoveryRoleExtensions public static ServiceBusDisasterRecoveryRole ToServiceBusDisasterRecoveryRole(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusDisasterRecoveryRole.Primary; - if (string.Equals(value, "PrimaryNotReplicating", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusDisasterRecoveryRole.PrimaryNotReplicating; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusDisasterRecoveryRole.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return ServiceBusDisasterRecoveryRole.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PrimaryNotReplicating")) return ServiceBusDisasterRecoveryRole.PrimaryNotReplicating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return ServiceBusDisasterRecoveryRole.Secondary; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusDisasterRecoveryRole value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusFilterType.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusFilterType.Serialization.cs index 5423d4b89fb3c..36bec3b6e7db1 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusFilterType.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusFilterType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ServiceBusFilterTypeExtensions public static ServiceBusFilterType ToServiceBusFilterType(this string value) { - if (string.Equals(value, "SqlFilter", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusFilterType.SqlFilter; - if (string.Equals(value, "CorrelationFilter", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusFilterType.CorrelationFilter; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SqlFilter")) return ServiceBusFilterType.SqlFilter; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CorrelationFilter")) return ServiceBusFilterType.CorrelationFilter; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusFilterType value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusMessagingEntityStatus.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusMessagingEntityStatus.Serialization.cs index 4f7ecd2788e4f..ffa47b52a19db 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusMessagingEntityStatus.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusMessagingEntityStatus.Serialization.cs @@ -27,15 +27,15 @@ internal static partial class ServiceBusMessagingEntityStatusExtensions public static ServiceBusMessagingEntityStatus ToServiceBusMessagingEntityStatus(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.Unknown; - if (string.Equals(value, "Active", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.Active; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.Disabled; - if (string.Equals(value, "Restoring", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.Restoring; - if (string.Equals(value, "SendDisabled", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.SendDisabled; - if (string.Equals(value, "ReceiveDisabled", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.ReceiveDisabled; - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.Creating; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.Deleting; - if (string.Equals(value, "Renaming", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusMessagingEntityStatus.Renaming; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return ServiceBusMessagingEntityStatus.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Active")) return ServiceBusMessagingEntityStatus.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return ServiceBusMessagingEntityStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Restoring")) return ServiceBusMessagingEntityStatus.Restoring; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SendDisabled")) return ServiceBusMessagingEntityStatus.SendDisabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ReceiveDisabled")) return ServiceBusMessagingEntityStatus.ReceiveDisabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return ServiceBusMessagingEntityStatus.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return ServiceBusMessagingEntityStatus.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Renaming")) return ServiceBusMessagingEntityStatus.Renaming; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusMessagingEntityStatus value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNameUnavailableReason.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNameUnavailableReason.Serialization.cs index c98ea71ffe837..ca1a4128729e7 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNameUnavailableReason.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNameUnavailableReason.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class ServiceBusNameUnavailableReasonExtensions public static ServiceBusNameUnavailableReason ToServiceBusNameUnavailableReason(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusNameUnavailableReason.None; - if (string.Equals(value, "InvalidName", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusNameUnavailableReason.InvalidName; - if (string.Equals(value, "SubscriptionIsDisabled", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusNameUnavailableReason.SubscriptionIsDisabled; - if (string.Equals(value, "NameInUse", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusNameUnavailableReason.NameInUse; - if (string.Equals(value, "NameInLockdown", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusNameUnavailableReason.NameInLockdown; - if (string.Equals(value, "TooManyNamespaceInCurrentSubscription", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusNameUnavailableReason.TooManyNamespaceInCurrentSubscription; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return ServiceBusNameUnavailableReason.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InvalidName")) return ServiceBusNameUnavailableReason.InvalidName; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SubscriptionIsDisabled")) return ServiceBusNameUnavailableReason.SubscriptionIsDisabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NameInUse")) return ServiceBusNameUnavailableReason.NameInUse; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NameInLockdown")) return ServiceBusNameUnavailableReason.NameInLockdown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TooManyNamespaceInCurrentSubscription")) return ServiceBusNameUnavailableReason.TooManyNamespaceInCurrentSubscription; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusNameUnavailableReason value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSkuName.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSkuName.Serialization.cs index 6aaab1c0068aa..09f587d92dbf6 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSkuName.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSkuName.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ServiceBusSkuNameExtensions public static ServiceBusSkuName ToServiceBusSkuName(this string value) { - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusSkuName.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusSkuName.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusSkuName.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return ServiceBusSkuName.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return ServiceBusSkuName.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return ServiceBusSkuName.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusSkuName value."); } } diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSkuTier.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSkuTier.Serialization.cs index 52a0b4192e3e8..5c450350b2a17 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSkuTier.Serialization.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSkuTier.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ServiceBusSkuTierExtensions public static ServiceBusSkuTier ToServiceBusSkuTier(this string value) { - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusSkuTier.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusSkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return ServiceBusSkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return ServiceBusSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return ServiceBusSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return ServiceBusSkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ServiceBusSkuTier value."); } } diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/FrontendIPAddressVersion.Serialization.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/FrontendIPAddressVersion.Serialization.cs index b417e8137c7dc..7bfeef8c1afa5 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/FrontendIPAddressVersion.Serialization.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/FrontendIPAddressVersion.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FrontendIPAddressVersionExtensions public static FrontendIPAddressVersion ToFrontendIPAddressVersion(this string value) { - if (string.Equals(value, "IPv4", StringComparison.InvariantCultureIgnoreCase)) return FrontendIPAddressVersion.IPv4; - if (string.Equals(value, "IPv6", StringComparison.InvariantCultureIgnoreCase)) return FrontendIPAddressVersion.IPv6; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IPv4")) return FrontendIPAddressVersion.IPv4; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IPv6")) return FrontendIPAddressVersion.IPv6; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FrontendIPAddressVersion value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ActionRetryableState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ActionRetryableState.Serialization.cs index 1065f2e839ddb..982d37b2ee8d7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ActionRetryableState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ActionRetryableState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ActionRetryableStateExtensions public static ActionRetryableState ToActionRetryableState(this string value) { - if (string.Equals(value, "Yes", StringComparison.InvariantCultureIgnoreCase)) return ActionRetryableState.Yes; - if (string.Equals(value, "No", StringComparison.InvariantCultureIgnoreCase)) return ActionRetryableState.No; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Yes")) return ActionRetryableState.Yes; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "No")) return ActionRetryableState.No; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ActionRetryableState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AdvancedThreatProtectionState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AdvancedThreatProtectionState.Serialization.cs index af327b95742e2..6048a9de9241f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AdvancedThreatProtectionState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AdvancedThreatProtectionState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AdvancedThreatProtectionStateExtensions public static AdvancedThreatProtectionState ToAdvancedThreatProtectionState(this string value) { - if (string.Equals(value, "New", StringComparison.InvariantCultureIgnoreCase)) return AdvancedThreatProtectionState.New; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return AdvancedThreatProtectionState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return AdvancedThreatProtectionState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "New")) return AdvancedThreatProtectionState.New; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return AdvancedThreatProtectionState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return AdvancedThreatProtectionState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AdvancedThreatProtectionState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoExecuteStatus.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoExecuteStatus.Serialization.cs index 917faac7a9aa9..9c9305897378b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoExecuteStatus.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoExecuteStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AutoExecuteStatusExtensions public static AutoExecuteStatus ToAutoExecuteStatus(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return AutoExecuteStatus.Default; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return AutoExecuteStatus.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return AutoExecuteStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return AutoExecuteStatus.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return AutoExecuteStatus.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return AutoExecuteStatus.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutoExecuteStatus value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoExecuteStatusInheritedFrom.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoExecuteStatusInheritedFrom.Serialization.cs index 2d13ae27f773a..1c84f0761fd73 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoExecuteStatusInheritedFrom.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoExecuteStatusInheritedFrom.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class AutoExecuteStatusInheritedFromExtensions public static AutoExecuteStatusInheritedFrom ToAutoExecuteStatusInheritedFrom(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return AutoExecuteStatusInheritedFrom.Default; - if (string.Equals(value, "Subscription", StringComparison.InvariantCultureIgnoreCase)) return AutoExecuteStatusInheritedFrom.Subscription; - if (string.Equals(value, "Server", StringComparison.InvariantCultureIgnoreCase)) return AutoExecuteStatusInheritedFrom.Server; - if (string.Equals(value, "ElasticPool", StringComparison.InvariantCultureIgnoreCase)) return AutoExecuteStatusInheritedFrom.ElasticPool; - if (string.Equals(value, "Database", StringComparison.InvariantCultureIgnoreCase)) return AutoExecuteStatusInheritedFrom.Database; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return AutoExecuteStatusInheritedFrom.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Subscription")) return AutoExecuteStatusInheritedFrom.Subscription; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Server")) return AutoExecuteStatusInheritedFrom.Server; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ElasticPool")) return AutoExecuteStatusInheritedFrom.ElasticPool; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Database")) return AutoExecuteStatusInheritedFrom.Database; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutoExecuteStatusInheritedFrom value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningDisabledReason.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningDisabledReason.Serialization.cs index c60b34bebf774..0cd80e7996f27 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningDisabledReason.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningDisabledReason.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class AutomaticTuningDisabledReasonExtensions public static AutomaticTuningDisabledReason ToAutomaticTuningDisabledReason(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningDisabledReason.Default; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningDisabledReason.Disabled; - if (string.Equals(value, "AutoConfigured", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningDisabledReason.AutoConfigured; - if (string.Equals(value, "InheritedFromServer", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningDisabledReason.InheritedFromServer; - if (string.Equals(value, "QueryStoreOff", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningDisabledReason.QueryStoreOff; - if (string.Equals(value, "QueryStoreReadOnly", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningDisabledReason.QueryStoreReadOnly; - if (string.Equals(value, "NotSupported", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningDisabledReason.NotSupported; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return AutomaticTuningDisabledReason.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return AutomaticTuningDisabledReason.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AutoConfigured")) return AutomaticTuningDisabledReason.AutoConfigured; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InheritedFromServer")) return AutomaticTuningDisabledReason.InheritedFromServer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "QueryStoreOff")) return AutomaticTuningDisabledReason.QueryStoreOff; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "QueryStoreReadOnly")) return AutomaticTuningDisabledReason.QueryStoreReadOnly; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSupported")) return AutomaticTuningDisabledReason.NotSupported; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutomaticTuningDisabledReason value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningMode.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningMode.Serialization.cs index 8bf28ffff4e63..3175da70b67a8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningMode.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningMode.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class AutomaticTuningModeExtensions public static AutomaticTuningMode ToAutomaticTuningMode(this string value) { - if (string.Equals(value, "Unspecified", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningMode.Unspecified; - if (string.Equals(value, "Inherit", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningMode.Inherit; - if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningMode.Custom; - if (string.Equals(value, "Auto", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningMode.Auto; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unspecified")) return AutomaticTuningMode.Unspecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Inherit")) return AutomaticTuningMode.Inherit; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Custom")) return AutomaticTuningMode.Custom; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Auto")) return AutomaticTuningMode.Auto; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutomaticTuningMode value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptionModeActual.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptionModeActual.Serialization.cs index 782f1f45ff80e..749c562fea02c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptionModeActual.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptionModeActual.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AutomaticTuningOptionModeActualExtensions public static AutomaticTuningOptionModeActual ToAutomaticTuningOptionModeActual(this string value) { - if (string.Equals(value, "Off", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningOptionModeActual.Off; - if (string.Equals(value, "On", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningOptionModeActual.On; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Off")) return AutomaticTuningOptionModeActual.Off; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "On")) return AutomaticTuningOptionModeActual.On; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutomaticTuningOptionModeActual value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptionModeDesired.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptionModeDesired.Serialization.cs index 42e2483e30feb..74938bade2f00 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptionModeDesired.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptionModeDesired.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AutomaticTuningOptionModeDesiredExtensions public static AutomaticTuningOptionModeDesired ToAutomaticTuningOptionModeDesired(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningOptionModeDesired.Default; - if (string.Equals(value, "Off", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningOptionModeDesired.Off; - if (string.Equals(value, "On", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningOptionModeDesired.On; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return AutomaticTuningOptionModeDesired.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Off")) return AutomaticTuningOptionModeDesired.Off; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "On")) return AutomaticTuningOptionModeDesired.On; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutomaticTuningOptionModeDesired value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerMode.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerMode.Serialization.cs index 9d86b719a7fc3..7a07057bb9a12 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerMode.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AutomaticTuningServerModeExtensions public static AutomaticTuningServerMode ToAutomaticTuningServerMode(this string value) { - if (string.Equals(value, "Unspecified", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningServerMode.Unspecified; - if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningServerMode.Custom; - if (string.Equals(value, "Auto", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningServerMode.Auto; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unspecified")) return AutomaticTuningServerMode.Unspecified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Custom")) return AutomaticTuningServerMode.Custom; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Auto")) return AutomaticTuningServerMode.Auto; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutomaticTuningServerMode value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerReason.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerReason.Serialization.cs index 57e55a7d89550..7803038ae9e6b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerReason.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerReason.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AutomaticTuningServerReasonExtensions public static AutomaticTuningServerReason ToAutomaticTuningServerReason(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningServerReason.Default; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningServerReason.Disabled; - if (string.Equals(value, "AutoConfigured", StringComparison.InvariantCultureIgnoreCase)) return AutomaticTuningServerReason.AutoConfigured; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return AutomaticTuningServerReason.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return AutomaticTuningServerReason.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AutoConfigured")) return AutomaticTuningServerReason.AutoConfigured; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutomaticTuningServerReason value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BlobAuditingPolicyState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BlobAuditingPolicyState.Serialization.cs index 9b5afca0afdab..3258cc0bf8a8e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BlobAuditingPolicyState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BlobAuditingPolicyState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BlobAuditingPolicyStateExtensions public static BlobAuditingPolicyState ToBlobAuditingPolicyState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return BlobAuditingPolicyState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return BlobAuditingPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return BlobAuditingPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return BlobAuditingPolicyState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BlobAuditingPolicyState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingFunction.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingFunction.Serialization.cs index 5165e2b2bf4a6..4b81a29222303 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingFunction.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingFunction.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class DataMaskingFunctionExtensions public static DataMaskingFunction ToDataMaskingFunction(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingFunction.Default; - if (string.Equals(value, "CCN", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingFunction.Ccn; - if (string.Equals(value, "Email", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingFunction.Email; - if (string.Equals(value, "Number", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingFunction.Number; - if (string.Equals(value, "SSN", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingFunction.Ssn; - if (string.Equals(value, "Text", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingFunction.Text; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return DataMaskingFunction.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CCN")) return DataMaskingFunction.Ccn; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Email")) return DataMaskingFunction.Email; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Number")) return DataMaskingFunction.Number; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SSN")) return DataMaskingFunction.Ssn; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Text")) return DataMaskingFunction.Text; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataMaskingFunction value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRuleState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRuleState.Serialization.cs index ac25b844c61ec..4b6fd008a9006 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRuleState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRuleState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataMaskingRuleStateExtensions public static DataMaskingRuleState ToDataMaskingRuleState(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingRuleState.Disabled; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingRuleState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataMaskingRuleState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataMaskingRuleState.Enabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataMaskingRuleState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingState.Serialization.cs index 957f25919ec6c..4fa43bf811784 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DataMaskingStateExtensions public static DataMaskingState ToDataMaskingState(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingState.Disabled; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return DataMaskingState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataMaskingState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataMaskingState.Enabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataMaskingState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyState.Serialization.cs index 7286164a105b3..6497f9cf9f37b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class GeoBackupPolicyStateExtensions public static GeoBackupPolicyState ToGeoBackupPolicyState(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return GeoBackupPolicyState.Disabled; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return GeoBackupPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return GeoBackupPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return GeoBackupPolicyState.Enabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GeoBackupPolicyState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImplementationMethod.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImplementationMethod.Serialization.cs index 1b4902f7298a7..bc4b47c03a997 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImplementationMethod.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImplementationMethod.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ImplementationMethodExtensions public static ImplementationMethod ToImplementationMethod(this string value) { - if (string.Equals(value, "TSql", StringComparison.InvariantCultureIgnoreCase)) return ImplementationMethod.TSql; - if (string.Equals(value, "AzurePowerShell", StringComparison.InvariantCultureIgnoreCase)) return ImplementationMethod.AzurePowerShell; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TSql")) return ImplementationMethod.TSql; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzurePowerShell")) return ImplementationMethod.AzurePowerShell; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ImplementationMethod value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTargetGroupMembershipType.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTargetGroupMembershipType.Serialization.cs index 614468735dba0..2bd20e0797384 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTargetGroupMembershipType.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTargetGroupMembershipType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class JobTargetGroupMembershipTypeExtensions public static JobTargetGroupMembershipType ToJobTargetGroupMembershipType(this string value) { - if (string.Equals(value, "Include", StringComparison.InvariantCultureIgnoreCase)) return JobTargetGroupMembershipType.Include; - if (string.Equals(value, "Exclude", StringComparison.InvariantCultureIgnoreCase)) return JobTargetGroupMembershipType.Exclude; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Include")) return JobTargetGroupMembershipType.Include; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Exclude")) return JobTargetGroupMembershipType.Exclude; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown JobTargetGroupMembershipType value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadsState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadsState.Serialization.cs index 7fb42104b6e37..0de4f25781557 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadsState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadsState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LedgerDigestUploadsStateExtensions public static LedgerDigestUploadsState ToLedgerDigestUploadsState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return LedgerDigestUploadsState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return LedgerDigestUploadsState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return LedgerDigestUploadsState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return LedgerDigestUploadsState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LedgerDigestUploadsState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionInitiatedBy.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionInitiatedBy.Serialization.cs index 07d4c3ecf874b..3addcb374ebed 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionInitiatedBy.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionInitiatedBy.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RecommendedActionInitiatedByExtensions public static RecommendedActionInitiatedBy ToRecommendedActionInitiatedBy(this string value) { - if (string.Equals(value, "User", StringComparison.InvariantCultureIgnoreCase)) return RecommendedActionInitiatedBy.User; - if (string.Equals(value, "System", StringComparison.InvariantCultureIgnoreCase)) return RecommendedActionInitiatedBy.System; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "User")) return RecommendedActionInitiatedBy.User; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "System")) return RecommendedActionInitiatedBy.System; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RecommendedActionInitiatedBy value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateKind.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateKind.Serialization.cs index 461b4c3df2eb8..1555829f5e52f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateKind.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateKind.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RecommendedSensitivityLabelUpdateKindExtensions public static RecommendedSensitivityLabelUpdateKind ToRecommendedSensitivityLabelUpdateKind(this string value) { - if (string.Equals(value, "enable", StringComparison.InvariantCultureIgnoreCase)) return RecommendedSensitivityLabelUpdateKind.Enable; - if (string.Equals(value, "disable", StringComparison.InvariantCultureIgnoreCase)) return RecommendedSensitivityLabelUpdateKind.Disable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "enable")) return RecommendedSensitivityLabelUpdateKind.Enable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "disable")) return RecommendedSensitivityLabelUpdateKind.Disable; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RecommendedSensitivityLabelUpdateKind value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorePointType.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorePointType.Serialization.cs index 7344839b24575..48b6b5d7b1a76 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorePointType.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorePointType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RestorePointTypeExtensions public static RestorePointType ToRestorePointType(this string value) { - if (string.Equals(value, "CONTINUOUS", StringComparison.InvariantCultureIgnoreCase)) return RestorePointType.Continuous; - if (string.Equals(value, "DISCRETE", StringComparison.InvariantCultureIgnoreCase)) return RestorePointType.Discrete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CONTINUOUS")) return RestorePointType.Continuous; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DISCRETE")) return RestorePointType.Discrete; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RestorePointType value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityAlertPolicyState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityAlertPolicyState.Serialization.cs index 76ea6dd49aee8..d7e23c0c6d236 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityAlertPolicyState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityAlertPolicyState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SecurityAlertPolicyStateExtensions public static SecurityAlertPolicyState ToSecurityAlertPolicyState(this string value) { - if (string.Equals(value, "New", StringComparison.InvariantCultureIgnoreCase)) return SecurityAlertPolicyState.New; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SecurityAlertPolicyState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SecurityAlertPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "New")) return SecurityAlertPolicyState.New; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SecurityAlertPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SecurityAlertPolicyState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityAlertPolicyState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityAlertsPolicyState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityAlertsPolicyState.Serialization.cs index 84199dfa6866f..ed33c4df0520d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityAlertsPolicyState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityAlertsPolicyState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SecurityAlertsPolicyStateExtensions public static SecurityAlertsPolicyState ToSecurityAlertsPolicyState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SecurityAlertsPolicyState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SecurityAlertsPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SecurityAlertsPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SecurityAlertsPolicyState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityAlertsPolicyState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventType.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventType.Serialization.cs index 4fd228d98fa37..35d616ea39172 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventType.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SecurityEventTypeExtensions public static SecurityEventType ToSecurityEventType(this string value) { - if (string.Equals(value, "Undefined", StringComparison.InvariantCultureIgnoreCase)) return SecurityEventType.Undefined; - if (string.Equals(value, "SqlInjectionVulnerability", StringComparison.InvariantCultureIgnoreCase)) return SecurityEventType.SqlInjectionVulnerability; - if (string.Equals(value, "SqlInjectionExploit", StringComparison.InvariantCultureIgnoreCase)) return SecurityEventType.SqlInjectionExploit; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Undefined")) return SecurityEventType.Undefined; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SqlInjectionVulnerability")) return SecurityEventType.SqlInjectionVulnerability; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SqlInjectionExploit")) return SecurityEventType.SqlInjectionExploit; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SecurityEventType value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelRank.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelRank.Serialization.cs index 73b3ca4a91f0b..8f99052802550 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelRank.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelRank.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SensitivityLabelRankExtensions public static SensitivityLabelRank ToSensitivityLabelRank(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelRank.None; - if (string.Equals(value, "Low", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelRank.Low; - if (string.Equals(value, "Medium", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelRank.Medium; - if (string.Equals(value, "High", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelRank.High; - if (string.Equals(value, "Critical", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelRank.Critical; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return SensitivityLabelRank.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Low")) return SensitivityLabelRank.Low; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Medium")) return SensitivityLabelRank.Medium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "High")) return SensitivityLabelRank.High; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Critical")) return SensitivityLabelRank.Critical; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SensitivityLabelRank value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelSource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelSource.Serialization.cs index 22328fdc685f9..1ec0818933023 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelSource.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelSource.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SensitivityLabelSourceExtensions public static SensitivityLabelSource ToSensitivityLabelSource(this string value) { - if (string.Equals(value, "current", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelSource.Current; - if (string.Equals(value, "recommended", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelSource.Recommended; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "current")) return SensitivityLabelSource.Current; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "recommended")) return SensitivityLabelSource.Recommended; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SensitivityLabelSource value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateKind.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateKind.Serialization.cs index fc5fde49294cc..8811ba8712089 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateKind.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateKind.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SensitivityLabelUpdateKindExtensions public static SensitivityLabelUpdateKind ToSensitivityLabelUpdateKind(this string value) { - if (string.Equals(value, "set", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelUpdateKind.Set; - if (string.Equals(value, "remove", StringComparison.InvariantCultureIgnoreCase)) return SensitivityLabelUpdateKind.Remove; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "set")) return SensitivityLabelUpdateKind.Set; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "remove")) return SensitivityLabelUpdateKind.Remove; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SensitivityLabelUpdateKind value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlAdvisorStatus.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlAdvisorStatus.Serialization.cs index 56d036349079b..8b8d81d1118e7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlAdvisorStatus.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlAdvisorStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class SqlAdvisorStatusExtensions public static SqlAdvisorStatus ToSqlAdvisorStatus(this string value) { - if (string.Equals(value, "GA", StringComparison.InvariantCultureIgnoreCase)) return SqlAdvisorStatus.GA; - if (string.Equals(value, "PublicPreview", StringComparison.InvariantCultureIgnoreCase)) return SqlAdvisorStatus.PublicPreview; - if (string.Equals(value, "LimitedPublicPreview", StringComparison.InvariantCultureIgnoreCase)) return SqlAdvisorStatus.LimitedPublicPreview; - if (string.Equals(value, "PrivatePreview", StringComparison.InvariantCultureIgnoreCase)) return SqlAdvisorStatus.PrivatePreview; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GA")) return SqlAdvisorStatus.GA; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PublicPreview")) return SqlAdvisorStatus.PublicPreview; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LimitedPublicPreview")) return SqlAdvisorStatus.LimitedPublicPreview; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PrivatePreview")) return SqlAdvisorStatus.PrivatePreview; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SqlAdvisorStatus value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlCapabilityStatus.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlCapabilityStatus.Serialization.cs index 2f5fd2b1051c0..65305cc9abe03 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlCapabilityStatus.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlCapabilityStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class SqlCapabilityStatusExtensions public static SqlCapabilityStatus ToSqlCapabilityStatus(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return SqlCapabilityStatus.Default; - if (string.Equals(value, "Visible", StringComparison.InvariantCultureIgnoreCase)) return SqlCapabilityStatus.Visible; - if (string.Equals(value, "Available", StringComparison.InvariantCultureIgnoreCase)) return SqlCapabilityStatus.Available; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SqlCapabilityStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return SqlCapabilityStatus.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Visible")) return SqlCapabilityStatus.Visible; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Available")) return SqlCapabilityStatus.Available; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SqlCapabilityStatus.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SqlCapabilityStatus value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameUnavailableReason.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameUnavailableReason.Serialization.cs index a04b9e4fc8770..87b84fc21d49d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameUnavailableReason.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameUnavailableReason.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SqlNameUnavailableReasonExtensions public static SqlNameUnavailableReason ToSqlNameUnavailableReason(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return SqlNameUnavailableReason.Invalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return SqlNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return SqlNameUnavailableReason.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return SqlNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SqlNameUnavailableReason value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseReplicationRole.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseReplicationRole.Serialization.cs index 58a5dc68a21f3..dea6a37f13b54 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseReplicationRole.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseReplicationRole.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SqlServerDatabaseReplicationRoleExtensions public static SqlServerDatabaseReplicationRole ToSqlServerDatabaseReplicationRole(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return SqlServerDatabaseReplicationRole.Primary; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return SqlServerDatabaseReplicationRole.Secondary; - if (string.Equals(value, "NonReadableSecondary", StringComparison.InvariantCultureIgnoreCase)) return SqlServerDatabaseReplicationRole.NonReadableSecondary; - if (string.Equals(value, "Source", StringComparison.InvariantCultureIgnoreCase)) return SqlServerDatabaseReplicationRole.Source; - if (string.Equals(value, "Copy", StringComparison.InvariantCultureIgnoreCase)) return SqlServerDatabaseReplicationRole.Copy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return SqlServerDatabaseReplicationRole.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return SqlServerDatabaseReplicationRole.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NonReadableSecondary")) return SqlServerDatabaseReplicationRole.NonReadableSecondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Source")) return SqlServerDatabaseReplicationRole.Source; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Copy")) return SqlServerDatabaseReplicationRole.Copy; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SqlServerDatabaseReplicationRole value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobScheduleType.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobScheduleType.Serialization.cs index 9125f0f5a767a..2c64024eb751d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobScheduleType.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobScheduleType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SqlServerJobScheduleTypeExtensions public static SqlServerJobScheduleType ToSqlServerJobScheduleType(this string value) { - if (string.Equals(value, "Once", StringComparison.InvariantCultureIgnoreCase)) return SqlServerJobScheduleType.Once; - if (string.Equals(value, "Recurring", StringComparison.InvariantCultureIgnoreCase)) return SqlServerJobScheduleType.Recurring; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Once")) return SqlServerJobScheduleType.Once; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Recurring")) return SqlServerJobScheduleType.Recurring; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SqlServerJobScheduleType value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentState.Serialization.cs index 0e9a266f0c56a..10605e1d58e81 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SqlVulnerabilityAssessmentStateExtensions public static SqlVulnerabilityAssessmentState ToSqlVulnerabilityAssessmentState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SqlVulnerabilityAssessmentState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SqlVulnerabilityAssessmentState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SqlVulnerabilityAssessmentState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SqlVulnerabilityAssessmentState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SqlVulnerabilityAssessmentState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TransparentDataEncryptionState.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TransparentDataEncryptionState.Serialization.cs index 63083038bfb12..2e315120220f7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TransparentDataEncryptionState.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TransparentDataEncryptionState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class TransparentDataEncryptionStateExtensions public static TransparentDataEncryptionState ToTransparentDataEncryptionState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return TransparentDataEncryptionState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return TransparentDataEncryptionState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return TransparentDataEncryptionState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return TransparentDataEncryptionState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TransparentDataEncryptionState value."); } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentPolicyBaselineName.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentPolicyBaselineName.Serialization.cs index 3e179e027c212..e019a5d4a55c0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentPolicyBaselineName.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentPolicyBaselineName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class VulnerabilityAssessmentPolicyBaselineNameExtension public static VulnerabilityAssessmentPolicyBaselineName ToVulnerabilityAssessmentPolicyBaselineName(this string value) { - if (string.Equals(value, "default", StringComparison.InvariantCultureIgnoreCase)) return VulnerabilityAssessmentPolicyBaselineName.Default; - if (string.Equals(value, "master", StringComparison.InvariantCultureIgnoreCase)) return VulnerabilityAssessmentPolicyBaselineName.Master; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "default")) return VulnerabilityAssessmentPolicyBaselineName.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "master")) return VulnerabilityAssessmentPolicyBaselineName.Master; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown VulnerabilityAssessmentPolicyBaselineName value."); } } diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAssessmentDayOfWeek.Serialization.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAssessmentDayOfWeek.Serialization.cs index 24ed4c04f1373..f9e11a138da64 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAssessmentDayOfWeek.Serialization.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAssessmentDayOfWeek.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class SqlVmAssessmentDayOfWeekExtensions public static SqlVmAssessmentDayOfWeek ToSqlVmAssessmentDayOfWeek(this string value) { - if (string.Equals(value, "Monday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAssessmentDayOfWeek.Monday; - if (string.Equals(value, "Tuesday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAssessmentDayOfWeek.Tuesday; - if (string.Equals(value, "Wednesday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAssessmentDayOfWeek.Wednesday; - if (string.Equals(value, "Thursday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAssessmentDayOfWeek.Thursday; - if (string.Equals(value, "Friday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAssessmentDayOfWeek.Friday; - if (string.Equals(value, "Saturday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAssessmentDayOfWeek.Saturday; - if (string.Equals(value, "Sunday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAssessmentDayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return SqlVmAssessmentDayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return SqlVmAssessmentDayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return SqlVmAssessmentDayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return SqlVmAssessmentDayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return SqlVmAssessmentDayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return SqlVmAssessmentDayOfWeek.Saturday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return SqlVmAssessmentDayOfWeek.Sunday; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SqlVmAssessmentDayOfWeek value."); } } diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAutoPatchingDayOfWeek.Serialization.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAutoPatchingDayOfWeek.Serialization.cs index e8328a2927db7..82ab61fa1c09e 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAutoPatchingDayOfWeek.Serialization.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAutoPatchingDayOfWeek.Serialization.cs @@ -26,14 +26,14 @@ internal static partial class SqlVmAutoPatchingDayOfWeekExtensions public static SqlVmAutoPatchingDayOfWeek ToSqlVmAutoPatchingDayOfWeek(this string value) { - if (string.Equals(value, "Everyday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAutoPatchingDayOfWeek.Everyday; - if (string.Equals(value, "Monday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAutoPatchingDayOfWeek.Monday; - if (string.Equals(value, "Tuesday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAutoPatchingDayOfWeek.Tuesday; - if (string.Equals(value, "Wednesday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAutoPatchingDayOfWeek.Wednesday; - if (string.Equals(value, "Thursday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAutoPatchingDayOfWeek.Thursday; - if (string.Equals(value, "Friday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAutoPatchingDayOfWeek.Friday; - if (string.Equals(value, "Saturday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAutoPatchingDayOfWeek.Saturday; - if (string.Equals(value, "Sunday", StringComparison.InvariantCultureIgnoreCase)) return SqlVmAutoPatchingDayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Everyday")) return SqlVmAutoPatchingDayOfWeek.Everyday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return SqlVmAutoPatchingDayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return SqlVmAutoPatchingDayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return SqlVmAutoPatchingDayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return SqlVmAutoPatchingDayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return SqlVmAutoPatchingDayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return SqlVmAutoPatchingDayOfWeek.Saturday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return SqlVmAutoPatchingDayOfWeek.Sunday; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SqlVmAutoPatchingDayOfWeek value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountAccessTier.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountAccessTier.Serialization.cs index dd6182ed1e882..063d317a71013 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountAccessTier.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountAccessTier.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class StorageAccountAccessTierExtensions public static StorageAccountAccessTier ToStorageAccountAccessTier(this string value) { - if (string.Equals(value, "Hot", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountAccessTier.Hot; - if (string.Equals(value, "Cool", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountAccessTier.Cool; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountAccessTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Hot")) return StorageAccountAccessTier.Hot; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cool")) return StorageAccountAccessTier.Cool; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return StorageAccountAccessTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageAccountAccessTier value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountExpand.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountExpand.Serialization.cs index 66fcb12eff6b8..f35b39054c609 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountExpand.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountExpand.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageAccountExpandExtensions public static StorageAccountExpand ToStorageAccountExpand(this string value) { - if (string.Equals(value, "geoReplicationStats", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountExpand.GeoReplicationStats; - if (string.Equals(value, "blobRestoreStatus", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountExpand.BlobRestoreStatus; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "geoReplicationStats")) return StorageAccountExpand.GeoReplicationStats; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "blobRestoreStatus")) return StorageAccountExpand.BlobRestoreStatus; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageAccountExpand value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountHttpProtocol.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountHttpProtocol.Serialization.cs index 42fcec8e612c2..44be83218c426 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountHttpProtocol.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountHttpProtocol.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageAccountHttpProtocolExtensions public static StorageAccountHttpProtocol ToStorageAccountHttpProtocol(this string value) { - if (string.Equals(value, "https,http", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountHttpProtocol.HttpsHttp; - if (string.Equals(value, "https", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountHttpProtocol.Https; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "https,http")) return StorageAccountHttpProtocol.HttpsHttp; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "https")) return StorageAccountHttpProtocol.Https; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageAccountHttpProtocol value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyPermission.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyPermission.Serialization.cs index 1dcbad14804d2..e9524cd017a54 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyPermission.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyPermission.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageAccountKeyPermissionExtensions public static StorageAccountKeyPermission ToStorageAccountKeyPermission(this string value) { - if (string.Equals(value, "Read", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountKeyPermission.Read; - if (string.Equals(value, "Full", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountKeyPermission.Full; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Read")) return StorageAccountKeyPermission.Read; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Full")) return StorageAccountKeyPermission.Full; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageAccountKeyPermission value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameUnavailableReason.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameUnavailableReason.Serialization.cs index 854b421731dbe..42844f8a2044a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameUnavailableReason.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameUnavailableReason.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageAccountNameUnavailableReasonExtensions public static StorageAccountNameUnavailableReason ToStorageAccountNameUnavailableReason(this string value) { - if (string.Equals(value, "AccountNameInvalid", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountNameUnavailableReason.AccountNameInvalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AccountNameInvalid")) return StorageAccountNameUnavailableReason.AccountNameInvalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return StorageAccountNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageAccountNameUnavailableReason value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountStatus.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountStatus.Serialization.cs index af72a95b11f2f..0b5270351b22a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountStatus.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountStatus.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageAccountStatusExtensions public static StorageAccountStatus ToStorageAccountStatus(this string value) { - if (string.Equals(value, "available", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountStatus.Available; - if (string.Equals(value, "unavailable", StringComparison.InvariantCultureIgnoreCase)) return StorageAccountStatus.Unavailable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "available")) return StorageAccountStatus.Available; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "unavailable")) return StorageAccountStatus.Unavailable; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageAccountStatus value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageNetworkDefaultAction.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageNetworkDefaultAction.Serialization.cs index 780ddec54a0a5..b605e178a6d17 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageNetworkDefaultAction.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageNetworkDefaultAction.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageNetworkDefaultActionExtensions public static StorageNetworkDefaultAction ToStorageNetworkDefaultAction(this string value) { - if (string.Equals(value, "Allow", StringComparison.InvariantCultureIgnoreCase)) return StorageNetworkDefaultAction.Allow; - if (string.Equals(value, "Deny", StringComparison.InvariantCultureIgnoreCase)) return StorageNetworkDefaultAction.Deny; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Allow")) return StorageNetworkDefaultAction.Allow; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deny")) return StorageNetworkDefaultAction.Deny; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageNetworkDefaultAction value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageProvisioningState.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageProvisioningState.Serialization.cs index 45f65b59efd02..8cdd02c4cdc9b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageProvisioningState.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageProvisioningState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class StorageProvisioningStateExtensions public static StorageProvisioningState ToStorageProvisioningState(this string value) { - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return StorageProvisioningState.Creating; - if (string.Equals(value, "ResolvingDNS", StringComparison.InvariantCultureIgnoreCase)) return StorageProvisioningState.ResolvingDns; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return StorageProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return StorageProvisioningState.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ResolvingDNS")) return StorageProvisioningState.ResolvingDns; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return StorageProvisioningState.Succeeded; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageProvisioningState value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePublicAccessType.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePublicAccessType.Serialization.cs index 598273353b758..dd328cad435d4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePublicAccessType.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePublicAccessType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class StoragePublicAccessTypeExtensions public static StoragePublicAccessType ToStoragePublicAccessType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return StoragePublicAccessType.None; - if (string.Equals(value, "Container", StringComparison.InvariantCultureIgnoreCase)) return StoragePublicAccessType.Container; - if (string.Equals(value, "Blob", StringComparison.InvariantCultureIgnoreCase)) return StoragePublicAccessType.Blob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return StoragePublicAccessType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Container")) return StoragePublicAccessType.Container; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Blob")) return StoragePublicAccessType.Blob; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StoragePublicAccessType value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuTier.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuTier.Serialization.cs index a9fdfa1d5a054..1b1d971262562 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuTier.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuTier.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageSkuTierExtensions public static StorageSkuTier ToStorageSkuTier(this string value) { - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return StorageSkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return StorageSkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return StorageSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return StorageSkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageSkuTier value."); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsageUnit.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsageUnit.Serialization.cs index acedeb14304ad..7cf51a9f840be 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsageUnit.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsageUnit.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class StorageUsageUnitExtensions public static StorageUsageUnit ToStorageUsageUnit(this string value) { - if (string.Equals(value, "Count", StringComparison.InvariantCultureIgnoreCase)) return StorageUsageUnit.Count; - if (string.Equals(value, "Bytes", StringComparison.InvariantCultureIgnoreCase)) return StorageUsageUnit.Bytes; - if (string.Equals(value, "Seconds", StringComparison.InvariantCultureIgnoreCase)) return StorageUsageUnit.Seconds; - if (string.Equals(value, "Percent", StringComparison.InvariantCultureIgnoreCase)) return StorageUsageUnit.Percent; - if (string.Equals(value, "CountsPerSecond", StringComparison.InvariantCultureIgnoreCase)) return StorageUsageUnit.CountsPerSecond; - if (string.Equals(value, "BytesPerSecond", StringComparison.InvariantCultureIgnoreCase)) return StorageUsageUnit.BytesPerSecond; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Count")) return StorageUsageUnit.Count; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Bytes")) return StorageUsageUnit.Bytes; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Seconds")) return StorageUsageUnit.Seconds; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Percent")) return StorageUsageUnit.Percent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CountsPerSecond")) return StorageUsageUnit.CountsPerSecond; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BytesPerSecond")) return StorageUsageUnit.BytesPerSecond; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageUsageUnit value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Models/BlobDeleteType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Models/BlobDeleteType.Serialization.cs index c5f582281de5d..6bf990f5b980d 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Models/BlobDeleteType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Models/BlobDeleteType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BlobDeleteTypeExtensions public static BlobDeleteType ToBlobDeleteType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return BlobDeleteType.None; - if (string.Equals(value, "Permanent", StringComparison.InvariantCultureIgnoreCase)) return BlobDeleteType.Permanent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return BlobDeleteType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Permanent")) return BlobDeleteType.Permanent; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BlobDeleteType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Models/DeleteSnapshotsOptionType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Models/DeleteSnapshotsOptionType.Serialization.cs index 9a828745ab7e8..2b246ff1478d0 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Models/DeleteSnapshotsOptionType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Models/DeleteSnapshotsOptionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DeleteSnapshotsOptionTypeExtensions public static DeleteSnapshotsOptionType ToDeleteSnapshotsOptionType(this string value) { - if (string.Equals(value, "include", StringComparison.InvariantCultureIgnoreCase)) return DeleteSnapshotsOptionType.Include; - if (string.Equals(value, "only", StringComparison.InvariantCultureIgnoreCase)) return DeleteSnapshotsOptionType.Only; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "include")) return DeleteSnapshotsOptionType.Include; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "only")) return DeleteSnapshotsOptionType.Only; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeleteSnapshotsOptionType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/AccountKind.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/AccountKind.Serialization.cs index d6043c08ac113..0d36848d9555b 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/AccountKind.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/AccountKind.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class AccountKindExtensions public static AccountKind ToAccountKind(this string value) { - if (string.Equals(value, "Storage", StringComparison.InvariantCultureIgnoreCase)) return AccountKind.Storage; - if (string.Equals(value, "BlobStorage", StringComparison.InvariantCultureIgnoreCase)) return AccountKind.BlobStorage; - if (string.Equals(value, "StorageV2", StringComparison.InvariantCultureIgnoreCase)) return AccountKind.StorageV2; - if (string.Equals(value, "FileStorage", StringComparison.InvariantCultureIgnoreCase)) return AccountKind.FileStorage; - if (string.Equals(value, "BlockBlobStorage", StringComparison.InvariantCultureIgnoreCase)) return AccountKind.BlockBlobStorage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Storage")) return AccountKind.Storage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BlobStorage")) return AccountKind.BlobStorage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StorageV2")) return AccountKind.StorageV2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FileStorage")) return AccountKind.FileStorage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BlockBlobStorage")) return AccountKind.BlockBlobStorage; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AccountKind value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs index 02ccf77fdce31..0c29872df21b4 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ArchiveStatusExtensions public static ArchiveStatus ToArchiveStatus(this string value) { - if (string.Equals(value, "rehydrate-pending-to-hot", StringComparison.InvariantCultureIgnoreCase)) return ArchiveStatus.RehydratePendingToHot; - if (string.Equals(value, "rehydrate-pending-to-cool", StringComparison.InvariantCultureIgnoreCase)) return ArchiveStatus.RehydratePendingToCool; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "rehydrate-pending-to-hot")) return ArchiveStatus.RehydratePendingToHot; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "rehydrate-pending-to-cool")) return ArchiveStatus.RehydratePendingToCool; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArchiveStatus value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobCopySourceTagsMode.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobCopySourceTagsMode.Serialization.cs index 84154994a6905..7548a3dfc8ddc 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobCopySourceTagsMode.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobCopySourceTagsMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BlobCopySourceTagsModeExtensions public static BlobCopySourceTagsMode ToBlobCopySourceTagsMode(this string value) { - if (string.Equals(value, "REPLACE", StringComparison.InvariantCultureIgnoreCase)) return BlobCopySourceTagsMode.Replace; - if (string.Equals(value, "COPY", StringComparison.InvariantCultureIgnoreCase)) return BlobCopySourceTagsMode.Copy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "REPLACE")) return BlobCopySourceTagsMode.Replace; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "COPY")) return BlobCopySourceTagsMode.Copy; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BlobCopySourceTagsMode value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobDeleteType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobDeleteType.Serialization.cs index 322dce7581e2a..ac2d85eadd9db 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobDeleteType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobDeleteType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BlobDeleteTypeExtensions public static BlobDeleteType ToBlobDeleteType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return BlobDeleteType.None; - if (string.Equals(value, "Permanent", StringComparison.InvariantCultureIgnoreCase)) return BlobDeleteType.Permanent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return BlobDeleteType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Permanent")) return BlobDeleteType.Permanent; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BlobDeleteType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobGeoReplicationStatus.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobGeoReplicationStatus.Serialization.cs index a4c1190193c1e..fe7726caa9907 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobGeoReplicationStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobGeoReplicationStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BlobGeoReplicationStatusExtensions public static BlobGeoReplicationStatus ToBlobGeoReplicationStatus(this string value) { - if (string.Equals(value, "live", StringComparison.InvariantCultureIgnoreCase)) return BlobGeoReplicationStatus.Live; - if (string.Equals(value, "bootstrap", StringComparison.InvariantCultureIgnoreCase)) return BlobGeoReplicationStatus.Bootstrap; - if (string.Equals(value, "unavailable", StringComparison.InvariantCultureIgnoreCase)) return BlobGeoReplicationStatus.Unavailable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "live")) return BlobGeoReplicationStatus.Live; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "bootstrap")) return BlobGeoReplicationStatus.Bootstrap; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "unavailable")) return BlobGeoReplicationStatus.Unavailable; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BlobGeoReplicationStatus value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobImmutabilityPolicyMode.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobImmutabilityPolicyMode.Serialization.cs index 057b9bfc34b3f..07db2d05f3136 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobImmutabilityPolicyMode.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobImmutabilityPolicyMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BlobImmutabilityPolicyModeExtensions public static BlobImmutabilityPolicyMode ToBlobImmutabilityPolicyMode(this string value) { - if (string.Equals(value, "Mutable", StringComparison.InvariantCultureIgnoreCase)) return BlobImmutabilityPolicyMode.Mutable; - if (string.Equals(value, "Unlocked", StringComparison.InvariantCultureIgnoreCase)) return BlobImmutabilityPolicyMode.Unlocked; - if (string.Equals(value, "Locked", StringComparison.InvariantCultureIgnoreCase)) return BlobImmutabilityPolicyMode.Locked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Mutable")) return BlobImmutabilityPolicyMode.Mutable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unlocked")) return BlobImmutabilityPolicyMode.Unlocked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Locked")) return BlobImmutabilityPolicyMode.Locked; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BlobImmutabilityPolicyMode value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobType.Serialization.cs index 154d6cb04ad45..09bea66c5a3dd 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BlobTypeExtensions public static BlobType ToBlobType(this string value) { - if (string.Equals(value, "BlockBlob", StringComparison.InvariantCultureIgnoreCase)) return BlobType.Block; - if (string.Equals(value, "PageBlob", StringComparison.InvariantCultureIgnoreCase)) return BlobType.Page; - if (string.Equals(value, "AppendBlob", StringComparison.InvariantCultureIgnoreCase)) return BlobType.Append; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BlockBlob")) return BlobType.Block; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PageBlob")) return BlobType.Page; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AppendBlob")) return BlobType.Append; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BlobType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockListType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockListType.Serialization.cs index 6b38d8f84fa2a..14f5879687fc7 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockListType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockListType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class BlockListTypeExtensions public static BlockListType ToBlockListType(this string value) { - if (string.Equals(value, "committed", StringComparison.InvariantCultureIgnoreCase)) return BlockListType.Committed; - if (string.Equals(value, "uncommitted", StringComparison.InvariantCultureIgnoreCase)) return BlockListType.Uncommitted; - if (string.Equals(value, "all", StringComparison.InvariantCultureIgnoreCase)) return BlockListType.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "committed")) return BlockListType.Committed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "uncommitted")) return BlockListType.Uncommitted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "all")) return BlockListType.All; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BlockListType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/CopyStatus.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/CopyStatus.Serialization.cs index c796a0cfa3737..e8e4389a56934 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/CopyStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/CopyStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class CopyStatusExtensions public static CopyStatus ToCopyStatus(this string value) { - if (string.Equals(value, "pending", StringComparison.InvariantCultureIgnoreCase)) return CopyStatus.Pending; - if (string.Equals(value, "success", StringComparison.InvariantCultureIgnoreCase)) return CopyStatus.Success; - if (string.Equals(value, "aborted", StringComparison.InvariantCultureIgnoreCase)) return CopyStatus.Aborted; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return CopyStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "pending")) return CopyStatus.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "success")) return CopyStatus.Success; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "aborted")) return CopyStatus.Aborted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return CopyStatus.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CopyStatus value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/DeleteSnapshotsOption.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/DeleteSnapshotsOption.Serialization.cs index 8bab199c3b2e5..b2155c8ce9e37 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/DeleteSnapshotsOption.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/DeleteSnapshotsOption.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DeleteSnapshotsOptionExtensions public static DeleteSnapshotsOption ToDeleteSnapshotsOption(this string value) { - if (string.Equals(value, "include", StringComparison.InvariantCultureIgnoreCase)) return DeleteSnapshotsOption.IncludeSnapshots; - if (string.Equals(value, "only", StringComparison.InvariantCultureIgnoreCase)) return DeleteSnapshotsOption.OnlySnapshots; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "include")) return DeleteSnapshotsOption.IncludeSnapshots; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "only")) return DeleteSnapshotsOption.OnlySnapshots; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeleteSnapshotsOption value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/EncryptionAlgorithmTypeInternal.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/EncryptionAlgorithmTypeInternal.Serialization.cs index 88f6a5f8b015b..e4ad10a8cfb55 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/EncryptionAlgorithmTypeInternal.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/EncryptionAlgorithmTypeInternal.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class EncryptionAlgorithmTypeInternalExtensions public static EncryptionAlgorithmTypeInternal ToEncryptionAlgorithmTypeInternal(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return EncryptionAlgorithmTypeInternal.None; - if (string.Equals(value, "AES256", StringComparison.InvariantCultureIgnoreCase)) return EncryptionAlgorithmTypeInternal.AES256; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return EncryptionAlgorithmTypeInternal.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AES256")) return EncryptionAlgorithmTypeInternal.AES256; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EncryptionAlgorithmTypeInternal value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/FilterBlobsIncludeItem.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/FilterBlobsIncludeItem.Serialization.cs index 3d5fe529dbb7d..a0192dc7c9b1f 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/FilterBlobsIncludeItem.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/FilterBlobsIncludeItem.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FilterBlobsIncludeItemExtensions public static FilterBlobsIncludeItem ToFilterBlobsIncludeItem(this string value) { - if (string.Equals(value, "none", StringComparison.InvariantCultureIgnoreCase)) return FilterBlobsIncludeItem.None; - if (string.Equals(value, "versions", StringComparison.InvariantCultureIgnoreCase)) return FilterBlobsIncludeItem.Versions; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "none")) return FilterBlobsIncludeItem.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "versions")) return FilterBlobsIncludeItem.Versions; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FilterBlobsIncludeItem value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseDurationType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseDurationType.Serialization.cs index a1865fa88f6cf..9a33025fae2aa 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseDurationType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseDurationType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LeaseDurationTypeExtensions public static LeaseDurationType ToLeaseDurationType(this string value) { - if (string.Equals(value, "infinite", StringComparison.InvariantCultureIgnoreCase)) return LeaseDurationType.Infinite; - if (string.Equals(value, "fixed", StringComparison.InvariantCultureIgnoreCase)) return LeaseDurationType.Fixed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "infinite")) return LeaseDurationType.Infinite; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "fixed")) return LeaseDurationType.Fixed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LeaseDurationType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseState.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseState.Serialization.cs index 8f376b9934400..3e42300f2caa0 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseState.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class LeaseStateExtensions public static LeaseState ToLeaseState(this string value) { - if (string.Equals(value, "available", StringComparison.InvariantCultureIgnoreCase)) return LeaseState.Available; - if (string.Equals(value, "leased", StringComparison.InvariantCultureIgnoreCase)) return LeaseState.Leased; - if (string.Equals(value, "expired", StringComparison.InvariantCultureIgnoreCase)) return LeaseState.Expired; - if (string.Equals(value, "breaking", StringComparison.InvariantCultureIgnoreCase)) return LeaseState.Breaking; - if (string.Equals(value, "broken", StringComparison.InvariantCultureIgnoreCase)) return LeaseState.Broken; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "available")) return LeaseState.Available; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "leased")) return LeaseState.Leased; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "expired")) return LeaseState.Expired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "breaking")) return LeaseState.Breaking; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "broken")) return LeaseState.Broken; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LeaseState value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseStatus.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseStatus.Serialization.cs index 98959d365717a..b51d14d385a7d 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/LeaseStatus.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class LeaseStatusExtensions public static LeaseStatus ToLeaseStatus(this string value) { - if (string.Equals(value, "locked", StringComparison.InvariantCultureIgnoreCase)) return LeaseStatus.Locked; - if (string.Equals(value, "unlocked", StringComparison.InvariantCultureIgnoreCase)) return LeaseStatus.Unlocked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "locked")) return LeaseStatus.Locked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "unlocked")) return LeaseStatus.Unlocked; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown LeaseStatus value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ListContainersIncludeType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ListContainersIncludeType.Serialization.cs index a5301a1a02372..6066befa24c7e 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ListContainersIncludeType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ListContainersIncludeType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ListContainersIncludeTypeExtensions public static ListContainersIncludeType ToListContainersIncludeType(this string value) { - if (string.Equals(value, "metadata", StringComparison.InvariantCultureIgnoreCase)) return ListContainersIncludeType.Metadata; - if (string.Equals(value, "deleted", StringComparison.InvariantCultureIgnoreCase)) return ListContainersIncludeType.Deleted; - if (string.Equals(value, "system", StringComparison.InvariantCultureIgnoreCase)) return ListContainersIncludeType.System; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "metadata")) return ListContainersIncludeType.Metadata; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "deleted")) return ListContainersIncludeType.Deleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "system")) return ListContainersIncludeType.System; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ListContainersIncludeType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PublicAccessType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PublicAccessType.Serialization.cs index a41a23ddf986a..df8f56a7ee9f5 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PublicAccessType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PublicAccessType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class PublicAccessTypeExtensions public static PublicAccessType ToPublicAccessType(this string value) { - if (string.Equals(value, "container", StringComparison.InvariantCultureIgnoreCase)) return PublicAccessType.BlobContainer; - if (string.Equals(value, "blob", StringComparison.InvariantCultureIgnoreCase)) return PublicAccessType.Blob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "container")) return PublicAccessType.BlobContainer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "blob")) return PublicAccessType.Blob; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PublicAccessType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/QueryFormatType.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/QueryFormatType.Serialization.cs index a0844bbe17679..d729515ceabb6 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/QueryFormatType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/QueryFormatType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class QueryFormatTypeExtensions public static QueryFormatType ToQueryFormatType(this string value) { - if (string.Equals(value, "delimited", StringComparison.InvariantCultureIgnoreCase)) return QueryFormatType.Delimited; - if (string.Equals(value, "json", StringComparison.InvariantCultureIgnoreCase)) return QueryFormatType.Json; - if (string.Equals(value, "arrow", StringComparison.InvariantCultureIgnoreCase)) return QueryFormatType.Arrow; - if (string.Equals(value, "parquet", StringComparison.InvariantCultureIgnoreCase)) return QueryFormatType.Parquet; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "delimited")) return QueryFormatType.Delimited; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "json")) return QueryFormatType.Json; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "arrow")) return QueryFormatType.Arrow; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "parquet")) return QueryFormatType.Parquet; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown QueryFormatType value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/RehydratePriority.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/RehydratePriority.Serialization.cs index c518e95f190d3..ce86d76af8940 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/RehydratePriority.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/RehydratePriority.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class RehydratePriorityExtensions public static RehydratePriority ToRehydratePriority(this string value) { - if (string.Equals(value, "High", StringComparison.InvariantCultureIgnoreCase)) return RehydratePriority.High; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return RehydratePriority.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "High")) return RehydratePriority.High; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return RehydratePriority.Standard; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RehydratePriority value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/SequenceNumberAction.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/SequenceNumberAction.Serialization.cs index 8cfad628f5677..8ccfc8f7b9c0e 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/SequenceNumberAction.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/SequenceNumberAction.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SequenceNumberActionExtensions public static SequenceNumberAction ToSequenceNumberAction(this string value) { - if (string.Equals(value, "max", StringComparison.InvariantCultureIgnoreCase)) return SequenceNumberAction.Max; - if (string.Equals(value, "update", StringComparison.InvariantCultureIgnoreCase)) return SequenceNumberAction.Update; - if (string.Equals(value, "increment", StringComparison.InvariantCultureIgnoreCase)) return SequenceNumberAction.Increment; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "max")) return SequenceNumberAction.Max; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "update")) return SequenceNumberAction.Update; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "increment")) return SequenceNumberAction.Increment; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SequenceNumberAction value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/SkuName.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/SkuName.Serialization.cs index fe1359a41e6b1..59e73caa20b80 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/SkuName.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/SkuName.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SkuNameExtensions public static SkuName ToSkuName(this string value) { - if (string.Equals(value, "Standard_LRS", StringComparison.InvariantCultureIgnoreCase)) return SkuName.StandardLrs; - if (string.Equals(value, "Standard_GRS", StringComparison.InvariantCultureIgnoreCase)) return SkuName.StandardGrs; - if (string.Equals(value, "Standard_RAGRS", StringComparison.InvariantCultureIgnoreCase)) return SkuName.StandardRagrs; - if (string.Equals(value, "Standard_ZRS", StringComparison.InvariantCultureIgnoreCase)) return SkuName.StandardZrs; - if (string.Equals(value, "Premium_LRS", StringComparison.InvariantCultureIgnoreCase)) return SkuName.PremiumLrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard_LRS")) return SkuName.StandardLrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard_GRS")) return SkuName.StandardGrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard_RAGRS")) return SkuName.StandardRagrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard_ZRS")) return SkuName.StandardZrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium_LRS")) return SkuName.PremiumLrs; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SkuName value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/DataLakeLeaseAction.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/DataLakeLeaseAction.Serialization.cs index 7b972f43a1f68..c3c20c48af9fb 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/DataLakeLeaseAction.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/DataLakeLeaseAction.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class DataLakeLeaseActionExtensions public static DataLakeLeaseAction ToDataLakeLeaseAction(this string value) { - if (string.Equals(value, "acquire", StringComparison.InvariantCultureIgnoreCase)) return DataLakeLeaseAction.Acquire; - if (string.Equals(value, "auto-renew", StringComparison.InvariantCultureIgnoreCase)) return DataLakeLeaseAction.AutoRenew; - if (string.Equals(value, "release", StringComparison.InvariantCultureIgnoreCase)) return DataLakeLeaseAction.Release; - if (string.Equals(value, "acquire-release", StringComparison.InvariantCultureIgnoreCase)) return DataLakeLeaseAction.AcquireRelease; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "acquire")) return DataLakeLeaseAction.Acquire; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "auto-renew")) return DataLakeLeaseAction.AutoRenew; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "release")) return DataLakeLeaseAction.Release; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "acquire-release")) return DataLakeLeaseAction.AcquireRelease; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeLeaseAction value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/EncryptionAlgorithmTypeInternal.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/EncryptionAlgorithmTypeInternal.Serialization.cs index b1e5ca4761cc8..80edd7e4fced2 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/EncryptionAlgorithmTypeInternal.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/EncryptionAlgorithmTypeInternal.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class EncryptionAlgorithmTypeInternalExtensions public static EncryptionAlgorithmTypeInternal ToEncryptionAlgorithmTypeInternal(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return EncryptionAlgorithmTypeInternal.None; - if (string.Equals(value, "AES256", StringComparison.InvariantCultureIgnoreCase)) return EncryptionAlgorithmTypeInternal.AES256; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return EncryptionAlgorithmTypeInternal.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AES256")) return EncryptionAlgorithmTypeInternal.AES256; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EncryptionAlgorithmTypeInternal value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/ListBlobsIncludeItem.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/ListBlobsIncludeItem.Serialization.cs index e51583a376325..a3fbfced37c09 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/ListBlobsIncludeItem.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/ListBlobsIncludeItem.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class ListBlobsIncludeItemExtensions public static ListBlobsIncludeItem ToListBlobsIncludeItem(this string value) { - if (string.Equals(value, "copy", StringComparison.InvariantCultureIgnoreCase)) return ListBlobsIncludeItem.Copy; - if (string.Equals(value, "deleted", StringComparison.InvariantCultureIgnoreCase)) return ListBlobsIncludeItem.Deleted; - if (string.Equals(value, "metadata", StringComparison.InvariantCultureIgnoreCase)) return ListBlobsIncludeItem.Metadata; - if (string.Equals(value, "snapshots", StringComparison.InvariantCultureIgnoreCase)) return ListBlobsIncludeItem.Snapshots; - if (string.Equals(value, "uncommittedblobs", StringComparison.InvariantCultureIgnoreCase)) return ListBlobsIncludeItem.Uncommittedblobs; - if (string.Equals(value, "versions", StringComparison.InvariantCultureIgnoreCase)) return ListBlobsIncludeItem.Versions; - if (string.Equals(value, "tags", StringComparison.InvariantCultureIgnoreCase)) return ListBlobsIncludeItem.Tags; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "copy")) return ListBlobsIncludeItem.Copy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "deleted")) return ListBlobsIncludeItem.Deleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "metadata")) return ListBlobsIncludeItem.Metadata; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "snapshots")) return ListBlobsIncludeItem.Snapshots; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "uncommittedblobs")) return ListBlobsIncludeItem.Uncommittedblobs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "versions")) return ListBlobsIncludeItem.Versions; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "tags")) return ListBlobsIncludeItem.Tags; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ListBlobsIncludeItem value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathGetPropertiesAction.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathGetPropertiesAction.Serialization.cs index cdd416e7ae781..f2f6e67c929a5 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathGetPropertiesAction.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathGetPropertiesAction.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class PathGetPropertiesActionExtensions public static PathGetPropertiesAction ToPathGetPropertiesAction(this string value) { - if (string.Equals(value, "getAccessControl", StringComparison.InvariantCultureIgnoreCase)) return PathGetPropertiesAction.GetAccessControl; - if (string.Equals(value, "getStatus", StringComparison.InvariantCultureIgnoreCase)) return PathGetPropertiesAction.GetStatus; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "getAccessControl")) return PathGetPropertiesAction.GetAccessControl; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "getStatus")) return PathGetPropertiesAction.GetStatus; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PathGetPropertiesAction value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathLeaseAction.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathLeaseAction.Serialization.cs index 407b86f878af4..6535ac47437cf 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathLeaseAction.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathLeaseAction.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class PathLeaseActionExtensions public static PathLeaseAction ToPathLeaseAction(this string value) { - if (string.Equals(value, "acquire", StringComparison.InvariantCultureIgnoreCase)) return PathLeaseAction.Acquire; - if (string.Equals(value, "break", StringComparison.InvariantCultureIgnoreCase)) return PathLeaseAction.Break; - if (string.Equals(value, "change", StringComparison.InvariantCultureIgnoreCase)) return PathLeaseAction.Change; - if (string.Equals(value, "renew", StringComparison.InvariantCultureIgnoreCase)) return PathLeaseAction.Renew; - if (string.Equals(value, "release", StringComparison.InvariantCultureIgnoreCase)) return PathLeaseAction.Release; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "acquire")) return PathLeaseAction.Acquire; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "break")) return PathLeaseAction.Break; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "change")) return PathLeaseAction.Change; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "renew")) return PathLeaseAction.Renew; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "release")) return PathLeaseAction.Release; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PathLeaseAction value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathRenameMode.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathRenameMode.Serialization.cs index 688d3287bfcd6..68a6fc581c2dc 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathRenameMode.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathRenameMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class PathRenameModeExtensions public static PathRenameMode ToPathRenameMode(this string value) { - if (string.Equals(value, "legacy", StringComparison.InvariantCultureIgnoreCase)) return PathRenameMode.Legacy; - if (string.Equals(value, "posix", StringComparison.InvariantCultureIgnoreCase)) return PathRenameMode.Posix; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "legacy")) return PathRenameMode.Legacy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "posix")) return PathRenameMode.Posix; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PathRenameMode value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathResourceType.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathResourceType.Serialization.cs index 3c7c908734575..22fbf1b4377b3 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathResourceType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathResourceType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class PathResourceTypeExtensions public static PathResourceType ToPathResourceType(this string value) { - if (string.Equals(value, "directory", StringComparison.InvariantCultureIgnoreCase)) return PathResourceType.Directory; - if (string.Equals(value, "file", StringComparison.InvariantCultureIgnoreCase)) return PathResourceType.File; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "directory")) return PathResourceType.Directory; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "file")) return PathResourceType.File; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PathResourceType value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathSetAccessControlRecursiveMode.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathSetAccessControlRecursiveMode.Serialization.cs index 76955a027e391..a91b0911527bc 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathSetAccessControlRecursiveMode.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathSetAccessControlRecursiveMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class PathSetAccessControlRecursiveModeExtensions public static PathSetAccessControlRecursiveMode ToPathSetAccessControlRecursiveMode(this string value) { - if (string.Equals(value, "set", StringComparison.InvariantCultureIgnoreCase)) return PathSetAccessControlRecursiveMode.Set; - if (string.Equals(value, "modify", StringComparison.InvariantCultureIgnoreCase)) return PathSetAccessControlRecursiveMode.Modify; - if (string.Equals(value, "remove", StringComparison.InvariantCultureIgnoreCase)) return PathSetAccessControlRecursiveMode.Remove; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "set")) return PathSetAccessControlRecursiveMode.Set; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "modify")) return PathSetAccessControlRecursiveMode.Modify; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "remove")) return PathSetAccessControlRecursiveMode.Remove; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PathSetAccessControlRecursiveMode value."); } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathUpdateAction.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathUpdateAction.Serialization.cs index 8d86da5075dc8..7d3b2c6264d4c 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathUpdateAction.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathUpdateAction.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class PathUpdateActionExtensions public static PathUpdateAction ToPathUpdateAction(this string value) { - if (string.Equals(value, "append", StringComparison.InvariantCultureIgnoreCase)) return PathUpdateAction.Append; - if (string.Equals(value, "flush", StringComparison.InvariantCultureIgnoreCase)) return PathUpdateAction.Flush; - if (string.Equals(value, "setProperties", StringComparison.InvariantCultureIgnoreCase)) return PathUpdateAction.SetProperties; - if (string.Equals(value, "setAccessControl", StringComparison.InvariantCultureIgnoreCase)) return PathUpdateAction.SetAccessControl; - if (string.Equals(value, "setAccessControlRecursive", StringComparison.InvariantCultureIgnoreCase)) return PathUpdateAction.SetAccessControlRecursive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "append")) return PathUpdateAction.Append; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "flush")) return PathUpdateAction.Flush; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "setProperties")) return PathUpdateAction.SetProperties; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "setAccessControl")) return PathUpdateAction.SetAccessControl; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "setAccessControlRecursive")) return PathUpdateAction.SetAccessControlRecursive; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PathUpdateAction value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/CopyStatus.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/CopyStatus.Serialization.cs index d8889457b8485..088b5ae6afe4a 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/CopyStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/CopyStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class CopyStatusExtensions public static CopyStatus ToCopyStatus(this string value) { - if (string.Equals(value, "pending", StringComparison.InvariantCultureIgnoreCase)) return CopyStatus.Pending; - if (string.Equals(value, "success", StringComparison.InvariantCultureIgnoreCase)) return CopyStatus.Success; - if (string.Equals(value, "aborted", StringComparison.InvariantCultureIgnoreCase)) return CopyStatus.Aborted; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return CopyStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "pending")) return CopyStatus.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "success")) return CopyStatus.Success; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "aborted")) return CopyStatus.Aborted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return CopyStatus.Failed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CopyStatus value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/DeleteSnapshotsOptionType.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/DeleteSnapshotsOptionType.Serialization.cs index e49536bb73f57..6d5627f19790b 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/DeleteSnapshotsOptionType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/DeleteSnapshotsOptionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class DeleteSnapshotsOptionTypeExtensions public static DeleteSnapshotsOptionType ToDeleteSnapshotsOptionType(this string value) { - if (string.Equals(value, "include", StringComparison.InvariantCultureIgnoreCase)) return DeleteSnapshotsOptionType.Include; - if (string.Equals(value, "include-leased", StringComparison.InvariantCultureIgnoreCase)) return DeleteSnapshotsOptionType.IncludeLeased; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "include")) return DeleteSnapshotsOptionType.Include; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "include-leased")) return DeleteSnapshotsOptionType.IncludeLeased; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeleteSnapshotsOptionType value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/FileLastWrittenMode.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/FileLastWrittenMode.Serialization.cs index 4a1b9513747f4..c96242b66d093 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/FileLastWrittenMode.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/FileLastWrittenMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FileLastWrittenModeExtensions public static FileLastWrittenMode ToFileLastWrittenMode(this string value) { - if (string.Equals(value, "Now", StringComparison.InvariantCultureIgnoreCase)) return FileLastWrittenMode.Now; - if (string.Equals(value, "Preserve", StringComparison.InvariantCultureIgnoreCase)) return FileLastWrittenMode.Preserve; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Now")) return FileLastWrittenMode.Now; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Preserve")) return FileLastWrittenMode.Preserve; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FileLastWrittenMode value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListFilesIncludeType.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListFilesIncludeType.Serialization.cs index 23cffcc2e11f6..2133db8729e7a 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListFilesIncludeType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListFilesIncludeType.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class ListFilesIncludeTypeExtensions public static ListFilesIncludeType ToListFilesIncludeType(this string value) { - if (string.Equals(value, "Timestamps", StringComparison.InvariantCultureIgnoreCase)) return ListFilesIncludeType.Timestamps; - if (string.Equals(value, "Etag", StringComparison.InvariantCultureIgnoreCase)) return ListFilesIncludeType.Etag; - if (string.Equals(value, "Attributes", StringComparison.InvariantCultureIgnoreCase)) return ListFilesIncludeType.Attributes; - if (string.Equals(value, "PermissionKey", StringComparison.InvariantCultureIgnoreCase)) return ListFilesIncludeType.PermissionKey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Timestamps")) return ListFilesIncludeType.Timestamps; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Etag")) return ListFilesIncludeType.Etag; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Attributes")) return ListFilesIncludeType.Attributes; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PermissionKey")) return ListFilesIncludeType.PermissionKey; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ListFilesIncludeType value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListSharesIncludeType.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListSharesIncludeType.Serialization.cs index 268847de389d4..1550972e72990 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListSharesIncludeType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListSharesIncludeType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ListSharesIncludeTypeExtensions public static ListSharesIncludeType ToListSharesIncludeType(this string value) { - if (string.Equals(value, "snapshots", StringComparison.InvariantCultureIgnoreCase)) return ListSharesIncludeType.Snapshots; - if (string.Equals(value, "metadata", StringComparison.InvariantCultureIgnoreCase)) return ListSharesIncludeType.Metadata; - if (string.Equals(value, "deleted", StringComparison.InvariantCultureIgnoreCase)) return ListSharesIncludeType.Deleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "snapshots")) return ListSharesIncludeType.Snapshots; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "metadata")) return ListSharesIncludeType.Metadata; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "deleted")) return ListSharesIncludeType.Deleted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ListSharesIncludeType value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/PermissionCopyMode.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/PermissionCopyMode.Serialization.cs index 03942873ac414..63751f9a1bef7 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/PermissionCopyMode.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/PermissionCopyMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class PermissionCopyModeExtensions public static PermissionCopyMode ToPermissionCopyMode(this string value) { - if (string.Equals(value, "source", StringComparison.InvariantCultureIgnoreCase)) return PermissionCopyMode.Source; - if (string.Equals(value, "override", StringComparison.InvariantCultureIgnoreCase)) return PermissionCopyMode.Override; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "source")) return PermissionCopyMode.Source; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "override")) return PermissionCopyMode.Override; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PermissionCopyMode value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareFileRangeWriteType.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareFileRangeWriteType.Serialization.cs index 39e8ef67735a1..a99af441f1b8d 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareFileRangeWriteType.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareFileRangeWriteType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ShareFileRangeWriteTypeExtensions public static ShareFileRangeWriteType ToShareFileRangeWriteType(this string value) { - if (string.Equals(value, "update", StringComparison.InvariantCultureIgnoreCase)) return ShareFileRangeWriteType.Update; - if (string.Equals(value, "clear", StringComparison.InvariantCultureIgnoreCase)) return ShareFileRangeWriteType.Clear; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "update")) return ShareFileRangeWriteType.Update; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "clear")) return ShareFileRangeWriteType.Clear; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ShareFileRangeWriteType value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseDuration.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseDuration.Serialization.cs index 03e2aa5b16f70..29d24fa65eeb5 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseDuration.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseDuration.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ShareLeaseDurationExtensions public static ShareLeaseDuration ToShareLeaseDuration(this string value) { - if (string.Equals(value, "infinite", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseDuration.Infinite; - if (string.Equals(value, "fixed", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseDuration.Fixed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "infinite")) return ShareLeaseDuration.Infinite; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "fixed")) return ShareLeaseDuration.Fixed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ShareLeaseDuration value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseState.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseState.Serialization.cs index f8888d49c3880..116d3c53a6ca3 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseState.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class ShareLeaseStateExtensions public static ShareLeaseState ToShareLeaseState(this string value) { - if (string.Equals(value, "available", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseState.Available; - if (string.Equals(value, "leased", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseState.Leased; - if (string.Equals(value, "expired", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseState.Expired; - if (string.Equals(value, "breaking", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseState.Breaking; - if (string.Equals(value, "broken", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseState.Broken; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "available")) return ShareLeaseState.Available; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "leased")) return ShareLeaseState.Leased; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "expired")) return ShareLeaseState.Expired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "breaking")) return ShareLeaseState.Breaking; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "broken")) return ShareLeaseState.Broken; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ShareLeaseState value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseStatus.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseStatus.Serialization.cs index d1d1e01e12ad9..b5d54c047dd37 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareLeaseStatus.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ShareLeaseStatusExtensions public static ShareLeaseStatus ToShareLeaseStatus(this string value) { - if (string.Equals(value, "locked", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseStatus.Locked; - if (string.Equals(value, "unlocked", StringComparison.InvariantCultureIgnoreCase)) return ShareLeaseStatus.Unlocked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "locked")) return ShareLeaseStatus.Locked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "unlocked")) return ShareLeaseStatus.Unlocked; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ShareLeaseStatus value."); } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareRootSquash.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareRootSquash.Serialization.cs index 17bdd9ef434d4..3bab81e41a04c 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareRootSquash.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareRootSquash.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ShareRootSquashExtensions public static ShareRootSquash ToShareRootSquash(this string value) { - if (string.Equals(value, "NoRootSquash", StringComparison.InvariantCultureIgnoreCase)) return ShareRootSquash.NoRootSquash; - if (string.Equals(value, "RootSquash", StringComparison.InvariantCultureIgnoreCase)) return ShareRootSquash.RootSquash; - if (string.Equals(value, "AllSquash", StringComparison.InvariantCultureIgnoreCase)) return ShareRootSquash.AllSquash; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoRootSquash")) return ShareRootSquash.NoRootSquash; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RootSquash")) return ShareRootSquash.RootSquash; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AllSquash")) return ShareRootSquash.AllSquash; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ShareRootSquash value."); } } diff --git a/sdk/storage/Azure.Storage.Queues/src/Generated/Models/QueueGeoReplicationStatus.Serialization.cs b/sdk/storage/Azure.Storage.Queues/src/Generated/Models/QueueGeoReplicationStatus.Serialization.cs index 0077fedd4749a..3f0376f94d38f 100644 --- a/sdk/storage/Azure.Storage.Queues/src/Generated/Models/QueueGeoReplicationStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Queues/src/Generated/Models/QueueGeoReplicationStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class QueueGeoReplicationStatusExtensions public static QueueGeoReplicationStatus ToQueueGeoReplicationStatus(this string value) { - if (string.Equals(value, "live", StringComparison.InvariantCultureIgnoreCase)) return QueueGeoReplicationStatus.Live; - if (string.Equals(value, "bootstrap", StringComparison.InvariantCultureIgnoreCase)) return QueueGeoReplicationStatus.Bootstrap; - if (string.Equals(value, "unavailable", StringComparison.InvariantCultureIgnoreCase)) return QueueGeoReplicationStatus.Unavailable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "live")) return QueueGeoReplicationStatus.Live; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "bootstrap")) return QueueGeoReplicationStatus.Bootstrap; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "unavailable")) return QueueGeoReplicationStatus.Unavailable; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown QueueGeoReplicationStatus value."); } } diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionsReasonCode.Serialization.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionsReasonCode.Serialization.cs index de5b14447a4bf..f212a857eabdb 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionsReasonCode.Serialization.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionsReasonCode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StoragePoolSkuRestrictionsReasonCodeExtensions public static StoragePoolSkuRestrictionsReasonCode ToStoragePoolSkuRestrictionsReasonCode(this string value) { - if (string.Equals(value, "QuotaId", StringComparison.InvariantCultureIgnoreCase)) return StoragePoolSkuRestrictionsReasonCode.QuotaId; - if (string.Equals(value, "NotAvailableForSubscription", StringComparison.InvariantCultureIgnoreCase)) return StoragePoolSkuRestrictionsReasonCode.NotAvailableForSubscription; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "QuotaId")) return StoragePoolSkuRestrictionsReasonCode.QuotaId; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotAvailableForSubscription")) return StoragePoolSkuRestrictionsReasonCode.NotAvailableForSubscription; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StoragePoolSkuRestrictionsReasonCode value."); } } diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionsType.Serialization.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionsType.Serialization.cs index 60708d8b8a081..58be8e79b250d 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionsType.Serialization.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionsType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StoragePoolSkuRestrictionsTypeExtensions public static StoragePoolSkuRestrictionsType ToStoragePoolSkuRestrictionsType(this string value) { - if (string.Equals(value, "Location", StringComparison.InvariantCultureIgnoreCase)) return StoragePoolSkuRestrictionsType.Location; - if (string.Equals(value, "Zone", StringComparison.InvariantCultureIgnoreCase)) return StoragePoolSkuRestrictionsType.Zone; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Location")) return StoragePoolSkuRestrictionsType.Location; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Zone")) return StoragePoolSkuRestrictionsType.Zone; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StoragePoolSkuRestrictionsType value."); } } diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncNameUnavailableReason.Serialization.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncNameUnavailableReason.Serialization.cs index c5b12e8b94744..a854b357c73ed 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncNameUnavailableReason.Serialization.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncNameUnavailableReason.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageSyncNameUnavailableReasonExtensions public static StorageSyncNameUnavailableReason ToStorageSyncNameUnavailableReason(this string value) { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return StorageSyncNameUnavailableReason.Invalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return StorageSyncNameUnavailableReason.AlreadyExists; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Invalid")) return StorageSyncNameUnavailableReason.Invalid; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AlreadyExists")) return StorageSyncNameUnavailableReason.AlreadyExists; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageSyncNameUnavailableReason value."); } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportResourceType.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportResourceType.Serialization.cs index e5ee044f4b71e..01f2e84c71038 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportResourceType.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportResourceType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SupportResourceTypeExtensions public static SupportResourceType ToSupportResourceType(this string value) { - if (string.Equals(value, "Microsoft.Support/supportTickets", StringComparison.InvariantCultureIgnoreCase)) return SupportResourceType.MicrosoftSupportSupportTickets; - if (string.Equals(value, "Microsoft.Support/communications", StringComparison.InvariantCultureIgnoreCase)) return SupportResourceType.MicrosoftSupportCommunications; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Support/supportTickets")) return SupportResourceType.MicrosoftSupportSupportTickets; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Support/communications")) return SupportResourceType.MicrosoftSupportCommunications; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SupportResourceType value."); } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DayOfWeek.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DayOfWeek.Serialization.cs index c70939f734e34..c0a82b4f091de 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DayOfWeek.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DayOfWeek.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class DayOfWeekExtensions 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; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return DayOfWeek.Sunday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return DayOfWeek.Monday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return DayOfWeek.Tuesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return DayOfWeek.Wednesday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return DayOfWeek.Thursday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return DayOfWeek.Friday; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return DayOfWeek.Saturday; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DayOfWeek value."); } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResourceIdentityType.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResourceIdentityType.Serialization.cs index 1f166de0e5a63..a595e49ea4d3d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResourceIdentityType.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResourceIdentityType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ResourceIdentityTypeExtensions public static ResourceIdentityType ToResourceIdentityType(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ResourceIdentityType.None; - if (string.Equals(value, "SystemAssigned", StringComparison.InvariantCultureIgnoreCase)) return ResourceIdentityType.SystemAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return ResourceIdentityType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SystemAssigned")) return ResourceIdentityType.SystemAssigned; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ResourceIdentityType value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolDatabaseType.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolDatabaseType.Serialization.cs index 35b083f7a642a..a8657ec232c72 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolDatabaseType.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolDatabaseType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class KustoPoolDatabaseTypeExtensions public static KustoPoolDatabaseType ToKustoPoolDatabaseType(this string value) { - if (string.Equals(value, "Microsoft.Synapse/workspaces/kustoPools/databases", StringComparison.InvariantCultureIgnoreCase)) return KustoPoolDatabaseType.MicrosoftSynapseWorkspacesKustoPoolsDatabases; - if (string.Equals(value, "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations", StringComparison.InvariantCultureIgnoreCase)) return KustoPoolDatabaseType.MicrosoftSynapseWorkspacesKustoPoolsAttachedDatabaseConfigurations; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Synapse/workspaces/kustoPools/databases")) return KustoPoolDatabaseType.MicrosoftSynapseWorkspacesKustoPoolsDatabases; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations")) return KustoPoolDatabaseType.MicrosoftSynapseWorkspacesKustoPoolsAttachedDatabaseConfigurations; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KustoPoolDatabaseType value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBlobAuditingPolicyState.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBlobAuditingPolicyState.Serialization.cs index 99e95d0bd4920..c674c32c4c78d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBlobAuditingPolicyState.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBlobAuditingPolicyState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseBlobAuditingPolicyStateExtensions public static SynapseBlobAuditingPolicyState ToSynapseBlobAuditingPolicyState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseBlobAuditingPolicyState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseBlobAuditingPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SynapseBlobAuditingPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SynapseBlobAuditingPolicyState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseBlobAuditingPolicyState value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingFunction.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingFunction.Serialization.cs index 490e2327c9187..41c6d43ea09bc 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingFunction.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingFunction.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class SynapseDataMaskingFunctionExtensions public static SynapseDataMaskingFunction ToSynapseDataMaskingFunction(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingFunction.Default; - if (string.Equals(value, "CCN", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingFunction.Ccn; - if (string.Equals(value, "Email", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingFunction.Email; - if (string.Equals(value, "Number", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingFunction.Number; - if (string.Equals(value, "SSN", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingFunction.Ssn; - if (string.Equals(value, "Text", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingFunction.Text; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return SynapseDataMaskingFunction.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CCN")) return SynapseDataMaskingFunction.Ccn; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Email")) return SynapseDataMaskingFunction.Email; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Number")) return SynapseDataMaskingFunction.Number; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SSN")) return SynapseDataMaskingFunction.Ssn; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Text")) return SynapseDataMaskingFunction.Text; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseDataMaskingFunction value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleState.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleState.Serialization.cs index 7088e57f5bc0d..def65cf9d8e56 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleState.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseDataMaskingRuleStateExtensions public static SynapseDataMaskingRuleState ToSynapseDataMaskingRuleState(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingRuleState.Disabled; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingRuleState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SynapseDataMaskingRuleState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SynapseDataMaskingRuleState.Enabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseDataMaskingRuleState value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingState.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingState.Serialization.cs index 686b70ec69fc7..8394d47407b71 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingState.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseDataMaskingStateExtensions public static SynapseDataMaskingState ToSynapseDataMaskingState(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingState.Disabled; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseDataMaskingState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SynapseDataMaskingState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SynapseDataMaskingState.Enabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseDataMaskingState value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDesiredState.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDesiredState.Serialization.cs index 894d23f45e737..201ee4692192a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDesiredState.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDesiredState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseDesiredStateExtensions public static SynapseDesiredState ToSynapseDesiredState(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseDesiredState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseDesiredState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SynapseDesiredState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SynapseDesiredState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseDesiredState value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyState.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyState.Serialization.cs index 20a3e509851bd..773a4a8e49a1b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyState.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseGeoBackupPolicyStateExtensions public static SynapseGeoBackupPolicyState ToSynapseGeoBackupPolicyState(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseGeoBackupPolicyState.Disabled; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseGeoBackupPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SynapseGeoBackupPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SynapseGeoBackupPolicyState.Enabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseGeoBackupPolicyState value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGrantSqlControlToManagedIdentityState.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGrantSqlControlToManagedIdentityState.Serialization.cs index d41a485cc2a43..6ef387cca979c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGrantSqlControlToManagedIdentityState.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGrantSqlControlToManagedIdentityState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SynapseGrantSqlControlToManagedIdentityStateExtens public static SynapseGrantSqlControlToManagedIdentityState ToSynapseGrantSqlControlToManagedIdentityState(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return SynapseGrantSqlControlToManagedIdentityState.Unknown; - if (string.Equals(value, "Enabling", StringComparison.InvariantCultureIgnoreCase)) return SynapseGrantSqlControlToManagedIdentityState.Enabling; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseGrantSqlControlToManagedIdentityState.Enabled; - if (string.Equals(value, "Disabling", StringComparison.InvariantCultureIgnoreCase)) return SynapseGrantSqlControlToManagedIdentityState.Disabling; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseGrantSqlControlToManagedIdentityState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return SynapseGrantSqlControlToManagedIdentityState.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabling")) return SynapseGrantSqlControlToManagedIdentityState.Enabling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SynapseGrantSqlControlToManagedIdentityState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabling")) return SynapseGrantSqlControlToManagedIdentityState.Disabling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SynapseGrantSqlControlToManagedIdentityState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseGrantSqlControlToManagedIdentityState value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecommendedSensitivityLabelUpdateKind.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecommendedSensitivityLabelUpdateKind.Serialization.cs index b2aa70764c898..62271042e380c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecommendedSensitivityLabelUpdateKind.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecommendedSensitivityLabelUpdateKind.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseRecommendedSensitivityLabelUpdateKindExtens public static SynapseRecommendedSensitivityLabelUpdateKind ToSynapseRecommendedSensitivityLabelUpdateKind(this string value) { - if (string.Equals(value, "enable", StringComparison.InvariantCultureIgnoreCase)) return SynapseRecommendedSensitivityLabelUpdateKind.Enable; - if (string.Equals(value, "disable", StringComparison.InvariantCultureIgnoreCase)) return SynapseRecommendedSensitivityLabelUpdateKind.Disable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "enable")) return SynapseRecommendedSensitivityLabelUpdateKind.Enable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "disable")) return SynapseRecommendedSensitivityLabelUpdateKind.Disable; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseRecommendedSensitivityLabelUpdateKind value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationRole.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationRole.Serialization.cs index 4a2438aeda4ae..3badb70e1ee7f 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationRole.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationRole.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SynapseReplicationRoleExtensions public static SynapseReplicationRole ToSynapseReplicationRole(this string value) { - if (string.Equals(value, "Primary", StringComparison.InvariantCultureIgnoreCase)) return SynapseReplicationRole.Primary; - if (string.Equals(value, "Secondary", StringComparison.InvariantCultureIgnoreCase)) return SynapseReplicationRole.Secondary; - if (string.Equals(value, "NonReadableSecondary", StringComparison.InvariantCultureIgnoreCase)) return SynapseReplicationRole.NonReadableSecondary; - if (string.Equals(value, "Source", StringComparison.InvariantCultureIgnoreCase)) return SynapseReplicationRole.Source; - if (string.Equals(value, "Copy", StringComparison.InvariantCultureIgnoreCase)) return SynapseReplicationRole.Copy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Primary")) return SynapseReplicationRole.Primary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Secondary")) return SynapseReplicationRole.Secondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NonReadableSecondary")) return SynapseReplicationRole.NonReadableSecondary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Source")) return SynapseReplicationRole.Source; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Copy")) return SynapseReplicationRole.Copy; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseReplicationRole value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointType.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointType.Serialization.cs index 3ae41a50ef08d..c5cea8ca33536 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointType.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseRestorePointTypeExtensions public static SynapseRestorePointType ToSynapseRestorePointType(this string value) { - if (string.Equals(value, "CONTINUOUS", StringComparison.InvariantCultureIgnoreCase)) return SynapseRestorePointType.Continuous; - if (string.Equals(value, "DISCRETE", StringComparison.InvariantCultureIgnoreCase)) return SynapseRestorePointType.Discrete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CONTINUOUS")) return SynapseRestorePointType.Continuous; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DISCRETE")) return SynapseRestorePointType.Discrete; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseRestorePointType value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSecurityAlertPolicyState.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSecurityAlertPolicyState.Serialization.cs index 7fa19afdeee31..0b7f9c1fa46d5 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSecurityAlertPolicyState.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSecurityAlertPolicyState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SynapseSecurityAlertPolicyStateExtensions public static SynapseSecurityAlertPolicyState ToSynapseSecurityAlertPolicyState(this string value) { - if (string.Equals(value, "New", StringComparison.InvariantCultureIgnoreCase)) return SynapseSecurityAlertPolicyState.New; - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseSecurityAlertPolicyState.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseSecurityAlertPolicyState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "New")) return SynapseSecurityAlertPolicyState.New; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SynapseSecurityAlertPolicyState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SynapseSecurityAlertPolicyState.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseSecurityAlertPolicyState value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelRank.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelRank.Serialization.cs index 77b5846303237..2d06ea55589e5 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelRank.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelRank.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class SynapseSensitivityLabelRankExtensions public static SynapseSensitivityLabelRank ToSynapseSensitivityLabelRank(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelRank.None; - if (string.Equals(value, "Low", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelRank.Low; - if (string.Equals(value, "Medium", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelRank.Medium; - if (string.Equals(value, "High", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelRank.High; - if (string.Equals(value, "Critical", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelRank.Critical; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return SynapseSensitivityLabelRank.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Low")) return SynapseSensitivityLabelRank.Low; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Medium")) return SynapseSensitivityLabelRank.Medium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "High")) return SynapseSensitivityLabelRank.High; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Critical")) return SynapseSensitivityLabelRank.Critical; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseSensitivityLabelRank value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelSource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelSource.Serialization.cs index 54113b2003c7e..f0033bdea0f4c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelSource.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelSource.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseSensitivityLabelSourceExtensions public static SynapseSensitivityLabelSource ToSynapseSensitivityLabelSource(this string value) { - if (string.Equals(value, "current", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelSource.Current; - if (string.Equals(value, "recommended", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelSource.Recommended; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "current")) return SynapseSensitivityLabelSource.Current; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "recommended")) return SynapseSensitivityLabelSource.Recommended; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseSensitivityLabelSource value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelUpdateKind.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelUpdateKind.Serialization.cs index 83649d931ed67..50122af0448fc 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelUpdateKind.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelUpdateKind.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseSensitivityLabelUpdateKindExtensions public static SynapseSensitivityLabelUpdateKind ToSynapseSensitivityLabelUpdateKind(this string value) { - if (string.Equals(value, "set", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelUpdateKind.Set; - if (string.Equals(value, "remove", StringComparison.InvariantCultureIgnoreCase)) return SynapseSensitivityLabelUpdateKind.Remove; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "set")) return SynapseSensitivityLabelUpdateKind.Set; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "remove")) return SynapseSensitivityLabelUpdateKind.Remove; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseSensitivityLabelUpdateKind value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionStatus.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionStatus.Serialization.cs index be9c650c63cd8..9840ac18021a6 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionStatus.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionStatus.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseTransparentDataEncryptionStatusExtensions public static SynapseTransparentDataEncryptionStatus ToSynapseTransparentDataEncryptionStatus(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseTransparentDataEncryptionStatus.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return SynapseTransparentDataEncryptionStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return SynapseTransparentDataEncryptionStatus.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return SynapseTransparentDataEncryptionStatus.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseTransparentDataEncryptionStatus value."); } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentPolicyBaselineName.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentPolicyBaselineName.Serialization.cs index 47709b02e3b3a..05190b8982650 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentPolicyBaselineName.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentPolicyBaselineName.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SynapseVulnerabilityAssessmentPolicyBaselineNameEx public static SynapseVulnerabilityAssessmentPolicyBaselineName ToSynapseVulnerabilityAssessmentPolicyBaselineName(this string value) { - if (string.Equals(value, "master", StringComparison.InvariantCultureIgnoreCase)) return SynapseVulnerabilityAssessmentPolicyBaselineName.Master; - if (string.Equals(value, "default", StringComparison.InvariantCultureIgnoreCase)) return SynapseVulnerabilityAssessmentPolicyBaselineName.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "master")) return SynapseVulnerabilityAssessmentPolicyBaselineName.Master; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "default")) return SynapseVulnerabilityAssessmentPolicyBaselineName.Default; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SynapseVulnerabilityAssessmentPolicyBaselineName value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Association.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Association.Serialization.cs index e39ec878cf6fe..c3ba0364b239c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Association.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Association.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AssociationExtensions public static Association ToAssociation(this string value) { - if (string.Equals(value, "subject", StringComparison.InvariantCultureIgnoreCase)) return Association.Subject; - if (string.Equals(value, "other", StringComparison.InvariantCultureIgnoreCase)) return Association.Other; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "subject")) return Association.Subject; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "other")) return Association.Other; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Association value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Certainty.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Certainty.Serialization.cs index 475a9ec9f623e..ed7b76f227eee 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Certainty.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Certainty.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class CertaintyExtensions public static Certainty ToCertainty(this string value) { - if (string.Equals(value, "positive", StringComparison.InvariantCultureIgnoreCase)) return Certainty.Positive; - if (string.Equals(value, "positivePossible", StringComparison.InvariantCultureIgnoreCase)) return Certainty.PositivePossible; - if (string.Equals(value, "neutralPossible", StringComparison.InvariantCultureIgnoreCase)) return Certainty.NeutralPossible; - if (string.Equals(value, "negativePossible", StringComparison.InvariantCultureIgnoreCase)) return Certainty.NegativePossible; - if (string.Equals(value, "negative", StringComparison.InvariantCultureIgnoreCase)) return Certainty.Negative; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positive")) return Certainty.Positive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positivePossible")) return Certainty.PositivePossible; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "neutralPossible")) return Certainty.NeutralPossible; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negativePossible")) return Certainty.NegativePossible; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negative")) return Certainty.Negative; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Certainty value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Conditionality.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Conditionality.Serialization.cs index eb5a6297ffb1e..ec7bafa0ab732 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Conditionality.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Conditionality.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ConditionalityExtensions public static Conditionality ToConditionality(this string value) { - if (string.Equals(value, "hypothetical", StringComparison.InvariantCultureIgnoreCase)) return Conditionality.Hypothetical; - if (string.Equals(value, "conditional", StringComparison.InvariantCultureIgnoreCase)) return Conditionality.Conditional; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hypothetical")) return Conditionality.Hypothetical; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "conditional")) return Conditionality.Conditional; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Conditionality value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentSentimentValue.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentSentimentValue.Serialization.cs index 444c1e85f6b63..ce714f318ed58 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentSentimentValue.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentSentimentValue.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class DocumentSentimentValueExtensions public static DocumentSentimentValue ToDocumentSentimentValue(this string value) { - if (string.Equals(value, "positive", StringComparison.InvariantCultureIgnoreCase)) return DocumentSentimentValue.Positive; - if (string.Equals(value, "neutral", StringComparison.InvariantCultureIgnoreCase)) return DocumentSentimentValue.Neutral; - if (string.Equals(value, "negative", StringComparison.InvariantCultureIgnoreCase)) return DocumentSentimentValue.Negative; - if (string.Equals(value, "mixed", StringComparison.InvariantCultureIgnoreCase)) return DocumentSentimentValue.Mixed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positive")) return DocumentSentimentValue.Positive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "neutral")) return DocumentSentimentValue.Neutral; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negative")) return DocumentSentimentValue.Negative; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "mixed")) return DocumentSentimentValue.Mixed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DocumentSentimentValue value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentimentValue.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentimentValue.Serialization.cs index 90761e07bd2b7..9189eec6769ce 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentimentValue.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentimentValue.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SentenceSentimentValueExtensions public static SentenceSentimentValue ToSentenceSentimentValue(this string value) { - if (string.Equals(value, "positive", StringComparison.InvariantCultureIgnoreCase)) return SentenceSentimentValue.Positive; - if (string.Equals(value, "neutral", StringComparison.InvariantCultureIgnoreCase)) return SentenceSentimentValue.Neutral; - if (string.Equals(value, "negative", StringComparison.InvariantCultureIgnoreCase)) return SentenceSentimentValue.Negative; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positive")) return SentenceSentimentValue.Positive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "neutral")) return SentenceSentimentValue.Neutral; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negative")) return SentenceSentimentValue.Negative; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SentenceSentimentValue value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/State.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/State.Serialization.cs index d5a347f040176..a8f902c52119f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/State.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/State.Serialization.cs @@ -25,13 +25,13 @@ internal static partial class StateExtensions public static State ToState(this string value) { - if (string.Equals(value, "notStarted", StringComparison.InvariantCultureIgnoreCase)) return State.NotStarted; - if (string.Equals(value, "running", StringComparison.InvariantCultureIgnoreCase)) return State.Running; - if (string.Equals(value, "succeeded", StringComparison.InvariantCultureIgnoreCase)) return State.Succeeded; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return State.Failed; - if (string.Equals(value, "rejected", StringComparison.InvariantCultureIgnoreCase)) return State.Rejected; - if (string.Equals(value, "cancelled", StringComparison.InvariantCultureIgnoreCase)) return State.Cancelled; - if (string.Equals(value, "cancelling", StringComparison.InvariantCultureIgnoreCase)) return State.Cancelling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "notStarted")) return State.NotStarted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "running")) return State.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "succeeded")) return State.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return State.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "rejected")) return State.Rejected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "cancelled")) return State.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "cancelling")) return State.Cancelling; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown State value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetRelationType.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetRelationType.Serialization.cs index 1cca4e2a20756..711793875bd19 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetRelationType.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetRelationType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class TargetRelationTypeExtensions public static TargetRelationType ToTargetRelationType(this string value) { - if (string.Equals(value, "assessment", StringComparison.InvariantCultureIgnoreCase)) return TargetRelationType.Assessment; - if (string.Equals(value, "target", StringComparison.InvariantCultureIgnoreCase)) return TargetRelationType.Target; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "assessment")) return TargetRelationType.Assessment; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "target")) return TargetRelationType.Target; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TargetRelationType value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TokenSentimentValue.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TokenSentimentValue.Serialization.cs index 36857f85664df..3dddd50be0c7a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TokenSentimentValue.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TokenSentimentValue.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class TokenSentimentValueExtensions public static TokenSentimentValue ToTokenSentimentValue(this string value) { - if (string.Equals(value, "positive", StringComparison.InvariantCultureIgnoreCase)) return TokenSentimentValue.Positive; - if (string.Equals(value, "mixed", StringComparison.InvariantCultureIgnoreCase)) return TokenSentimentValue.Mixed; - if (string.Equals(value, "negative", StringComparison.InvariantCultureIgnoreCase)) return TokenSentimentValue.Negative; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positive")) return TokenSentimentValue.Positive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "mixed")) return TokenSentimentValue.Mixed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negative")) return TokenSentimentValue.Negative; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TokenSentimentValue value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityAssociation.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityAssociation.Serialization.cs index a594656410bc7..ba5071a8f901f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityAssociation.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityAssociation.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class EntityAssociationExtensions public static EntityAssociation ToEntityAssociation(this string value) { - if (string.Equals(value, "subject", StringComparison.InvariantCultureIgnoreCase)) return EntityAssociation.Subject; - if (string.Equals(value, "other", StringComparison.InvariantCultureIgnoreCase)) return EntityAssociation.Other; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "subject")) return EntityAssociation.Subject; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "other")) return EntityAssociation.Other; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EntityAssociation value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityCertainty.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityCertainty.Serialization.cs index 89021b26503d5..772695657c4ff 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityCertainty.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityCertainty.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class EntityCertaintyExtensions public static EntityCertainty ToEntityCertainty(this string value) { - if (string.Equals(value, "positive", StringComparison.InvariantCultureIgnoreCase)) return EntityCertainty.Positive; - if (string.Equals(value, "positivePossible", StringComparison.InvariantCultureIgnoreCase)) return EntityCertainty.PositivePossible; - if (string.Equals(value, "neutralPossible", StringComparison.InvariantCultureIgnoreCase)) return EntityCertainty.NeutralPossible; - if (string.Equals(value, "negativePossible", StringComparison.InvariantCultureIgnoreCase)) return EntityCertainty.NegativePossible; - if (string.Equals(value, "negative", StringComparison.InvariantCultureIgnoreCase)) return EntityCertainty.Negative; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positive")) return EntityCertainty.Positive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positivePossible")) return EntityCertainty.PositivePossible; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "neutralPossible")) return EntityCertainty.NeutralPossible; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negativePossible")) return EntityCertainty.NegativePossible; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negative")) return EntityCertainty.Negative; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EntityCertainty value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityConditionality.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityConditionality.Serialization.cs index 5a88d95851f73..edad517291639 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityConditionality.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityConditionality.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class EntityConditionalityExtensions public static EntityConditionality ToEntityConditionality(this string value) { - if (string.Equals(value, "hypothetical", StringComparison.InvariantCultureIgnoreCase)) return EntityConditionality.Hypothetical; - if (string.Equals(value, "conditional", StringComparison.InvariantCultureIgnoreCase)) return EntityConditionality.Conditional; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "hypothetical")) return EntityConditionality.Hypothetical; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "conditional")) return EntityConditionality.Conditional; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EntityConditionality value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceSentimentValue.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceSentimentValue.Serialization.cs index 6b375460acded..68d3e8048fd85 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceSentimentValue.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceSentimentValue.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SentenceSentimentValueExtensions public static SentenceSentimentValue ToSentenceSentimentValue(this string value) { - if (string.Equals(value, "positive", StringComparison.InvariantCultureIgnoreCase)) return SentenceSentimentValue.Positive; - if (string.Equals(value, "neutral", StringComparison.InvariantCultureIgnoreCase)) return SentenceSentimentValue.Neutral; - if (string.Equals(value, "negative", StringComparison.InvariantCultureIgnoreCase)) return SentenceSentimentValue.Negative; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positive")) return SentenceSentimentValue.Positive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "neutral")) return SentenceSentimentValue.Neutral; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negative")) return SentenceSentimentValue.Negative; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SentenceSentimentValue value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelationType.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelationType.Serialization.cs index 3ff2417f8c3e5..48867669d17fb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelationType.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelationType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class TargetRelationTypeExtensions public static TargetRelationType ToTargetRelationType(this string value) { - if (string.Equals(value, "assessment", StringComparison.InvariantCultureIgnoreCase)) return TargetRelationType.Assessment; - if (string.Equals(value, "target", StringComparison.InvariantCultureIgnoreCase)) return TargetRelationType.Target; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "assessment")) return TargetRelationType.Assessment; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "target")) return TargetRelationType.Target; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TargetRelationType value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextSentiment.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextSentiment.Serialization.cs index 80779f8039477..cf96f73dd655f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextSentiment.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextSentiment.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class TextSentimentExtensions public static TextSentiment ToTextSentiment(this string value) { - if (string.Equals(value, "positive", StringComparison.InvariantCultureIgnoreCase)) return TextSentiment.Positive; - if (string.Equals(value, "neutral", StringComparison.InvariantCultureIgnoreCase)) return TextSentiment.Neutral; - if (string.Equals(value, "negative", StringComparison.InvariantCultureIgnoreCase)) return TextSentiment.Negative; - if (string.Equals(value, "mixed", StringComparison.InvariantCultureIgnoreCase)) return TextSentiment.Mixed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positive")) return TextSentiment.Positive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "neutral")) return TextSentiment.Neutral; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negative")) return TextSentiment.Negative; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "mixed")) return TextSentiment.Mixed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TextSentiment value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TokenSentimentValue.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TokenSentimentValue.Serialization.cs index 663c2dccfbd16..492fe74512ff2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TokenSentimentValue.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TokenSentimentValue.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class TokenSentimentValueExtensions public static TokenSentimentValue ToTokenSentimentValue(this string value) { - if (string.Equals(value, "positive", StringComparison.InvariantCultureIgnoreCase)) return TokenSentimentValue.Positive; - if (string.Equals(value, "mixed", StringComparison.InvariantCultureIgnoreCase)) return TokenSentimentValue.Mixed; - if (string.Equals(value, "negative", StringComparison.InvariantCultureIgnoreCase)) return TokenSentimentValue.Negative; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "positive")) return TokenSentimentValue.Positive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "mixed")) return TokenSentimentValue.Mixed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "negative")) return TokenSentimentValue.Negative; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TokenSentimentValue value."); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/WarningCodeValue.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/WarningCodeValue.Serialization.cs index f6e15d4bdf615..4535f752ce9a8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/WarningCodeValue.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/WarningCodeValue.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class WarningCodeValueExtensions public static WarningCodeValue ToWarningCodeValue(this string value) { - if (string.Equals(value, "LongWordsInDocument", StringComparison.InvariantCultureIgnoreCase)) return WarningCodeValue.LongWordsInDocument; - if (string.Equals(value, "DocumentTruncated", StringComparison.InvariantCultureIgnoreCase)) return WarningCodeValue.DocumentTruncated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LongWordsInDocument")) return WarningCodeValue.LongWordsInDocument; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DocumentTruncated")) return WarningCodeValue.DocumentTruncated; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WarningCodeValue value."); } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StorageInputUriKind.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StorageInputUriKind.Serialization.cs index 8b2881c4f3021..8fddbed84c434 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StorageInputUriKind.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StorageInputUriKind.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StorageInputUriKindExtensions public static StorageInputUriKind ToStorageInputUriKind(this string value) { - if (string.Equals(value, "Folder", StringComparison.InvariantCultureIgnoreCase)) return StorageInputUriKind.Folder; - if (string.Equals(value, "File", StringComparison.InvariantCultureIgnoreCase)) return StorageInputUriKind.File; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Folder")) return StorageInputUriKind.Folder; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "File")) return StorageInputUriKind.File; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StorageInputUriKind value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.Serialization.cs index 416f9ae5ed4a7..7e8118960336d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AppServiceDnsTypeExtensions public static AppServiceDnsType ToAppServiceDnsType(this string value) { - if (string.Equals(value, "AzureDns", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDnsType.AzureDns; - if (string.Equals(value, "DefaultDomainRegistrarDns", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDnsType.DefaultDomainRegistrarDns; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureDns")) return AppServiceDnsType.AzureDns; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DefaultDomainRegistrarDns")) return AppServiceDnsType.DefaultDomainRegistrarDns; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDnsType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.Serialization.cs index cda273da79b89..eb8d8c01b3d3d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.Serialization.cs @@ -39,27 +39,27 @@ internal static partial class AppServiceDomainStatusExtensions public static AppServiceDomainStatus ToAppServiceDomainStatus(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Unknown; - if (string.Equals(value, "Active", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Active; - if (string.Equals(value, "Awaiting", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Awaiting; - if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Cancelled; - if (string.Equals(value, "Confiscated", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Confiscated; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Disabled; - if (string.Equals(value, "Excluded", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Excluded; - if (string.Equals(value, "Expired", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Expired; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Failed; - if (string.Equals(value, "Held", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Held; - if (string.Equals(value, "Locked", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Locked; - if (string.Equals(value, "Parked", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Parked; - if (string.Equals(value, "Pending", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Pending; - if (string.Equals(value, "Reserved", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Reserved; - if (string.Equals(value, "Reverted", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Reverted; - if (string.Equals(value, "Suspended", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Suspended; - if (string.Equals(value, "Transferred", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Transferred; - if (string.Equals(value, "Unlocked", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Unlocked; - if (string.Equals(value, "Unparked", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Unparked; - if (string.Equals(value, "Updated", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.Updated; - if (string.Equals(value, "JsonConverterFailed", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainStatus.JsonConverterFailed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return AppServiceDomainStatus.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Active")) return AppServiceDomainStatus.Active; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Awaiting")) return AppServiceDomainStatus.Awaiting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return AppServiceDomainStatus.Cancelled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Confiscated")) return AppServiceDomainStatus.Confiscated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return AppServiceDomainStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Excluded")) return AppServiceDomainStatus.Excluded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Expired")) return AppServiceDomainStatus.Expired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return AppServiceDomainStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Held")) return AppServiceDomainStatus.Held; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Locked")) return AppServiceDomainStatus.Locked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Parked")) return AppServiceDomainStatus.Parked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pending")) return AppServiceDomainStatus.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reserved")) return AppServiceDomainStatus.Reserved; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reverted")) return AppServiceDomainStatus.Reverted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Suspended")) return AppServiceDomainStatus.Suspended; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Transferred")) return AppServiceDomainStatus.Transferred; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unlocked")) return AppServiceDomainStatus.Unlocked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unparked")) return AppServiceDomainStatus.Unparked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Updated")) return AppServiceDomainStatus.Updated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "JsonConverterFailed")) return AppServiceDomainStatus.JsonConverterFailed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDomainStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.Serialization.cs index dcd5d3378eb4a..e2bbf01ccd572 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AppServiceDomainTypeExtensions public static AppServiceDomainType ToAppServiceDomainType(this string value) { - if (string.Equals(value, "Regular", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainType.Regular; - if (string.Equals(value, "SoftDeleted", StringComparison.InvariantCultureIgnoreCase)) return AppServiceDomainType.SoftDeleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Regular")) return AppServiceDomainType.Regular; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SoftDeleted")) return AppServiceDomainType.SoftDeleted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDomainType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostNameType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostNameType.Serialization.cs index e3a5bf4bb0736..b72626eeb78d1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostNameType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostNameType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AppServiceHostNameTypeExtensions public static AppServiceHostNameType ToAppServiceHostNameType(this string value) { - if (string.Equals(value, "Verified", StringComparison.InvariantCultureIgnoreCase)) return AppServiceHostNameType.Verified; - if (string.Equals(value, "Managed", StringComparison.InvariantCultureIgnoreCase)) return AppServiceHostNameType.Managed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Verified")) return AppServiceHostNameType.Verified; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Managed")) return AppServiceHostNameType.Managed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceHostNameType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostType.Serialization.cs index 4728a239917d0..36f2e1adfee38 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AppServiceHostTypeExtensions public static AppServiceHostType ToAppServiceHostType(this string value) { - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return AppServiceHostType.Standard; - if (string.Equals(value, "Repository", StringComparison.InvariantCultureIgnoreCase)) return AppServiceHostType.Repository; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return AppServiceHostType.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Repository")) return AppServiceHostType.Repository; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceHostType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperationStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperationStatus.Serialization.cs index a28b16bfaccfd..8b3bb631a16f6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperationStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperationStatus.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class AppServiceOperationStatusExtensions public static AppServiceOperationStatus ToAppServiceOperationStatus(this string value) { - if (string.Equals(value, "InProgress", StringComparison.InvariantCultureIgnoreCase)) return AppServiceOperationStatus.InProgress; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return AppServiceOperationStatus.Failed; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return AppServiceOperationStatus.Succeeded; - if (string.Equals(value, "TimedOut", StringComparison.InvariantCultureIgnoreCase)) return AppServiceOperationStatus.TimedOut; - if (string.Equals(value, "Created", StringComparison.InvariantCultureIgnoreCase)) return AppServiceOperationStatus.Created; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InProgress")) return AppServiceOperationStatus.InProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return AppServiceOperationStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return AppServiceOperationStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TimedOut")) return AppServiceOperationStatus.TimedOut; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Created")) return AppServiceOperationStatus.Created; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceOperationStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanRestriction.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanRestriction.Serialization.cs index 318228cd9d52a..37e5c7a9dac5b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanRestriction.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanRestriction.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class AppServicePlanRestrictionExtensions public static AppServicePlanRestriction ToAppServicePlanRestriction(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanRestriction.None; - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanRestriction.Free; - if (string.Equals(value, "Shared", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanRestriction.Shared; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanRestriction.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanRestriction.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanRestriction.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return AppServicePlanRestriction.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return AppServicePlanRestriction.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Shared")) return AppServicePlanRestriction.Shared; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return AppServicePlanRestriction.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return AppServicePlanRestriction.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return AppServicePlanRestriction.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServicePlanRestriction value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanStatus.Serialization.cs index fd721a0c2ac9e..bec02caca3912 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AppServicePlanStatusExtensions public static AppServicePlanStatus ToAppServicePlanStatus(this string value) { - if (string.Equals(value, "Ready", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanStatus.Ready; - if (string.Equals(value, "Pending", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanStatus.Pending; - if (string.Equals(value, "Creating", StringComparison.InvariantCultureIgnoreCase)) return AppServicePlanStatus.Creating; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Ready")) return AppServicePlanStatus.Ready; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pending")) return AppServicePlanStatus.Pending; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return AppServicePlanStatus.Creating; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServicePlanStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceResourceType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceResourceType.Serialization.cs index 6b44f49da644e..593e2c8c5c910 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceResourceType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceResourceType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AppServiceResourceTypeExtensions public static AppServiceResourceType ToAppServiceResourceType(this string value) { - if (string.Equals(value, "Website", StringComparison.InvariantCultureIgnoreCase)) return AppServiceResourceType.Website; - if (string.Equals(value, "TrafficManager", StringComparison.InvariantCultureIgnoreCase)) return AppServiceResourceType.TrafficManager; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Website")) return AppServiceResourceType.Website; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TrafficManager")) return AppServiceResourceType.TrafficManager; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceResourceType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageAccountState.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageAccountState.Serialization.cs index 6892002aaf8db..aa567aea00621 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageAccountState.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageAccountState.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class AppServiceStorageAccountStateExtensions public static AppServiceStorageAccountState ToAppServiceStorageAccountState(this string value) { - if (string.Equals(value, "Ok", StringComparison.InvariantCultureIgnoreCase)) return AppServiceStorageAccountState.Ok; - if (string.Equals(value, "InvalidCredentials", StringComparison.InvariantCultureIgnoreCase)) return AppServiceStorageAccountState.InvalidCredentials; - if (string.Equals(value, "InvalidShare", StringComparison.InvariantCultureIgnoreCase)) return AppServiceStorageAccountState.InvalidShare; - if (string.Equals(value, "NotValidated", StringComparison.InvariantCultureIgnoreCase)) return AppServiceStorageAccountState.NotValidated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Ok")) return AppServiceStorageAccountState.Ok; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InvalidCredentials")) return AppServiceStorageAccountState.InvalidCredentials; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InvalidShare")) return AppServiceStorageAccountState.InvalidShare; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotValidated")) return AppServiceStorageAccountState.NotValidated; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceStorageAccountState value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageType.Serialization.cs index edfe1741d1e58..9d3b87494cec6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AppServiceStorageTypeExtensions public static AppServiceStorageType ToAppServiceStorageType(this string value) { - if (string.Equals(value, "AzureFiles", StringComparison.InvariantCultureIgnoreCase)) return AppServiceStorageType.AzureFiles; - if (string.Equals(value, "AzureBlob", StringComparison.InvariantCultureIgnoreCase)) return AppServiceStorageType.AzureBlob; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureFiles")) return AppServiceStorageType.AzureFiles; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureBlob")) return AppServiceStorageType.AzureBlob; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceStorageType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceUsageState.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceUsageState.Serialization.cs index 1b5f8ba5cac42..48208cc702866 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceUsageState.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceUsageState.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class AppServiceUsageStateExtensions public static AppServiceUsageState ToAppServiceUsageState(this string value) { - if (string.Equals(value, "Normal", StringComparison.InvariantCultureIgnoreCase)) return AppServiceUsageState.Normal; - if (string.Equals(value, "Exceeded", StringComparison.InvariantCultureIgnoreCase)) return AppServiceUsageState.Exceeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Normal")) return AppServiceUsageState.Normal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Exceeded")) return AppServiceUsageState.Exceeded; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceUsageState value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ArtifactStorageType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ArtifactStorageType.Serialization.cs index d4823ab6e8bfb..bc16fee083db8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ArtifactStorageType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ArtifactStorageType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ArtifactStorageTypeExtensions public static ArtifactStorageType ToArtifactStorageType(this string value) { - if (string.Equals(value, "LocalNode", StringComparison.InvariantCultureIgnoreCase)) return ArtifactStorageType.LocalNode; - if (string.Equals(value, "NetworkFileSystem", StringComparison.InvariantCultureIgnoreCase)) return ArtifactStorageType.NetworkFileSystem; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LocalNode")) return ArtifactStorageType.LocalNode; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NetworkFileSystem")) return ArtifactStorageType.NetworkFileSystem; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArtifactStorageType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealActionType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealActionType.Serialization.cs index b4772cede0309..164a66dc1c669 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealActionType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealActionType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class AutoHealActionTypeExtensions public static AutoHealActionType ToAutoHealActionType(this string value) { - if (string.Equals(value, "Recycle", StringComparison.InvariantCultureIgnoreCase)) return AutoHealActionType.Recycle; - if (string.Equals(value, "LogEvent", StringComparison.InvariantCultureIgnoreCase)) return AutoHealActionType.LogEvent; - if (string.Equals(value, "CustomAction", StringComparison.InvariantCultureIgnoreCase)) return AutoHealActionType.CustomAction; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Recycle")) return AutoHealActionType.Recycle; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LogEvent")) return AutoHealActionType.LogEvent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CustomAction")) return AutoHealActionType.CustomAction; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AutoHealActionType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BackupFrequencyUnit.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BackupFrequencyUnit.Serialization.cs index fb8e5dd5ad6d7..34f780d1e9ea5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BackupFrequencyUnit.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BackupFrequencyUnit.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class BackupFrequencyUnitExtensions public static BackupFrequencyUnit ToBackupFrequencyUnit(this string value) { - if (string.Equals(value, "Day", StringComparison.InvariantCultureIgnoreCase)) return BackupFrequencyUnit.Day; - if (string.Equals(value, "Hour", StringComparison.InvariantCultureIgnoreCase)) return BackupFrequencyUnit.Hour; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Day")) return BackupFrequencyUnit.Day; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Hour")) return BackupFrequencyUnit.Hour; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupFrequencyUnit value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BackupRestoreOperationType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BackupRestoreOperationType.Serialization.cs index 095cfbe87b0d0..3642066960b1a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BackupRestoreOperationType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BackupRestoreOperationType.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class BackupRestoreOperationTypeExtensions public static BackupRestoreOperationType ToBackupRestoreOperationType(this string value) { - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return BackupRestoreOperationType.Default; - if (string.Equals(value, "Clone", StringComparison.InvariantCultureIgnoreCase)) return BackupRestoreOperationType.Clone; - if (string.Equals(value, "Relocation", StringComparison.InvariantCultureIgnoreCase)) return BackupRestoreOperationType.Relocation; - if (string.Equals(value, "Snapshot", StringComparison.InvariantCultureIgnoreCase)) return BackupRestoreOperationType.Snapshot; - if (string.Equals(value, "CloudFS", StringComparison.InvariantCultureIgnoreCase)) return BackupRestoreOperationType.CloudFS; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return BackupRestoreOperationType.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Clone")) return BackupRestoreOperationType.Clone; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Relocation")) return BackupRestoreOperationType.Relocation; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Snapshot")) return BackupRestoreOperationType.Snapshot; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CloudFS")) return BackupRestoreOperationType.CloudFS; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupRestoreOperationType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BuiltInAuthenticationProvider.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BuiltInAuthenticationProvider.Serialization.cs index 0ae03180ea07c..900651fd64f56 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BuiltInAuthenticationProvider.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/BuiltInAuthenticationProvider.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class BuiltInAuthenticationProviderExtensions public static BuiltInAuthenticationProvider ToBuiltInAuthenticationProvider(this string value) { - if (string.Equals(value, "AzureActiveDirectory", StringComparison.InvariantCultureIgnoreCase)) return BuiltInAuthenticationProvider.AzureActiveDirectory; - if (string.Equals(value, "Facebook", StringComparison.InvariantCultureIgnoreCase)) return BuiltInAuthenticationProvider.Facebook; - if (string.Equals(value, "Google", StringComparison.InvariantCultureIgnoreCase)) return BuiltInAuthenticationProvider.Google; - if (string.Equals(value, "MicrosoftAccount", StringComparison.InvariantCultureIgnoreCase)) return BuiltInAuthenticationProvider.MicrosoftAccount; - if (string.Equals(value, "Twitter", StringComparison.InvariantCultureIgnoreCase)) return BuiltInAuthenticationProvider.Twitter; - if (string.Equals(value, "Github", StringComparison.InvariantCultureIgnoreCase)) return BuiltInAuthenticationProvider.Github; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureActiveDirectory")) return BuiltInAuthenticationProvider.AzureActiveDirectory; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Facebook")) return BuiltInAuthenticationProvider.Facebook; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Google")) return BuiltInAuthenticationProvider.Google; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MicrosoftAccount")) return BuiltInAuthenticationProvider.MicrosoftAccount; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Twitter")) return BuiltInAuthenticationProvider.Twitter; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Github")) return BuiltInAuthenticationProvider.Github; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BuiltInAuthenticationProvider value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.Serialization.cs index 020771ff922b9..0faf1ffbf698c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.Serialization.cs @@ -32,20 +32,20 @@ internal static partial class CertificateOrderActionTypeExtensions public static CertificateOrderActionType ToCertificateOrderActionType(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.Unknown; - if (string.Equals(value, "CertificateIssued", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.CertificateIssued; - if (string.Equals(value, "CertificateOrderCanceled", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.CertificateOrderCanceled; - if (string.Equals(value, "CertificateOrderCreated", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.CertificateOrderCreated; - if (string.Equals(value, "CertificateRevoked", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.CertificateRevoked; - if (string.Equals(value, "DomainValidationComplete", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.DomainValidationComplete; - if (string.Equals(value, "FraudDetected", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.FraudDetected; - if (string.Equals(value, "OrgNameChange", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.OrgNameChange; - if (string.Equals(value, "OrgValidationComplete", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.OrgValidationComplete; - if (string.Equals(value, "SanDrop", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.SanDrop; - if (string.Equals(value, "FraudCleared", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.FraudCleared; - if (string.Equals(value, "CertificateExpired", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.CertificateExpired; - if (string.Equals(value, "CertificateExpirationWarning", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.CertificateExpirationWarning; - if (string.Equals(value, "FraudDocumentationRequired", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderActionType.FraudDocumentationRequired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return CertificateOrderActionType.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateIssued")) return CertificateOrderActionType.CertificateIssued; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateOrderCanceled")) return CertificateOrderActionType.CertificateOrderCanceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateOrderCreated")) return CertificateOrderActionType.CertificateOrderCreated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateRevoked")) return CertificateOrderActionType.CertificateRevoked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DomainValidationComplete")) return CertificateOrderActionType.DomainValidationComplete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FraudDetected")) return CertificateOrderActionType.FraudDetected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OrgNameChange")) return CertificateOrderActionType.OrgNameChange; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OrgValidationComplete")) return CertificateOrderActionType.OrgValidationComplete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SanDrop")) return CertificateOrderActionType.SanDrop; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FraudCleared")) return CertificateOrderActionType.FraudCleared; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateExpired")) return CertificateOrderActionType.CertificateExpired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateExpirationWarning")) return CertificateOrderActionType.CertificateExpirationWarning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FraudDocumentationRequired")) return CertificateOrderActionType.FraudDocumentationRequired; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateOrderActionType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.Serialization.cs index 8400e933e27c4..2bdf3f3ec3dba 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.Serialization.cs @@ -28,16 +28,16 @@ internal static partial class CertificateOrderStatusExtensions public static CertificateOrderStatus ToCertificateOrderStatus(this string value) { - if (string.Equals(value, "Pendingissuance", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.Pendingissuance; - if (string.Equals(value, "Issued", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.Issued; - if (string.Equals(value, "Revoked", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.Revoked; - if (string.Equals(value, "Canceled", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.Canceled; - if (string.Equals(value, "Denied", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.Denied; - if (string.Equals(value, "Pendingrevocation", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.Pendingrevocation; - if (string.Equals(value, "PendingRekey", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.PendingRekey; - if (string.Equals(value, "Unused", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.Unused; - if (string.Equals(value, "Expired", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.Expired; - if (string.Equals(value, "NotSubmitted", StringComparison.InvariantCultureIgnoreCase)) return CertificateOrderStatus.NotSubmitted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pendingissuance")) return CertificateOrderStatus.Pendingissuance; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Issued")) return CertificateOrderStatus.Issued; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Revoked")) return CertificateOrderStatus.Revoked; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return CertificateOrderStatus.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Denied")) return CertificateOrderStatus.Denied; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pendingrevocation")) return CertificateOrderStatus.Pendingrevocation; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PendingRekey")) return CertificateOrderStatus.PendingRekey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unused")) return CertificateOrderStatus.Unused; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Expired")) return CertificateOrderStatus.Expired; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSubmitted")) return CertificateOrderStatus.NotSubmitted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateOrderStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.Serialization.cs index 82ca9219ed99d..9fc5b8993a0f6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class CertificateProductTypeExtensions public static CertificateProductType ToCertificateProductType(this string value) { - if (string.Equals(value, "StandardDomainValidatedSsl", StringComparison.InvariantCultureIgnoreCase)) return CertificateProductType.StandardDomainValidatedSsl; - if (string.Equals(value, "StandardDomainValidatedWildCardSsl", StringComparison.InvariantCultureIgnoreCase)) return CertificateProductType.StandardDomainValidatedWildCardSsl; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StandardDomainValidatedSsl")) return CertificateProductType.StandardDomainValidatedSsl; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StandardDomainValidatedWildCardSsl")) return CertificateProductType.StandardDomainValidatedWildCardSsl; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateProductType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ClientCertMode.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ClientCertMode.Serialization.cs index d051a80851322..5bcd04e983478 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ClientCertMode.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ClientCertMode.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ClientCertModeExtensions public static ClientCertMode ToClientCertMode(this string value) { - if (string.Equals(value, "Required", StringComparison.InvariantCultureIgnoreCase)) return ClientCertMode.Required; - if (string.Equals(value, "Optional", StringComparison.InvariantCultureIgnoreCase)) return ClientCertMode.Optional; - if (string.Equals(value, "OptionalInteractiveUser", StringComparison.InvariantCultureIgnoreCase)) return ClientCertMode.OptionalInteractiveUser; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Required")) return ClientCertMode.Required; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Optional")) return ClientCertMode.Optional; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OptionalInteractiveUser")) return ClientCertMode.OptionalInteractiveUser; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ClientCertMode value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloneAbilityResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloneAbilityResult.Serialization.cs index 9b4fd9677dc49..ed46fcaa878a9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloneAbilityResult.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloneAbilityResult.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class CloneAbilityResultExtensions public static CloneAbilityResult ToCloneAbilityResult(this string value) { - if (string.Equals(value, "Cloneable", StringComparison.InvariantCultureIgnoreCase)) return CloneAbilityResult.Cloneable; - if (string.Equals(value, "PartiallyCloneable", StringComparison.InvariantCultureIgnoreCase)) return CloneAbilityResult.PartiallyCloneable; - if (string.Equals(value, "NotCloneable", StringComparison.InvariantCultureIgnoreCase)) return CloneAbilityResult.NotCloneable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cloneable")) return CloneAbilityResult.Cloneable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PartiallyCloneable")) return CloneAbilityResult.PartiallyCloneable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotCloneable")) return CloneAbilityResult.NotCloneable; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CloneAbilityResult value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ComputeModeOption.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ComputeModeOption.Serialization.cs index ec394144742b5..1b4c6faa48e75 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ComputeModeOption.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ComputeModeOption.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ComputeModeOptionExtensions public static ComputeModeOption ToComputeModeOption(this string value) { - if (string.Equals(value, "Shared", StringComparison.InvariantCultureIgnoreCase)) return ComputeModeOption.Shared; - if (string.Equals(value, "Dedicated", StringComparison.InvariantCultureIgnoreCase)) return ComputeModeOption.Dedicated; - if (string.Equals(value, "Dynamic", StringComparison.InvariantCultureIgnoreCase)) return ComputeModeOption.Dynamic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Shared")) return ComputeModeOption.Shared; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Dedicated")) return ComputeModeOption.Dedicated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Dynamic")) return ComputeModeOption.Dynamic; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ComputeModeOption value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringType.Serialization.cs index ce77fe3b5a529..b653159f2239c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringType.Serialization.cs @@ -29,17 +29,17 @@ internal static partial class ConnectionStringTypeExtensions public static ConnectionStringType ToConnectionStringType(this string value) { - if (string.Equals(value, "MySql", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.MySql; - if (string.Equals(value, "SQLServer", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.SqlServer; - if (string.Equals(value, "SQLAzure", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.SqlAzure; - if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.Custom; - if (string.Equals(value, "NotificationHub", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.NotificationHub; - if (string.Equals(value, "ServiceBus", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.ServiceBus; - if (string.Equals(value, "EventHub", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.EventHub; - if (string.Equals(value, "ApiHub", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.ApiHub; - if (string.Equals(value, "DocDb", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.DocDB; - if (string.Equals(value, "RedisCache", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.RedisCache; - if (string.Equals(value, "PostgreSQL", StringComparison.InvariantCultureIgnoreCase)) return ConnectionStringType.PostgreSql; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MySql")) return ConnectionStringType.MySql; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SQLServer")) return ConnectionStringType.SqlServer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SQLAzure")) return ConnectionStringType.SqlAzure; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Custom")) return ConnectionStringType.Custom; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotificationHub")) return ConnectionStringType.NotificationHub; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ServiceBus")) return ConnectionStringType.ServiceBus; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "EventHub")) return ConnectionStringType.EventHub; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ApiHub")) return ConnectionStringType.ApiHub; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DocDb")) return ConnectionStringType.DocDB; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RedisCache")) return ConnectionStringType.RedisCache; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PostgreSQL")) return ConnectionStringType.PostgreSql; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ConnectionStringType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContinuousWebJobStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContinuousWebJobStatus.Serialization.cs index a0c5408a1effc..7d27bd0fd76d8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContinuousWebJobStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContinuousWebJobStatus.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class ContinuousWebJobStatusExtensions public static ContinuousWebJobStatus ToContinuousWebJobStatus(this string value) { - if (string.Equals(value, "Initializing", StringComparison.InvariantCultureIgnoreCase)) return ContinuousWebJobStatus.Initializing; - if (string.Equals(value, "Starting", StringComparison.InvariantCultureIgnoreCase)) return ContinuousWebJobStatus.Starting; - if (string.Equals(value, "Running", StringComparison.InvariantCultureIgnoreCase)) return ContinuousWebJobStatus.Running; - if (string.Equals(value, "PendingRestart", StringComparison.InvariantCultureIgnoreCase)) return ContinuousWebJobStatus.PendingRestart; - if (string.Equals(value, "Stopped", StringComparison.InvariantCultureIgnoreCase)) return ContinuousWebJobStatus.Stopped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Initializing")) return ContinuousWebJobStatus.Initializing; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Starting")) return ContinuousWebJobStatus.Starting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Running")) return ContinuousWebJobStatus.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PendingRestart")) return ContinuousWebJobStatus.PendingRestart; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Stopped")) return ContinuousWebJobStatus.Stopped; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContinuousWebJobStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CookieExpirationConvention.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CookieExpirationConvention.Serialization.cs index 5e82479fc0e10..08f707943dc00 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CookieExpirationConvention.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CookieExpirationConvention.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class CookieExpirationConventionExtensions public static CookieExpirationConvention ToCookieExpirationConvention(this string value) { - if (string.Equals(value, "FixedTime", StringComparison.InvariantCultureIgnoreCase)) return CookieExpirationConvention.FixedTime; - if (string.Equals(value, "IdentityProviderDerived", StringComparison.InvariantCultureIgnoreCase)) return CookieExpirationConvention.IdentityProviderDerived; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FixedTime")) return CookieExpirationConvention.FixedTime; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IdentityProviderDerived")) return CookieExpirationConvention.IdentityProviderDerived; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CookieExpirationConvention value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostNameDnsRecordType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostNameDnsRecordType.Serialization.cs index d5e2658db34af..a2798333be726 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostNameDnsRecordType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostNameDnsRecordType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class CustomHostNameDnsRecordTypeExtensions public static CustomHostNameDnsRecordType ToCustomHostNameDnsRecordType(this string value) { - if (string.Equals(value, "CName", StringComparison.InvariantCultureIgnoreCase)) return CustomHostNameDnsRecordType.CName; - if (string.Equals(value, "A", StringComparison.InvariantCultureIgnoreCase)) return CustomHostNameDnsRecordType.A; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CName")) return CustomHostNameDnsRecordType.CName; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "A")) return CustomHostNameDnsRecordType.A; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CustomHostNameDnsRecordType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInsightStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInsightStatus.Serialization.cs index b308c61c3fa7a..8c9953c4e888f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInsightStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInsightStatus.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class DetectorInsightStatusExtensions public static DetectorInsightStatus ToDetectorInsightStatus(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return DetectorInsightStatus.None; - if (string.Equals(value, "Critical", StringComparison.InvariantCultureIgnoreCase)) return DetectorInsightStatus.Critical; - if (string.Equals(value, "Warning", StringComparison.InvariantCultureIgnoreCase)) return DetectorInsightStatus.Warning; - if (string.Equals(value, "Info", StringComparison.InvariantCultureIgnoreCase)) return DetectorInsightStatus.Info; - if (string.Equals(value, "Success", StringComparison.InvariantCultureIgnoreCase)) return DetectorInsightStatus.Success; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return DetectorInsightStatus.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Critical")) return DetectorInsightStatus.Critical; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Warning")) return DetectorInsightStatus.Warning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Info")) return DetectorInsightStatus.Info; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Success")) return DetectorInsightStatus.Success; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DetectorInsightStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorIssueType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorIssueType.Serialization.cs index 246a8ba536caf..428239b9a51a8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorIssueType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorIssueType.Serialization.cs @@ -26,14 +26,14 @@ internal static partial class DetectorIssueTypeExtensions public static DetectorIssueType ToDetectorIssueType(this string value) { - if (string.Equals(value, "ServiceIncident", StringComparison.InvariantCultureIgnoreCase)) return DetectorIssueType.ServiceIncident; - if (string.Equals(value, "AppDeployment", StringComparison.InvariantCultureIgnoreCase)) return DetectorIssueType.AppDeployment; - if (string.Equals(value, "AppCrash", StringComparison.InvariantCultureIgnoreCase)) return DetectorIssueType.AppCrash; - if (string.Equals(value, "RuntimeIssueDetected", StringComparison.InvariantCultureIgnoreCase)) return DetectorIssueType.RuntimeIssueDetected; - if (string.Equals(value, "AseDeployment", StringComparison.InvariantCultureIgnoreCase)) return DetectorIssueType.AseDeployment; - if (string.Equals(value, "UserIssue", StringComparison.InvariantCultureIgnoreCase)) return DetectorIssueType.UserIssue; - if (string.Equals(value, "PlatformIssue", StringComparison.InvariantCultureIgnoreCase)) return DetectorIssueType.PlatformIssue; - if (string.Equals(value, "Other", StringComparison.InvariantCultureIgnoreCase)) return DetectorIssueType.Other; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ServiceIncident")) return DetectorIssueType.ServiceIncident; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AppDeployment")) return DetectorIssueType.AppDeployment; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AppCrash")) return DetectorIssueType.AppCrash; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RuntimeIssueDetected")) return DetectorIssueType.RuntimeIssueDetected; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AseDeployment")) return DetectorIssueType.AseDeployment; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserIssue")) return DetectorIssueType.UserIssue; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PlatformIssue")) return DetectorIssueType.PlatformIssue; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Other")) return DetectorIssueType.Other; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DetectorIssueType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorType.Serialization.cs index 1a2d398fa3edb..1564915094d7a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DetectorTypeExtensions public static DetectorType ToDetectorType(this string value) { - if (string.Equals(value, "Detector", StringComparison.InvariantCultureIgnoreCase)) return DetectorType.Detector; - if (string.Equals(value, "Analysis", StringComparison.InvariantCultureIgnoreCase)) return DetectorType.Analysis; - if (string.Equals(value, "CategoryOverview", StringComparison.InvariantCultureIgnoreCase)) return DetectorType.CategoryOverview; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Detector")) return DetectorType.Detector; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Analysis")) return DetectorType.Analysis; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CategoryOverview")) return DetectorType.CategoryOverview; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DetectorType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataRenderingType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataRenderingType.Serialization.cs index 53f1f03a8a8ce..84a872d8a48a7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataRenderingType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataRenderingType.Serialization.cs @@ -43,31 +43,31 @@ internal static partial class DiagnosticDataRenderingTypeExtensions public static DiagnosticDataRenderingType ToDiagnosticDataRenderingType(this string value) { - if (string.Equals(value, "NoGraph", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.NoGraph; - if (string.Equals(value, "Table", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Table; - if (string.Equals(value, "TimeSeries", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.TimeSeries; - if (string.Equals(value, "TimeSeriesPerInstance", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.TimeSeriesPerInstance; - if (string.Equals(value, "PieChart", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.PieChart; - if (string.Equals(value, "DataSummary", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.DataSummary; - if (string.Equals(value, "Email", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Email; - if (string.Equals(value, "Insights", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Insights; - if (string.Equals(value, "DynamicInsight", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.DynamicInsight; - if (string.Equals(value, "Markdown", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Markdown; - if (string.Equals(value, "Detector", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Detector; - if (string.Equals(value, "DropDown", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.DropDown; - if (string.Equals(value, "Card", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Card; - if (string.Equals(value, "Solution", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Solution; - if (string.Equals(value, "Guage", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Guage; - if (string.Equals(value, "Form", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.Form; - if (string.Equals(value, "ChangeSets", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.ChangeSets; - if (string.Equals(value, "ChangeAnalysisOnboarding", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.ChangeAnalysisOnboarding; - if (string.Equals(value, "ChangesView", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.ChangesView; - if (string.Equals(value, "AppInsight", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.AppInsight; - if (string.Equals(value, "DependencyGraph", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.DependencyGraph; - if (string.Equals(value, "DownTime", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.DownTime; - if (string.Equals(value, "SummaryCard", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.SummaryCard; - if (string.Equals(value, "SearchComponent", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.SearchComponent; - if (string.Equals(value, "AppInsightEnablement", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticDataRenderingType.AppInsightEnablement; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoGraph")) return DiagnosticDataRenderingType.NoGraph; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Table")) return DiagnosticDataRenderingType.Table; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TimeSeries")) return DiagnosticDataRenderingType.TimeSeries; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TimeSeriesPerInstance")) return DiagnosticDataRenderingType.TimeSeriesPerInstance; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PieChart")) return DiagnosticDataRenderingType.PieChart; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DataSummary")) return DiagnosticDataRenderingType.DataSummary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Email")) return DiagnosticDataRenderingType.Email; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Insights")) return DiagnosticDataRenderingType.Insights; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DynamicInsight")) return DiagnosticDataRenderingType.DynamicInsight; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Markdown")) return DiagnosticDataRenderingType.Markdown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Detector")) return DiagnosticDataRenderingType.Detector; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DropDown")) return DiagnosticDataRenderingType.DropDown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Card")) return DiagnosticDataRenderingType.Card; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Solution")) return DiagnosticDataRenderingType.Solution; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Guage")) return DiagnosticDataRenderingType.Guage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Form")) return DiagnosticDataRenderingType.Form; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ChangeSets")) return DiagnosticDataRenderingType.ChangeSets; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ChangeAnalysisOnboarding")) return DiagnosticDataRenderingType.ChangeAnalysisOnboarding; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ChangesView")) return DiagnosticDataRenderingType.ChangesView; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AppInsight")) return DiagnosticDataRenderingType.AppInsight; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DependencyGraph")) return DiagnosticDataRenderingType.DependencyGraph; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DownTime")) return DiagnosticDataRenderingType.DownTime; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SummaryCard")) return DiagnosticDataRenderingType.SummaryCard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SearchComponent")) return DiagnosticDataRenderingType.SearchComponent; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AppInsightEnablement")) return DiagnosticDataRenderingType.AppInsightEnablement; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DiagnosticDataRenderingType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolutionType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolutionType.Serialization.cs index c01946fb90f78..b02439e83a190 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolutionType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolutionType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DiagnosticSolutionTypeExtensions public static DiagnosticSolutionType ToDiagnosticSolutionType(this string value) { - if (string.Equals(value, "QuickSolution", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticSolutionType.QuickSolution; - if (string.Equals(value, "DeepInvestigation", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticSolutionType.DeepInvestigation; - if (string.Equals(value, "BestPractices", StringComparison.InvariantCultureIgnoreCase)) return DiagnosticSolutionType.BestPractices; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "QuickSolution")) return DiagnosticSolutionType.QuickSolution; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DeepInvestigation")) return DiagnosticSolutionType.DeepInvestigation; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "BestPractices")) return DiagnosticSolutionType.BestPractices; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DiagnosticSolutionType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DnsVerificationTestResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DnsVerificationTestResult.Serialization.cs index fc3e98d93a421..b378bb5c721b4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DnsVerificationTestResult.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DnsVerificationTestResult.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DnsVerificationTestResultExtensions public static DnsVerificationTestResult ToDnsVerificationTestResult(this string value) { - if (string.Equals(value, "Passed", StringComparison.InvariantCultureIgnoreCase)) return DnsVerificationTestResult.Passed; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return DnsVerificationTestResult.Failed; - if (string.Equals(value, "Skipped", StringComparison.InvariantCultureIgnoreCase)) return DnsVerificationTestResult.Skipped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Passed")) return DnsVerificationTestResult.Passed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return DnsVerificationTestResult.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Skipped")) return DnsVerificationTestResult.Skipped; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DnsVerificationTestResult value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ForwardProxyConvention.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ForwardProxyConvention.Serialization.cs index 53f71272164e3..98f95b495ea30 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ForwardProxyConvention.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ForwardProxyConvention.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class ForwardProxyConventionExtensions public static ForwardProxyConvention ToForwardProxyConvention(this string value) { - if (string.Equals(value, "NoProxy", StringComparison.InvariantCultureIgnoreCase)) return ForwardProxyConvention.NoProxy; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return ForwardProxyConvention.Standard; - if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return ForwardProxyConvention.Custom; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoProxy")) return ForwardProxyConvention.NoProxy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return ForwardProxyConvention.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Custom")) return ForwardProxyConvention.Custom; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ForwardProxyConvention value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FrontEndServiceType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FrontEndServiceType.Serialization.cs index 84c026255068a..9739fc69e79d2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FrontEndServiceType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FrontEndServiceType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class FrontEndServiceTypeExtensions public static FrontEndServiceType ToFrontEndServiceType(this string value) { - if (string.Equals(value, "NodePort", StringComparison.InvariantCultureIgnoreCase)) return FrontEndServiceType.NodePort; - if (string.Equals(value, "LoadBalancer", StringComparison.InvariantCultureIgnoreCase)) return FrontEndServiceType.LoadBalancer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NodePort")) return FrontEndServiceType.NodePort; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LoadBalancer")) return FrontEndServiceType.LoadBalancer; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FrontEndServiceType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostNameBindingSslState.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostNameBindingSslState.Serialization.cs index 3c3d884646f45..4caa25099a978 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostNameBindingSslState.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostNameBindingSslState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class HostNameBindingSslStateExtensions public static HostNameBindingSslState ToHostNameBindingSslState(this string value) { - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return HostNameBindingSslState.Disabled; - if (string.Equals(value, "SniEnabled", StringComparison.InvariantCultureIgnoreCase)) return HostNameBindingSslState.SniEnabled; - if (string.Equals(value, "IpBasedEnabled", StringComparison.InvariantCultureIgnoreCase)) return HostNameBindingSslState.IPBasedEnabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return HostNameBindingSslState.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SniEnabled")) return HostNameBindingSslState.SniEnabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IpBasedEnabled")) return HostNameBindingSslState.IPBasedEnabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HostNameBindingSslState value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentStatus.Serialization.cs index 49de59090cc6e..59136bf4f4873 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentStatus.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class HostingEnvironmentStatusExtensions public static HostingEnvironmentStatus ToHostingEnvironmentStatus(this string value) { - if (string.Equals(value, "Preparing", StringComparison.InvariantCultureIgnoreCase)) return HostingEnvironmentStatus.Preparing; - if (string.Equals(value, "Ready", StringComparison.InvariantCultureIgnoreCase)) return HostingEnvironmentStatus.Ready; - if (string.Equals(value, "Scaling", StringComparison.InvariantCultureIgnoreCase)) return HostingEnvironmentStatus.Scaling; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return HostingEnvironmentStatus.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Preparing")) return HostingEnvironmentStatus.Preparing; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Ready")) return HostingEnvironmentStatus.Ready; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Scaling")) return HostingEnvironmentStatus.Scaling; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return HostingEnvironmentStatus.Deleting; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HostingEnvironmentStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultSecretStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultSecretStatus.Serialization.cs index 91ee7dcf3d1d2..61f87f9c2029d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultSecretStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultSecretStatus.Serialization.cs @@ -29,17 +29,17 @@ internal static partial class KeyVaultSecretStatusExtensions public static KeyVaultSecretStatus ToKeyVaultSecretStatus(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.Unknown; - if (string.Equals(value, "Initialized", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.Initialized; - if (string.Equals(value, "WaitingOnCertificateOrder", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.WaitingOnCertificateOrder; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.Succeeded; - if (string.Equals(value, "CertificateOrderFailed", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.CertificateOrderFailed; - if (string.Equals(value, "OperationNotPermittedOnKeyVault", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.OperationNotPermittedOnKeyVault; - if (string.Equals(value, "AzureServiceUnauthorizedToAccessKeyVault", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.AzureServiceUnauthorizedToAccessKeyVault; - if (string.Equals(value, "KeyVaultDoesNotExist", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.KeyVaultDoesNotExist; - if (string.Equals(value, "KeyVaultSecretDoesNotExist", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.KeyVaultSecretDoesNotExist; - if (string.Equals(value, "UnknownError", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.UnknownError; - if (string.Equals(value, "ExternalPrivateKey", StringComparison.InvariantCultureIgnoreCase)) return KeyVaultSecretStatus.ExternalPrivateKey; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return KeyVaultSecretStatus.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Initialized")) return KeyVaultSecretStatus.Initialized; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WaitingOnCertificateOrder")) return KeyVaultSecretStatus.WaitingOnCertificateOrder; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return KeyVaultSecretStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateOrderFailed")) return KeyVaultSecretStatus.CertificateOrderFailed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OperationNotPermittedOnKeyVault")) return KeyVaultSecretStatus.OperationNotPermittedOnKeyVault; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureServiceUnauthorizedToAccessKeyVault")) return KeyVaultSecretStatus.AzureServiceUnauthorizedToAccessKeyVault; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "KeyVaultDoesNotExist")) return KeyVaultSecretStatus.KeyVaultDoesNotExist; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "KeyVaultSecretDoesNotExist")) return KeyVaultSecretStatus.KeyVaultSecretDoesNotExist; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UnknownError")) return KeyVaultSecretStatus.UnknownError; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ExternalPrivateKey")) return KeyVaultSecretStatus.ExternalPrivateKey; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KeyVaultSecretStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentProvisioningState.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentProvisioningState.Serialization.cs index b0b52106348c4..2775cd6030368 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentProvisioningState.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentProvisioningState.Serialization.cs @@ -28,16 +28,16 @@ internal static partial class KubeEnvironmentProvisioningStateExtensions public static KubeEnvironmentProvisioningState ToKubeEnvironmentProvisioningState(this string value) { - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.Failed; - if (string.Equals(value, "Canceled", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.Canceled; - if (string.Equals(value, "Waiting", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.Waiting; - if (string.Equals(value, "InitializationInProgress", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.InitializationInProgress; - if (string.Equals(value, "InfrastructureSetupInProgress", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.InfrastructureSetupInProgress; - if (string.Equals(value, "InfrastructureSetupComplete", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.InfrastructureSetupComplete; - if (string.Equals(value, "ScheduledForDelete", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.ScheduledForDelete; - if (string.Equals(value, "UpgradeRequested", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.UpgradeRequested; - if (string.Equals(value, "UpgradeFailed", StringComparison.InvariantCultureIgnoreCase)) return KubeEnvironmentProvisioningState.UpgradeFailed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return KubeEnvironmentProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return KubeEnvironmentProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return KubeEnvironmentProvisioningState.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Waiting")) return KubeEnvironmentProvisioningState.Waiting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InitializationInProgress")) return KubeEnvironmentProvisioningState.InitializationInProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InfrastructureSetupInProgress")) return KubeEnvironmentProvisioningState.InfrastructureSetupInProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InfrastructureSetupComplete")) return KubeEnvironmentProvisioningState.InfrastructureSetupComplete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ScheduledForDelete")) return KubeEnvironmentProvisioningState.ScheduledForDelete; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UpgradeRequested")) return KubeEnvironmentProvisioningState.UpgradeRequested; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UpgradeFailed")) return KubeEnvironmentProvisioningState.UpgradeFailed; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown KubeEnvironmentProvisioningState value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MSDeployProvisioningState.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MSDeployProvisioningState.Serialization.cs index 1bdcd876c684c..0b688c43ee2cb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MSDeployProvisioningState.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MSDeployProvisioningState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class MSDeployProvisioningStateExtensions public static MSDeployProvisioningState ToMSDeployProvisioningState(this string value) { - if (string.Equals(value, "accepted", StringComparison.InvariantCultureIgnoreCase)) return MSDeployProvisioningState.Accepted; - if (string.Equals(value, "running", StringComparison.InvariantCultureIgnoreCase)) return MSDeployProvisioningState.Running; - if (string.Equals(value, "succeeded", StringComparison.InvariantCultureIgnoreCase)) return MSDeployProvisioningState.Succeeded; - if (string.Equals(value, "failed", StringComparison.InvariantCultureIgnoreCase)) return MSDeployProvisioningState.Failed; - if (string.Equals(value, "canceled", StringComparison.InvariantCultureIgnoreCase)) return MSDeployProvisioningState.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "accepted")) return MSDeployProvisioningState.Accepted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "running")) return MSDeployProvisioningState.Running; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "succeeded")) return MSDeployProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "failed")) return MSDeployProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "canceled")) return MSDeployProvisioningState.Canceled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MSDeployProvisioningState value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedPipelineMode.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedPipelineMode.Serialization.cs index 7f4c5b7f99b2b..95b162b5a15a0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedPipelineMode.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedPipelineMode.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class ManagedPipelineModeExtensions public static ManagedPipelineMode ToManagedPipelineMode(this string value) { - if (string.Equals(value, "Integrated", StringComparison.InvariantCultureIgnoreCase)) return ManagedPipelineMode.Integrated; - if (string.Equals(value, "Classic", StringComparison.InvariantCultureIgnoreCase)) return ManagedPipelineMode.Classic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Integrated")) return ManagedPipelineMode.Integrated; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Classic")) return ManagedPipelineMode.Classic; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ManagedPipelineMode value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MySqlMigrationType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MySqlMigrationType.Serialization.cs index d2e4ae083767b..13bda4e0dc7b5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MySqlMigrationType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MySqlMigrationType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class MySqlMigrationTypeExtensions public static MySqlMigrationType ToMySqlMigrationType(this string value) { - if (string.Equals(value, "LocalToRemote", StringComparison.InvariantCultureIgnoreCase)) return MySqlMigrationType.LocalToRemote; - if (string.Equals(value, "RemoteToLocal", StringComparison.InvariantCultureIgnoreCase)) return MySqlMigrationType.RemoteToLocal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LocalToRemote")) return MySqlMigrationType.LocalToRemote; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RemoteToLocal")) return MySqlMigrationType.RemoteToLocal; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MySqlMigrationType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/NotificationLevel.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/NotificationLevel.Serialization.cs index ae7e15bd27efe..95349d0d0a36f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/NotificationLevel.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/NotificationLevel.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class NotificationLevelExtensions public static NotificationLevel ToNotificationLevel(this string value) { - if (string.Equals(value, "Critical", StringComparison.InvariantCultureIgnoreCase)) return NotificationLevel.Critical; - if (string.Equals(value, "Warning", StringComparison.InvariantCultureIgnoreCase)) return NotificationLevel.Warning; - if (string.Equals(value, "Information", StringComparison.InvariantCultureIgnoreCase)) return NotificationLevel.Information; - if (string.Equals(value, "NonUrgentSuggestion", StringComparison.InvariantCultureIgnoreCase)) return NotificationLevel.NonUrgentSuggestion; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Critical")) return NotificationLevel.Critical; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Warning")) return NotificationLevel.Warning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Information")) return NotificationLevel.Information; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NonUrgentSuggestion")) return NotificationLevel.NonUrgentSuggestion; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown NotificationLevel value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProvisioningState.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProvisioningState.Serialization.cs index 2ba020fadd291..58ceaceb54338 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProvisioningState.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProvisioningState.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class ProvisioningStateExtensions public static ProvisioningState ToProvisioningState(this string value) { - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningState.Succeeded; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningState.Failed; - if (string.Equals(value, "Canceled", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningState.Canceled; - if (string.Equals(value, "InProgress", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningState.InProgress; - if (string.Equals(value, "Deleting", StringComparison.InvariantCultureIgnoreCase)) return ProvisioningState.Deleting; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return ProvisioningState.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return ProvisioningState.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return ProvisioningState.Canceled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InProgress")) return ProvisioningState.InProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleting")) return ProvisioningState.Deleting; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ProvisioningState value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PublicCertificateLocation.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PublicCertificateLocation.Serialization.cs index 2243c8e8b7a74..953fdf01dcf9c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PublicCertificateLocation.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PublicCertificateLocation.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class PublicCertificateLocationExtensions public static PublicCertificateLocation ToPublicCertificateLocation(this string value) { - if (string.Equals(value, "Unknown", StringComparison.InvariantCultureIgnoreCase)) return PublicCertificateLocation.Unknown; - if (string.Equals(value, "CurrentUserMy", StringComparison.InvariantCultureIgnoreCase)) return PublicCertificateLocation.CurrentUserMy; - if (string.Equals(value, "LocalMachineMy", StringComparison.InvariantCultureIgnoreCase)) return PublicCertificateLocation.LocalMachineMy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return PublicCertificateLocation.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CurrentUserMy")) return PublicCertificateLocation.CurrentUserMy; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LocalMachineMy")) return PublicCertificateLocation.LocalMachineMy; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PublicCertificateLocation value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RecommendationChannel.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RecommendationChannel.Serialization.cs index 9dcab6fc755c6..f43e2292b3edb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RecommendationChannel.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RecommendationChannel.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class RecommendationChannelExtensions public static RecommendationChannel ToRecommendationChannel(this string value) { - if (string.Equals(value, "Notification", StringComparison.InvariantCultureIgnoreCase)) return RecommendationChannel.Notification; - if (string.Equals(value, "Api", StringComparison.InvariantCultureIgnoreCase)) return RecommendationChannel.Api; - if (string.Equals(value, "Email", StringComparison.InvariantCultureIgnoreCase)) return RecommendationChannel.Email; - if (string.Equals(value, "Webhook", StringComparison.InvariantCultureIgnoreCase)) return RecommendationChannel.Webhook; - if (string.Equals(value, "All", StringComparison.InvariantCultureIgnoreCase)) return RecommendationChannel.All; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Notification")) return RecommendationChannel.Notification; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Api")) return RecommendationChannel.Api; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Email")) return RecommendationChannel.Email; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Webhook")) return RecommendationChannel.Webhook; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "All")) return RecommendationChannel.All; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RecommendationChannel value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RedundancyMode.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RedundancyMode.Serialization.cs index 62c7e78b16d14..10ba818de077a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RedundancyMode.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RedundancyMode.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class RedundancyModeExtensions public static RedundancyMode ToRedundancyMode(this string value) { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return RedundancyMode.None; - if (string.Equals(value, "Manual", StringComparison.InvariantCultureIgnoreCase)) return RedundancyMode.Manual; - if (string.Equals(value, "Failover", StringComparison.InvariantCultureIgnoreCase)) return RedundancyMode.Failover; - if (string.Equals(value, "ActiveActive", StringComparison.InvariantCultureIgnoreCase)) return RedundancyMode.ActiveActive; - if (string.Equals(value, "GeoRedundant", StringComparison.InvariantCultureIgnoreCase)) return RedundancyMode.GeoRedundant; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return RedundancyMode.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Manual")) return RedundancyMode.Manual; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failover")) return RedundancyMode.Failover; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActiveActive")) return RedundancyMode.ActiveActive; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GeoRedundant")) return RedundancyMode.GeoRedundant; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown RedundancyMode value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResolveStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResolveStatus.Serialization.cs index aa847607c7b8d..e6ab86bedbf00 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResolveStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResolveStatus.Serialization.cs @@ -29,17 +29,17 @@ internal static partial class ResolveStatusExtensions public static ResolveStatus ToResolveStatus(this string value) { - if (string.Equals(value, "Initialized", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.Initialized; - if (string.Equals(value, "Resolved", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.Resolved; - if (string.Equals(value, "InvalidSyntax", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.InvalidSyntax; - if (string.Equals(value, "MSINotEnabled", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.MSINotEnabled; - if (string.Equals(value, "VaultNotFound", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.VaultNotFound; - if (string.Equals(value, "SecretNotFound", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.SecretNotFound; - if (string.Equals(value, "SecretVersionNotFound", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.SecretVersionNotFound; - if (string.Equals(value, "AccessToKeyVaultDenied", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.AccessToKeyVaultDenied; - if (string.Equals(value, "OtherReasons", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.OtherReasons; - if (string.Equals(value, "FetchTimedOut", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.FetchTimedOut; - if (string.Equals(value, "UnauthorizedClient", StringComparison.InvariantCultureIgnoreCase)) return ResolveStatus.UnauthorizedClient; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Initialized")) return ResolveStatus.Initialized; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Resolved")) return ResolveStatus.Resolved; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InvalidSyntax")) return ResolveStatus.InvalidSyntax; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MSINotEnabled")) return ResolveStatus.MSINotEnabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "VaultNotFound")) return ResolveStatus.VaultNotFound; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SecretNotFound")) return ResolveStatus.SecretNotFound; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SecretVersionNotFound")) return ResolveStatus.SecretVersionNotFound; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AccessToKeyVaultDenied")) return ResolveStatus.AccessToKeyVaultDenied; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "OtherReasons")) return ResolveStatus.OtherReasons; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "FetchTimedOut")) return ResolveStatus.FetchTimedOut; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UnauthorizedClient")) return ResolveStatus.UnauthorizedClient; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ResolveStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteExtensionType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteExtensionType.Serialization.cs index aa2e1e2f05f03..b5b2839ec2c77 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteExtensionType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteExtensionType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class SiteExtensionTypeExtensions public static SiteExtensionType ToSiteExtensionType(this string value) { - if (string.Equals(value, "Gallery", StringComparison.InvariantCultureIgnoreCase)) return SiteExtensionType.Gallery; - if (string.Equals(value, "WebRoot", StringComparison.InvariantCultureIgnoreCase)) return SiteExtensionType.WebRoot; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Gallery")) return SiteExtensionType.Gallery; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WebRoot")) return SiteExtensionType.WebRoot; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SiteExtensionType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteLoadBalancing.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteLoadBalancing.Serialization.cs index 338cc6b2f68a4..413326008b218 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteLoadBalancing.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteLoadBalancing.Serialization.cs @@ -24,12 +24,12 @@ internal static partial class SiteLoadBalancingExtensions public static SiteLoadBalancing ToSiteLoadBalancing(this string value) { - if (string.Equals(value, "WeightedRoundRobin", StringComparison.InvariantCultureIgnoreCase)) return SiteLoadBalancing.WeightedRoundRobin; - if (string.Equals(value, "LeastRequests", StringComparison.InvariantCultureIgnoreCase)) return SiteLoadBalancing.LeastRequests; - if (string.Equals(value, "LeastResponseTime", StringComparison.InvariantCultureIgnoreCase)) return SiteLoadBalancing.LeastResponseTime; - if (string.Equals(value, "WeightedTotalTraffic", StringComparison.InvariantCultureIgnoreCase)) return SiteLoadBalancing.WeightedTotalTraffic; - if (string.Equals(value, "RequestHash", StringComparison.InvariantCultureIgnoreCase)) return SiteLoadBalancing.RequestHash; - if (string.Equals(value, "PerSiteRoundRobin", StringComparison.InvariantCultureIgnoreCase)) return SiteLoadBalancing.PerSiteRoundRobin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WeightedRoundRobin")) return SiteLoadBalancing.WeightedRoundRobin; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LeastRequests")) return SiteLoadBalancing.LeastRequests; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LeastResponseTime")) return SiteLoadBalancing.LeastResponseTime; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WeightedTotalTraffic")) return SiteLoadBalancing.WeightedTotalTraffic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RequestHash")) return SiteLoadBalancing.RequestHash; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PerSiteRoundRobin")) return SiteLoadBalancing.PerSiteRoundRobin; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SiteLoadBalancing value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteRuntimeState.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteRuntimeState.Serialization.cs index 0c06633862aae..64bf5b9c5498f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteRuntimeState.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteRuntimeState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class SiteRuntimeStateExtensions public static SiteRuntimeState ToSiteRuntimeState(this string value) { - if (string.Equals(value, "UNKNOWN", StringComparison.InvariantCultureIgnoreCase)) return SiteRuntimeState.Unknown; - if (string.Equals(value, "READY", StringComparison.InvariantCultureIgnoreCase)) return SiteRuntimeState.Ready; - if (string.Equals(value, "STOPPED", StringComparison.InvariantCultureIgnoreCase)) return SiteRuntimeState.Stopped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UNKNOWN")) return SiteRuntimeState.Unknown; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "READY")) return SiteRuntimeState.Ready; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "STOPPED")) return SiteRuntimeState.Stopped; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SiteRuntimeState value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackPreferredOS.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackPreferredOS.Serialization.cs index 1c939c7c0857b..0586b0767af71 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackPreferredOS.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackPreferredOS.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StackPreferredOSExtensions public static StackPreferredOS ToStackPreferredOS(this string value) { - if (string.Equals(value, "Windows", StringComparison.InvariantCultureIgnoreCase)) return StackPreferredOS.Windows; - if (string.Equals(value, "Linux", StringComparison.InvariantCultureIgnoreCase)) return StackPreferredOS.Linux; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Windows")) return StackPreferredOS.Windows; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Linux")) return StackPreferredOS.Linux; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StackPreferredOS value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StagingEnvironmentPolicy.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StagingEnvironmentPolicy.Serialization.cs index b68821b0b5c00..33fa5687688fb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StagingEnvironmentPolicy.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StagingEnvironmentPolicy.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class StagingEnvironmentPolicyExtensions public static StagingEnvironmentPolicy ToStagingEnvironmentPolicy(this string value) { - if (string.Equals(value, "Enabled", StringComparison.InvariantCultureIgnoreCase)) return StagingEnvironmentPolicy.Enabled; - if (string.Equals(value, "Disabled", StringComparison.InvariantCultureIgnoreCase)) return StagingEnvironmentPolicy.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return StagingEnvironmentPolicy.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return StagingEnvironmentPolicy.Disabled; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StagingEnvironmentPolicy value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredWebJobStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredWebJobStatus.Serialization.cs index 7f65e3613aa16..25f9c3ff0feed 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredWebJobStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredWebJobStatus.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class TriggeredWebJobStatusExtensions public static TriggeredWebJobStatus ToTriggeredWebJobStatus(this string value) { - if (string.Equals(value, "Success", StringComparison.InvariantCultureIgnoreCase)) return TriggeredWebJobStatus.Success; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return TriggeredWebJobStatus.Failed; - if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return TriggeredWebJobStatus.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Success")) return TriggeredWebJobStatus.Success; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return TriggeredWebJobStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Error")) return TriggeredWebJobStatus.Error; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TriggeredWebJobStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/UnauthenticatedClientAction.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/UnauthenticatedClientAction.Serialization.cs index 9ae06d663b8ca..4f1784b0cba54 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/UnauthenticatedClientAction.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/UnauthenticatedClientAction.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class UnauthenticatedClientActionExtensions public static UnauthenticatedClientAction ToUnauthenticatedClientAction(this string value) { - if (string.Equals(value, "RedirectToLoginPage", StringComparison.InvariantCultureIgnoreCase)) return UnauthenticatedClientAction.RedirectToLoginPage; - if (string.Equals(value, "AllowAnonymous", StringComparison.InvariantCultureIgnoreCase)) return UnauthenticatedClientAction.AllowAnonymous; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RedirectToLoginPage")) return UnauthenticatedClientAction.RedirectToLoginPage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AllowAnonymous")) return UnauthenticatedClientAction.AllowAnonymous; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UnauthenticatedClientAction value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/UnauthenticatedClientActionV2.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/UnauthenticatedClientActionV2.Serialization.cs index f1331ae1d1bbd..d8c1fbb1c3f7e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/UnauthenticatedClientActionV2.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/UnauthenticatedClientActionV2.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class UnauthenticatedClientActionV2Extensions public static UnauthenticatedClientActionV2 ToUnauthenticatedClientActionV2(this string value) { - if (string.Equals(value, "RedirectToLoginPage", StringComparison.InvariantCultureIgnoreCase)) return UnauthenticatedClientActionV2.RedirectToLoginPage; - if (string.Equals(value, "AllowAnonymous", StringComparison.InvariantCultureIgnoreCase)) return UnauthenticatedClientActionV2.AllowAnonymous; - if (string.Equals(value, "Return401", StringComparison.InvariantCultureIgnoreCase)) return UnauthenticatedClientActionV2.Return401; - if (string.Equals(value, "Return403", StringComparison.InvariantCultureIgnoreCase)) return UnauthenticatedClientActionV2.Return403; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "RedirectToLoginPage")) return UnauthenticatedClientActionV2.RedirectToLoginPage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AllowAnonymous")) return UnauthenticatedClientActionV2.AllowAnonymous; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Return401")) return UnauthenticatedClientActionV2.Return401; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Return403")) return UnauthenticatedClientActionV2.Return403; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UnauthenticatedClientActionV2 value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupStatus.Serialization.cs index 0df52bffbea3c..970db046e18e7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupStatus.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupStatus.Serialization.cs @@ -28,16 +28,16 @@ internal static partial class WebAppBackupStatusExtensions public static WebAppBackupStatus ToWebAppBackupStatus(this string value) { - if (string.Equals(value, "InProgress", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.InProgress; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.Failed; - if (string.Equals(value, "Succeeded", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.Succeeded; - if (string.Equals(value, "TimedOut", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.TimedOut; - if (string.Equals(value, "Created", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.Created; - if (string.Equals(value, "Skipped", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.Skipped; - if (string.Equals(value, "PartiallySucceeded", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.PartiallySucceeded; - if (string.Equals(value, "DeleteInProgress", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.DeleteInProgress; - if (string.Equals(value, "DeleteFailed", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.DeleteFailed; - if (string.Equals(value, "Deleted", StringComparison.InvariantCultureIgnoreCase)) return WebAppBackupStatus.Deleted; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "InProgress")) return WebAppBackupStatus.InProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return WebAppBackupStatus.Failed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return WebAppBackupStatus.Succeeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TimedOut")) return WebAppBackupStatus.TimedOut; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Created")) return WebAppBackupStatus.Created; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Skipped")) return WebAppBackupStatus.Skipped; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "PartiallySucceeded")) return WebAppBackupStatus.PartiallySucceeded; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DeleteInProgress")) return WebAppBackupStatus.DeleteInProgress; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DeleteFailed")) return WebAppBackupStatus.DeleteFailed; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Deleted")) return WebAppBackupStatus.Deleted; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WebAppBackupStatus value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLogLevel.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLogLevel.Serialization.cs index 6300f77530860..8f883e5886f92 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLogLevel.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLogLevel.Serialization.cs @@ -23,11 +23,11 @@ internal static partial class WebAppLogLevelExtensions public static WebAppLogLevel ToWebAppLogLevel(this string value) { - if (string.Equals(value, "Off", StringComparison.InvariantCultureIgnoreCase)) return WebAppLogLevel.Off; - if (string.Equals(value, "Verbose", StringComparison.InvariantCultureIgnoreCase)) return WebAppLogLevel.Verbose; - if (string.Equals(value, "Information", StringComparison.InvariantCultureIgnoreCase)) return WebAppLogLevel.Information; - if (string.Equals(value, "Warning", StringComparison.InvariantCultureIgnoreCase)) return WebAppLogLevel.Warning; - if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return WebAppLogLevel.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Off")) return WebAppLogLevel.Off; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Verbose")) return WebAppLogLevel.Verbose; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Information")) return WebAppLogLevel.Information; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Warning")) return WebAppLogLevel.Warning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Error")) return WebAppLogLevel.Error; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WebAppLogLevel value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLogEntryType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLogEntryType.Serialization.cs index bd740f26764cf..ba30a5b14cbcf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLogEntryType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLogEntryType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class WebAppMSDeployLogEntryTypeExtensions public static WebAppMSDeployLogEntryType ToWebAppMSDeployLogEntryType(this string value) { - if (string.Equals(value, "Message", StringComparison.InvariantCultureIgnoreCase)) return WebAppMSDeployLogEntryType.Message; - if (string.Equals(value, "Warning", StringComparison.InvariantCultureIgnoreCase)) return WebAppMSDeployLogEntryType.Warning; - if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return WebAppMSDeployLogEntryType.Error; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Message")) return WebAppMSDeployLogEntryType.Message; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Warning")) return WebAppMSDeployLogEntryType.Warning; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Error")) return WebAppMSDeployLogEntryType.Error; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WebAppMSDeployLogEntryType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebJobType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebJobType.Serialization.cs index 158a6a476e8a7..ae0e6230caaf1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebJobType.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebJobType.Serialization.cs @@ -20,8 +20,8 @@ internal static partial class WebJobTypeExtensions public static WebJobType ToWebJobType(this string value) { - if (string.Equals(value, "Continuous", StringComparison.InvariantCultureIgnoreCase)) return WebJobType.Continuous; - if (string.Equals(value, "Triggered", StringComparison.InvariantCultureIgnoreCase)) return WebJobType.Triggered; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Continuous")) return WebJobType.Continuous; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Triggered")) return WebJobType.Triggered; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WebJobType value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteAvailabilityState.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteAvailabilityState.Serialization.cs index 370601537f009..45d4e3e54e028 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteAvailabilityState.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteAvailabilityState.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class WebSiteAvailabilityStateExtensions public static WebSiteAvailabilityState ToWebSiteAvailabilityState(this string value) { - if (string.Equals(value, "Normal", StringComparison.InvariantCultureIgnoreCase)) return WebSiteAvailabilityState.Normal; - if (string.Equals(value, "Limited", StringComparison.InvariantCultureIgnoreCase)) return WebSiteAvailabilityState.Limited; - if (string.Equals(value, "DisasterRecoveryMode", StringComparison.InvariantCultureIgnoreCase)) return WebSiteAvailabilityState.DisasterRecoveryMode; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Normal")) return WebSiteAvailabilityState.Normal; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Limited")) return WebSiteAvailabilityState.Limited; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "DisasterRecoveryMode")) return WebSiteAvailabilityState.DisasterRecoveryMode; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WebSiteAvailabilityState value."); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WorkerSizeOption.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WorkerSizeOption.Serialization.cs index 559d8c6996e28..6290398c30a54 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WorkerSizeOption.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WorkerSizeOption.Serialization.cs @@ -30,18 +30,18 @@ internal static partial class WorkerSizeOptionExtensions public static WorkerSizeOption ToWorkerSizeOption(this string value) { - if (string.Equals(value, "Small", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.Small; - if (string.Equals(value, "Medium", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.Medium; - if (string.Equals(value, "Large", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.Large; - if (string.Equals(value, "D1", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.D1; - if (string.Equals(value, "D2", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.D2; - if (string.Equals(value, "D3", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.D3; - if (string.Equals(value, "SmallV3", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.SmallV3; - if (string.Equals(value, "MediumV3", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.MediumV3; - if (string.Equals(value, "LargeV3", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.LargeV3; - if (string.Equals(value, "NestedSmall", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.NestedSmall; - if (string.Equals(value, "NestedSmallLinux", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.NestedSmallLinux; - if (string.Equals(value, "Default", StringComparison.InvariantCultureIgnoreCase)) return WorkerSizeOption.Default; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Small")) return WorkerSizeOption.Small; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Medium")) return WorkerSizeOption.Medium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Large")) return WorkerSizeOption.Large; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "D1")) return WorkerSizeOption.D1; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "D2")) return WorkerSizeOption.D2; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "D3")) return WorkerSizeOption.D3; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SmallV3")) return WorkerSizeOption.SmallV3; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MediumV3")) return WorkerSizeOption.MediumV3; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "LargeV3")) return WorkerSizeOption.LargeV3; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NestedSmall")) return WorkerSizeOption.NestedSmall; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NestedSmallLinux")) return WorkerSizeOption.NestedSmallLinux; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Default")) return WorkerSizeOption.Default; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WorkerSizeOption value."); } } diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.Serialization.cs index d26cd17bc5d46..4a5afeb36e44c 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.Serialization.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DatabaseTierExtensions public static DatabaseTier ToDatabaseTier(this string value) { - if (string.Equals(value, "Burstable", StringComparison.InvariantCultureIgnoreCase)) return DatabaseTier.Burstable; - if (string.Equals(value, "GeneralPurpose", StringComparison.InvariantCultureIgnoreCase)) return DatabaseTier.GeneralPurpose; - if (string.Equals(value, "MemoryOptimized", StringComparison.InvariantCultureIgnoreCase)) return DatabaseTier.MemoryOptimized; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Burstable")) return DatabaseTier.Burstable; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "GeneralPurpose")) return DatabaseTier.GeneralPurpose; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "MemoryOptimized")) return DatabaseTier.MemoryOptimized; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DatabaseTier value."); } } diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.Serialization.cs index 494a3e5f8dbd8..8e616b44c91c4 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.Serialization.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.Serialization.cs @@ -21,9 +21,9 @@ internal static partial class DiskStorageTypeExtensions public static DiskStorageType ToDiskStorageType(this string value) { - if (string.Equals(value, "Premium_LRS", StringComparison.InvariantCultureIgnoreCase)) return DiskStorageType.PremiumLrs; - if (string.Equals(value, "Standard_LRS", StringComparison.InvariantCultureIgnoreCase)) return DiskStorageType.StandardLrs; - if (string.Equals(value, "StandardSSD_LRS", StringComparison.InvariantCultureIgnoreCase)) return DiskStorageType.StandardSsdLrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium_LRS")) return DiskStorageType.PremiumLrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard_LRS")) return DiskStorageType.StandardLrs; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "StandardSSD_LRS")) return DiskStorageType.StandardSsdLrs; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DiskStorageType value."); } } diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/WorkloadsSkuTier.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/WorkloadsSkuTier.Serialization.cs index d05f9712173be..bd3d4e2b971cc 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/WorkloadsSkuTier.Serialization.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/WorkloadsSkuTier.Serialization.cs @@ -22,10 +22,10 @@ internal static partial class WorkloadsSkuTierExtensions public static WorkloadsSkuTier ToWorkloadsSkuTier(this string value) { - if (string.Equals(value, "Free", StringComparison.InvariantCultureIgnoreCase)) return WorkloadsSkuTier.Free; - if (string.Equals(value, "Basic", StringComparison.InvariantCultureIgnoreCase)) return WorkloadsSkuTier.Basic; - if (string.Equals(value, "Standard", StringComparison.InvariantCultureIgnoreCase)) return WorkloadsSkuTier.Standard; - if (string.Equals(value, "Premium", StringComparison.InvariantCultureIgnoreCase)) return WorkloadsSkuTier.Premium; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return WorkloadsSkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return WorkloadsSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return WorkloadsSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return WorkloadsSkuTier.Premium; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WorkloadsSkuTier value."); } }