From 9f1a079ac4f30e021f4d2f6ff3dca05906275b2b Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Sat, 17 Feb 2024 16:22:26 -0800 Subject: [PATCH] Update to use bicep path generator (#42045) * Update Generator Version 3.0.0-beta.20240216.2 (#42039) * Update Generator Version 3.0.0-alpha.20240216.2 * keep local change and just update autorest * regen app config with paths * regen resources * regen keyvault * regen sqlmanagement * regen websites * regen storage * regen resourcemanager --------- Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Co-authored-by: azure-sdk --- eng/Packages.Data.props | 15 ++-- eng/emitter-package-lock.json | 24 +++---- eng/emitter-package.json | 14 ++-- .../Generated/AppConfigurationKeyValueData.cs | 8 +++ ...figurationPrivateEndpointConnectionData.cs | 3 + ...AppConfigurationPrivateLinkResourceData.cs | 3 + .../Generated/AppConfigurationReplicaData.cs | 3 + .../Generated/AppConfigurationStoreData.cs | 12 ++++ .../DeletedAppConfigurationStoreData.cs | 6 ++ .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ ...ConfigurationKeyValueData.Serialization.cs | 2 +- .../AppConfigurationKeyVaultProperties.cs | 2 + ...AppConfigurationNameAvailabilityContent.cs | 2 + .../AppConfigurationNameAvailabilityResult.cs | 3 + ...ationPrivateEndpointConnectionReference.cs | 3 + ...rationPrivateLinkServiceConnectionState.cs | 3 + .../AppConfigurationRegenerateKeyContent.cs | 1 + .../Generated/Models/AppConfigurationSku.cs | 1 + .../Models/AppConfigurationStoreApiKey.cs | 6 ++ ...AppConfigurationStoreData.Serialization.cs | 2 +- ...pConfigurationStoreEncryptionProperties.cs | 1 + .../Models/AppConfigurationStorePatch.cs | 7 ++ ...AppConfigurationStoreData.Serialization.cs | 2 +- .../src/Generated/DeletedKeyVaultData.cs | 1 + .../src/Generated/DeletedManagedHsmData.cs | 1 + .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ .../src/Generated/KeyVaultData.cs | 1 + .../KeyVaultPrivateEndpointConnectionData.cs | 6 ++ .../src/Generated/KeyVaultSecretData.cs | 3 + .../src/Generated/ManagedHsmData.cs | 2 + ...ManagedHsmPrivateEndpointConnectionData.cs | 5 ++ ...DeletedKeyVaultProperties.Serialization.cs | 2 +- .../Models/DeletedKeyVaultProperties.cs | 6 ++ ...letedManagedHsmProperties.Serialization.cs | 2 +- .../Models/DeletedManagedHsmProperties.cs | 6 ++ .../Models/IdentityAccessPermissions.cs | 4 ++ .../Generated/Models/KeyVaultAccessPolicy.cs | 4 ++ .../Models/KeyVaultAccessPolicyParameters.cs | 2 + .../Models/KeyVaultAccessPolicyProperties.cs | 1 + .../Models/KeyVaultCreateOrUpdateContent.cs | 3 + .../Models/KeyVaultData.Serialization.cs | 2 +- .../src/Generated/Models/KeyVaultIPRule.cs | 1 + .../Models/KeyVaultNameAvailabilityContent.cs | 2 + .../Models/KeyVaultNameAvailabilityResult.cs | 3 + .../Models/KeyVaultNetworkRuleSet.cs | 4 ++ .../src/Generated/Models/KeyVaultPatch.cs | 2 + .../Models/KeyVaultPatchProperties.cs | 13 ++++ ...ateEndpointConnectionData.Serialization.cs | 2 +- ...yVaultPrivateEndpointConnectionItemData.cs | 5 ++ ...ltPrivateLinkResourceData.Serialization.cs | 2 +- .../Models/KeyVaultPrivateLinkResourceData.cs | 5 ++ .../KeyVaultPrivateLinkResourceListResult.cs | 1 + ...yVaultPrivateLinkServiceConnectionState.cs | 3 + .../Generated/Models/KeyVaultProperties.cs | 17 +++++ .../KeyVaultSecretCreateOrUpdateContent.cs | 2 + .../KeyVaultSecretData.Serialization.cs | 2 +- .../Generated/Models/KeyVaultSecretPatch.cs | 2 + .../src/Generated/Models/KeyVaultSku.cs | 2 + .../Models/KeyVaultVirtualNetworkRule.cs | 2 + .../ManagedHSMSecurityDomainProperties.cs | 2 + .../Models/ManagedHsmData.Serialization.cs | 2 +- .../Models/ManagedHsmGeoReplicatedRegion.cs | 3 + .../src/Generated/Models/ManagedHsmIPRule.cs | 1 + .../ManagedHsmNameAvailabilityContent.cs | 1 + .../ManagedHsmNameAvailabilityResult.cs | 3 + .../Models/ManagedHsmNetworkRuleSet.cs | 4 ++ ...ateEndpointConnectionData.Serialization.cs | 2 +- ...gedHsmPrivateEndpointConnectionItemData.cs | 5 ++ ...smPrivateLinkResourceData.Serialization.cs | 2 +- .../ManagedHsmPrivateLinkResourceData.cs | 4 ++ ...ManagedHsmPrivateLinkResourceListResult.cs | 1 + ...gedHsmPrivateLinkServiceConnectionState.cs | 3 + .../Generated/Models/ManagedHsmProperties.cs | 15 ++++ .../src/Generated/Models/ManagedHsmSku.cs | 2 + .../Models/ManagedHsmVirtualNetworkRule.cs | 1 + .../Generated/Models/SecretBaseAttributes.cs | 5 ++ .../Generated/Models/SecretPatchProperties.cs | 3 + .../src/Generated/Models/SecretProperties.cs | 5 ++ .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ .../src/Common/Generated/Models/ArmPlan.cs | 5 ++ .../src/Common/Generated/Models/ArmSku.cs | 5 ++ .../Generated/Models/EncryptionProperties.cs | 2 + .../Generated/Models/KeyVaultProperties.cs | 2 + .../Generated/Models/OperationStatusResult.cs | 8 +++ .../src/Common/Generated/Models/SystemData.cs | 6 ++ .../Generated/Models/UserAssignedIdentity.cs | 2 + .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ .../Generated/ManagementGroupData.cs | 4 ++ .../Models/CreateManagementGroupDetails.cs | 4 ++ .../Generated/Models/DescendantData.cs | 2 + .../Models/DescendantParentGroupInfo.cs | 1 + .../Generated/Models/EntityData.cs | 10 +++ .../Models/ManagementGroupChildInfo.cs | 5 ++ .../Models/ManagementGroupChildOptions.cs | 5 ++ ...gementGroupCollectionGetEntitiesOptions.cs | 9 +++ .../ManagementGroupCreateOrUpdateContent.cs | 7 ++ .../Generated/Models/ManagementGroupInfo.cs | 7 ++ .../ManagementGroupNameAvailabilityContent.cs | 2 + .../ManagementGroupNameAvailabilityResult.cs | 3 + .../ManagementGroupParentCreateOptions.cs | 3 + .../Generated/Models/ManagementGroupPatch.cs | 2 + .../Models/ManagementGroupPathElement.cs | 2 + .../Models/ParentManagementGroupInfo.cs | 3 + .../Generated/DataPolicyManifestData.cs | 8 +++ .../src/Resources/Generated/FeatureData.cs | 1 + .../Generated/GenericResourceData.cs | 9 +++ .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ .../Resources/Generated/ManagementLockData.cs | 3 + .../Resources/Generated/Models/ApiProfile.cs | 2 + .../Generated/Models/ArmPolicyParameter.cs | 4 ++ .../Models/ArmPolicyParameterValue.cs | 1 + .../Models/AvailabilityZoneMappings.cs | 2 + .../Generated/Models/AzureRoleDefinition.cs | 5 ++ ...anifestCustomResourceFunctionDefinition.cs | 4 ++ .../Models/DataPolicyManifestEffect.cs | 2 + .../Generated/Models/ExportTemplate.cs | 2 + .../Generated/Models/ExtendedLocation.cs | 2 + .../Generated/Models/FeatureProperties.cs | 1 + .../GenericResourceData.Serialization.cs | 2 +- .../Generated/Models/LocationExpanded.cs | 8 +++ .../Generated/Models/LocationMetadata.cs | 7 ++ .../Generated/Models/ManagedByTenant.cs | 1 + .../Generated/Models/ManagementLockOwner.cs | 1 + .../Generated/Models/NonComplianceMessage.cs | 2 + .../Generated/Models/PairedRegion.cs | 3 + .../ParameterDefinitionsValueMetadata.cs | 5 ++ .../Resources/Generated/Models/Permission.cs | 4 ++ .../PolicyAssignmentData.Serialization.cs | 2 +- .../Generated/Models/PolicyAssignmentPatch.cs | 4 ++ .../PolicyDefinitionData.Serialization.cs | 2 +- .../Generated/Models/PolicyDefinitionGroup.cs | 5 ++ ...PolicyDefinitionReference.Serialization.cs | 2 +- .../Models/PolicyDefinitionReference.cs | 4 ++ .../Generated/Models/PolicyOverride.cs | 3 + .../PolicySetDefinitionData.Serialization.cs | 2 +- .../Generated/Models/PredefinedTag.cs | 4 ++ .../Generated/Models/PredefinedTagCount.cs | 2 + .../Generated/Models/PredefinedTagValue.cs | 3 + .../Models/ProviderConsentDefinition.cs | 1 + .../Models/ProviderExtendedLocation.cs | 3 + .../Generated/Models/ProviderPermission.cs | 4 ++ .../Models/ProviderPermissionListResult.cs | 2 + .../Models/ProviderRegistrationContent.cs | 1 + .../ProviderResourceType.Serialization.cs | 2 +- .../Generated/Models/ProviderResourceType.cs | 10 +++ .../Models/ProviderResourceTypeListResult.cs | 2 + .../Models/ResourceGroupData.Serialization.cs | 2 +- .../Models/ResourceGroupExportResult.cs | 2 + .../Generated/Models/ResourceGroupPatch.cs | 4 ++ .../Models/ResourceGroupProperties.cs | 1 + .../Models/ResourceNameValidationContent.cs | 2 + .../Models/ResourceNameValidationResult.cs | 3 + .../Generated/Models/ResourceSelector.cs | 2 + .../Models/ResourceSelectorExpression.cs | 3 + .../Generated/Models/ResourceTypeAlias.cs | 6 ++ .../Generated/Models/ResourceTypeAliasPath.cs | 4 ++ .../Models/ResourceTypeAliasPathMetadata.cs | 2 + .../Models/ResourceTypeAliasPattern.cs | 3 + .../Generated/Models/ResourceTypeAliases.cs | 2 + .../Generated/Models/ResourcesMoveContent.cs | 2 + .../Generated/Models/ResourcesSku.cs | 6 ++ .../Models/SubscriptionData.Serialization.cs | 2 +- .../Generated/Models/SubscriptionPolicies.cs | 3 + .../Generated/Models/Tag.Serialization.cs | 2 +- .../Generated/Models/TagResourcePatch.cs | 2 + .../Models/TenantResourceProvider.cs | 2 + ...ackedResourceExtendedData.Serialization.cs | 2 +- .../Models/TrackedResourceExtendedData.cs | 1 + .../Resources/Generated/Models/ZoneMapping.cs | 2 + .../Generated/PolicyAssignmentData.cs | 13 ++++ .../Generated/PolicyDefinitionData.cs | 7 ++ .../Generated/PolicySetDefinitionData.cs | 7 ++ .../Resources/Generated/ResourceGroupData.cs | 2 + .../Generated/ResourceProviderData.cs | 5 ++ .../Resources/Generated/SubscriptionData.cs | 8 +++ .../Resources/Generated/TagResourceData.cs | 1 + .../src/Resources/Generated/TenantData.cs | 10 +++ .../src/Generated/ArmApplicationData.cs | 18 +++++ .../Generated/ArmApplicationDefinitionData.cs | 13 ++++ .../src/Generated/ArmDeploymentData.cs | 3 + .../src/Generated/ArmDeploymentScriptData.cs | 3 + .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ .../src/Generated/JitRequestData.cs | 8 +++ .../Models/ArmApplicationArtifact.cs | 3 + .../Models/ArmApplicationAuthorization.cs | 2 + .../Models/ArmApplicationBillingDetails.cs | 1 + .../ArmApplicationData.Serialization.cs | 2 +- .../ArmApplicationDefinitionArtifact.cs | 3 + ...ApplicationDefinitionData.Serialization.cs | 2 +- .../Models/ArmApplicationDeploymentPolicy.cs | 1 + .../Generated/Models/ArmApplicationDetails.cs | 3 + .../Models/ArmApplicationJitAccessPolicy.cs | 4 ++ ...pplicationManagedIdentity.Serialization.cs | 2 +- .../Models/ArmApplicationManagedIdentity.cs | 4 ++ .../Models/ArmApplicationManagementPolicy.cs | 1 + .../ArmApplicationNotificationEndpoint.cs | 1 + .../ArmApplicationNotificationPolicy.cs | 1 + .../Models/ArmApplicationPackageContact.cs | 3 + .../ArmApplicationPackageLockingPolicy.cs | 2 + .../ArmApplicationPackageSupportUris.cs | 2 + .../ArmApplicationPatch.Serialization.cs | 2 +- .../Generated/Models/ArmApplicationPatch.cs | 18 +++++ .../Generated/Models/ArmApplicationPolicy.cs | 3 + ...rmApplicationResourceData.Serialization.cs | 2 +- .../Models/ArmApplicationResourceData.cs | 2 + .../src/Generated/Models/ArmApplicationSku.cs | 6 ++ .../ArmApplicationUserAssignedIdentity.cs | 2 + .../src/Generated/Models/ArmDependency.cs | 4 ++ .../Generated/Models/ArmDeploymentContent.cs | 3 + .../Models/ArmDeploymentData.Serialization.cs | 2 +- .../Models/ArmDeploymentExportResult.cs | 1 + .../Models/ArmDeploymentOperation.cs | 3 + .../ArmDeploymentOperationProperties.cs | 10 +++ .../Models/ArmDeploymentParametersLink.cs | 2 + .../Models/ArmDeploymentProperties.cs | 8 +++ .../Models/ArmDeploymentPropertiesExtended.cs | 16 +++++ .../ArmDeploymentScriptData.Serialization.cs | 2 +- ...mentScriptManagedIdentity.Serialization.cs | 2 +- .../ArmDeploymentScriptManagedIdentity.cs | 3 + .../ArmDeploymentScriptPatch.Serialization.cs | 2 +- .../Models/ArmDeploymentScriptPatch.cs | 1 + .../Models/ArmDeploymentTemplateLink.cs | 5 ++ .../Models/ArmDeploymentValidateResult.cs | 2 + .../Models/ArmDeploymentWhatIfContent.cs | 2 + .../Models/ArmDeploymentWhatIfProperties.cs | 1 + .../Models/ArmDeploymentWhatIfSettings.cs | 1 + .../Models/AzureCliScript.Serialization.cs | 2 +- .../src/Generated/Models/AzureCliScript.cs | 15 ++++ .../AzurePowerShellScript.Serialization.cs | 2 +- .../Generated/Models/AzurePowerShellScript.cs | 15 ++++ .../Generated/Models/BasicArmDependency.cs | 3 + .../Models/ContainerConfiguration.cs | 1 + .../src/Generated/Models/DebugSetting.cs | 1 + .../src/Generated/Models/ErrorDeployment.cs | 2 + .../Models/ErrorDeploymentExtended.cs | 3 + .../Models/ExpressionEvaluationOptions.cs | 1 + .../src/Generated/Models/HttpMessage.cs | 1 + .../src/Generated/Models/JitApprover.cs | 3 + .../Models/JitAuthorizationPolicies.cs | 2 + .../Models/JitRequestData.Serialization.cs | 2 +- .../Generated/Models/JitRequestListResult.cs | 2 + .../src/Generated/Models/JitRequestPatch.cs | 1 + .../Generated/Models/JitSchedulingPolicy.cs | 3 + .../Models/LinkedTemplateArtifact.cs | 2 + .../Models/ScriptEnvironmentVariable.cs | 3 + .../src/Generated/Models/ScriptLogsList.cs | 1 + .../src/Generated/Models/ScriptStatus.cs | 6 ++ .../Models/ScriptStorageConfiguration.cs | 2 + .../src/Generated/Models/StatusMessage.cs | 2 + .../src/Generated/Models/TargetResource.cs | 3 + .../Generated/Models/TemplateHashResult.cs | 2 + .../Models/TemplateSpecData.Serialization.cs | 4 +- .../Models/TemplateSpecPatch.Serialization.cs | 2 +- .../src/Generated/Models/TemplateSpecPatch.cs | 1 + .../TemplateSpecVersionData.Serialization.cs | 2 +- .../Models/TemplateSpecVersionInfo.cs | 3 + .../TemplateSpecVersionPatch.Serialization.cs | 2 +- .../Models/TemplateSpecVersionPatch.cs | 1 + ...nknownArmDeploymentScript.Serialization.cs | 2 +- .../src/Generated/Models/WhatIfChange.cs | 6 ++ .../Generated/Models/WhatIfOperationResult.cs | 3 + .../Generated/Models/WhatIfPropertyChange.cs | 5 ++ .../src/Generated/ScriptLogData.cs | 1 + .../src/Generated/TemplateSpecData.cs | 6 ++ .../src/Generated/TemplateSpecVersionData.cs | 7 ++ .../BackupShortTermRetentionPolicyData.cs | 2 + .../src/Generated/DataMaskingPolicyData.cs | 6 ++ .../DataWarehouseUserActivityData.cs | 1 + .../DatabaseAdvancedThreatProtectionData.cs | 2 + .../src/Generated/DatabaseColumnData.cs | 4 ++ .../src/Generated/DatabaseTableData.cs | 2 + .../DatabaseVulnerabilityAssessmentData.cs | 4 ++ ...VulnerabilityAssessmentRuleBaselineData.cs | 1 + .../src/Generated/DeletedServerData.cs | 4 ++ .../DistributedAvailabilityGroupData.cs | 10 +++ .../src/Generated/ElasticPoolData.cs | 13 ++++ .../src/Generated/EncryptionProtectorData.cs | 8 +++ .../src/Generated/EndpointCertificateData.cs | 1 + .../ExtendedDatabaseBlobAuditingPolicyData.cs | 11 +++ .../ExtendedServerBlobAuditingPolicyData.cs | 12 ++++ .../src/Generated/FailoverGroupData.cs | 8 +++ .../src/Generated/GeoBackupPolicyData.cs | 4 ++ .../src/Generated/IPv6FirewallRuleData.cs | 2 + .../Generated/InstanceFailoverGroupData.cs | 7 ++ .../src/Generated/InstancePoolData.cs | 6 ++ .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ .../src/Generated/LedgerDigestUploadData.cs | 2 + ...alDatabaseTransparentDataEncryptionData.cs | 1 + .../Generated/LongTermRetentionBackupData.cs | 10 +++ .../Generated/LongTermRetentionPolicyData.cs | 6 ++ .../Generated/MaintenanceWindowOptionData.cs | 7 ++ .../src/Generated/MaintenanceWindowsData.cs | 1 + ...nagedBackupShortTermRetentionPolicyData.cs | 1 + ...gedDatabaseAdvancedThreatProtectionData.cs | 2 + .../src/Generated/ManagedDatabaseData.cs | 22 ++++++ .../ManagedDatabaseRestoreDetailData.cs | 22 ++++++ .../ManagedDatabaseSecurityAlertPolicyData.cs | 8 +++ .../ManagedInstanceAdministratorData.cs | 4 ++ ...gedInstanceAdvancedThreatProtectionData.cs | 2 + ...edInstanceAzureADOnlyAuthenticationData.cs | 1 + .../src/Generated/ManagedInstanceData.cs | 31 +++++++++ .../src/Generated/ManagedInstanceDtcData.cs | 5 ++ .../ManagedInstanceEncryptionProtectorData.cs | 6 ++ .../src/Generated/ManagedInstanceKeyData.cs | 6 ++ ...agedInstanceLongTermRetentionBackupData.cs | 7 ++ ...agedInstanceLongTermRetentionPolicyData.cs | 4 ++ .../Generated/ManagedInstanceOperationData.cs | 15 ++++ ...edInstancePrivateEndpointConnectionData.cs | 3 + .../ManagedInstancePrivateLinkData.cs | 1 + ...edInstanceServerConfigurationOptionData.cs | 2 + .../ManagedInstanceStartStopScheduleData.cs | 5 ++ ...agedInstanceVulnerabilityAssessmentData.cs | 4 ++ .../ManagedLedgerDigestUploadData.cs | 2 + .../Generated/ManagedServerDnsAliasData.cs | 2 + .../ManagedServerSecurityAlertPolicyData.cs | 8 +++ .../ManagedTransparentDataEncryptionData.cs | 1 + .../Models/AutoPauseDelayTimeRange.cs | 6 ++ .../Models/AutomaticTuningOptions.cs | 4 ++ .../Models/AutomaticTuningServerOptions.cs | 4 ++ ...TermRetentionBackupAccessTierParameters.cs | 2 + .../CompleteDatabaseRestoreDefinition.cs | 1 + .../CopyLongTermRetentionBackupContent.cs | 6 ++ .../CreateDatabaseRestorePointDefinition.cs | 1 + .../src/Generated/Models/DataMaskingRule.cs | 13 ++++ .../Models/DatabaseExportDefinition.cs | 7 ++ .../Models/DatabaseIdentity.Serialization.cs | 2 +- .../src/Generated/Models/DatabaseIdentity.cs | 3 + .../Models/DatabaseImportDefinition.cs | 11 +++ .../Generated/Models/DatabaseOperationData.cs | 14 ++++ .../src/Generated/Models/DatabaseUsage.cs | 4 ++ ...VulnerabilityAssessmentRuleBaselineItem.cs | 1 + ...abaseVulnerabilityAssessmentScansExport.cs | 1 + .../src/Generated/Models/EditionCapability.cs | 7 ++ .../Generated/Models/ElasticPoolActivity.cs | 21 ++++++ .../Models/ElasticPoolData.Serialization.cs | 2 +- .../Models/ElasticPoolDatabaseActivity.cs | 16 +++++ .../Models/ElasticPoolEditionCapability.cs | 5 ++ .../Models/ElasticPoolOperationData.cs | 14 ++++ .../src/Generated/Models/ElasticPoolPatch.cs | 11 +++ ...erDatabaseMaxPerformanceLevelCapability.cs | 5 ++ ...erDatabaseMinPerformanceLevelCapability.cs | 4 ++ .../Models/ElasticPoolPerDatabaseSettings.cs | 2 + .../ElasticPoolPerformanceLevelCapability.cs | 12 ++++ .../Models/FailoverGroupData.Serialization.cs | 2 +- .../Generated/Models/FailoverGroupPatch.cs | 5 ++ .../Models/FailoverGroupReadOnlyEndpoint.cs | 2 + .../Models/FailoverGroupReadWriteEndpoint.cs | 2 + .../ImportExistingDatabaseDefinition.cs | 7 ++ .../ImportExportExtensionsOperationResult.cs | 7 ++ .../Models/ImportExportOperationResult.cs | 10 +++ .../InstanceFailoverGroupReadOnlyEndpoint.cs | 1 + .../InstanceFailoverGroupReadWriteEndpoint.cs | 2 + .../Models/InstancePoolData.Serialization.cs | 2 +- .../Models/InstancePoolEditionCapability.cs | 4 ++ .../Models/InstancePoolFamilyCapability.cs | 5 ++ .../src/Generated/Models/InstancePoolPatch.cs | 7 ++ .../src/Generated/Models/InstancePoolUsage.cs | 7 ++ .../Generated/Models/InstancePoolUsageName.cs | 2 + .../Models/InstancePoolVcoresCapability.cs | 5 ++ .../Generated/Models/JobExecutionTarget.cs | 3 + .../src/Generated/Models/JobStepAction.cs | 3 + .../Models/JobStepExecutionOptions.cs | 5 ++ .../src/Generated/Models/JobStepOutput.cs | 8 +++ .../src/Generated/Models/JobTarget.cs | 7 ++ .../Generated/Models/LicenseTypeCapability.cs | 3 + .../src/Generated/Models/LogSizeCapability.cs | 2 + .../LongTermRetentionBackupOperationResult.cs | 7 ++ .../MaintenanceConfigurationCapability.cs | 4 ++ .../Models/MaintenanceWindowTimeRange.cs | 3 + .../ManagedDatabaseData.Serialization.cs | 2 +- .../Models/ManagedDatabaseMoveDefinition.cs | 1 + .../Generated/Models/ManagedDatabasePatch.cs | 23 +++++++ ...atabaseRestoreDetailBackupSetProperties.cs | 6 ++ ...RestoreDetailUnrestorableFileProperties.cs | 1 + .../ManagedDatabaseStartMoveDefinition.cs | 2 + .../ManagedInstanceData.Serialization.cs | 2 +- .../ManagedInstanceDtcSecuritySettings.cs | 5 ++ ...TransactionManagerCommunicationSettings.cs | 3 + .../ManagedInstanceEditionCapability.cs | 6 ++ .../ManagedInstanceEndpointDependency.cs | 2 + .../Models/ManagedInstanceEndpointDetail.cs | 1 + .../ManagedInstanceExternalAdministrator.cs | 6 ++ .../Models/ManagedInstanceFamilyCapability.cs | 6 ++ ...tanceMaintenanceConfigurationCapability.cs | 3 + .../ManagedInstanceOperationParametersPair.cs | 2 + .../Models/ManagedInstanceOperationSteps.cs | 3 + .../Models/ManagedInstancePairInfo.cs | 2 + .../Generated/Models/ManagedInstancePatch.cs | 32 +++++++++ .../Models/ManagedInstancePecProperty.cs | 2 + ...ancePrivateEndpointConnectionProperties.cs | 3 + .../ManagedInstancePrivateLinkProperties.cs | 2 + ...ivateLinkServiceConnectionStateProperty.cs | 3 + .../Generated/Models/ManagedInstanceQuery.cs | 1 + ...gedInstanceResourceGetTopQueriesOptions.cs | 7 ++ ...edInstanceUpdateDnsServersOperationData.cs | 1 + .../Models/ManagedInstanceVcoresCapability.cs | 9 +++ .../ManagedInstanceVersionCapability.cs | 5 ++ .../ManagedServerDnsAliasAcquisition.cs | 1 + ...agedServerDnsAliasCreateOrUpdateContent.cs | 1 + .../src/Generated/Models/MaxSizeCapability.cs | 2 + .../Models/MaxSizeRangeCapability.cs | 6 ++ .../Generated/Models/MinCapacityCapability.cs | 3 + .../Models/NetworkIsolationSettings.cs | 2 + .../src/Generated/Models/PartnerRegionInfo.cs | 2 + .../src/Generated/Models/PartnerServerInfo.cs | 3 + .../Models/PerformanceLevelCapability.cs | 2 + .../PrivateEndpointConnectionRequestStatus.cs | 3 + .../Generated/Models/QueryMetricInterval.cs | 4 ++ .../Generated/Models/QueryMetricProperties.cs | 9 +++ .../src/Generated/Models/QueryStatistics.cs | 5 ++ .../Models/QueryStatisticsProperties.cs | 5 ++ .../Generated/Models/ReadScaleCapability.cs | 3 + .../RecommendedActionData.Serialization.cs | 2 +- .../Models/RecommendedActionErrorInfo.cs | 2 + .../Models/RecommendedActionImpactRecord.cs | 5 ++ .../RecommendedActionImplementationInfo.cs | 2 + .../Models/RecommendedActionMetricInfo.cs | 5 ++ .../Models/RecommendedActionStateInfo.cs | 3 + .../RecommendedSensitivityLabelUpdate.cs | 4 ++ .../RecommendedSensitivityLabelUpdateList.cs | 1 + .../RecoverableDatabaseData.Serialization.cs | 2 +- ...ExternalGovernanceStatusOperationResult.cs | 6 ++ .../Models/ResourceWithWritableName.cs | 3 + ...orableDroppedDatabaseData.Serialization.cs | 4 +- ...roppedManagedDatabaseData.Serialization.cs | 2 +- .../src/Generated/Models/SecurityEvent.cs | 9 +++ ...tyEventSqlInjectionAdditionalProperties.cs | 7 ++ .../Models/SensitivityLabelUpdate.cs | 5 ++ .../Models/SensitivityLabelUpdateList.cs | 1 + .../Models/ServerDnsAliasAcquisition.cs | 1 + .../Models/ServerExternalAdministrator.cs | 6 ++ .../Generated/Models/ServerOperationData.cs | 13 ++++ ...rverPrivateEndpointConnectionProperties.cs | 4 ++ .../Models/ServerTrustGroupServerInfo.cs | 1 + .../Models/ServiceObjectiveCapability.cs | 14 ++++ ...tabaseAutomaticTuningData.Serialization.cs | 2 +- .../Models/SqlDatabaseData.Serialization.cs | 4 +- .../Generated/Models/SqlDatabaseExtension.cs | 4 ++ .../src/Generated/Models/SqlDatabaseKey.cs | 4 ++ .../src/Generated/Models/SqlDatabasePatch.cs | 49 +++++++++++++ .../Models/SqlLocationCapabilities.cs | 5 ++ .../src/Generated/Models/SqlMetric.cs | 6 ++ .../Generated/Models/SqlMetricAvailability.cs | 2 + .../Generated/Models/SqlMetricDefinition.cs | 5 ++ .../src/Generated/Models/SqlMetricName.cs | 2 + .../src/Generated/Models/SqlMetricValue.cs | 6 ++ .../Models/SqlNameAvailabilityContent.cs | 2 + .../Models/SqlNameAvailabilityResponse.cs | 4 ++ .../Models/SqlOutboundEnvironmentEndpoint.cs | 2 + .../SqlPrivateLinkResourceProperties.cs | 3 + ...ivateLinkServiceConnectionStateProperty.cs | 3 + .../Models/SqlResourceMoveDefinition.cs | 1 + .../src/Generated/Models/SqlScheduleItem.cs | 4 ++ ...ServerAutomaticTuningData.Serialization.cs | 2 +- .../Models/SqlServerData.Serialization.cs | 2 +- .../SqlServerJobAgentData.Serialization.cs | 2 +- .../Models/SqlServerJobAgentPatch.cs | 1 + ...tResourceGetJobExecutionsByAgentOptions.cs | 7 ++ ...rverJobExecutionCollectionGetAllOptions.cs | 7 ++ ...CollectionGetJobTargetExecutionsOptions.cs | 8 +++ ...JobExecutionStepCollectionGetAllOptions.cs | 7 ++ ...cutionStepTargetCollectionGetAllOptions.cs | 7 ++ .../Generated/Models/SqlServerJobSchedule.cs | 5 ++ .../src/Generated/Models/SqlServerPatch.cs | 18 +++++ .../SqlServerPrivateEndpointConnection.cs | 2 + .../src/Generated/Models/SqlServerUsage.cs | 7 ++ .../Models/SqlServerVersionCapability.cs | 5 ++ .../Generated/Models/SqlServicePrincipal.cs | 4 ++ .../src/Generated/Models/SqlSku.cs | 5 ++ .../Models/SqlSynapseLinkWorkspace.cs | 1 + .../Models/SqlSynapseLinkWorkspaceInfo.cs | 2 + ...abilityAssessmentBaselineAdjustedResult.cs | 4 ++ ...lineCreateOrUpdateContent.Serialization.cs | 2 +- ...AssessmentBaselineCreateOrUpdateContent.cs | 2 + ...ityAssessmentBaselineData.Serialization.cs | 2 +- ...lVulnerabilityAssessmentBaselineDetails.cs | 2 + ...ssmentBaselineRuleCreateOrUpdateContent.cs | 2 + ...lnerabilityAssessmentBenchmarkReference.cs | 2 + .../SqlVulnerabilityAssessmentQueryCheck.cs | 3 + .../SqlVulnerabilityAssessmentRemediation.cs | 4 ++ .../SqlVulnerabilityAssessmentRuleMetadata.cs | 9 +++ .../SqlVulnerabilityAssessmentScanError.cs | 2 + .../src/Generated/Models/StorageCapability.cs | 3 + .../Models/SyncAgentKeyProperties.cs | 1 + .../Models/SyncAgentLinkedDatabase.cs | 6 ++ .../Models/SyncFullSchemaProperties.cs | 2 + .../Generated/Models/SyncFullSchemaTable.cs | 5 ++ .../Models/SyncFullSchemaTableColumn.cs | 7 ++ .../Models/SyncGroupLogProperties.cs | 6 ++ .../src/Generated/Models/SyncGroupSchema.cs | 2 + .../Generated/Models/SyncGroupSchemaTable.cs | 2 + .../Models/SyncGroupSchemaTableColumn.cs | 3 + .../src/Generated/Models/TdeCertificate.cs | 2 + .../src/Generated/Models/TopQueries.cs | 7 ++ .../UpdateLongTermRetentionBackupContent.cs | 1 + .../UpsertManagedServerOperationParameters.cs | 4 ++ .../UpsertManagedServerOperationStep.cs | 3 + .../VirtualClusterData.Serialization.cs | 2 +- .../Generated/Models/VirtualClusterPatch.cs | 4 ++ ...ilityAssessmentRecurringScansProperties.cs | 3 + .../VulnerabilityAssessmentScanError.cs | 2 + .../src/Generated/OutboundFirewallRuleData.cs | 1 + .../src/Generated/RecommendedActionData.cs | 25 +++++++ .../src/Generated/RecoverableDatabaseData.cs | 5 ++ .../RecoverableManagedDatabaseData.cs | 1 + .../RestorableDroppedDatabaseData.cs | 8 +++ .../RestorableDroppedManagedDatabaseData.cs | 4 ++ .../src/Generated/SensitivityLabelData.cs | 10 +++ .../ServerAdvancedThreatProtectionData.cs | 2 + .../Generated/ServerTrustCertificateData.cs | 3 + .../src/Generated/ServiceObjectiveData.cs | 5 ++ .../src/Generated/SqlAdvisorData.cs | 8 +++ .../Generated/SqlAgentConfigurationData.cs | 1 + .../SqlDatabaseAutomaticTuningData.cs | 3 + .../SqlDatabaseBlobAuditingPolicyData.cs | 11 +++ .../src/Generated/SqlDatabaseData.cs | 52 ++++++++++++++ .../SqlDatabaseSecurityAlertPolicyData.cs | 8 +++ .../src/Generated/SqlFirewallRuleData.cs | 2 + .../SqlPrivateEndpointConnectionData.cs | 4 ++ .../Generated/SqlPrivateLinkResourceData.cs | 1 + .../Generated/SqlServerAutomaticTuningData.cs | 3 + .../SqlServerAzureADAdministratorData.cs | 5 ++ .../SqlServerAzureADOnlyAuthenticationData.cs | 1 + .../SqlServerBlobAuditingPolicyData.cs | 11 +++ .../SqlServerCommunicationLinkData.cs | 4 ++ .../SqlServerConnectionPolicyData.cs | 3 + .../src/Generated/SqlServerData.cs | 18 +++++ .../SqlServerDatabaseReplicationLinkData.cs | 11 +++ .../SqlServerDatabaseRestorePointData.cs | 5 ++ .../SqlServerDevOpsAuditingSettingData.cs | 6 ++ .../src/Generated/SqlServerDnsAliasData.cs | 1 + .../src/Generated/SqlServerJobAgentData.cs | 3 + .../Generated/SqlServerJobCredentialData.cs | 2 + .../src/Generated/SqlServerJobData.cs | 3 + .../Generated/SqlServerJobExecutionData.cs | 13 ++++ .../src/Generated/SqlServerJobStepData.cs | 6 ++ .../Generated/SqlServerJobTargetGroupData.cs | 1 + .../src/Generated/SqlServerKeyData.cs | 8 +++ .../SqlServerSecurityAlertPolicyData.cs | 8 +++ .../src/Generated/SqlServerTrustGroupData.cs | 2 + .../SqlServerVirtualNetworkRuleData.cs | 3 + .../SqlServerVulnerabilityAssessmentData.cs | 4 ++ .../src/Generated/SqlTimeZoneData.cs | 2 + .../SqlVulnerabilityAssessmentBaselineData.cs | 1 + ...VulnerabilityAssessmentBaselineRuleData.cs | 1 + .../SqlVulnerabilityAssessmentData.cs | 1 + .../SqlVulnerabilityAssessmentScanData.cs | 17 +++++ ...qlVulnerabilityAssessmentScanResultData.cs | 8 +++ .../src/Generated/SubscriptionUsageData.cs | 4 ++ .../src/Generated/SyncAgentData.cs | 6 ++ .../src/Generated/SyncGroupData.cs | 13 ++++ .../src/Generated/SyncMemberData.cs | 12 ++++ .../src/Generated/VirtualClusterData.cs | 3 + .../VulnerabilityAssessmentScanRecordData.cs | 8 +++ .../src/Generated/WorkloadClassifierData.cs | 6 ++ .../src/Generated/WorkloadGroupData.cs | 6 ++ .../src/Generated/BlobContainerData.cs | 20 ++++++ .../src/Generated/BlobInventoryPolicyData.cs | 2 + .../src/Generated/BlobServiceData.cs | 10 +++ .../src/Generated/DeletedAccountData.cs | 5 ++ .../src/Generated/EncryptionScopeData.cs | 6 ++ .../src/Generated/FileServiceData.cs | 4 ++ .../src/Generated/FileShareData.cs | 19 ++++++ .../src/Generated/ImmutabilityPolicyData.cs | 5 ++ .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ .../Models/AccountImmutabilityPolicy.cs | 3 + .../src/Generated/Models/AccountSasContent.cs | 8 +++ .../Models/BlobContainerData.Serialization.cs | 2 +- .../Models/BlobContainerImmutabilityPolicy.cs | 6 ++ .../Models/BlobInventoryPolicyDefinition.cs | 5 ++ .../Models/BlobInventoryPolicyFilter.cs | 6 ++ .../Models/BlobInventoryPolicyRule.cs | 4 ++ .../Models/BlobInventoryPolicySchema.cs | 4 ++ .../Generated/Models/BlobRestoreContent.cs | 2 + .../src/Generated/Models/BlobRestoreRange.cs | 2 + .../src/Generated/Models/BlobRestoreStatus.cs | 4 ++ .../Generated/Models/BlobServiceChangeFeed.cs | 2 + .../src/Generated/Models/DateAfterCreation.cs | 2 + .../Generated/Models/DateAfterModification.cs | 4 ++ .../Generated/Models/DeleteRetentionPolicy.cs | 3 + .../src/Generated/Models/DeletedShare.cs | 2 + .../EncryptionScopeKeyVaultProperties.cs | 3 + .../src/Generated/Models/FileServiceItems.cs | 1 + .../Models/FileShareData.Serialization.cs | 2 +- .../FilesIdentityBasedAuthentication.cs | 3 + .../Models/GeoReplicationStatistics.cs | 3 + .../Generated/Models/GetAccountSasResult.cs | 1 + .../Generated/Models/GetServiceSasResult.cs | 1 + .../Models/ImmutableStorageAccount.cs | 2 + .../Models/ImmutableStorageWithVersioning.cs | 3 + .../Models/LastAccessTimeTrackingPolicy.cs | 4 ++ .../Generated/Models/LeaseContainerContent.cs | 5 ++ .../Models/LeaseContainerResponse.cs | 2 + .../src/Generated/Models/LeaseShareContent.cs | 5 ++ .../Generated/Models/LeaseShareResponse.cs | 2 + .../src/Generated/Models/LegalHold.cs | 3 + .../Generated/Models/LegalHoldProperties.cs | 3 + .../src/Generated/Models/LegalHoldTag.cs | 5 ++ .../src/Generated/Models/ListQueueServices.cs | 1 + .../src/Generated/Models/ListTableServices.cs | 1 + .../src/Generated/Models/LocalUserKeys.cs | 2 + .../LocalUserRegeneratePasswordResult.cs | 1 + .../Models/ManagementPolicyAction.cs | 3 + .../Models/ManagementPolicyBaseBlob.cs | 6 ++ .../Models/ManagementPolicyDefinition.cs | 2 + .../Models/ManagementPolicyFilter.cs | 3 + .../Generated/Models/ManagementPolicyRule.cs | 4 ++ .../Models/ManagementPolicySchema.cs | 1 + .../Models/ManagementPolicySnapShot.cs | 5 ++ .../Models/ManagementPolicyTagFilter.cs | 3 + .../Models/ManagementPolicyVersion.cs | 5 ++ .../src/Generated/Models/Multichannel.cs | 1 + .../Models/ObjectReplicationPolicyFilter.cs | 2 + .../Models/ObjectReplicationPolicyRule.cs | 4 ++ .../Models/ProtectedAppendWritesHistory.cs | 2 + .../src/Generated/Models/ProtocolSettings.cs | 1 + .../src/Generated/Models/RestorePolicy.cs | 4 ++ .../src/Generated/Models/ServiceSasContent.cs | 18 +++++ .../src/Generated/Models/SmbSetting.cs | 5 ++ .../StorageAccountCreateOrUpdateContent.cs | 29 ++++++++ .../StorageAccountData.Serialization.cs | 2 +- .../Models/StorageAccountEncryption.cs | 5 ++ .../StorageAccountEncryptionIdentity.cs | 2 + .../StorageAccountEncryptionServices.cs | 4 ++ .../Models/StorageAccountEndpoints.cs | 8 +++ .../Generated/Models/StorageAccountIPRule.cs | 2 + .../Models/StorageAccountInternetEndpoints.cs | 4 ++ .../src/Generated/Models/StorageAccountKey.cs | 4 ++ .../Models/StorageAccountKeyCreationTime.cs | 2 + .../Models/StorageAccountKeyPolicy.cs | 1 + .../StorageAccountKeyVaultProperties.cs | 6 ++ .../StorageAccountMicrosoftEndpoints.cs | 6 ++ .../StorageAccountNameAvailabilityContent.cs | 2 + .../StorageAccountNameAvailabilityResult.cs | 3 + .../Models/StorageAccountNetworkRuleSet.cs | 5 ++ .../Generated/Models/StorageAccountPatch.cs | 25 +++++++ .../StorageAccountRegenerateKeyContent.cs | 1 + .../StorageAccountResourceAccessRule.cs | 2 + .../Models/StorageAccountSasPolicy.cs | 2 + .../StorageAccountSkuConversionStatus.cs | 4 ++ .../StorageAccountVirtualNetworkRule.cs | 3 + .../StorageActiveDirectoryProperties.cs | 8 +++ .../src/Generated/Models/StorageCorsRule.cs | 5 ++ .../src/Generated/Models/StorageCorsRules.cs | 1 + .../Generated/Models/StorageCustomDomain.cs | 2 + .../Models/StorageEncryptionService.cs | 3 + .../Models/StoragePermissionScope.cs | 3 + .../Models/StoragePrivateLinkResourceData.cs | 3 + .../StoragePrivateLinkResourceListResult.cs | 1 + ...toragePrivateLinkServiceConnectionState.cs | 3 + .../Models/StorageQueueData.Serialization.cs | 2 +- .../Models/StorageRoutingPreference.cs | 3 + .../Models/StorageServiceAccessPolicy.cs | 3 + .../Models/StorageSignedIdentifier.cs | 2 + .../src/Generated/Models/StorageSku.cs | 2 + .../Generated/Models/StorageSkuCapability.cs | 2 + .../Generated/Models/StorageSkuInformation.cs | 7 ++ .../Generated/Models/StorageSkuRestriction.cs | 3 + .../Generated/Models/StorageSshPublicKey.cs | 2 + .../Models/StorageTableAccessPolicy.cs | 3 + .../Models/StorageTableSignedIdentifier.cs | 2 + .../src/Generated/Models/StorageUsage.cs | 4 ++ .../src/Generated/Models/StorageUsageName.cs | 2 + .../Generated/Models/UpdateHistoryEntry.cs | 8 +++ .../Generated/ObjectReplicationPolicyData.cs | 5 ++ .../src/Generated/QueueServiceData.cs | 1 + .../src/Generated/StorageAccountData.cs | 42 ++++++++++++ .../Generated/StorageAccountLocalUserData.cs | 7 ++ .../StorageAccountManagementPolicyData.cs | 2 + .../StoragePrivateEndpointConnectionData.cs | 3 + .../src/Generated/StorageQueueData.cs | 2 + .../src/Generated/TableData.cs | 2 + .../src/Generated/TableServiceData.cs | 1 + .../src/Generated/ApiKeyVaultReferenceData.cs | 10 +++ .../src/Generated/AppCertificateData.cs | 22 ++++++ .../Generated/AppServiceCertificateData.cs | 4 ++ .../AppServiceCertificateOrderData.cs | 21 ++++++ .../src/Generated/AppServiceDetectorData.cs | 6 ++ .../src/Generated/AppServiceDomainData.cs | 21 ++++++ .../Generated/AppServiceEnvironmentData.cs | 17 +++++ .../src/Generated/AppServiceIdentifierData.cs | 2 + .../src/Generated/AppServicePlanData.cs | 25 +++++++ .../Generated/AppServiceSourceControlData.cs | 5 ++ .../Generated/AppServiceVirtualNetworkData.cs | 8 +++ .../AppServiceVirtualNetworkGatewayData.cs | 3 + .../src/Generated/AppServiceWorkerPoolData.cs | 7 ++ .../AseV3NetworkingConfigurationData.cs | 6 ++ .../src/Generated/ContinuousWebJobData.cs | 11 +++ ...PublishingCredentialsPoliciesEntityData.cs | 2 + .../src/Generated/DeletedSiteData.cs | 9 +++ .../DetectorDefinitionResourceData.cs | 5 ++ .../src/Generated/DiagnosticCategoryData.cs | 2 + .../DomainOwnershipIdentifierData.cs | 2 + .../src/Generated/FunctionEnvelopeData.cs | 14 ++++ .../src/Generated/HostNameBindingData.cs | 10 +++ .../src/Generated/HybridConnectionData.cs | 9 +++ .../Generated/HybridConnectionLimitData.cs | 3 + .../Generated/Internal/WirePathAttribute.cs | 27 ++++++++ .../src/Generated/KubeEnvironmentData.cs | 10 +++ .../src/Generated/MSDeployStatusData.cs | 6 ++ .../src/Generated/MigrateMySqlStatusData.cs | 4 ++ .../Generated/Models/AbnormalTimePeriod.cs | 4 ++ .../Models/AllowedAudiencesValidation.cs | 1 + .../Models/AnalysisDetectorEvidences.cs | 5 ++ .../Generated/Models/ApiManagementConfig.cs | 1 + .../AppCertificateData.Serialization.cs | 2 +- .../Generated/Models/AppCertificatePatch.cs | 22 ++++++ .../Models/AppInsightsWebAppStackSettings.cs | 2 + .../Generated/Models/AppLogsConfiguration.cs | 2 + .../src/Generated/Models/AppRegistration.cs | 2 + .../Models/AppServiceAadAllowedPrincipals.cs | 2 + .../Models/AppServiceAadLoginFlow.cs | 2 + .../Generated/Models/AppServiceAadProvider.cs | 5 ++ .../Models/AppServiceAadRegistration.cs | 6 ++ .../Models/AppServiceAadValidation.cs | 3 + .../Models/AppServiceApiDefinitionInfo.cs | 1 + .../Models/AppServiceAppleProvider.cs | 3 + .../Models/AppServiceAppleRegistration.cs | 2 + .../src/Generated/Models/AppServiceArmPlan.cs | 5 ++ .../Models/AppServiceBillingMeter.cs | 7 ++ ...ServiceBlobStorageApplicationLogsConfig.cs | 3 + .../AppServiceBlobStorageHttpLogsConfig.cs | 3 + .../Models/AppServiceBlobStorageTokenStore.cs | 1 + ...AppServiceCertificateData.Serialization.cs | 2 +- .../Models/AppServiceCertificateDetails.cs | 9 +++ .../Models/AppServiceCertificateEmail.cs | 3 + ...rviceCertificateOrderData.Serialization.cs | 4 +- ...viceCertificateOrderPatch.Serialization.cs | 2 +- .../Models/AppServiceCertificateOrderPatch.cs | 21 ++++++ .../Models/AppServiceCertificatePatch.cs | 4 ++ .../Models/AppServiceCertificateProperties.cs | 3 + ...ceConfigurationDictionary.Serialization.cs | 2 +- .../AppServiceConfigurationDictionary.cs | 2 + .../Models/AppServiceCorsSettings.cs | 2 + .../Models/AppServiceDatabaseBackupSetting.cs | 4 ++ .../Models/AppServiceDeploymentLocations.cs | 3 + .../AppServiceDomainData.Serialization.cs | 2 +- .../Models/AppServiceDomainNameIdentifier.cs | 1 + .../Generated/Models/AppServiceDomainPatch.cs | 21 ++++++ .../Models/AppServiceEndpointDependency.cs | 2 + .../Models/AppServiceEndpointDetail.cs | 4 ++ .../AppServiceEnvironmentAddressResult.cs | 5 ++ ...AppServiceEnvironmentData.Serialization.cs | 2 +- .../Models/AppServiceEnvironmentPatch.cs | 17 +++++ .../Models/AppServiceEnvironmentProperties.cs | 16 +++++ .../Models/AppServiceFacebookProvider.cs | 4 ++ .../Models/AppServiceForwardProxy.cs | 3 + .../Generated/Models/AppServiceGeoRegion.cs | 4 ++ .../Models/AppServiceGitHubProvider.cs | 3 + .../Models/AppServiceGoogleProvider.cs | 4 ++ .../Generated/Models/AppServiceHostName.cs | 6 ++ .../Models/AppServiceHttpLogsConfig.cs | 2 + .../Models/AppServiceHttpSettings.cs | 3 + .../Models/AppServiceHttpSettingsRoutes.cs | 1 + ...viceIPSecurityRestriction.Serialization.cs | 2 +- .../Models/AppServiceIPSecurityRestriction.cs | 11 +++ ...pServiceIdentityProviders.Serialization.cs | 2 +- .../Models/AppServiceIdentityProviders.cs | 9 +++ .../Models/AppServiceNameValuePair.cs | 2 + .../Generated/Models/AppServiceOperation.cs | 8 +++ .../AppServicePlanData.Serialization.cs | 2 +- .../Generated/Models/AppServicePlanPatch.cs | 23 +++++++ .../Generated/Models/AppServicePoolSkuInfo.cs | 3 + .../AppServicePrivateLinkResourceData.cs | 1 + ...AppServicePrivateLinkResourceProperties.cs | 3 + .../Models/AppServiceRecommendation.cs | 24 +++++++ .../Models/AppServiceSkuCapability.cs | 3 + .../Generated/Models/AppServiceSkuCapacity.cs | 5 ++ .../Models/AppServiceSkuDescription.cs | 8 +++ .../Generated/Models/AppServiceSkuResult.cs | 2 + .../Models/AppServiceStaticWebAppsProvider.cs | 2 + .../AppServiceStaticWebAppsRegistration.cs | 1 + .../Generated/Models/AppServiceStatusInfo.cs | 2 + .../Models/AppServiceStorageAccessInfo.cs | 6 ++ ...erviceTableStorageApplicationLogsConfig.cs | 2 + .../Generated/Models/AppServiceTokenStore.cs | 4 ++ .../Models/AppServiceTwitterProvider.cs | 2 + .../src/Generated/Models/AppServiceUsage.cs | 9 +++ .../Models/AppServiceValidateContent.cs | 17 +++++ .../Models/AppServiceValidateResult.cs | 2 + .../Models/AppServiceVirtualNetworkProfile.cs | 4 ++ .../AppServiceVirtualNetworkProperties.cs | 7 ++ .../Models/AppServiceVirtualNetworkRoute.cs | 4 ++ ...pServiceVirtualNetworkValidationContent.cs | 5 ++ .../src/Generated/Models/AppSnapshot.cs | 2 + .../Generated/Models/ApplicationLogsConfig.cs | 3 + .../src/Generated/Models/ApplicationStack.cs | 6 ++ .../Models/ApplicationStackResource.cs | 7 ++ .../src/Generated/Models/ArcConfiguration.cs | 7 ++ .../src/Generated/Models/AuthPlatform.cs | 3 + .../src/Generated/Models/AutoHealActions.cs | 3 + .../Generated/Models/AutoHealCustomAction.cs | 2 + .../src/Generated/Models/AutoHealRules.cs | 2 + .../src/Generated/Models/AutoHealTriggers.cs | 6 ++ ...StoragePropertyDictionary.Serialization.cs | 2 +- .../Models/AzureStoragePropertyDictionary.cs | 2 + .../Models/CertificateOrderAction.cs | 3 + .../Models/CertificateOrderContact.cs | 4 ++ .../Generated/Models/ClientRegistration.cs | 2 + .../Models/CloningInfo.Serialization.cs | 2 +- .../src/Generated/Models/CloningInfo.cs | 11 +++ .../src/Generated/Models/ConnStringInfo.cs | 3 + .../Models/ConnStringValueTypePair.cs | 2 + ...onnectionStringDictionary.Serialization.cs | 2 +- .../Models/ConnectionStringDictionary.cs | 2 + .../Models/ContainerCpuStatistics.cs | 4 ++ .../src/Generated/Models/ContainerCpuUsage.cs | 4 ++ .../src/Generated/Models/ContainerInfo.cs | 8 +++ .../Models/ContainerMemoryStatistics.cs | 3 + .../ContainerNetworkInterfaceStatistics.cs | 8 +++ .../Models/ContainerThrottlingInfo.cs | 3 + .../ContinuousWebJobData.Serialization.cs | 2 +- .../Models/CsmOperationDescription.cs | 5 ++ .../CsmOperationDescriptionProperties.cs | 1 + .../Generated/Models/CsmOperationDisplay.cs | 4 ++ .../Generated/Models/CsmPublishingProfile.cs | 2 + .../src/Generated/Models/CsmSlotEntity.cs | 2 + .../src/Generated/Models/CsmUsageQuota.cs | 5 ++ .../Models/CustomHostnameAnalysisResult.cs | 12 ++++ .../Models/CustomOpenIdConnectProvider.cs | 3 + .../Models/DataProviderKeyValuePair.cs | 2 + .../Generated/Models/DataProviderMetadata.cs | 2 + .../Models/DataTableResponseColumn.cs | 3 + .../Models/DataTableResponseObject.cs | 3 + .../Models/DefaultAuthorizationPolicy.cs | 2 + .../Models/DeletedAppRestoreContent.cs | 5 ++ .../Models/DetectorAbnormalTimePeriod.cs | 8 +++ .../Generated/Models/DetectorDataSource.cs | 2 + .../Generated/Models/DetectorDefinition.cs | 4 ++ .../src/Generated/Models/DetectorInfo.cs | 9 +++ .../src/Generated/Models/DetectorMetadata.cs | 1 + .../Generated/Models/DetectorSupportTopic.cs | 2 + .../Generated/Models/DiagnosticAnalysis.cs | 6 ++ .../Models/DiagnosticDataRendering.cs | 3 + .../src/Generated/Models/DiagnosticDataset.cs | 2 + .../Models/DiagnosticDetectorResponse.cs | 9 +++ .../Models/DiagnosticMetricSample.cs | 6 ++ .../Generated/Models/DiagnosticMetricSet.cs | 6 ++ .../Generated/Models/DiagnosticSolution.cs | 7 ++ .../Models/DomainAvailabilityCheckResult.cs | 3 + .../DomainControlCenterSsoRequestInfo.cs | 3 + .../Generated/Models/DomainPurchaseConsent.cs | 3 + .../DomainRecommendationSearchContent.cs | 2 + .../Models/FileSystemApplicationLogsConfig.cs | 1 + .../Models/FileSystemHttpLogsConfig.cs | 3 + .../Generated/Models/FileSystemTokenStore.cs | 1 + .../Generated/Models/FrontEndConfiguration.cs | 1 + .../FunctionAppHostKeys.Serialization.cs | 4 +- .../Generated/Models/FunctionAppHostKeys.cs | 3 + .../Models/FunctionAppMajorVersion.cs | 3 + .../Models/FunctionAppMinorVersion.cs | 3 + ...unctionAppRuntimeSettings.Serialization.cs | 2 +- .../Models/FunctionAppRuntimeSettings.cs | 14 ++++ .../Generated/Models/FunctionAppRuntimes.cs | 2 + .../src/Generated/Models/FunctionAppStack.cs | 6 ++ .../FunctionEnvelopeData.Serialization.cs | 2 +- .../src/Generated/Models/FunctionSecrets.cs | 2 + .../Models/GitHubActionCodeConfiguration.cs | 2 + .../Models/GitHubActionConfiguration.cs | 4 ++ .../GitHubActionContainerConfiguration.cs | 4 ++ .../Models/GitHubActionWebAppStackSettings.cs | 2 + .../Models/GlobalCsmSkuDescription.cs | 7 ++ .../src/Generated/Models/GlobalValidation.cs | 4 ++ .../src/Generated/Models/HostNameSslState.cs | 6 ++ .../HostingEnvironmentDeploymentInfo.cs | 2 + .../Models/HostingEnvironmentDiagnostics.cs | 2 + .../Models/HostingEnvironmentProfile.cs | 3 + .../Models/HttpRequestHandlerMapping.cs | 3 + .../Generated/Models/HybridConnectionKey.cs | 3 + .../Models/InboundEnvironmentEndpoint.cs | 3 + .../src/Generated/Models/JwtClaimChecks.cs | 2 + .../KubeEnvironmentData.Serialization.cs | 2 +- .../Generated/Models/KubeEnvironmentPatch.cs | 9 +++ .../Models/KubeEnvironmentProfile.cs | 3 + .../Models/LegacyMicrosoftAccount.cs | 4 ++ .../Models/LinuxJavaContainerSettings.cs | 8 +++ .../src/Generated/Models/LocalizableString.cs | 2 + .../Models/LogAnalyticsConfiguration.cs | 2 + .../src/Generated/Models/LogSpecification.cs | 4 ++ .../Models/LoginFlowNonceSettings.cs | 2 + .../src/Generated/Models/LoginRoutes.cs | 1 + .../src/Generated/Models/LoginScopes.cs | 1 + .../Generated/Models/MetricAvailability.cs | 2 + .../src/Generated/Models/MetricDimension.cs | 4 ++ .../Generated/Models/MetricSpecification.cs | 17 +++++ .../Generated/Models/MigrateMySqlContent.cs | 3 + .../Models/OpenIdConnectClientCredential.cs | 2 + .../Generated/Models/OpenIdConnectConfig.cs | 5 ++ .../Generated/Models/OpenIdConnectLogin.cs | 2 + .../Models/OpenIdConnectRegistration.cs | 3 + .../Models/OutboundEnvironmentEndpoint.cs | 2 + .../Generated/Models/PerfMonResponseInfo.cs | 3 + .../src/Generated/Models/PerfMonSample.cs | 3 + .../src/Generated/Models/PerfMonSet.cs | 5 ++ .../Models/PremierAddOnData.Serialization.cs | 2 +- .../src/Generated/Models/PremierAddOnOffer.cs | 11 +++ .../Models/PremierAddOnPatchResource.cs | 6 ++ .../Generated/Models/PrivateAccessSubnet.cs | 2 + .../Models/PrivateAccessVirtualNetwork.cs | 4 ++ ...rivateLinkConnectionApprovalRequestInfo.cs | 2 + .../Models/PrivateLinkConnectionState.cs | 3 + .../Models/PrivateLinkResourcesWrapper.cs | 1 + .../Models/ProcessInfoData.Serialization.cs | 2 +- .../src/Generated/Models/ProcessThreadInfo.cs | 13 ++++ .../Generated/Models/QueryUtterancesResult.cs | 2 + .../Models/QueryUtterancesResults.cs | 2 + .../src/Generated/Models/RampUpRule.cs | 8 +++ .../Models/RegistrationAddressInfo.cs | 6 ++ .../Models/RegistrationContactInfo.cs | 9 +++ .../Models/ReissueCertificateOrderContent.cs | 5 ++ .../Models/RemotePrivateEndpointConnection.cs | 5 ++ .../Models/RenewCertificateOrderContent.cs | 4 ++ .../Generated/Models/RequestsBasedTrigger.cs | 2 + .../Models/ResourceMetricAvailability.cs | 2 + .../ResourceMetricDefinition.Serialization.cs | 2 +- .../Models/ResourceMetricDefinition.cs | 6 ++ .../Models/ResourceNameAvailability.cs | 3 + .../Models/ResourceNameAvailabilityContent.cs | 3 + ...PrivateEndpointConnection.Serialization.cs | 2 +- ...EnvelopeRemotePrivateEndpointConnection.cs | 9 +++ .../Generated/Models/RestoreRequestInfo.cs | 12 ++++ .../Models/RoutingRuleExperiments.cs | 1 + .../src/Generated/Models/SampleUtterance.cs | 3 + .../Generated/Models/ServiceSpecification.cs | 2 + .../src/Generated/Models/SiteAuthSettings.cs | 39 +++++++++++ .../Generated/Models/SiteAuthSettingsV2.cs | 6 ++ .../src/Generated/Models/SiteCloneability.cs | 4 ++ .../Models/SiteCloneabilityCriterion.cs | 2 + .../Models/SiteConfigData.Serialization.cs | 2 +- .../SiteConfigProperties.Serialization.cs | 2 +- .../Generated/Models/SiteConfigProperties.cs | 67 ++++++++++++++++++ .../Models/SiteConfigPropertiesDictionary.cs | 4 ++ .../Models/SiteConfigurationSnapshotInfo.cs | 3 + .../src/Generated/Models/SiteLimits.cs | 3 + .../src/Generated/Models/SiteMachineKey.cs | 4 ++ .../src/Generated/Models/SitePatchInfo.cs | 43 ++++++++++++ .../Generated/Models/SitePhpErrorLogFlag.cs | 5 ++ .../src/Generated/Models/SiteSeal.cs | 1 + .../src/Generated/Models/SiteSealContent.cs | 2 + .../src/Generated/Models/SlotDifference.cs | 8 +++ .../src/Generated/Models/SlotSwapStatus.cs | 3 + .../Models/SlowRequestsBasedTrigger.cs | 4 ++ .../Models/SnapshotRecoverySource.cs | 2 + .../Models/SnapshotRestoreRequest.cs | 7 ++ .../Models/StackMajorVersion.Serialization.cs | 4 +- .../src/Generated/Models/StackMajorVersion.cs | 10 +++ .../src/Generated/Models/StackMinorVersion.cs | 4 ++ .../src/Generated/Models/StampCapacity.cs | 11 +++ .../Models/StaticSiteBuildProperties.cs | 8 +++ .../Models/StaticSiteCustomDomainContent.cs | 2 + .../Models/StaticSiteData.Serialization.cs | 2 +- .../Models/StaticSiteFunctionOverview.cs | 3 + .../src/Generated/Models/StaticSitePatch.cs | 15 ++++ .../Models/StaticSiteResetContent.cs | 3 + .../Generated/Models/StaticSiteStringList.cs | 2 + .../Generated/Models/StaticSiteTemplate.cs | 5 ++ .../src/Generated/Models/StaticSiteUser.cs | 5 ++ .../Models/StaticSiteUserInvitationContent.cs | 6 ++ .../Models/StaticSiteUserInvitationResult.cs | 3 + .../Models/StaticSiteZipDeployment.cs | 6 ++ .../Models/StaticSitesWorkflowPreview.cs | 3 + .../StaticSitesWorkflowPreviewContent.cs | 4 ++ .../Models/StatusCodesBasedTrigger.cs | 6 ++ .../Models/StatusCodesRangeBasedTrigger.cs | 4 ++ .../Models/StorageMigrationContent.cs | 5 ++ .../Models/StorageMigrationResult.cs | 2 + .../src/Generated/Models/TldLegalAgreement.cs | 4 ++ .../Models/TopLevelDomainAgreementOption.cs | 2 + .../src/Generated/Models/TriggeredJobRun.cs | 11 +++ .../TriggeredWebJobData.Serialization.cs | 2 +- .../Generated/Models/TwitterRegistration.cs | 2 + .../Generated/Models/ValidateResponseError.cs | 2 + .../Generated/Models/VirtualApplication.cs | 4 ++ .../src/Generated/Models/VirtualDirectory.cs | 2 + .../src/Generated/Models/VirtualIPMapping.cs | 5 ++ .../VirtualNetworkValidationFailureDetails.cs | 5 ++ .../VirtualNetworkValidationTestFailure.cs | 3 + .../src/Generated/Models/WebAppBackupInfo.cs | 6 ++ .../Generated/Models/WebAppBackupSchedule.cs | 6 ++ .../Models/WebAppCookieExpiration.cs | 2 + .../Generated/Models/WebAppEnabledConfig.cs | 1 + .../src/Generated/Models/WebAppKeyInfo.cs | 1 + .../Models/WebAppKeyInfoProperties.cs | 2 + .../src/Generated/Models/WebAppLoginInfo.cs | 6 ++ .../Models/WebAppMSDeploy.Serialization.cs | 2 +- .../src/Generated/Models/WebAppMSDeploy.cs | 8 +++ .../src/Generated/Models/WebAppMSDeployLog.cs | 2 + .../Models/WebAppMSDeployLogEntry.cs | 3 + .../Generated/Models/WebAppMajorVersion.cs | 3 + .../Generated/Models/WebAppMinorVersion.cs | 3 + .../Generated/Models/WebAppNetworkTrace.cs | 3 + .../Generated/Models/WebAppPushSettings.cs | 5 ++ .../Generated/Models/WebAppRuntimeSettings.cs | 10 +++ .../src/Generated/Models/WebAppRuntimes.cs | 4 ++ .../src/Generated/Models/WebAppStack.cs | 6 ++ .../Models/WebJobData.Serialization.cs | 2 +- .../Models/WebSiteData.Serialization.cs | 2 +- ...WebSiteInstanceStatusData.Serialization.cs | 2 +- .../Models/WindowsJavaContainerSettings.cs | 8 +++ .../src/Generated/NetworkFeatureData.cs | 5 ++ .../src/Generated/PremierAddOnData.cs | 6 ++ .../src/Generated/PrivateAccessData.cs | 3 + .../src/Generated/ProcessInfoData.cs | 37 ++++++++++ .../src/Generated/ProcessModuleInfoData.cs | 12 ++++ .../src/Generated/PublicCertificateData.cs | 4 ++ .../src/Generated/PublishingUserData.cs | 6 ++ .../src/Generated/RecommendationRuleData.cs | 14 ++++ .../RelayServiceConnectionEntityData.cs | 7 ++ ...rivateEndpointConnectionARMResourceData.cs | 5 ++ .../Generated/ResourceHealthMetadataData.cs | 3 + .../src/Generated/SiteConfigData.cs | 68 +++++++++++++++++++ .../src/Generated/SiteExtensionInfoData.cs | 21 ++++++ .../src/Generated/SiteLogsConfigData.cs | 5 ++ .../src/Generated/SiteSourceControlData.cs | 8 +++ .../Generated/SlotConfigNamesResourceData.cs | 4 ++ .../src/Generated/StaticSiteBuildData.cs | 9 +++ .../StaticSiteCustomDomainOverviewData.cs | 6 ++ .../src/Generated/StaticSiteData.cs | 17 +++++ .../StaticSiteUserProvidedFunctionAppData.cs | 4 ++ .../src/Generated/SwiftVirtualNetworkData.cs | 3 + .../src/Generated/TopLevelDomainData.cs | 2 + .../src/Generated/TriggeredJobHistoryData.cs | 2 + .../src/Generated/TriggeredWebJobData.cs | 11 +++ .../src/Generated/WebAppBackupData.cs | 15 ++++ .../src/Generated/WebAppDeploymentData.cs | 10 +++ .../src/Generated/WebJobData.cs | 8 +++ .../WebSiteAnalysisDefinitionData.cs | 2 + .../src/Generated/WebSiteData.cs | 44 ++++++++++++ .../Generated/WebSiteInstanceStatusData.cs | 7 ++ 1029 files changed, 5167 insertions(+), 124 deletions(-) create mode 100644 sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Internal/WirePathAttribute.cs create mode 100644 sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Internal/WirePathAttribute.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Internal/WirePathAttribute.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Internal/WirePathAttribute.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Internal/WirePathAttribute.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Internal/WirePathAttribute.cs create mode 100644 sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Internal/WirePathAttribute.cs create mode 100644 sdk/storage/Azure.ResourceManager.Storage/src/Generated/Internal/WirePathAttribute.cs create mode 100644 sdk/websites/Azure.ResourceManager.AppService/src/Generated/Internal/WirePathAttribute.cs diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index ce41c7e788514..9b3db3fd9ea40 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -208,7 +208,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + @@ -230,7 +230,7 @@ - + @@ -240,9 +240,9 @@ - - - + + + @@ -310,7 +310,8 @@ - + + @@ -349,4 +350,4 @@ 1.0.0-dev.20230821.1 - + \ No newline at end of file diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index d3c6fd93a10af..a07ebbb568fbc 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240212.2.tgz" + "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240216.2.tgz" }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.38.0", @@ -17,9 +17,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-alpha.20240212.2", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240212.2.tgz", - "integrity": "sha512-FuEY5eqVqO03Z2bHmVCc2rvFumcaDZA8/ak+01f9UVrKxmjfmpnEE1LQafOOjgIo877kzg4PlxC8qbvvaF4HtQ==" + "version": "3.0.0-alpha.20240216.2", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240216.2.tgz", + "integrity": "sha512-dVGNvxmNs9RnKw4RB+3z2dQEd4/TISDWx+b1wlanAKAYab61feb3DKWAnSaBPjwLA3zzIvlmkwDnt3mVZKg1LA==" }, "node_modules/@azure-tools/typespec-azure-core": { "version": "0.38.0", @@ -55,12 +55,12 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-alpha.20240212.2", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240212.2.tgz", - "integrity": "sha512-Lq1uOjMZO4zEKEMjWuFyqSjxPY4RzdQFupQvTvkSKVto1LLppQ53DWEF/RGdp1adQtlKEIavhFUHrexncJlooA==", + "version": "0.2.0-alpha.20240216.2", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240216.2.tgz", + "integrity": "sha512-xpBv68Mtu9M02Y4ZRKapmf/hUaOaTmhdU4VBGGe6++7yFVEVSGFlNoUVwE7V/+Y2Oj8sq9p6/8hyu0nZqJ2oRQ==", "license": "MIT", "dependencies": { - "@autorest/csharp": "3.0.0-alpha.20240212.2", + "@autorest/csharp": "3.0.0-alpha.20240216.2", "json-serialize-refs": "0.1.0-0", "winston": "^3.8.2" }, @@ -163,9 +163,9 @@ } }, "node_modules/@sindresorhus/merge-streams": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.2.0.tgz", - "integrity": "sha512-UTce8mUwUW0RikMb/eseJ7ys0BRkZVFB86orHzrfW12ZmFtym5zua8joZ4L7okH2dDFHkcFjqnZ5GocWBXOFtA==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.2.1.tgz", + "integrity": "sha512-255V7MMIKw6aQ43Wbqp9HZ+VHn6acddERTLiiLnlcPLU9PdTq9Aijl12oklAgUEblLWye+vHLzmqBx6f2TGcZw==", "dev": true, "engines": { "node": ">=18" @@ -1188,4 +1188,4 @@ } } } -} \ No newline at end of file +} diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 8f301c733dcb0..6ab0c1a00e752 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,17 +1,17 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240212.2.tgz" + "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240216.2.tgz" }, "devDependencies": { - "@azure-tools/typespec-client-generator-core": "0.38.0", - "@azure-tools/typespec-azure-core": "0.38.0", + "@typespec/compiler": "0.52.0", "@typespec/http": "0.52.1", - "@typespec/versioning": "0.52.0", "@typespec/rest": "0.52.0", - "@typespec/compiler": "0.52.0" + "@azure-tools/typespec-client-generator-core": "0.38.0", + "@azure-tools/typespec-azure-core": "0.38.0", + "@typespec/versioning": "0.52.0" }, "overrides": { - "@autorest/csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240212.2.tgz" + "@autorest/csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240216.2.tgz" } -} \ No newline at end of file +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueData.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueData.cs index bf709805d4ba5..d8df064800140 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueData.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueData.cs @@ -100,29 +100,37 @@ internal AppConfigurationKeyValueData(ResourceIdentifier id, string name, Resour /// The primary identifier of a key-value. /// The key is used in unison with the label to uniquely identify a key-value. /// + [WirePath("properties.key")] public string Key { get; } /// /// A value used to group key-values. /// The label is used in unison with the key to uniquely identify a key-value. /// + [WirePath("properties.label")] public string Label { get; } /// The value of the key-value. + [WirePath("properties.value")] public string Value { get; set; } /// /// The content type of the key-value's value. /// Providing a proper content-type can enable transformations of values when they are retrieved by applications. /// + [WirePath("properties.contentType")] public string ContentType { get; set; } /// An ETag indicating the state of a key-value within a configuration store. + [WirePath("properties.eTag")] public ETag? ETag { get; } /// The last time a modifying operation was performed on the given key-value. + [WirePath("properties.lastModified")] public DateTimeOffset? LastModifiedOn { get; } /// /// A value indicating whether the key-value is locked. /// A locked key-value may not be modified until it is unlocked. /// + [WirePath("properties.locked")] public bool? IsLocked { get; } /// A dictionary of tags that can help identify what a key-value may be applicable for. + [WirePath("properties.tags")] public IDictionary Tags { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationPrivateEndpointConnectionData.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationPrivateEndpointConnectionData.cs index 98b1c50f317fe..44b18c1ed23e3 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationPrivateEndpointConnectionData.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationPrivateEndpointConnectionData.cs @@ -75,10 +75,12 @@ internal AppConfigurationPrivateEndpointConnectionData(ResourceIdentifier id, st } /// The provisioning status of the private endpoint connection. + [WirePath("properties.provisioningState")] public AppConfigurationProvisioningState? ProvisioningState { get; } /// The resource of private endpoint. internal WritableSubResource PrivateEndpoint { get; set; } /// Gets or sets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; @@ -91,6 +93,7 @@ public ResourceIdentifier PrivateEndpointId } /// A collection of information about the state of the connection between service consumer and provider. + [WirePath("properties.privateLinkServiceConnectionState")] public AppConfigurationPrivateLinkServiceConnectionState ConnectionState { get; set; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationPrivateLinkResourceData.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationPrivateLinkResourceData.cs index 5856ebc77c5a5..7804b98084993 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationPrivateLinkResourceData.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationPrivateLinkResourceData.cs @@ -75,10 +75,13 @@ internal AppConfigurationPrivateLinkResourceData(ResourceIdentifier id, string n } /// The private link resource group id. + [WirePath("properties.groupId")] public string GroupId { get; } /// The private link resource required member names. + [WirePath("properties.requiredMembers")] public IReadOnlyList RequiredMembers { get; } /// The list of required DNS zone names of the private link resource. + [WirePath("properties.requiredZoneNames")] public IReadOnlyList RequiredZoneNames { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationReplicaData.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationReplicaData.cs index f673c0ab8dae7..710f3b6bd9226 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationReplicaData.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationReplicaData.cs @@ -74,10 +74,13 @@ internal AppConfigurationReplicaData(ResourceIdentifier id, string name, Resourc } /// The location of the replica. + [WirePath("location")] public AzureLocation? Location { get; set; } /// The URI of the replica where the replica API will be available. + [WirePath("properties.endpoint")] public string Endpoint { get; } /// The provisioning state of the replica. + [WirePath("properties.provisioningState")] public AppConfigurationReplicaProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationStoreData.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationStoreData.cs index 8633cf58a61a1..eda63cb1ee617 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationStoreData.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationStoreData.cs @@ -106,10 +106,12 @@ internal AppConfigurationStoreData() } /// The managed identity information, if configured. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// The sku of the configuration store. internal AppConfigurationSku Sku { get; set; } /// The SKU name of the configuration store. + [WirePath("sku.name")] public string SkuName { get => Sku is null ? default : Sku.Name; @@ -117,14 +119,18 @@ public string SkuName } /// The provisioning state of the configuration store. + [WirePath("properties.provisioningState")] public AppConfigurationProvisioningState? ProvisioningState { get; } /// The creation date of configuration store. + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// The DNS endpoint where the configuration store API will be available. + [WirePath("properties.endpoint")] public string Endpoint { get; } /// The encryption settings of the configuration store. internal AppConfigurationStoreEncryptionProperties Encryption { get; set; } /// Key vault properties. + [WirePath("properties.encryption.keyVaultProperties")] public AppConfigurationKeyVaultProperties EncryptionKeyVaultProperties { get => Encryption is null ? default : Encryption.KeyVaultProperties; @@ -137,16 +143,22 @@ public AppConfigurationKeyVaultProperties EncryptionKeyVaultProperties } /// The list of private endpoint connections that are set up for this resource. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// Control permission for data plane traffic coming from public networks while private endpoint is enabled. + [WirePath("properties.publicNetworkAccess")] public AppConfigurationPublicNetworkAccess? PublicNetworkAccess { get; set; } /// Disables all authentication methods other than AAD authentication. + [WirePath("properties.disableLocalAuth")] public bool? DisableLocalAuth { get; set; } /// The amount of time in days that the configuration store will be retained when it is soft deleted. + [WirePath("properties.softDeleteRetentionInDays")] public int? SoftDeleteRetentionInDays { get; set; } /// Property specifying whether protection against purge is enabled for this configuration store. + [WirePath("properties.enablePurgeProtection")] public bool? EnablePurgeProtection { get; set; } /// Indicates whether the configuration store need to be recovered. + [WirePath("properties.createMode")] public AppConfigurationCreateMode? CreateMode { get; set; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/DeletedAppConfigurationStoreData.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/DeletedAppConfigurationStoreData.cs index f2ff548e5f606..5f0b47e709120 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/DeletedAppConfigurationStoreData.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/DeletedAppConfigurationStoreData.cs @@ -80,16 +80,22 @@ internal DeletedAppConfigurationStoreData(ResourceIdentifier id, string name, Re } /// The resource id of the original configuration store. + [WirePath("properties.configurationStoreId")] public ResourceIdentifier ConfigurationStoreId { get; } /// The location of the original configuration store. + [WirePath("properties.location")] public AzureLocation? Location { get; } /// The deleted date. + [WirePath("properties.deletionDate")] public DateTimeOffset? DeletedOn { get; } /// The scheduled purged date. + [WirePath("properties.scheduledPurgeDate")] public DateTimeOffset? ScheduledPurgeOn { get; } /// Tags of the original configuration store. + [WirePath("properties.tags")] public IReadOnlyDictionary Tags { get; } /// Purge protection status of the original configuration store. + [WirePath("properties.purgeProtectionEnabled")] public bool? IsPurgeProtectionEnabled { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Internal/WirePathAttribute.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..71611fdc7383a --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.AppConfiguration +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyValueData.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyValueData.Serialization.cs index 2c8e8f2e09bf6..0cd7845c9bb2e 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyValueData.Serialization.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyValueData.Serialization.cs @@ -470,7 +470,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyVaultProperties.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyVaultProperties.cs index c0abd22c1a162..99ecd7086e186 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyVaultProperties.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyVaultProperties.cs @@ -62,8 +62,10 @@ internal AppConfigurationKeyVaultProperties(string keyIdentifier, string identit } /// The URI of the key vault key used to encrypt data. + [WirePath("keyIdentifier")] public string KeyIdentifier { get; set; } /// The client id of the identity which will be used to access key vault. + [WirePath("identityClientId")] public string IdentityClientId { get; set; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationNameAvailabilityContent.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationNameAvailabilityContent.cs index 278936b1dba36..ee6fe248646f2 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationNameAvailabilityContent.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationNameAvailabilityContent.cs @@ -75,8 +75,10 @@ internal AppConfigurationNameAvailabilityContent() } /// The name to check for availability. + [WirePath("name")] public string Name { get; } /// The resource type to check for name availability. + [WirePath("type")] public AppConfigurationResourceType ResourceType { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationNameAvailabilityResult.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationNameAvailabilityResult.cs index 1bc71a72c95cb..3cd5011e892c0 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationNameAvailabilityResult.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationNameAvailabilityResult.cs @@ -64,10 +64,13 @@ internal AppConfigurationNameAvailabilityResult(bool? isNameAvailable, string me } /// The value indicating whether the resource name is available. + [WirePath("nameAvailable")] public bool? IsNameAvailable { get; } /// If any, the error message that provides more detail for the reason that the name is not available. + [WirePath("message")] public string Message { get; } /// If any, the reason that the name is not available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionReference.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionReference.cs index ead254e2084b2..ef42127c2c837 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionReference.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionReference.cs @@ -71,16 +71,19 @@ internal AppConfigurationPrivateEndpointConnectionReference(ResourceIdentifier i } /// The provisioning status of the private endpoint connection. + [WirePath("properties.provisioningState")] public AppConfigurationProvisioningState? ProvisioningState { get; } /// The resource of private endpoint. internal WritableSubResource PrivateEndpoint { get; } /// Gets or sets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint?.Id; } /// A collection of information about the state of the connection between service consumer and provider. + [WirePath("properties.privateLinkServiceConnectionState")] public AppConfigurationPrivateLinkServiceConnectionState ConnectionState { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkServiceConnectionState.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkServiceConnectionState.cs index 7430b53e74826..3011b0288cedd 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkServiceConnectionState.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkServiceConnectionState.cs @@ -64,10 +64,13 @@ internal AppConfigurationPrivateLinkServiceConnectionState(AppConfigurationPriva } /// The private link service connection status. + [WirePath("status")] public AppConfigurationPrivateLinkServiceConnectionStatus? Status { get; set; } /// The private link service connection description. + [WirePath("description")] public string Description { get; set; } /// Any action that is required beyond basic workflow (approve/ reject/ disconnect). + [WirePath("actionsRequired")] public AppConfigurationActionsRequired? ActionsRequired { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationRegenerateKeyContent.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationRegenerateKeyContent.cs index 89c2e4db3a066..8e62d9bad45f1 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationRegenerateKeyContent.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationRegenerateKeyContent.cs @@ -60,6 +60,7 @@ internal AppConfigurationRegenerateKeyContent(string id, IDictionary The id of the key to regenerate. + [WirePath("id")] public string Id { get; set; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationSku.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationSku.cs index c5d899648c9c0..d07cc7f5aa578 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationSku.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationSku.cs @@ -71,6 +71,7 @@ internal AppConfigurationSku() } /// The SKU name of the configuration store. + [WirePath("name")] public string Name { get; set; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKey.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKey.cs index 7c6fd3438216e..58aa8a5971887 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKey.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKey.cs @@ -70,16 +70,22 @@ internal AppConfigurationStoreApiKey(string id, string name, string value, strin } /// The key ID. + [WirePath("id")] public string Id { get; } /// A name for the key describing its usage. + [WirePath("name")] public string Name { get; } /// The value of the key that is used for authentication purposes. + [WirePath("value")] public string Value { get; } /// A connection string that can be used by supporting clients for authentication. + [WirePath("connectionString")] public string ConnectionString { get; } /// The last time any of the key's properties were modified. + [WirePath("lastModified")] public DateTimeOffset? LastModifiedOn { get; } /// Whether this key can only be used for read operations. + [WirePath("readOnly")] public bool? IsReadOnly { get; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreData.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreData.Serialization.cs index 48be1939dacd4..a47e0c071a8ea 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreData.Serialization.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreData.Serialization.cs @@ -428,7 +428,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreEncryptionProperties.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreEncryptionProperties.cs index f2baab5bfdbea..c8a7169a2c73a 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreEncryptionProperties.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreEncryptionProperties.cs @@ -60,6 +60,7 @@ internal AppConfigurationStoreEncryptionProperties(AppConfigurationKeyVaultPrope } /// Key vault properties. + [WirePath("keyVaultProperties")] public AppConfigurationKeyVaultProperties KeyVaultProperties { get; set; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStorePatch.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStorePatch.cs index e5da6a4eecffb..55f8c5375d264 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStorePatch.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStorePatch.cs @@ -75,10 +75,12 @@ internal AppConfigurationStorePatch(ManagedServiceIdentity identity, AppConfigur } /// The managed identity information for the configuration store. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// The SKU of the configuration store. internal AppConfigurationSku Sku { get; set; } /// The SKU name of the configuration store. + [WirePath("sku.name")] public string SkuName { get => Sku is null ? default : Sku.Name; @@ -86,10 +88,12 @@ public string SkuName } /// The ARM resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// The encryption settings of the configuration store. internal AppConfigurationStoreEncryptionProperties Encryption { get; set; } /// Key vault properties. + [WirePath("properties.encryption.keyVaultProperties")] public AppConfigurationKeyVaultProperties EncryptionKeyVaultProperties { get => Encryption is null ? default : Encryption.KeyVaultProperties; @@ -102,10 +106,13 @@ public AppConfigurationKeyVaultProperties EncryptionKeyVaultProperties } /// Disables all authentication methods other than AAD authentication. + [WirePath("properties.disableLocalAuth")] public bool? DisableLocalAuth { get; set; } /// Control permission for data plane traffic coming from public networks while private endpoint is enabled. + [WirePath("properties.publicNetworkAccess")] public AppConfigurationPublicNetworkAccess? PublicNetworkAccess { get; set; } /// Property specifying whether protection against purge is enabled for this configuration store. + [WirePath("properties.enablePurgeProtection")] public bool? EnablePurgeProtection { get; set; } } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedAppConfigurationStoreData.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedAppConfigurationStoreData.Serialization.cs index 3be00937307b1..930322004111a 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedAppConfigurationStoreData.Serialization.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedAppConfigurationStoreData.Serialization.cs @@ -381,7 +381,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedKeyVaultData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedKeyVaultData.cs index cc1a9ec6f80b9..394aa898d839c 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedKeyVaultData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedKeyVaultData.cs @@ -70,6 +70,7 @@ internal DeletedKeyVaultData(ResourceIdentifier id, string name, ResourceType re } /// Properties of the vault. + [WirePath("properties")] public DeletedKeyVaultProperties Properties { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedManagedHsmData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedManagedHsmData.cs index 3f04a8a64f37e..24e0c5d907795 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedManagedHsmData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedManagedHsmData.cs @@ -67,6 +67,7 @@ internal DeletedManagedHsmData(ResourceIdentifier id, string name, ResourceType } /// Properties of the deleted managed HSM. + [WirePath("properties")] public DeletedManagedHsmProperties Properties { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Internal/WirePathAttribute.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..da27b853ed343 --- /dev/null +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.KeyVault +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultData.cs index e73f474185f88..cdb24d19be237 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultData.cs @@ -83,6 +83,7 @@ internal KeyVaultData() } /// Properties of the vault. + [WirePath("properties")] public Models.KeyVaultProperties Properties { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultPrivateEndpointConnectionData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultPrivateEndpointConnectionData.cs index 6a023b2d9627d..ffaad510790ef 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultPrivateEndpointConnectionData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultPrivateEndpointConnectionData.cs @@ -83,22 +83,28 @@ internal KeyVaultPrivateEndpointConnectionData(ResourceIdentifier id, string nam } /// Modified whenever there is a change in the state of private endpoint connection. + [WirePath("etag")] public ETag? ETag { get; set; } /// Properties of the private endpoint object. internal SubResource PrivateEndpoint { get; set; } /// Gets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; } /// Approval state of the private link connection. + [WirePath("properties.privateLinkServiceConnectionState")] public KeyVaultPrivateLinkServiceConnectionState ConnectionState { get; set; } /// Provisioning state of the private endpoint connection. + [WirePath("properties.provisioningState")] public KeyVaultPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } /// Azure location of the key vault resource. + [WirePath("location")] public AzureLocation? Location { get; } /// Tags assigned to the key vault resource. + [WirePath("tags")] public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultSecretData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultSecretData.cs index 6ce195723dcbe..c28b1fcc89210 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultSecretData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/KeyVaultSecretData.cs @@ -85,10 +85,13 @@ internal KeyVaultSecretData() } /// Properties of the secret. + [WirePath("properties")] public SecretProperties Properties { get; set; } /// Azure location of the key vault resource. + [WirePath("location")] public AzureLocation? Location { get; } /// Tags assigned to the key vault resource. + [WirePath("tags")] public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsmData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsmData.cs index 50c5ddd2dd751..0b649360401ef 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsmData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsmData.cs @@ -80,8 +80,10 @@ internal ManagedHsmData() } /// Properties of the managed HSM. + [WirePath("properties")] public ManagedHsmProperties Properties { get; set; } /// SKU details. + [WirePath("sku")] public ManagedHsmSku Sku { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsmPrivateEndpointConnectionData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsmPrivateEndpointConnectionData.cs index 5548a936b7924..425a65b36aa8b 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsmPrivateEndpointConnectionData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsmPrivateEndpointConnectionData.cs @@ -88,20 +88,25 @@ internal ManagedHsmPrivateEndpointConnectionData() } /// Modified whenever there is a change in the state of private endpoint connection. + [WirePath("etag")] public ETag? ETag { get; set; } /// Properties of the private endpoint object. internal SubResource PrivateEndpoint { get; set; } /// Gets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; } /// Approval state of the private link connection. + [WirePath("properties.privateLinkServiceConnectionState")] public ManagedHsmPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } /// Provisioning state of the private endpoint connection. + [WirePath("properties.provisioningState")] public ManagedHsmPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } /// SKU details. + [WirePath("sku")] public ManagedHsmSku Sku { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedKeyVaultProperties.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedKeyVaultProperties.Serialization.cs index d1fa7ade73d76..826382a9a1abb 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedKeyVaultProperties.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedKeyVaultProperties.Serialization.cs @@ -221,7 +221,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedKeyVaultProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedKeyVaultProperties.cs index b8c8faacec5a5..a208605e121e1 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedKeyVaultProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedKeyVaultProperties.cs @@ -72,16 +72,22 @@ internal DeletedKeyVaultProperties(ResourceIdentifier vaultId, AzureLocation? lo } /// The resource id of the original vault. + [WirePath("vaultId")] public ResourceIdentifier VaultId { get; } /// The location of the original vault. + [WirePath("location")] public AzureLocation? Location { get; } /// The deleted date. + [WirePath("deletionDate")] public DateTimeOffset? DeletedOn { get; } /// The scheduled purged date. + [WirePath("scheduledPurgeDate")] public DateTimeOffset? ScheduledPurgeOn { get; } /// Tags of the original vault. + [WirePath("tags")] public IReadOnlyDictionary Tags { get; } /// Purge protection status of the original vault. + [WirePath("purgeProtectionEnabled")] public bool? PurgeProtectionEnabled { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmProperties.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmProperties.Serialization.cs index 8871410ebdb24..c68eec4af7f00 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmProperties.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmProperties.Serialization.cs @@ -221,7 +221,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmProperties.cs index f164c4ffb19a7..0ca03d22b8459 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmProperties.cs @@ -72,16 +72,22 @@ internal DeletedManagedHsmProperties(ResourceIdentifier managedHsmId, AzureLocat } /// The resource id of the original managed HSM. + [WirePath("mhsmId")] public ResourceIdentifier ManagedHsmId { get; } /// The location of the original managed HSM. + [WirePath("location")] public AzureLocation? Location { get; } /// The deleted date. + [WirePath("deletionDate")] public DateTimeOffset? DeletedOn { get; } /// The scheduled purged date. + [WirePath("scheduledPurgeDate")] public DateTimeOffset? ScheduledPurgeOn { get; } /// Purge protection status of the original managed HSM. + [WirePath("purgeProtectionEnabled")] public bool? PurgeProtectionEnabled { get; } /// Tags of the original managed HSM. + [WirePath("tags")] public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs index 5c93bed9bb54f..eba617c04ed52 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs @@ -71,12 +71,16 @@ internal IdentityAccessPermissions(IList keys, ILis } /// Permissions to keys. + [WirePath("keys")] public IList Keys { get; } /// Permissions to secrets. + [WirePath("secrets")] public IList Secrets { get; } /// Permissions to certificates. + [WirePath("certificates")] public IList Certificates { get; } /// Permissions to storage accounts. + [WirePath("storage")] public IList Storage { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicy.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicy.cs index b61e6f07684cb..3c0fe333c3886 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicy.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicy.cs @@ -82,12 +82,16 @@ internal KeyVaultAccessPolicy() } /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + [WirePath("tenantId")] public Guid TenantId { get; set; } /// The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies. + [WirePath("objectId")] public string ObjectId { get; set; } /// Application ID of the client making request on behalf of a principal. + [WirePath("applicationId")] public Guid? ApplicationId { get; set; } /// Permissions the identity has for keys, secrets and certificates. + [WirePath("permissions")] public IdentityAccessPermissions Permissions { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicyParameters.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicyParameters.cs index 1f06719cce225..602e9d5544b4d 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicyParameters.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicyParameters.cs @@ -78,10 +78,12 @@ internal KeyVaultAccessPolicyParameters() } /// The resource type of the access policy. + [WirePath("location")] public AzureLocation? Location { get; } /// Properties of the access policy. internal KeyVaultAccessPolicyProperties Properties { get; set; } /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + [WirePath("properties.accessPolicies")] public IList AccessPolicies { get => Properties is null ? default : Properties.AccessPolicies; diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicyProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicyProperties.cs index 65bc54377f02c..8b53839547dab 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicyProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultAccessPolicyProperties.cs @@ -72,6 +72,7 @@ internal KeyVaultAccessPolicyProperties() } /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + [WirePath("accessPolicies")] public IList AccessPolicies { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultCreateOrUpdateContent.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultCreateOrUpdateContent.cs index be986f5c6bb89..6d72a105868e4 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultCreateOrUpdateContent.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultCreateOrUpdateContent.cs @@ -78,10 +78,13 @@ internal KeyVaultCreateOrUpdateContent() } /// The supported Azure location where the key vault should be created. + [WirePath("location")] public AzureLocation Location { get; } /// The tags that will be assigned to the key vault. + [WirePath("tags")] public IDictionary Tags { get; } /// Properties of the vault. + [WirePath("properties")] public KeyVaultProperties Properties { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultData.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultData.Serialization.cs index a9e136a8a04ce..29c3eadd68e7e 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultData.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultData.Serialization.cs @@ -234,7 +234,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultIPRule.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultIPRule.cs index 7dcfb58088da1..6944940d98faf 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultIPRule.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultIPRule.cs @@ -71,6 +71,7 @@ internal KeyVaultIPRule() } /// An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). + [WirePath("value")] public string AddressRange { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameAvailabilityContent.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameAvailabilityContent.cs index 9448fbd8cbe10..a42af3ea60cf2 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameAvailabilityContent.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameAvailabilityContent.cs @@ -74,8 +74,10 @@ internal KeyVaultNameAvailabilityContent() } /// The vault name. + [WirePath("name")] public string Name { get; } /// The type of resource, Microsoft.KeyVault/vaults. + [WirePath("type")] public ResourceType ResourceType { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameAvailabilityResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameAvailabilityResult.cs index f5cf3fb7b6adb..893ea7bb5b7c2 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameAvailabilityResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNameAvailabilityResult.cs @@ -64,10 +64,13 @@ internal KeyVaultNameAvailabilityResult(bool? nameAvailable, KeyVaultNameUnavail } /// A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + [WirePath("nameAvailable")] public bool? NameAvailable { get; } /// The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false. + [WirePath("reason")] public KeyVaultNameUnavailableReason? Reason { get; } /// An error message explaining the Reason value in more detail. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs index db8be2e396eca..8a9c4f5578585 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs @@ -69,12 +69,16 @@ internal KeyVaultNetworkRuleSet(KeyVaultNetworkRuleBypassOption? bypass, KeyVaul } /// Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. + [WirePath("bypass")] public KeyVaultNetworkRuleBypassOption? Bypass { get; set; } /// The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. + [WirePath("defaultAction")] public KeyVaultNetworkRuleAction? DefaultAction { get; set; } /// The list of IP address rules. + [WirePath("ipRules")] public IList IPRules { get; } /// The list of virtual network rules. + [WirePath("virtualNetworkRules")] public IList VirtualNetworkRules { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatch.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatch.cs index 995321a89a010..a7c4cca90b813 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatch.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatch.cs @@ -64,8 +64,10 @@ internal KeyVaultPatch(IDictionary tags, KeyVaultPatchProperties } /// The tags that will be assigned to the key vault. + [WirePath("tags")] public IDictionary Tags { get; } /// Properties of the vault. + [WirePath("properties")] public KeyVaultPatchProperties Properties { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchProperties.cs index 799955fa29fa1..02544151f2ba6 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchProperties.cs @@ -86,30 +86,43 @@ internal KeyVaultPatchProperties(Guid? tenantId, KeyVaultSku sku, IList The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + [WirePath("tenantId")] public Guid? TenantId { get; set; } /// SKU details. + [WirePath("sku")] public KeyVaultSku Sku { get; set; } /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + [WirePath("accessPolicies")] public IList AccessPolicies { get; } /// Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault. + [WirePath("enabledForDeployment")] public bool? EnabledForDeployment { get; set; } /// Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys. + [WirePath("enabledForDiskEncryption")] public bool? EnabledForDiskEncryption { get; set; } /// Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault. + [WirePath("enabledForTemplateDeployment")] public bool? EnabledForTemplateDeployment { get; set; } /// Property to specify whether the 'soft delete' functionality is enabled for this key vault. Once set to true, it cannot be reverted to false. + [WirePath("enableSoftDelete")] public bool? EnableSoftDelete { get; set; } /// Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the value of this property will not change. + [WirePath("enableRbacAuthorization")] public bool? EnableRbacAuthorization { get; set; } /// softDelete data retention days. It accepts >=7 and <=90. + [WirePath("softDeleteRetentionInDays")] public int? SoftDeleteRetentionInDays { get; set; } /// The vault's create mode to indicate whether the vault need to be recovered or not. + [WirePath("createMode")] public KeyVaultPatchMode? CreateMode { get; set; } /// Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value. + [WirePath("enablePurgeProtection")] public bool? EnablePurgeProtection { get; set; } /// A collection of rules governing the accessibility of the vault from specific network locations. + [WirePath("networkAcls")] public KeyVaultNetworkRuleSet NetworkRuleSet { get; set; } /// Property to specify whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. + [WirePath("publicNetworkAccess")] public string PublicNetworkAccess { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionData.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionData.Serialization.cs index 750c7d4321dec..0ea7973a71ec4 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionData.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionData.Serialization.cs @@ -310,7 +310,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionItemData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionItemData.cs index bfec706228112..b24ad69523e43 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionItemData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionItemData.cs @@ -71,20 +71,25 @@ internal KeyVaultPrivateEndpointConnectionItemData(string id, ETag? etag, SubRes } /// Id of private endpoint connection. + [WirePath("id")] public string Id { get; } /// Modified whenever there is a change in the state of private endpoint connection. + [WirePath("etag")] public ETag? ETag { get; } /// Properties of the private endpoint object. internal SubResource PrivateEndpoint { get; } /// Gets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint?.Id; } /// Approval state of the private link connection. + [WirePath("properties.privateLinkServiceConnectionState")] public KeyVaultPrivateLinkServiceConnectionState ConnectionState { get; } /// Provisioning state of the private endpoint connection. + [WirePath("properties.provisioningState")] public KeyVaultPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.Serialization.cs index 98a79c2786540..c9300f735dcbb 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.Serialization.cs @@ -308,7 +308,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.cs index 52b970e8e76c9..c81ebc6148f8f 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.cs @@ -77,14 +77,19 @@ internal KeyVaultPrivateLinkResourceData(ResourceIdentifier id, string name, Res } /// Group identifier of private link resource. + [WirePath("properties.groupId")] public string GroupId { get; } /// Required member names of private link resource. + [WirePath("properties.requiredMembers")] public IReadOnlyList RequiredMembers { get; } /// Required DNS zone names of the the private link resource. + [WirePath("properties.requiredZoneNames")] public IList RequiredZoneNames { get; } /// Azure location of the key vault resource. + [WirePath("location")] public AzureLocation? Location { get; } /// Tags assigned to the key vault resource. + [WirePath("tags")] public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceListResult.cs index c4dbed2a81c55..6985f9ce50405 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceListResult.cs @@ -62,6 +62,7 @@ internal KeyVaultPrivateLinkResourceListResult(IReadOnlyList Array of private link resources. + [WirePath("value")] public IReadOnlyList Value { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkServiceConnectionState.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkServiceConnectionState.cs index 09ec1dd565c2e..a2799c074bea7 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkServiceConnectionState.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkServiceConnectionState.cs @@ -64,10 +64,13 @@ internal KeyVaultPrivateLinkServiceConnectionState(KeyVaultPrivateEndpointServic } /// Indicates whether the connection has been approved, rejected or removed by the key vault owner. + [WirePath("status")] public KeyVaultPrivateEndpointServiceConnectionStatus? Status { get; set; } /// The reason for approval or rejection. + [WirePath("description")] public string Description { get; set; } /// A message indicating if changes on the service provider require any updates on the consumer. + [WirePath("actionsRequired")] public KeyVaultActionsRequiredMessage? ActionsRequired { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultProperties.cs index e89541b510fcf..65ba4061241d1 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultProperties.cs @@ -93,38 +93,55 @@ internal KeyVaultProperties() } /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + [WirePath("tenantId")] public Guid TenantId { get; set; } /// SKU details. + [WirePath("sku")] public KeyVaultSku Sku { get; set; } /// An array of 0 to 1024 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. When `createMode` is set to `recover`, access policies are not required. Otherwise, access policies are required. + [WirePath("accessPolicies")] public IList AccessPolicies { get; } /// The URI of the vault for performing operations on keys and secrets. + [WirePath("vaultUri")] public Uri VaultUri { get; set; } /// The resource id of HSM Pool. + [WirePath("hsmPoolResourceId")] public string HsmPoolResourceId { get; } /// Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault. + [WirePath("enabledForDeployment")] public bool? EnabledForDeployment { get; set; } /// Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys. + [WirePath("enabledForDiskEncryption")] public bool? EnabledForDiskEncryption { get; set; } /// Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault. + [WirePath("enabledForTemplateDeployment")] public bool? EnabledForTemplateDeployment { get; set; } /// Property to specify whether the 'soft delete' functionality is enabled for this key vault. If it's not set to any value(true or false) when creating new key vault, it will be set to true by default. Once set to true, it cannot be reverted to false. + [WirePath("enableSoftDelete")] public bool? EnableSoftDelete { get; set; } /// softDelete data retention days. It accepts >=7 and <=90. + [WirePath("softDeleteRetentionInDays")] public int? SoftDeleteRetentionInDays { get; set; } /// Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the vault is created with the default value of false. Note that management actions are always authorized with RBAC. + [WirePath("enableRbacAuthorization")] public bool? EnableRbacAuthorization { get; set; } /// The vault's create mode to indicate whether the vault need to be recovered or not. + [WirePath("createMode")] public KeyVaultCreateMode? CreateMode { get; set; } /// Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value. + [WirePath("enablePurgeProtection")] public bool? EnablePurgeProtection { get; set; } /// Rules governing the accessibility of the key vault from specific network locations. + [WirePath("networkAcls")] public KeyVaultNetworkRuleSet NetworkRuleSet { get; set; } /// Provisioning state of the vault. + [WirePath("provisioningState")] public KeyVaultProvisioningState? ProvisioningState { get; set; } /// List of private endpoint connections associated with the key vault. + [WirePath("privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// Property to specify whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. + [WirePath("publicNetworkAccess")] public string PublicNetworkAccess { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretCreateOrUpdateContent.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretCreateOrUpdateContent.cs index 2f41e0e588045..085a547d9d60b 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretCreateOrUpdateContent.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretCreateOrUpdateContent.cs @@ -74,8 +74,10 @@ internal KeyVaultSecretCreateOrUpdateContent() } /// The tags that will be assigned to the secret. + [WirePath("tags")] public IDictionary Tags { get; } /// Properties of the secret. + [WirePath("properties")] public SecretProperties Properties { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretData.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretData.Serialization.cs index 9d2b4b67cdab8..23248f501c42c 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretData.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretData.Serialization.cs @@ -241,7 +241,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretPatch.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretPatch.cs index 3cfabda49a9ae..b3baec09a38f8 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretPatch.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSecretPatch.cs @@ -64,8 +64,10 @@ internal KeyVaultSecretPatch(IDictionary tags, SecretPatchProper } /// The tags that will be assigned to the secret. + [WirePath("tags")] public IDictionary Tags { get; } /// Properties of the secret. + [WirePath("properties")] public SecretPatchProperties Properties { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSku.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSku.cs index 507f86c46ec20..3c9f31f8b0637 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSku.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultSku.cs @@ -71,8 +71,10 @@ internal KeyVaultSku() } /// SKU family name. + [WirePath("family")] public KeyVaultSkuFamily Family { get; set; } /// SKU name to specify whether the key vault is a standard vault or a premium vault. + [WirePath("name")] public KeyVaultSkuName Name { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultVirtualNetworkRule.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultVirtualNetworkRule.cs index 80ffc6a0e83a5..30c9f55a7d1f3 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultVirtualNetworkRule.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultVirtualNetworkRule.cs @@ -73,8 +73,10 @@ internal KeyVaultVirtualNetworkRule() } /// Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. + [WirePath("id")] public string Id { get; set; } /// Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured. + [WirePath("ignoreMissingVnetServiceEndpoint")] public bool? IgnoreMissingVnetServiceEndpoint { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHSMSecurityDomainProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHSMSecurityDomainProperties.cs index 50d21ca6ace35..67721451d9a13 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHSMSecurityDomainProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHSMSecurityDomainProperties.cs @@ -62,8 +62,10 @@ internal ManagedHSMSecurityDomainProperties(ManagedHSMSecurityDomainActivationSt } /// Activation Status. + [WirePath("activationStatus")] public ManagedHSMSecurityDomainActivationStatus? ActivationStatus { get; } /// Activation Status Message. + [WirePath("activationStatusMessage")] public string ActivationStatusMessage { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmData.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmData.Serialization.cs index 8277a82497be0..8a48fc159cb37 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmData.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmData.Serialization.cs @@ -256,7 +256,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmGeoReplicatedRegion.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmGeoReplicatedRegion.cs index 8454a87f27ddf..d304705fa0210 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmGeoReplicatedRegion.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmGeoReplicatedRegion.cs @@ -64,10 +64,13 @@ internal ManagedHsmGeoReplicatedRegion(string name, ManagedHsmGeoReplicatedRegio } /// Name of the geo replicated region. + [WirePath("name")] public string Name { get; set; } /// Provisioning state of the geo replicated region. + [WirePath("provisioningState")] public ManagedHsmGeoReplicatedRegionProvisioningState? ProvisioningState { get; } /// A boolean value that indicates whether the region is the primary region or a secondary region. + [WirePath("isPrimary")] public bool? IsPrimary { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmIPRule.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmIPRule.cs index e227371d46ae8..b82020b4683d6 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmIPRule.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmIPRule.cs @@ -71,6 +71,7 @@ internal ManagedHsmIPRule() } /// An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). + [WirePath("value")] public string AddressRange { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNameAvailabilityContent.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNameAvailabilityContent.cs index 2c6632b041a10..47d24f1e9d8cf 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNameAvailabilityContent.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNameAvailabilityContent.cs @@ -71,6 +71,7 @@ internal ManagedHsmNameAvailabilityContent() } /// The managed hsm name. + [WirePath("name")] public string Name { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNameAvailabilityResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNameAvailabilityResult.cs index 27c7517938c8b..eb79655ef9ee6 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNameAvailabilityResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNameAvailabilityResult.cs @@ -64,10 +64,13 @@ internal ManagedHsmNameAvailabilityResult(bool? isNameAvailable, ManagedHsmNameU } /// A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + [WirePath("nameAvailable")] public bool? IsNameAvailable { get; } /// The reason that a managed hsm name could not be used. The reason element is only returned if NameAvailable is false. + [WirePath("reason")] public ManagedHsmNameUnavailableReason? Reason { get; } /// An error message explaining the Reason value in more detail. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs index 872a64985e3db..bee0e2c2f90fa 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs @@ -69,12 +69,16 @@ internal ManagedHsmNetworkRuleSet(ManagedHsmNetworkRuleBypassOption? bypass, Man } /// Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. + [WirePath("bypass")] public ManagedHsmNetworkRuleBypassOption? Bypass { get; set; } /// The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. + [WirePath("defaultAction")] public ManagedHsmNetworkRuleAction? DefaultAction { get; set; } /// The list of IP address rules. + [WirePath("ipRules")] public IList IPRules { get; } /// The list of virtual network rules. + [WirePath("virtualNetworkRules")] public IList VirtualNetworkRules { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionData.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionData.Serialization.cs index 6e2e8c0f19879..060eaf580babf 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionData.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionData.Serialization.cs @@ -318,7 +318,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionItemData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionItemData.cs index f98d7caa19d1e..4c1637304c74b 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionItemData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionItemData.cs @@ -71,20 +71,25 @@ internal ManagedHsmPrivateEndpointConnectionItemData(ResourceIdentifier id, ETag } /// Id of private endpoint connection. + [WirePath("id")] public ResourceIdentifier Id { get; } /// Modified whenever there is a change in the state of private endpoint connection. + [WirePath("etag")] public ETag? ETag { get; } /// Properties of the private endpoint object. internal SubResource PrivateEndpoint { get; } /// Gets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint?.Id; } /// Approval state of the private link connection. + [WirePath("properties.privateLinkServiceConnectionState")] public ManagedHsmPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; } /// Provisioning state of the private endpoint connection. + [WirePath("properties.provisioningState")] public ManagedHsmPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.Serialization.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.Serialization.cs index 3356990ae8fa5..2bf9e9c920a89 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.Serialization.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.Serialization.cs @@ -316,7 +316,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.cs index 1dfc07b9aa212..9ca2c6eea3a85 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.cs @@ -82,12 +82,16 @@ internal ManagedHsmPrivateLinkResourceData() } /// Group identifier of private link resource. + [WirePath("properties.groupId")] public string GroupId { get; } /// Required member names of private link resource. + [WirePath("properties.requiredMembers")] public IReadOnlyList RequiredMembers { get; } /// Required DNS zone names of the the private link resource. + [WirePath("properties.requiredZoneNames")] public IList RequiredZoneNames { get; } /// SKU details. + [WirePath("sku")] public ManagedHsmSku Sku { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceListResult.cs index 3e0822d7ee753..7875a4b433f72 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceListResult.cs @@ -62,6 +62,7 @@ internal ManagedHsmPrivateLinkResourceListResult(IReadOnlyList Array of private link resources. + [WirePath("value")] public IReadOnlyList Value { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkServiceConnectionState.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkServiceConnectionState.cs index ec72dd3931952..182b497d5e0db 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkServiceConnectionState.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkServiceConnectionState.cs @@ -64,10 +64,13 @@ internal ManagedHsmPrivateLinkServiceConnectionState(ManagedHsmPrivateEndpointSe } /// Indicates whether the connection has been approved, rejected or removed by the key vault owner. + [WirePath("status")] public ManagedHsmPrivateEndpointServiceConnectionStatus? Status { get; set; } /// The reason for approval or rejection. + [WirePath("description")] public string Description { get; set; } /// A message indicating if changes on the service provider require any updates on the consumer. + [WirePath("actionsRequired")] public ManagedHsmActionsRequiredMessage? ActionsRequired { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmProperties.cs index efa13b10a88a7..a98a4e7d81a4f 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmProperties.cs @@ -92,34 +92,49 @@ internal ManagedHsmProperties(Guid? tenantId, IList initialAdminObjectId } /// The Azure Active Directory tenant ID that should be used for authenticating requests to the managed HSM pool. + [WirePath("tenantId")] public Guid? TenantId { get; set; } /// Array of initial administrators object ids for this managed hsm pool. + [WirePath("initialAdminObjectIds")] public IList InitialAdminObjectIds { get; } /// The URI of the managed hsm pool for performing operations on keys. + [WirePath("hsmUri")] public Uri HsmUri { get; } /// Property to specify whether the 'soft delete' functionality is enabled for this managed HSM pool. Soft delete is enabled by default for all managed HSMs and is immutable. + [WirePath("enableSoftDelete")] public bool? EnableSoftDelete { get; set; } /// Soft deleted data retention days. When you delete an HSM or a key, it will remain recoverable for the configured retention period or for a default period of 90 days. It accepts values between 7 and 90. + [WirePath("softDeleteRetentionInDays")] public int? SoftDeleteRetentionInDays { get; set; } /// Property specifying whether protection against purge is enabled for this managed HSM pool. Setting this property to true activates protection against purge for this managed HSM pool and its content - only the Managed HSM service may initiate a hard, irrecoverable deletion. Enabling this functionality is irreversible. + [WirePath("enablePurgeProtection")] public bool? EnablePurgeProtection { get; set; } /// The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. + [WirePath("createMode")] public ManagedHsmCreateMode? CreateMode { get; set; } /// Resource Status Message. + [WirePath("statusMessage")] public string StatusMessage { get; } /// Provisioning state. + [WirePath("provisioningState")] public ManagedHsmProvisioningState? ProvisioningState { get; } /// Rules governing the accessibility of the key vault from specific network locations. + [WirePath("networkAcls")] public ManagedHsmNetworkRuleSet NetworkRuleSet { get; set; } /// List of all regions associated with the managed hsm pool. + [WirePath("regions")] public IList Regions { get; } /// List of private endpoint connections associated with the managed hsm pool. + [WirePath("privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// Control permission to the managed HSM from public networks. + [WirePath("publicNetworkAccess")] public ManagedHsmPublicNetworkAccess? PublicNetworkAccess { get; set; } /// The scheduled purge date in UTC. + [WirePath("scheduledPurgeDate")] public DateTimeOffset? ScheduledPurgeOn { get; } /// Managed HSM security domain properties. + [WirePath("securityDomainProperties")] public ManagedHSMSecurityDomainProperties SecurityDomainProperties { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmSku.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmSku.cs index 6bd6c100a53d3..8022bdfb296ec 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmSku.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmSku.cs @@ -71,8 +71,10 @@ internal ManagedHsmSku() } /// SKU Family of the managed HSM Pool. + [WirePath("family")] public ManagedHsmSkuFamily Family { get; set; } /// SKU of the managed HSM Pool. + [WirePath("name")] public ManagedHsmSkuName Name { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmVirtualNetworkRule.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmVirtualNetworkRule.cs index c8436457b336e..6957ee9e7083b 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmVirtualNetworkRule.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmVirtualNetworkRule.cs @@ -71,6 +71,7 @@ internal ManagedHsmVirtualNetworkRule() } /// Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. + [WirePath("id")] public ResourceIdentifier SubnetId { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretBaseAttributes.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretBaseAttributes.cs index a0c171504df82..e5177d3ce5a64 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretBaseAttributes.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretBaseAttributes.cs @@ -68,14 +68,19 @@ internal SecretBaseAttributes(bool? enabled, DateTimeOffset? notBefore, DateTime } /// Determines whether the object is enabled. + [WirePath("enabled")] public bool? Enabled { get; set; } /// Not before date in seconds since 1970-01-01T00:00:00Z. + [WirePath("nbf")] public DateTimeOffset? NotBefore { get; set; } /// Expiry date in seconds since 1970-01-01T00:00:00Z. + [WirePath("exp")] public DateTimeOffset? Expires { get; set; } /// Creation time in seconds since 1970-01-01T00:00:00Z. + [WirePath("created")] public DateTimeOffset? Created { get; } /// Last updated time in seconds since 1970-01-01T00:00:00Z. + [WirePath("updated")] public DateTimeOffset? Updated { get; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretPatchProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretPatchProperties.cs index 916e41c536560..361fb8f08a092 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretPatchProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretPatchProperties.cs @@ -64,10 +64,13 @@ internal SecretPatchProperties(string value, string contentType, SecretAttribute } /// The value of the secret. + [WirePath("value")] public string Value { get; set; } /// The content type of the secret. + [WirePath("contentType")] public string ContentType { get; set; } /// The attributes of the secret. + [WirePath("attributes")] public SecretAttributes Attributes { get; set; } } } diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretProperties.cs index 78bcedeba46ec..80cb6da8487dc 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretProperties.cs @@ -68,14 +68,19 @@ internal SecretProperties(string value, string contentType, SecretAttributes att } /// The value of the secret. NOTE: 'value' will never be returned from the service, as APIs using this model are is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets. + [WirePath("value")] public string Value { get; set; } /// The content type of the secret. + [WirePath("contentType")] public string ContentType { get; set; } /// The attributes of the secret. + [WirePath("attributes")] public SecretAttributes Attributes { get; set; } /// The URI to retrieve the current version of the secret. + [WirePath("secretUri")] public Uri SecretUri { get; } /// The URI to retrieve the specific version of the secret. + [WirePath("secretUriWithVersion")] public string SecretUriWithVersion { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Internal/WirePathAttribute.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..6a974d2a89334 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmPlan.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmPlan.cs index 3c484e589071e..711ac5f348e36 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmPlan.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmPlan.cs @@ -53,14 +53,19 @@ internal ArmPlan() } /// A user defined name of the 3rd Party Artifact that is being procured. + [WirePath("name")] public string Name { get; set; } /// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic. + [WirePath("publisher")] public string Publisher { get; set; } /// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. + [WirePath("product")] public string Product { get; set; } /// A publisher provided promotion code as provisioned in Data Market for the said product/artifact. + [WirePath("promotionCode")] public string PromotionCode { get; set; } /// The version of the desired product/artifact. + [WirePath("version")] public string Version { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSku.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSku.cs index 1c1e36949262e..4a4de3ba0368b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSku.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSku.cs @@ -47,14 +47,19 @@ internal ArmSku() } /// The name of the SKU. Ex - P3. It is typically a letter+number code. + [WirePath("name")] public string Name { get; set; } /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + [WirePath("tier")] public ArmSkuTier? Tier { get; set; } /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + [WirePath("size")] public string Size { get; set; } /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + [WirePath("family")] public string Family { get; set; } /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. + [WirePath("capacity")] public int? Capacity { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/EncryptionProperties.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/EncryptionProperties.cs index 8c689cfe5ea51..5b441bcc817d0 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/EncryptionProperties.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/EncryptionProperties.cs @@ -30,8 +30,10 @@ internal EncryptionProperties(EncryptionStatus? status, KeyVaultProperties keyVa } /// Indicates whether or not the encryption is enabled for container registry. + [WirePath("status")] public EncryptionStatus? Status { get; set; } /// Key vault properties. + [WirePath("keyVaultProperties")] public KeyVaultProperties KeyVaultProperties { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/KeyVaultProperties.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/KeyVaultProperties.cs index 318ccd6423bab..2e92a30cffae9 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/KeyVaultProperties.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/KeyVaultProperties.cs @@ -30,8 +30,10 @@ internal KeyVaultProperties(string keyIdentifier, string identity) } /// Key vault uri to access the encryption key. + [WirePath("keyIdentifier")] public string KeyIdentifier { get; set; } /// The client ID of the identity which will be used to access key vault. + [WirePath("identity")] public string Identity { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.cs index 2c2f2cd777b19..7e2c19de543b9 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.cs @@ -56,20 +56,28 @@ protected OperationStatusResult() } /// Fully qualified ID for the async operation. + [WirePath("id")] public ResourceIdentifier Id { get; } /// Name of the async operation. + [WirePath("name")] public string Name { get; } /// Operation status. + [WirePath("status")] public string Status { get; } /// Percent of the operation that is complete. + [WirePath("percentComplete")] public float? PercentComplete { get; } /// The start time of the operation. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; } /// The end time of the operation. + [WirePath("endTime")] public DateTimeOffset? EndOn { get; } /// The operations list. + [WirePath("operations")] public IReadOnlyList Operations { get; } /// If present, details of the operation error. + [WirePath("error")] public ResponseError Error { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemData.cs index 0b3f6016f4c7e..14d762f3b5027 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemData.cs @@ -39,16 +39,22 @@ internal SystemData(string createdBy, CreatedByType? createdByType, DateTimeOffs } /// The identity that created the resource. + [WirePath("createdBy")] public string CreatedBy { get; } /// The type of identity that created the resource. + [WirePath("createdByType")] public CreatedByType? CreatedByType { get; } /// The timestamp of resource creation (UTC). + [WirePath("createdAt")] public DateTimeOffset? CreatedOn { get; } /// The identity that last modified the resource. + [WirePath("lastModifiedBy")] public string LastModifiedBy { get; } /// The type of identity that last modified the resource. + [WirePath("lastModifiedByType")] public CreatedByType? LastModifiedByType { get; } /// The timestamp of resource last modification (UTC). + [WirePath("lastModifiedAt")] public DateTimeOffset? LastModifiedOn { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/UserAssignedIdentity.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/UserAssignedIdentity.cs index 7071cb8606319..727197fdddb3a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/UserAssignedIdentity.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/UserAssignedIdentity.cs @@ -31,8 +31,10 @@ internal UserAssignedIdentity(Guid? principalId, Guid? clientId) } /// The principal ID of the assigned identity. + [WirePath("principalId")] public Guid? PrincipalId { get; } /// The client ID of the assigned identity. + [WirePath("clientId")] public Guid? ClientId { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Internal/WirePathAttribute.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..9f3fd6537416e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ManagementGroups +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/ManagementGroupData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/ManagementGroupData.cs index 6309fcba0b5a8..5b5b364b1d651 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/ManagementGroupData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/ManagementGroupData.cs @@ -77,12 +77,16 @@ internal ManagementGroupData(ResourceIdentifier id, string name, ResourceType re } /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + [WirePath("properties.tenantId")] public Guid? TenantId { get; } /// The friendly name of the management group. + [WirePath("properties.displayName")] public string DisplayName { get; } /// The details of a management group. + [WirePath("properties.details")] public ManagementGroupInfo Details { get; } /// The list of children. + [WirePath("properties.children")] public IReadOnlyList Children { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/CreateManagementGroupDetails.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/CreateManagementGroupDetails.cs index 44f9699c853c3..6cfb0e466ca9b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/CreateManagementGroupDetails.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/CreateManagementGroupDetails.cs @@ -66,12 +66,16 @@ internal CreateManagementGroupDetails(int? version, DateTimeOffset? updatedOn, s } /// The version number of the object. + [WirePath("version")] public int? Version { get; } /// The date and time when this object was last updated. + [WirePath("updatedTime")] public DateTimeOffset? UpdatedOn { get; } /// The identity of the principal or process that updated the object. + [WirePath("updatedBy")] public string UpdatedBy { get; } /// (Optional) The ID of the parent management group used during creation. + [WirePath("parent")] public ManagementGroupParentCreateOptions Parent { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantData.cs index f6d0595185fe4..b6d4f43ca7aa7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantData.cs @@ -68,10 +68,12 @@ internal DescendantData(ResourceIdentifier id, string name, ResourceType resourc } /// The friendly name of the management group. + [WirePath("properties.displayName")] public string DisplayName { get; } /// The ID of the parent management group. internal DescendantParentGroupInfo Parent { get; } /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + [WirePath("properties.parent.id")] public ResourceIdentifier ParentId { get => Parent?.Id; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantParentGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantParentGroupInfo.cs index 1f41e82898f9e..5dd49bf7504fb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantParentGroupInfo.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantParentGroupInfo.cs @@ -61,6 +61,7 @@ internal DescendantParentGroupInfo(ResourceIdentifier id, IDictionary The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + [WirePath("id")] public ResourceIdentifier Id { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityData.cs index f60db3650a438..08b09466be3ab 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityData.cs @@ -87,30 +87,40 @@ internal EntityData(ResourceIdentifier id, string name, ResourceType resourceTyp } /// The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000. + [WirePath("properties.tenantId")] public Guid? TenantId { get; } /// The friendly name of the management group. + [WirePath("properties.displayName")] public string DisplayName { get; } /// (Optional) The ID of the parent management group. internal SubResource Parent { get; } /// Gets Id. + [WirePath("properties.parent.id")] public ResourceIdentifier ParentId { get => Parent?.Id; } /// The users specific permissions to this item. + [WirePath("properties.permissions")] public EntityPermission? Permissions { get; } /// The users specific permissions to this item. + [WirePath("properties.inheritedPermissions")] public EntityPermission? InheritedPermissions { get; } /// Number of Descendants. + [WirePath("properties.numberOfDescendants")] public int? NumberOfDescendants { get; } /// Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group. + [WirePath("properties.numberOfChildren")] public int? NumberOfChildren { get; } /// Number of children is the number of Groups that are exactly one level underneath the current Group. + [WirePath("properties.numberOfChildGroups")] public int? NumberOfChildGroups { get; } /// The parent display name chain from the root group to the immediate parent. + [WirePath("properties.parentDisplayNameChain")] public IReadOnlyList ParentDisplayNameChain { get; } /// The parent name chain from the root group to the immediate parent. + [WirePath("properties.parentNameChain")] public IReadOnlyList ParentNameChain { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildInfo.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildInfo.cs index 6c39dd6242a59..e95283d650eda 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildInfo.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildInfo.cs @@ -70,14 +70,19 @@ internal ManagementGroupChildInfo(ManagementGroupChildType? childType, string id } /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). + [WirePath("type")] public ManagementGroupChildType? ChildType { get; } /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + [WirePath("id")] public string Id { get; } /// The name of the child entity. + [WirePath("name")] public string Name { get; } /// The friendly name of the child resource. + [WirePath("displayName")] public string DisplayName { get; } /// The list of children. + [WirePath("children")] public IReadOnlyList Children { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildOptions.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildOptions.cs index baabce119a3c6..2e5b69557cc82 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildOptions.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildOptions.cs @@ -70,14 +70,19 @@ internal ManagementGroupChildOptions(ManagementGroupChildType? childType, string } /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). + [WirePath("type")] public ManagementGroupChildType? ChildType { get; } /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + [WirePath("id")] public string Id { get; } /// The name of the child entity. + [WirePath("name")] public string Name { get; } /// The friendly name of the child resource. + [WirePath("displayName")] public string DisplayName { get; } /// The list of children. + [WirePath("children")] public IReadOnlyList Children { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCollectionGetEntitiesOptions.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCollectionGetEntitiesOptions.cs index fdbf34a7ae00b..3fc2633c8ab65 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCollectionGetEntitiesOptions.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCollectionGetEntitiesOptions.cs @@ -20,12 +20,16 @@ public ManagementGroupCollectionGetEntitiesOptions() /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. /// /// + [WirePath("skipToken")] public string SkipToken { get; set; } /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. + [WirePath("skip")] public int? Skip { get; set; } /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + [WirePath("top")] public int? Top { get; set; } /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. + [WirePath("select")] public string Select { get; set; } /// /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. @@ -35,14 +39,19 @@ public ManagementGroupCollectionGetEntitiesOptions() /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. /// + [WirePath("search")] public EntitySearchOption? Search { get; set; } /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. + [WirePath("filter")] public string Filter { get; set; } /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. + [WirePath("view")] public EntityViewOption? View { get; set; } /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). + [WirePath("groupName")] public string GroupName { get; set; } /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + [WirePath("cacheControl")] public string CacheControl { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCreateOrUpdateContent.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCreateOrUpdateContent.cs index 04b554b3c5071..079151fec31a7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCreateOrUpdateContent.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCreateOrUpdateContent.cs @@ -74,18 +74,25 @@ internal ManagementGroupCreateOrUpdateContent(string id, ResourceType? resourceT } /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + [WirePath("id")] public string Id { get; } /// The type of the resource. For example, Microsoft.Management/managementGroups. + [WirePath("type")] public ResourceType? ResourceType { get; } /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + [WirePath("name")] public string Name { get; set; } /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + [WirePath("properties.tenantId")] public Guid? TenantId { get; } /// The friendly name of the management group. If no value is passed then this field will be set to the groupId. + [WirePath("properties.displayName")] public string DisplayName { get; set; } /// The details of a management group used during creation. + [WirePath("properties.details")] public CreateManagementGroupDetails Details { get; set; } /// The list of children. + [WirePath("properties.children")] public IReadOnlyList Children { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupInfo.cs index 3bcdc40513ca6..c6cd31676b7c8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupInfo.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupInfo.cs @@ -76,18 +76,25 @@ internal ManagementGroupInfo(int? version, DateTimeOffset? updatedOn, string upd } /// The version number of the object. + [WirePath("version")] public int? Version { get; } /// The date and time when this object was last updated. + [WirePath("updatedTime")] public DateTimeOffset? UpdatedOn { get; } /// The identity of the principal or process that updated the object. + [WirePath("updatedBy")] public string UpdatedBy { get; } /// (Optional) The ID of the parent management group. + [WirePath("parent")] public ParentManagementGroupInfo Parent { get; } /// The path from the root to the current group. + [WirePath("path")] public IReadOnlyList Path { get; } /// The ancestors of the management group. + [WirePath("managementGroupAncestors")] public IReadOnlyList ManagementGroupAncestors { get; } /// The ancestors of the management group displayed in reversed order, from immediate parent to the root. + [WirePath("managementGroupAncestorsChain")] public IReadOnlyList ManagementGroupAncestorChain { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameAvailabilityContent.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameAvailabilityContent.cs index 118498fa4b2b4..cbe681771f1eb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameAvailabilityContent.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameAvailabilityContent.cs @@ -58,8 +58,10 @@ internal ManagementGroupNameAvailabilityContent(string name, ResourceType? resou } /// the name to check for availability. + [WirePath("name")] public string Name { get; set; } /// fully qualified resource type which includes provider namespace. + [WirePath("type")] public ResourceType? ResourceType { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameAvailabilityResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameAvailabilityResult.cs index 7e8d065a3dc36..1c2a592629005 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameAvailabilityResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupNameAvailabilityResult.cs @@ -64,10 +64,13 @@ internal ManagementGroupNameAvailabilityResult(bool? nameAvailable, ManagementGr } /// Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. + [WirePath("nameAvailable")] public bool? NameAvailable { get; } /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. + [WirePath("reason")] public ManagementGroupNameUnavailableReason? Reason { get; } /// Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupParentCreateOptions.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupParentCreateOptions.cs index 1669e7481452c..13e65d6bf7eae 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupParentCreateOptions.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupParentCreateOptions.cs @@ -64,10 +64,13 @@ internal ManagementGroupParentCreateOptions(string id, string name, string displ } /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + [WirePath("id")] public string Id { get; set; } /// The name of the parent management group. + [WirePath("name")] public string Name { get; } /// The friendly name of the parent management group. + [WirePath("displayName")] public string DisplayName { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupPatch.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupPatch.cs index deb6e424a378e..8d3aeabcf35ea 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupPatch.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupPatch.cs @@ -62,8 +62,10 @@ internal ManagementGroupPatch(string displayName, string parentGroupId, IDiction } /// The friendly name of the management group. + [WirePath("displayName")] public string DisplayName { get; set; } /// (Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + [WirePath("parentGroupId")] public string ParentGroupId { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupPathElement.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupPathElement.cs index 1f84c28f9bea3..83a547b41aef7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupPathElement.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupPathElement.cs @@ -62,8 +62,10 @@ internal ManagementGroupPathElement(string name, string displayName, IDictionary } /// The name of the group. + [WirePath("name")] public string Name { get; } /// The friendly name of the group. + [WirePath("displayName")] public string DisplayName { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ParentManagementGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ParentManagementGroupInfo.cs index a6fd9b7ff9ef9..910a28524adcf 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ParentManagementGroupInfo.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ParentManagementGroupInfo.cs @@ -64,10 +64,13 @@ internal ParentManagementGroupInfo(string id, string name, string displayName, I } /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + [WirePath("id")] public string Id { get; } /// The name of the parent management group. + [WirePath("name")] public string Name { get; } /// The friendly name of the parent management group. + [WirePath("displayName")] public string DisplayName { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifestData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifestData.cs index 105ba8d7b299a..32ace96c4da9d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifestData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifestData.cs @@ -90,20 +90,28 @@ internal DataPolicyManifestData(ResourceIdentifier id, string name, ResourceType } /// The list of namespaces for the data policy manifest. + [WirePath("properties.namespaces")] public IReadOnlyList Namespaces { get; } /// The policy mode of the data policy manifest. + [WirePath("properties.policyMode")] public string PolicyMode { get; } /// A value indicating whether policy mode is allowed only in built-in definitions. + [WirePath("properties.isBuiltInOnly")] public bool? IsBuiltInOnly { get; } /// An array of resource type aliases. + [WirePath("properties.resourceTypeAliases")] public IReadOnlyList ResourceTypeAliases { get; } /// The effect definition. + [WirePath("properties.effects")] public IReadOnlyList Effects { get; } /// The non-alias field accessor values that can be used in the policy rule. + [WirePath("properties.fieldValues")] public IReadOnlyList FieldValues { get; } /// The standard resource functions (subscription and/or resourceGroup). + [WirePath("properties.standard")] public IReadOnlyList Standard { get; } /// An array of data manifest custom resource definition. + [WirePath("properties.custom")] public IReadOnlyList CustomDefinitions { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/FeatureData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/FeatureData.cs index 4c567c76dce4a..ef7d2ec42ce0f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/FeatureData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/FeatureData.cs @@ -72,6 +72,7 @@ internal FeatureData(ResourceIdentifier id, string name, ResourceType resourceTy /// Properties of the previewed feature. internal FeatureProperties Properties { get; } /// The registration state of the feature for the subscription. + [WirePath("properties.state")] public string FeatureState { get => Properties?.State; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/GenericResourceData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/GenericResourceData.cs index 2240cb4e277e7..1440e3dc01828 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/GenericResourceData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/GenericResourceData.cs @@ -62,6 +62,7 @@ internal GenericResourceData() } /// The plan of the resource. + [WirePath("plan")] public ArmPlan Plan { get; set; } /// /// The resource properties. @@ -93,20 +94,28 @@ internal GenericResourceData() /// /// /// + [WirePath("properties")] public BinaryData Properties { get; set; } /// The kind of the resource. + [WirePath("kind")] public string Kind { get; set; } /// ID of the resource that manages this resource. + [WirePath("managedBy")] public string ManagedBy { get; set; } /// The SKU of the resource. + [WirePath("sku")] public ResourcesSku Sku { get; set; } /// The identity of the resource. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// The created time of the resource. This is only present if requested via the $expand query parameter. + [WirePath("createdTime")] public DateTimeOffset? CreatedOn { get; } /// The changed time of the resource. This is only present if requested via the $expand query parameter. + [WirePath("changedTime")] public DateTimeOffset? ChangedOn { get; } /// The provisioning state of the resource. This is only present if requested via the $expand query parameter. + [WirePath("provisioningState")] public string ProvisioningState { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Internal/WirePathAttribute.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..4b7cb3247b431 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Resources +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockData.cs index 6a7605310752e..64c9e5d2cd8ac 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockData.cs @@ -82,10 +82,13 @@ internal ManagementLockData() } /// The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it. + [WirePath("properties.level")] public ManagementLockLevel Level { get; set; } /// Notes about the lock. Maximum of 512 characters. + [WirePath("properties.notes")] public string Notes { get; set; } /// The owners of the lock. + [WirePath("properties.owners")] public IList Owners { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ApiProfile.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ApiProfile.cs index d9643e8d4402e..f739455520731 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ApiProfile.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ApiProfile.cs @@ -62,8 +62,10 @@ internal ApiProfile(string profileVersion, string apiVersion, IDictionary The profile version. + [WirePath("profileVersion")] public string ProfileVersion { get; } /// The API version. + [WirePath("apiVersion")] public string ApiVersion { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameter.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameter.cs index 323f9dc66a994..bf86393fab4e5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameter.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameter.cs @@ -68,6 +68,7 @@ internal ArmPolicyParameter(ArmPolicyParameterType? parameterType, IList The data type of the parameter. + [WirePath("type")] public ArmPolicyParameterType? ParameterType { get; set; } /// /// The allowed values for the parameter. @@ -99,6 +100,7 @@ internal ArmPolicyParameter(ArmPolicyParameterType? parameterType, IList /// /// + [WirePath("allowedValues")] public IList AllowedValues { get; } /// /// The default value for the parameter if no value is provided. @@ -130,8 +132,10 @@ internal ArmPolicyParameter(ArmPolicyParameterType? parameterType, IList /// /// + [WirePath("defaultValue")] public BinaryData DefaultValue { get; set; } /// General metadata for the parameter. + [WirePath("metadata")] public ParameterDefinitionsValueMetadata Metadata { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameterValue.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameterValue.cs index 984f9e858adac..0e055d7eb194d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameterValue.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameterValue.cs @@ -89,6 +89,7 @@ internal ArmPolicyParameterValue(BinaryData value, IDictionary /// /// + [WirePath("value")] public BinaryData Value { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AvailabilityZoneMappings.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AvailabilityZoneMappings.cs index 57504373f2db4..98f10092e52d5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AvailabilityZoneMappings.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AvailabilityZoneMappings.cs @@ -62,8 +62,10 @@ internal AvailabilityZoneMappings(string logicalZone, string physicalZone, IDict } /// The logical zone id for the availability zone. + [WirePath("logicalZone")] public string LogicalZone { get; } /// The fully qualified physical zone id of availability zone to which logical zone id is mapped to. + [WirePath("physicalZone")] public string PhysicalZone { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AzureRoleDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AzureRoleDefinition.cs index 6f9b794120f74..d1facf10e357c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AzureRoleDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AzureRoleDefinition.cs @@ -71,14 +71,19 @@ internal AzureRoleDefinition(string id, string name, bool? isServiceRole, IReadO } /// The role definition ID. + [WirePath("id")] public string Id { get; } /// The role definition name. + [WirePath("name")] public string Name { get; } /// If this is a service role. + [WirePath("isServiceRole")] public bool? IsServiceRole { get; } /// Role definition permissions. + [WirePath("permissions")] public IReadOnlyList Permissions { get; } /// Role definition assignable scopes. + [WirePath("scopes")] public IReadOnlyList Scopes { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs index 969333c719bd6..4f66f5b04ca43 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs @@ -68,12 +68,16 @@ internal DataManifestCustomResourceFunctionDefinition(string name, ResourceType? } /// The function name as it will appear in the policy rule. eg - 'vault'. + [WirePath("name")] public string Name { get; } /// The fully qualified control plane resource type that this function represents. eg - 'Microsoft.KeyVault/vaults'. + [WirePath("fullyQualifiedResourceType")] public ResourceType? FullyQualifiedResourceType { get; } /// The top-level properties that can be selected on the function's output. eg - [ "name", "location" ] if vault().name and vault().location are supported. + [WirePath("defaultProperties")] public IReadOnlyList DefaultProperties { get; } /// A value indicating whether the custom properties within the property bag are allowed. Needs api-version to be specified in the policy rule eg - vault('2019-06-01'). + [WirePath("allowCustomProperties")] public bool? AllowCustomProperties { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestEffect.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestEffect.cs index dac41fd3b9aa3..140fcae664f03 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestEffect.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestEffect.cs @@ -62,6 +62,7 @@ internal DataPolicyManifestEffect(string name, BinaryData detailsSchema, IDictio } /// The data effect name. + [WirePath("name")] public string Name { get; } /// /// The data effect details schema. @@ -93,6 +94,7 @@ internal DataPolicyManifestEffect(string name, BinaryData detailsSchema, IDictio /// /// /// + [WirePath("detailsSchema")] public BinaryData DetailsSchema { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExportTemplate.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExportTemplate.cs index 884d990e17ea2..37f4758816a57 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExportTemplate.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExportTemplate.cs @@ -64,8 +64,10 @@ internal ExportTemplate(IList resources, string options, IDictionary The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. + [WirePath("resources")] public IList Resources { get; } /// The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'. + [WirePath("options")] public string Options { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExtendedLocation.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExtendedLocation.cs index 58ca5967b9f94..c052d4f1e8851 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExtendedLocation.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExtendedLocation.cs @@ -30,8 +30,10 @@ internal ExtendedLocation(ExtendedLocationType? extendedLocationType, string nam } /// The extended location type. + [WirePath("type")] public ExtendedLocationType? ExtendedLocationType { get; set; } /// The extended location name. + [WirePath("name")] public string Name { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureProperties.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureProperties.cs index db871db7c06f9..bab8758f08ab8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureProperties.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureProperties.cs @@ -60,6 +60,7 @@ internal FeatureProperties(string state, IDictionary seriali } /// The registration state of the feature for the subscription. + [WirePath("state")] public string State { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/GenericResourceData.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/GenericResourceData.Serialization.cs index 47912dde22080..4366a3396d9f8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/GenericResourceData.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/GenericResourceData.Serialization.cs @@ -371,7 +371,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationExpanded.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationExpanded.cs index fdd7572019c40..d4da72f4aaf7f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationExpanded.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationExpanded.cs @@ -76,20 +76,28 @@ internal LocationExpanded(string id, string subscriptionId, string name, Locatio } /// The fully qualified ID of the location. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. + [WirePath("id")] public string Id { get; } /// The subscription ID. + [WirePath("subscriptionId")] public string SubscriptionId { get; } /// The location name. + [WirePath("name")] public string Name { get; } /// The location type. + [WirePath("type")] public LocationType? LocationType { get; } /// The display name of the location. + [WirePath("displayName")] public string DisplayName { get; } /// The display name of the location and its region. + [WirePath("regionalDisplayName")] public string RegionalDisplayName { get; } /// Metadata of the location, such as lat/long, paired region, and others. + [WirePath("metadata")] public LocationMetadata Metadata { get; } /// The availability zone mappings for this region. + [WirePath("availabilityZoneMappings")] public IReadOnlyList AvailabilityZoneMappings { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationMetadata.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationMetadata.cs index 2c66175f6365e..33982d0a6af9a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationMetadata.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationMetadata.cs @@ -78,18 +78,25 @@ internal LocationMetadata(RegionType? regionType, RegionCategory? regionCategory } /// The type of the region. + [WirePath("regionType")] public RegionType? RegionType { get; } /// The category of the region. + [WirePath("regionCategory")] public RegionCategory? RegionCategory { get; } /// The geography of the location. + [WirePath("geography")] public string Geography { get; } /// The geography group of the location. + [WirePath("geographyGroup")] public string GeographyGroup { get; } /// The physical location of the Azure location. + [WirePath("physicalLocation")] public string PhysicalLocation { get; } /// The regions paired to this region. + [WirePath("pairedRegion")] public IReadOnlyList PairedRegions { get; } /// The home location of an edge zone. + [WirePath("homeLocation")] public string HomeLocation { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagedByTenant.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagedByTenant.cs index 6883e58674a0f..17afaec3adffe 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagedByTenant.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagedByTenant.cs @@ -60,6 +60,7 @@ internal ManagedByTenant(Guid? tenantId, IDictionary seriali } /// The tenant ID of the managing tenant. This is a GUID. + [WirePath("tenantId")] public Guid? TenantId { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockOwner.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockOwner.cs index 9a31cf12f7b57..7cb104519397a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockOwner.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockOwner.cs @@ -60,6 +60,7 @@ internal ManagementLockOwner(string applicationId, IDictionary The application ID of the lock owner. + [WirePath("applicationId")] public string ApplicationId { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/NonComplianceMessage.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/NonComplianceMessage.cs index 335409e68050d..3f9fb56128a7c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/NonComplianceMessage.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/NonComplianceMessage.cs @@ -73,8 +73,10 @@ internal NonComplianceMessage() } /// A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. + [WirePath("message")] public string Message { get; set; } /// The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message applies to all policies assigned by this policy assignment. + [WirePath("policyDefinitionReferenceId")] public string PolicyDefinitionReferenceId { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PairedRegion.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PairedRegion.cs index 99a4d4e034a65..b4e30a1a8fc43 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PairedRegion.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PairedRegion.cs @@ -64,10 +64,13 @@ internal PairedRegion(string name, string id, string subscriptionId, IDictionary } /// The name of the paired region. + [WirePath("name")] public string Name { get; } /// The fully qualified ID of the location. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. + [WirePath("id")] public string Id { get; } /// The subscription ID. + [WirePath("subscriptionId")] public string SubscriptionId { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ParameterDefinitionsValueMetadata.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ParameterDefinitionsValueMetadata.cs index 8e64e8d6e99db..5f95ff0642b07 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ParameterDefinitionsValueMetadata.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ParameterDefinitionsValueMetadata.cs @@ -36,12 +36,16 @@ internal ParameterDefinitionsValueMetadata(string displayName, string descriptio } /// The display name for the parameter. + [WirePath("displayName")] public string DisplayName { get; set; } /// The description of the parameter. + [WirePath("description")] public string Description { get; set; } /// Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from. + [WirePath("strongType")] public string StrongType { get; set; } /// Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope. + [WirePath("assignPermissions")] public bool? AssignPermissions { get; set; } /// /// Additional Properties @@ -73,6 +77,7 @@ internal ParameterDefinitionsValueMetadata(string displayName, string descriptio /// /// /// + [WirePath("AdditionalProperties")] public IDictionary AdditionalProperties { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Permission.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Permission.cs index 134dd3b95d28f..ef5608ac7bf3a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Permission.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Permission.cs @@ -71,12 +71,16 @@ internal Permission(IReadOnlyList allowedActions, IReadOnlyList } /// Allowed actions. + [WirePath("actions")] public IReadOnlyList AllowedActions { get; } /// Denied actions. + [WirePath("notActions")] public IReadOnlyList DeniedActions { get; } /// Allowed Data actions. + [WirePath("dataActions")] public IReadOnlyList AllowedDataActions { get; } /// Denied Data actions. + [WirePath("notDataActions")] public IReadOnlyList DeniedDataActions { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentData.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentData.Serialization.cs index db55bf8cbd703..e05877c1d9d97 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentData.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentData.Serialization.cs @@ -589,7 +589,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Parameters) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentPatch.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentPatch.cs index b7bc4138a651d..d85c3fcbad21b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentPatch.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentPatch.cs @@ -70,12 +70,16 @@ internal PolicyAssignmentPatch(AzureLocation? location, ManagedServiceIdentity i } /// The location of the policy assignment. Only required when utilizing managed identity. + [WirePath("location")] public AzureLocation? Location { get; set; } /// The managed identity associated with the policy assignment. Current supported identity types: None, SystemAssigned, UserAssigned. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// The resource selector list to filter policies by resource properties. + [WirePath("properties.resourceSelectors")] public IList ResourceSelectors { get; } /// The policy property value override. + [WirePath("properties.overrides")] public IList Overrides { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionData.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionData.Serialization.cs index 5d0f091904259..e07625f08b426 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionData.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionData.Serialization.cs @@ -449,7 +449,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Parameters) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionGroup.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionGroup.cs index 63963cf8a5566..30cd49b20bcc7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionGroup.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionGroup.cs @@ -79,14 +79,19 @@ internal PolicyDefinitionGroup() } /// The name of the group. + [WirePath("name")] public string Name { get; set; } /// The group's display name. + [WirePath("displayName")] public string DisplayName { get; set; } /// The group's category. + [WirePath("category")] public string Category { get; set; } /// The group's description. + [WirePath("description")] public string Description { get; set; } /// A resource ID of a resource that contains additional metadata about the group. + [WirePath("additionalMetadataId")] public string AdditionalMetadataId { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.Serialization.cs index cde682fb93b2c..c6df7334fc5f8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.Serialization.cs @@ -198,7 +198,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Parameters) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 4, false); } builder.AppendLine(" }"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.cs index 9557f190e234e..2e82e5557e19d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.cs @@ -79,12 +79,16 @@ internal PolicyDefinitionReference() } /// The ID of the policy definition or policy set definition. + [WirePath("policyDefinitionId")] public string PolicyDefinitionId { get; set; } /// The parameter values for the referenced policy rule. The keys are the parameter names. + [WirePath("parameters")] public IDictionary Parameters { get; } /// A unique id (within the policy set definition) for this policy definition reference. + [WirePath("policyDefinitionReferenceId")] public string PolicyDefinitionReferenceId { get; set; } /// The name of the groups that this policy definition reference belongs to. + [WirePath("groupNames")] public IList GroupNames { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyOverride.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyOverride.cs index 24c17c6224b39..0aeabff28a6b8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyOverride.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyOverride.cs @@ -66,10 +66,13 @@ internal PolicyOverride(PolicyOverrideKind? kind, string value, IList The override kind. + [WirePath("kind")] public PolicyOverrideKind? Kind { get; set; } /// The value to override the policy property. + [WirePath("value")] public string Value { get; set; } /// The list of the selector expressions. + [WirePath("selectors")] public IList Selectors { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicySetDefinitionData.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicySetDefinitionData.Serialization.cs index 680a151d42be7..70897a7be57db 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicySetDefinitionData.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicySetDefinitionData.Serialization.cs @@ -430,7 +430,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Parameters) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTag.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTag.cs index b26eb4c850dbf..6963c913d6bfa 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTag.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTag.cs @@ -68,12 +68,16 @@ internal PredefinedTag(string id, string tagName, PredefinedTagCount count, IRea } /// The tag name ID. + [WirePath("id")] public string Id { get; } /// The tag name. + [WirePath("tagName")] public string TagName { get; } /// The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0. + [WirePath("count")] public PredefinedTagCount Count { get; } /// The list of tag values. + [WirePath("values")] public IReadOnlyList Values { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagCount.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagCount.cs index 599f19011bd56..b7d6360ac86f9 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagCount.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagCount.cs @@ -62,8 +62,10 @@ internal PredefinedTagCount(string predefinedTagCountType, int? value, IDictiona } /// Type of count. + [WirePath("type")] public string PredefinedTagCountType { get; } /// Value of count. + [WirePath("value")] public int? Value { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagValue.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagValue.cs index 0885ec56a0ea9..7c91e6cc595e7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagValue.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagValue.cs @@ -64,10 +64,13 @@ internal PredefinedTagValue(string id, string tagValue, PredefinedTagCount count } /// The tag value ID. + [WirePath("id")] public string Id { get; } /// The tag value. + [WirePath("tagValue")] public string TagValue { get; } /// The tag value count. + [WirePath("count")] public PredefinedTagCount Count { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderConsentDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderConsentDefinition.cs index 2dcade584b19a..92b4c2985896a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderConsentDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderConsentDefinition.cs @@ -60,6 +60,7 @@ internal ProviderConsentDefinition(bool? consentToAuthorization, IDictionary A value indicating whether authorization is consented or not. + [WirePath("consentToAuthorization")] public bool? ConsentToAuthorization { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderExtendedLocation.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderExtendedLocation.cs index 23484c899eb7d..3b129aeeb0b4d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderExtendedLocation.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderExtendedLocation.cs @@ -66,10 +66,13 @@ internal ProviderExtendedLocation(AzureLocation? location, string providerExtend } /// The azure location. + [WirePath("location")] public AzureLocation? Location { get; } /// The extended location type. + [WirePath("type")] public string ProviderExtendedLocationType { get; } /// The extended locations for the azure location. + [WirePath("extendedLocations")] public IReadOnlyList ExtendedLocations { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermission.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermission.cs index eba5754f340f5..b8dbd24538f1d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermission.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermission.cs @@ -66,12 +66,16 @@ internal ProviderPermission(string applicationId, AzureRoleDefinition roleDefini } /// The application id. + [WirePath("applicationId")] public string ApplicationId { get; } /// Role definition properties. + [WirePath("roleDefinition")] public AzureRoleDefinition RoleDefinition { get; } /// Role definition properties. + [WirePath("managedByRoleDefinition")] public AzureRoleDefinition ManagedByRoleDefinition { get; } /// The provider authorization consent state. + [WirePath("providerAuthorizationConsentState")] public ProviderAuthorizationConsentState? ProviderAuthorizationConsentState { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermissionListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermissionListResult.cs index 31299162603c8..de219c3c37917 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermissionListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermissionListResult.cs @@ -64,8 +64,10 @@ internal ProviderPermissionListResult(IReadOnlyList value, s } /// An array of provider permissions. + [WirePath("value")] public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. + [WirePath("nextLink")] public string NextLink { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderRegistrationContent.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderRegistrationContent.cs index 77e84f6e41e3e..92eb16dbd62a7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderRegistrationContent.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderRegistrationContent.cs @@ -62,6 +62,7 @@ internal ProviderRegistrationContent(ProviderConsentDefinition thirdPartyProvide /// The provider consent. internal ProviderConsentDefinition ThirdPartyProviderConsent { get; set; } /// A value indicating whether authorization is consented or not. + [WirePath("thirdPartyProviderConsent.consentToAuthorization")] public bool? ConsentToAuthorization { get => ThirdPartyProviderConsent is null ? default : ThirdPartyProviderConsent.ConsentToAuthorization; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.Serialization.cs index a7ed5a2e98427..3c6003b333d51 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.Serialization.cs @@ -539,7 +539,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Properties) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.cs index 97f3681188480..fb737fef234f2 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.cs @@ -86,24 +86,34 @@ internal ProviderResourceType(string resourceType, IReadOnlyList locatio } /// The resource type. + [WirePath("resourceType")] public string ResourceType { get; } /// The collection of locations where this resource type can be created. + [WirePath("locations")] public IReadOnlyList Locations { get; } /// The location mappings that are supported by this resource type. + [WirePath("locationMappings")] public IReadOnlyList LocationMappings { get; } /// The aliases that are supported by this resource type. + [WirePath("aliases")] public IReadOnlyList Aliases { get; } /// The API version. + [WirePath("apiVersions")] public IReadOnlyList ApiVersions { get; } /// The default API version. + [WirePath("defaultApiVersion")] public string DefaultApiVersion { get; } /// Gets the zone mappings. + [WirePath("zoneMappings")] public IReadOnlyList ZoneMappings { get; } /// The API profiles for the resource provider. + [WirePath("apiProfiles")] public IReadOnlyList ApiProfiles { get; } /// The additional capabilities offered by this resource type. + [WirePath("capabilities")] public string Capabilities { get; } /// The properties. + [WirePath("properties")] public IReadOnlyDictionary Properties { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceTypeListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceTypeListResult.cs index b8785d0c8d914..ce391dc1f258e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceTypeListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceTypeListResult.cs @@ -64,8 +64,10 @@ internal ProviderResourceTypeListResult(IReadOnlyList valu } /// An array of resource types. + [WirePath("value")] public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. + [WirePath("nextLink")] public string NextLink { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupData.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupData.Serialization.cs index 83a27c3634346..5121ef7c73147 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupData.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupData.Serialization.cs @@ -252,7 +252,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupExportResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupExportResult.cs index 2800a103b7f5b..c05f857c813c1 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupExportResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupExportResult.cs @@ -92,8 +92,10 @@ internal ResourceGroupExportResult(BinaryData template, ResponseError error, IDi /// /// /// + [WirePath("template")] public BinaryData Template { get; } /// The template export error. + [WirePath("error")] public ResponseError Error { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupPatch.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupPatch.cs index 478e418c6db8b..e21fe1f1f6f38 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupPatch.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupPatch.cs @@ -68,18 +68,22 @@ internal ResourceGroupPatch(string name, ResourceGroupProperties properties, str } /// The name of the resource group. + [WirePath("name")] public string Name { get; set; } /// The resource group properties. internal ResourceGroupProperties Properties { get; set; } /// The provisioning state. + [WirePath("properties.provisioningState")] public string ResourceGroupProvisioningState { get => Properties is null ? default : Properties.ProvisioningState; } /// The ID of the resource that manages this resource group. + [WirePath("managedBy")] public string ManagedBy { get; set; } /// The tags attached to the resource group. + [WirePath("tags")] public IDictionary Tags { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupProperties.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupProperties.cs index 4f5ff71de5dd3..b62fad0a7f791 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupProperties.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupProperties.cs @@ -60,6 +60,7 @@ internal ResourceGroupProperties(string provisioningState, IDictionary The provisioning state. + [WirePath("provisioningState")] public string ProvisioningState { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceNameValidationContent.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceNameValidationContent.cs index cdf61d36d0970..e3886a6c2fc54 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceNameValidationContent.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceNameValidationContent.cs @@ -75,8 +75,10 @@ internal ResourceNameValidationContent() } /// Name of the resource. + [WirePath("name")] public string Name { get; } /// The type of the resource. + [WirePath("type")] public ResourceType ResourceType { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceNameValidationResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceNameValidationResult.cs index b6f259254a96b..7e0501f86253a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceNameValidationResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceNameValidationResult.cs @@ -65,10 +65,13 @@ internal ResourceNameValidationResult(string name, ResourceType? resourceType, R } /// Name of Resource. + [WirePath("name")] public string Name { get; } /// Type of Resource. + [WirePath("type")] public ResourceType? ResourceType { get; } /// Is the resource name Allowed or Reserved. + [WirePath("status")] public ResourceNameValidationStatus? Status { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelector.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelector.cs index a74df83487297..2e5f440ad41f0 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelector.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelector.cs @@ -64,8 +64,10 @@ internal ResourceSelector(string name, IList selecto } /// The name of the resource selector. + [WirePath("name")] public string Name { get; set; } /// The list of the selector expressions. + [WirePath("selectors")] public IList Selectors { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelectorExpression.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelectorExpression.cs index 4951da8a14ab0..d9b45b139ac3c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelectorExpression.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelectorExpression.cs @@ -67,10 +67,13 @@ internal ResourceSelectorExpression(ResourceSelectorKind? kind, IList @i } /// The selector kind. + [WirePath("kind")] public ResourceSelectorKind? Kind { get; set; } /// The list of values to filter in. + [WirePath("in")] public IList In { get; } /// The list of values to filter out. + [WirePath("notIn")] public IList NotIn { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAlias.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAlias.cs index 20281d1430f50..7982cd03f576a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAlias.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAlias.cs @@ -72,16 +72,22 @@ internal ResourceTypeAlias(string name, IReadOnlyList pat } /// The alias name. + [WirePath("name")] public string Name { get; } /// The paths for an alias. + [WirePath("paths")] public IReadOnlyList Paths { get; } /// The type of the alias. + [WirePath("type")] public ResourceTypeAliasType? AliasType { get; } /// The default path for an alias. + [WirePath("defaultPath")] public string DefaultPath { get; } /// The default pattern for an alias. + [WirePath("defaultPattern")] public ResourceTypeAliasPattern DefaultPattern { get; } /// The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata. + [WirePath("defaultMetadata")] public ResourceTypeAliasPathMetadata DefaultMetadata { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPath.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPath.cs index d3bb36c3709f6..7920cadb8e750 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPath.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPath.cs @@ -68,12 +68,16 @@ internal ResourceTypeAliasPath(string path, IReadOnlyList apiVersions, R } /// The path of an alias. + [WirePath("path")] public string Path { get; } /// The API versions. + [WirePath("apiVersions")] public IReadOnlyList ApiVersions { get; } /// The pattern for an alias path. + [WirePath("pattern")] public ResourceTypeAliasPattern Pattern { get; } /// The metadata of the alias path. If missing, fall back to the default metadata of the alias. + [WirePath("metadata")] public ResourceTypeAliasPathMetadata Metadata { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPathMetadata.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPathMetadata.cs index befa6e27d336c..1a4b48937b479 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPathMetadata.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPathMetadata.cs @@ -62,8 +62,10 @@ internal ResourceTypeAliasPathMetadata(ResourceTypeAliasPathTokenType? tokenType } /// The type of the token that the alias path is referring to. + [WirePath("type")] public ResourceTypeAliasPathTokenType? TokenType { get; } /// The attributes of the token that the alias path is referring to. + [WirePath("attributes")] public ResourceTypeAliasPathAttributes? Attributes { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPattern.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPattern.cs index 64b8153d9ebc9..5c318a2ddec47 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPattern.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPattern.cs @@ -64,10 +64,13 @@ internal ResourceTypeAliasPattern(string phrase, string variable, ResourceTypeAl } /// The alias pattern phrase. + [WirePath("phrase")] public string Phrase { get; } /// The alias pattern variable. + [WirePath("variable")] public string Variable { get; } /// The type of alias pattern. + [WirePath("type")] public ResourceTypeAliasPatternType? PatternType { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliases.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliases.cs index 4b543d3b72421..70774db3a495f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliases.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliases.cs @@ -64,8 +64,10 @@ internal ResourceTypeAliases(string resourceType, IReadOnlyList The resource type name. + [WirePath("resourceType")] public string ResourceType { get; } /// The aliases for property names. + [WirePath("aliases")] public IReadOnlyList Aliases { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesMoveContent.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesMoveContent.cs index 9e0bd896f0699..89139c1b2e611 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesMoveContent.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesMoveContent.cs @@ -64,8 +64,10 @@ internal ResourcesMoveContent(IList resources, ResourceIdentifier target } /// The IDs of the resources. + [WirePath("resources")] public IList Resources { get; } /// The target resource group. + [WirePath("targetResourceGroup")] public ResourceIdentifier TargetResourceGroupId { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesSku.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesSku.cs index 6370467fbd7bf..1aa8907276793 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesSku.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesSku.cs @@ -70,16 +70,22 @@ internal ResourcesSku(string name, string tier, string size, string family, stri } /// The SKU name. + [WirePath("name")] public string Name { get; set; } /// The SKU tier. + [WirePath("tier")] public string Tier { get; set; } /// The SKU size. + [WirePath("size")] public string Size { get; set; } /// The SKU family. + [WirePath("family")] public string Family { get; set; } /// The SKU model. + [WirePath("model")] public string Model { get; set; } /// The SKU capacity. + [WirePath("capacity")] public int? Capacity { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionData.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionData.Serialization.cs index d935aae39f3f7..37b7c39f7bec1 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionData.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionData.Serialization.cs @@ -251,7 +251,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicies.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicies.cs index c83c5e055fe9f..e953221105ad6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicies.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicies.cs @@ -64,10 +64,13 @@ internal SubscriptionPolicies(string locationPlacementId, string quotaId, Spendi } /// The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions. + [WirePath("locationPlacementId")] public string LocationPlacementId { get; } /// The subscription quota ID. + [WirePath("quotaId")] public string QuotaId { get; } /// The subscription spending limit. + [WirePath("spendingLimit")] public SpendingLimit? SpendingLimit { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Tag.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Tag.Serialization.cs index c01ee76fc9ef5..1fe25936451d3 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Tag.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Tag.Serialization.cs @@ -132,7 +132,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in TagValues) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TagResourcePatch.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TagResourcePatch.cs index 1fbe9be30f463..dc4496a3c07da 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TagResourcePatch.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TagResourcePatch.cs @@ -62,10 +62,12 @@ internal TagResourcePatch(TagPatchMode? patchMode, Tag properties, IDictionary The operation type for the patch API. + [WirePath("operation")] public TagPatchMode? PatchMode { get; set; } /// The set of tags. internal Tag Properties { get; set; } /// Dictionary of <string>. + [WirePath("properties.tags")] public IDictionary TagValues { get diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProvider.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProvider.cs index 507de583f806f..7d86dec85dc37 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProvider.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProvider.cs @@ -64,8 +64,10 @@ internal TenantResourceProvider(string @namespace, IReadOnlyList The namespace of the resource provider. + [WirePath("namespace")] public string Namespace { get; } /// The collection of provider resource types. + [WirePath("resourceTypes")] public IReadOnlyList ResourceTypes { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TrackedResourceExtendedData.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TrackedResourceExtendedData.Serialization.cs index 27db30a54b734..61227327e499c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TrackedResourceExtendedData.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TrackedResourceExtendedData.Serialization.cs @@ -240,7 +240,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TrackedResourceExtendedData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TrackedResourceExtendedData.cs index 842e949e26efa..1474b682eba06 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TrackedResourceExtendedData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TrackedResourceExtendedData.cs @@ -74,6 +74,7 @@ internal TrackedResourceExtendedData() } /// Resource extended location. + [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ZoneMapping.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ZoneMapping.cs index 8faf11bf30e07..78773bb967000 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ZoneMapping.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ZoneMapping.cs @@ -64,8 +64,10 @@ internal ZoneMapping(AzureLocation? location, IReadOnlyList zones, IDict } /// The location of the zone mapping. + [WirePath("location")] public AzureLocation? Location { get; } /// Gets the zones. + [WirePath("zones")] public IReadOnlyList Zones { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentData.cs index 85ef3d303fa57..f0a246cdc3334 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentData.cs @@ -99,20 +99,28 @@ internal PolicyAssignmentData(ResourceIdentifier id, string name, ResourceType r } /// The location of the policy assignment. Only required when utilizing managed identity. + [WirePath("location")] public AzureLocation? Location { get; set; } /// The managed identity associated with the policy assignment. Current supported identity types: None, SystemAssigned, UserAssigned. + [WirePath("identity")] public ManagedServiceIdentity ManagedIdentity { get; set; } /// The display name of the policy assignment. + [WirePath("properties.displayName")] public string DisplayName { get; set; } /// The ID of the policy definition or policy set definition being assigned. + [WirePath("properties.policyDefinitionId")] public string PolicyDefinitionId { get; set; } /// The scope for the policy assignment. + [WirePath("properties.scope")] public string Scope { get; } /// The policy's excluded scopes. + [WirePath("properties.notScopes")] public IList ExcludedScopes { get; } /// The parameter values for the assigned policy rule. The keys are the parameter names. + [WirePath("properties.parameters")] public IDictionary Parameters { get; } /// This message will be part of response in case of policy violation. + [WirePath("properties.description")] public string Description { get; set; } /// /// The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. @@ -144,14 +152,19 @@ internal PolicyAssignmentData(ResourceIdentifier id, string name, ResourceType r /// /// /// + [WirePath("properties.metadata")] public BinaryData Metadata { get; set; } /// The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. + [WirePath("properties.enforcementMode")] public EnforcementMode? EnforcementMode { get; set; } /// The messages that describe why a resource is non-compliant with the policy. + [WirePath("properties.nonComplianceMessages")] public IList NonComplianceMessages { get; } /// The resource selector list to filter policies by resource properties. + [WirePath("properties.resourceSelectors")] public IList ResourceSelectors { get; } /// The policy property value override. + [WirePath("properties.overrides")] public IList Overrides { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyDefinitionData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyDefinitionData.cs index e04bfe0a0a1e5..6689f9af87fb4 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyDefinitionData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyDefinitionData.cs @@ -83,12 +83,16 @@ internal PolicyDefinitionData(ResourceIdentifier id, string name, ResourceType r } /// The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. + [WirePath("properties.policyType")] public PolicyType? PolicyType { get; set; } /// The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data. + [WirePath("properties.mode")] public string Mode { get; set; } /// The display name of the policy definition. + [WirePath("properties.displayName")] public string DisplayName { get; set; } /// The policy definition description. + [WirePath("properties.description")] public string Description { get; set; } /// /// The policy rule. @@ -120,6 +124,7 @@ internal PolicyDefinitionData(ResourceIdentifier id, string name, ResourceType r /// /// /// + [WirePath("properties.policyRule")] public BinaryData PolicyRule { get; set; } /// /// The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. @@ -151,8 +156,10 @@ internal PolicyDefinitionData(ResourceIdentifier id, string name, ResourceType r /// /// /// + [WirePath("properties.metadata")] public BinaryData Metadata { get; set; } /// The parameter definitions for parameters used in the policy rule. The keys are the parameter names. + [WirePath("properties.parameters")] public IDictionary Parameters { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicySetDefinitionData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicySetDefinitionData.cs index 6ef0042b403c6..22dae46c74cfe 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicySetDefinitionData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicySetDefinitionData.cs @@ -85,10 +85,13 @@ internal PolicySetDefinitionData(ResourceIdentifier id, string name, ResourceTyp } /// The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. + [WirePath("properties.policyType")] public PolicyType? PolicyType { get; set; } /// The display name of the policy set definition. + [WirePath("properties.displayName")] public string DisplayName { get; set; } /// The policy set definition description. + [WirePath("properties.description")] public string Description { get; set; } /// /// The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. @@ -120,12 +123,16 @@ internal PolicySetDefinitionData(ResourceIdentifier id, string name, ResourceTyp /// /// /// + [WirePath("properties.metadata")] public BinaryData Metadata { get; set; } /// The policy set definition parameters that can be used in policy definition references. + [WirePath("properties.parameters")] public IDictionary Parameters { get; } /// An array of policy definition references. + [WirePath("properties.policyDefinitions")] public IList PolicyDefinitions { get; } /// The metadata describing groups of policy definition references within the policy set definition. + [WirePath("properties.policyDefinitionGroups")] public IList PolicyDefinitionGroups { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceGroupData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceGroupData.cs index 6459ab2281aa2..86a684655ca7b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceGroupData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceGroupData.cs @@ -82,12 +82,14 @@ internal ResourceGroupData() /// The resource group properties. internal ResourceGroupProperties Properties { get; set; } /// The provisioning state. + [WirePath("properties.provisioningState")] public string ResourceGroupProvisioningState { get => Properties is null ? default : Properties.ProvisioningState; } /// The ID of the resource that manages this resource group. + [WirePath("managedBy")] public string ManagedBy { get; set; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceProviderData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceProviderData.cs index f55aac05fec99..e18d3655a2554 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceProviderData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceProviderData.cs @@ -69,14 +69,19 @@ internal ResourceProviderData(ResourceIdentifier id, string @namespace, string r _serializedAdditionalRawData = serializedAdditionalRawData; } /// The namespace of the resource provider. + [WirePath("namespace")] public string Namespace { get; } /// The registration state of the resource provider. + [WirePath("registrationState")] public string RegistrationState { get; } /// The registration policy of the resource provider. + [WirePath("registrationPolicy")] public string RegistrationPolicy { get; } /// The collection of provider resource types. + [WirePath("resourceTypes")] public IReadOnlyList ResourceTypes { get; } /// The provider authorization consent state. + [WirePath("providerAuthorizationConsentState")] public ProviderAuthorizationConsentState? ProviderAuthorizationConsentState { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionData.cs index bd4f09422e15a..02537ef7b60a0 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionData.cs @@ -82,20 +82,28 @@ internal SubscriptionData(ResourceIdentifier id, string subscriptionId, string d _serializedAdditionalRawData = serializedAdditionalRawData; } /// The subscription ID. + [WirePath("subscriptionId")] public string SubscriptionId { get; } /// The subscription display name. + [WirePath("displayName")] public string DisplayName { get; } /// The subscription tenant ID. + [WirePath("tenantId")] public Guid? TenantId { get; } /// The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. + [WirePath("state")] public SubscriptionState? State { get; } /// The subscription policies. + [WirePath("subscriptionPolicies")] public SubscriptionPolicies SubscriptionPolicies { get; } /// The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. + [WirePath("authorizationSource")] public string AuthorizationSource { get; } /// An array containing the tenants managing the subscription. + [WirePath("managedByTenants")] public IReadOnlyList ManagedByTenants { get; } /// The tags attached to the subscription. + [WirePath("tags")] public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TagResourceData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TagResourceData.cs index 38ff04f76eb77..8bda3dfa58ab6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TagResourceData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TagResourceData.cs @@ -82,6 +82,7 @@ internal TagResourceData() /// The set of tags. internal Tag Properties { get; set; } /// Dictionary of <string>. + [WirePath("properties.tags")] public IDictionary TagValues { get diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantData.cs index 9a5100a772488..4376c71f298d7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantData.cs @@ -84,24 +84,34 @@ internal TenantData(string id, Guid? tenantId, TenantCategory? tenantCategory, s } /// The fully qualified ID of the tenant. For example, /tenants/8d65815f-a5b6-402f-9298-045155da7d74. + [WirePath("id")] public string Id { get; } /// The tenant ID. For example, 8d65815f-a5b6-402f-9298-045155da7d74. + [WirePath("tenantId")] public Guid? TenantId { get; } /// Category of the tenant. + [WirePath("tenantCategory")] public TenantCategory? TenantCategory { get; } /// Country/region name of the address for the tenant. + [WirePath("country")] public string Country { get; } /// Country/region abbreviation for the tenant. + [WirePath("countryCode")] public string CountryCode { get; } /// The display name of the tenant. + [WirePath("displayName")] public string DisplayName { get; } /// The list of domains for the tenant. + [WirePath("domains")] public IReadOnlyList Domains { get; } /// The default domain for the tenant. + [WirePath("defaultDomain")] public string DefaultDomain { get; } /// The tenant type. Only available for 'Home' tenant category. + [WirePath("tenantType")] public string TenantType { get; } /// The tenant's branding logo URL. Only available for 'Home' tenant category. + [WirePath("tenantBrandingLogoUrl")] public Uri TenantBrandingLogoUri { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationData.cs index ec8fc0f3ccbea..525452845195a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationData.cs @@ -88,14 +88,19 @@ internal ArmApplicationData() } /// The plan information. + [WirePath("plan")] public ArmPlan Plan { get; set; } /// The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. + [WirePath("kind")] public string Kind { get; set; } /// The identity of the resource. + [WirePath("identity")] public ArmApplicationManagedIdentity Identity { get; set; } /// The managed resource group Id. + [WirePath("properties.managedResourceGroupId")] public ResourceIdentifier ManagedResourceGroupId { get; set; } /// The fully qualified path of managed application definition Id. + [WirePath("properties.applicationDefinitionId")] public ResourceIdentifier ApplicationDefinitionId { get; set; } /// /// Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. @@ -127,6 +132,7 @@ internal ArmApplicationData() /// /// /// + [WirePath("properties.parameters")] public BinaryData Parameters { get; set; } /// /// Name and value pairs that define the managed application outputs. @@ -158,34 +164,46 @@ internal ArmApplicationData() /// /// /// + [WirePath("properties.outputs")] public BinaryData Outputs { get; } /// The managed application provisioning state. + [WirePath("properties.provisioningState")] public ResourcesProvisioningState? ProvisioningState { get; } /// The managed application billing details. internal ArmApplicationBillingDetails BillingDetails { get; } /// The managed application resource usage Id. + [WirePath("properties.billingDetails.resourceUsageId")] public string BillingDetailsResourceUsageId { get => BillingDetails?.ResourceUsageId; } /// The managed application Jit access policy. + [WirePath("properties.jitAccessPolicy")] public ArmApplicationJitAccessPolicy JitAccessPolicy { get; set; } /// The publisher tenant Id. + [WirePath("properties.publisherTenantId")] public Guid? PublisherTenantId { get; } /// The read-only authorizations property that is retrieved from the application package. + [WirePath("properties.authorizations")] public IReadOnlyList Authorizations { get; } /// The managed application management mode. + [WirePath("properties.managementMode")] public ArmApplicationManagementMode? ManagementMode { get; } /// The read-only customer support property that is retrieved from the application package. + [WirePath("properties.customerSupport")] public ArmApplicationPackageContact CustomerSupport { get; } /// The read-only support URLs property that is retrieved from the application package. + [WirePath("properties.supportUrls")] public ArmApplicationPackageSupportUris SupportUris { get; } /// The collection of managed application artifacts. + [WirePath("properties.artifacts")] public IReadOnlyList Artifacts { get; } /// The client entity that created the JIT request. + [WirePath("properties.createdBy")] public ArmApplicationDetails CreatedBy { get; } /// The client entity that last updated the JIT request. + [WirePath("properties.updatedBy")] public ArmApplicationDetails UpdatedBy { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionData.cs index 3d5155ef1ebd8..935457ade2ba0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionData.cs @@ -78,18 +78,25 @@ internal ArmApplicationDefinitionData() } /// The managed application lock level. + [WirePath("properties.lockLevel")] public ArmApplicationLockLevel LockLevel { get; set; } /// The managed application definition display name. + [WirePath("properties.displayName")] public string DisplayName { get; set; } /// A value indicating whether the package is enabled or not. + [WirePath("properties.isEnabled")] public bool? IsEnabled { get; set; } /// The managed application provider authorizations. + [WirePath("properties.authorizations")] public IList Authorizations { get; } /// The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. + [WirePath("properties.artifacts")] public IList Artifacts { get; } /// The managed application definition description. + [WirePath("properties.description")] public string Description { get; set; } /// The managed application definition package file Uri. Use this element. + [WirePath("properties.packageFileUri")] public Uri PackageFileUri { get; set; } /// /// The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. @@ -121,6 +128,7 @@ internal ArmApplicationDefinitionData() /// /// /// + [WirePath("properties.mainTemplate")] public BinaryData MainTemplate { get; set; } /// /// The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. @@ -152,10 +160,12 @@ internal ArmApplicationDefinitionData() /// /// /// + [WirePath("properties.createUiDefinition")] public BinaryData CreateUiDefinition { get; set; } /// The managed application notification policy. internal ArmApplicationNotificationPolicy NotificationPolicy { get; set; } /// The managed application notification endpoint. + [WirePath("properties.notificationPolicy.notificationEndpoints")] public IList NotificationEndpoints { get => NotificationPolicy is null ? default : NotificationPolicy.NotificationEndpoints; @@ -163,6 +173,7 @@ public IList NotificationEndpoints } /// The managed application locking policy. + [WirePath("properties.lockingPolicy")] public ArmApplicationPackageLockingPolicy LockingPolicy { get; set; } /// The managed application deployment policy. internal ArmApplicationDeploymentPolicy DeploymentPolicy { get; set; } @@ -170,6 +181,7 @@ public IList NotificationEndpoints /// The managed application management policy that determines publisher's access to the managed resource group. internal ArmApplicationManagementPolicy ManagementPolicy { get; set; } /// The managed application management mode. + [WirePath("properties.managementPolicy.mode")] public ArmApplicationManagementMode? ManagementMode { get => ManagementPolicy is null ? default : ManagementPolicy.Mode; @@ -182,6 +194,7 @@ public ArmApplicationManagementMode? ManagementMode } /// The managed application provider policies. + [WirePath("properties.policies")] public IList Policies { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentData.cs index 2538a123c08cc..a30e878939918 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentData.cs @@ -75,10 +75,13 @@ internal ArmDeploymentData(ResourceIdentifier id, string name, ResourceType reso } /// the location of the deployment. + [WirePath("location")] public AzureLocation? Location { get; } /// Deployment properties. + [WirePath("properties")] public ArmDeploymentPropertiesExtended Properties { get; } /// Deployment tags. + [WirePath("tags")] public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptData.cs index e27e5918a6ed6..fd85d3f3f9d89 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptData.cs @@ -86,10 +86,13 @@ internal ArmDeploymentScriptData() } /// Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported. + [WirePath("identity")] public ArmDeploymentScriptManagedIdentity Identity { get; set; } /// The location of the ACI and the storage account for the deployment script. + [WirePath("location")] public AzureLocation Location { get; set; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Type of the script. internal ScriptType Kind { get; set; } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Internal/WirePathAttribute.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..4b7cb3247b431 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Resources +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestData.cs index ba7891273b700..061017fb88ecf 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestData.cs @@ -93,20 +93,28 @@ internal JitRequestData() } /// The parent application id. + [WirePath("properties.applicationResourceId")] public string ApplicationResourceId { get; set; } /// The publisher tenant id. + [WirePath("properties.publisherTenantId")] public Guid? PublisherTenantId { get; } /// The JIT authorization policies. + [WirePath("properties.jitAuthorizationPolicies")] public IList JitAuthorizationPolicies { get; } /// The JIT request properties. + [WirePath("properties.jitSchedulingPolicy")] public JitSchedulingPolicy JitSchedulingPolicy { get; set; } /// The JIT request provisioning state. + [WirePath("properties.provisioningState")] public ResourcesProvisioningState? ProvisioningState { get; } /// The JIT request state. + [WirePath("properties.jitRequestState")] public JitRequestState? JitRequestState { get; } /// The client entity that created the JIT request. + [WirePath("properties.createdBy")] public ArmApplicationDetails CreatedBy { get; } /// The client entity that last updated the JIT request. + [WirePath("properties.updatedBy")] public ArmApplicationDetails UpdatedBy { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.cs index d2fdd1a74cc66..7b5dfef246cc1 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.cs @@ -79,10 +79,13 @@ internal ArmApplicationArtifact() } /// The managed application artifact name. + [WirePath("name")] public ArmApplicationArtifactName Name { get; } /// The managed application artifact blob uri. + [WirePath("uri")] public Uri Uri { get; } /// The managed application artifact type. + [WirePath("type")] public ArmApplicationArtifactType ArtifactType { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.cs index 3e8a01b5854dc..94e9072438683 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.cs @@ -75,8 +75,10 @@ internal ArmApplicationAuthorization() } /// The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. + [WirePath("principalId")] public Guid PrincipalId { get; set; } /// The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. + [WirePath("roleDefinitionId")] public string RoleDefinitionId { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.cs index e469cd45d0d6b..a77b8421e8f8a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.cs @@ -60,6 +60,7 @@ internal ArmApplicationBillingDetails(string resourceUsageId, IDictionary The managed application resource usage Id. + [WirePath("resourceUsageId")] public string ResourceUsageId { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationData.Serialization.cs index 97d6a4942be71..a40339a0d3c3a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationData.Serialization.cs @@ -564,7 +564,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.cs index 63f8443c17509..30272e32d19b5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.cs @@ -79,10 +79,13 @@ internal ArmApplicationDefinitionArtifact() } /// The managed application definition artifact name. + [WirePath("name")] public ArmApplicationDefinitionArtifactName Name { get; set; } /// The managed application definition artifact blob uri. + [WirePath("uri")] public Uri Uri { get; set; } /// The managed application definition artifact type. + [WirePath("type")] public ArmApplicationArtifactType ArtifactType { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionData.Serialization.cs index b172f9debc428..2fc8e9e3259d8 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionData.Serialization.cs @@ -506,7 +506,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.cs index cddbb6190abb2..3c12ef90c28f9 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.cs @@ -67,6 +67,7 @@ internal ArmApplicationDeploymentPolicy() } /// The managed application deployment mode. + [WirePath("deploymentMode")] public ArmApplicationDeploymentMode DeploymentMode { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.cs index 0b4c48257c9f0..8bb3ad27f3dd2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.cs @@ -64,10 +64,13 @@ internal ArmApplicationDetails(Guid? objectId, string puid, Guid? applicationId, } /// The client Oid. + [WirePath("oid")] public Guid? ObjectId { get; } /// The client Puid. + [WirePath("puid")] public string Puid { get; } /// The client application Id. + [WirePath("applicationId")] public Guid? ApplicationId { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs index 331ebb6ed08d9..3357bdcc2da6a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs @@ -75,12 +75,16 @@ internal ArmApplicationJitAccessPolicy() } /// Whether the JIT access is enabled. + [WirePath("jitAccessEnabled")] public bool JitAccessEnabled { get; set; } /// JIT approval mode. + [WirePath("jitApprovalMode")] public JitApprovalMode? JitApprovalMode { get; set; } /// The JIT approvers. + [WirePath("jitApprovers")] public IList JitApprovers { get; } /// The maximum duration JIT access is granted. This is an ISO8601 time period value. + [WirePath("maximumJitAccessDuration")] public TimeSpan? MaximumJitAccessDuration { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.Serialization.cs index 25634d50d4d47..06fed9603104e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.Serialization.cs @@ -205,7 +205,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in UserAssignedIdentities) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 4, false); } builder.AppendLine(" }"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.cs index 5b8261a442026..988d8626fc390 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.cs @@ -68,12 +68,16 @@ internal ArmApplicationManagedIdentity(Guid? principalId, Guid? tenantId, ArmApp } /// The principal ID of resource identity. + [WirePath("principalId")] public Guid? PrincipalId { get; } /// The tenant ID of resource. + [WirePath("tenantId")] public Guid? TenantId { get; } /// The identity type. + [WirePath("type")] public ArmApplicationManagedIdentityType? IdentityType { get; set; } /// The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + [WirePath("userAssignedIdentities")] public IDictionary UserAssignedIdentities { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.cs index b3a656abf454d..f748521d97cf6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.cs @@ -60,6 +60,7 @@ internal ArmApplicationManagementPolicy(ArmApplicationManagementMode? mode, IDic } /// The managed application management mode. + [WirePath("mode")] public ArmApplicationManagementMode? Mode { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.cs index 24bb5f1160264..4aad47c77b7a2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.cs @@ -71,6 +71,7 @@ internal ArmApplicationNotificationEndpoint() } /// The managed application notification endpoint uri. + [WirePath("uri")] public Uri Uri { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.cs index 9b260eda067f5..28833e2ded284 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.cs @@ -72,6 +72,7 @@ internal ArmApplicationNotificationPolicy() } /// The managed application notification endpoint. + [WirePath("notificationEndpoints")] public IList NotificationEndpoints { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.cs index 1af54b6874f95..983f82788740f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.cs @@ -78,10 +78,13 @@ internal ArmApplicationPackageContact() } /// The contact name. + [WirePath("contactName")] public string ContactName { get; } /// The contact email. + [WirePath("email")] public string Email { get; } /// The contact phone number. + [WirePath("phone")] public string Phone { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs index 9f641fdf0e215..fa525e25d7d6b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs @@ -65,8 +65,10 @@ internal ArmApplicationPackageLockingPolicy(IList allowedActions, IList< } /// The deny assignment excluded actions. + [WirePath("allowedActions")] public IList AllowedActions { get; } /// The deny assignment excluded data actions. + [WirePath("allowedDataActions")] public IList AllowedDataActions { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUris.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUris.cs index 80ddda339e6c7..91ffd08be6832 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUris.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUris.cs @@ -62,8 +62,10 @@ internal ArmApplicationPackageSupportUris(Uri azurePublicCloudUri, Uri azureGove } /// The public azure support URL. + [WirePath("publicAzure")] public Uri AzurePublicCloudUri { get; } /// The government cloud support URL. + [WirePath("governmentCloud")] public Uri AzureGovernmentUri { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.Serialization.cs index 9c5725db2665b..2ef70c593f912 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.Serialization.cs @@ -566,7 +566,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.cs index 50d646830c2f3..0e645bc71edc4 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.cs @@ -79,14 +79,19 @@ internal ArmApplicationPatch() } /// The plan information. + [WirePath("plan")] public ArmPlan Plan { get; set; } /// The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. + [WirePath("kind")] public string Kind { get; set; } /// The identity of the resource. + [WirePath("identity")] public ArmApplicationManagedIdentity Identity { get; set; } /// The managed resource group Id. + [WirePath("properties.managedResourceGroupId")] public ResourceIdentifier ManagedResourceGroupId { get; set; } /// The fully qualified path of managed application definition Id. + [WirePath("properties.applicationDefinitionId")] public ResourceIdentifier ApplicationDefinitionId { get; set; } /// /// Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. @@ -118,6 +123,7 @@ internal ArmApplicationPatch() /// /// /// + [WirePath("properties.parameters")] public BinaryData Parameters { get; set; } /// /// Name and value pairs that define the managed application outputs. @@ -149,34 +155,46 @@ internal ArmApplicationPatch() /// /// /// + [WirePath("properties.outputs")] public BinaryData Outputs { get; } /// The managed application provisioning state. + [WirePath("properties.provisioningState")] public ResourcesProvisioningState? ProvisioningState { get; } /// The managed application billing details. internal ArmApplicationBillingDetails BillingDetails { get; } /// The managed application resource usage Id. + [WirePath("properties.billingDetails.resourceUsageId")] public string BillingDetailsResourceUsageId { get => BillingDetails?.ResourceUsageId; } /// The managed application Jit access policy. + [WirePath("properties.jitAccessPolicy")] public ArmApplicationJitAccessPolicy JitAccessPolicy { get; set; } /// The publisher tenant Id. + [WirePath("properties.publisherTenantId")] public Guid? PublisherTenantId { get; } /// The read-only authorizations property that is retrieved from the application package. + [WirePath("properties.authorizations")] public IReadOnlyList Authorizations { get; } /// The managed application management mode. + [WirePath("properties.managementMode")] public ArmApplicationManagementMode? ManagementMode { get; } /// The read-only customer support property that is retrieved from the application package. + [WirePath("properties.customerSupport")] public ArmApplicationPackageContact CustomerSupport { get; } /// The read-only support URLs property that is retrieved from the application package. + [WirePath("properties.supportUrls")] public ArmApplicationPackageSupportUris SupportUris { get; } /// The collection of managed application artifacts. + [WirePath("properties.artifacts")] public IReadOnlyList Artifacts { get; } /// The client entity that created the JIT request. + [WirePath("properties.createdBy")] public ArmApplicationDetails CreatedBy { get; } /// The client entity that last updated the JIT request. + [WirePath("properties.updatedBy")] public ArmApplicationDetails UpdatedBy { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.cs index 6725741c84ec4..8c8cf10c7c094 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.cs @@ -64,10 +64,13 @@ internal ArmApplicationPolicy(string name, string policyDefinitionId, string par } /// The policy name. + [WirePath("name")] public string Name { get; set; } /// The policy definition Id. + [WirePath("policyDefinitionId")] public string PolicyDefinitionId { get; set; } /// The policy parameters. + [WirePath("parameters")] public string Parameters { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResourceData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResourceData.Serialization.cs index 3765a43cc3d12..420a24bc11b0d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResourceData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResourceData.Serialization.cs @@ -251,7 +251,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResourceData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResourceData.cs index 272c98ac2acdd..59d660fc9bbd5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResourceData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResourceData.cs @@ -76,8 +76,10 @@ internal ArmApplicationResourceData() } /// ID of the resource that manages this resource. + [WirePath("managedBy")] public string ManagedBy { get; set; } /// The SKU of the resource. + [WirePath("sku")] public ArmApplicationSku Sku { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.cs index d2a65df03486b..059972f32afc9 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.cs @@ -81,16 +81,22 @@ internal ArmApplicationSku() } /// The SKU name. + [WirePath("name")] public string Name { get; set; } /// The SKU tier. + [WirePath("tier")] public string Tier { get; set; } /// The SKU size. + [WirePath("size")] public string Size { get; set; } /// The SKU family. + [WirePath("family")] public string Family { get; set; } /// The SKU model. + [WirePath("model")] public string Model { get; set; } /// The SKU capacity. + [WirePath("capacity")] public int? Capacity { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs index cd4e9c130ffda..54ee42fb95aa9 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs @@ -62,8 +62,10 @@ internal ArmApplicationUserAssignedIdentity(Guid? principalId, Guid? tenantId, I } /// The principal id of user assigned identity. + [WirePath("principalId")] public Guid? PrincipalId { get; } /// The tenant id of user assigned identity. + [WirePath("tenantId")] public Guid? TenantId { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs index bc6f01f55c9eb..b8826c1c3d6fe 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs @@ -68,12 +68,16 @@ internal ArmDependency(IReadOnlyList dependsOn, string id, R } /// The list of dependencies. + [WirePath("dependsOn")] public IReadOnlyList DependsOn { get; } /// The ID of the dependency. + [WirePath("id")] public string Id { get; } /// The dependency resource type. + [WirePath("resourceType")] public ResourceType? ResourceType { get; } /// The dependency resource name. + [WirePath("resourceName")] public string ResourceName { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentContent.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentContent.cs index f50c6c2b03f54..c740e09864cd8 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentContent.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentContent.cs @@ -76,10 +76,13 @@ internal ArmDeploymentContent() } /// The location to store the deployment data. + [WirePath("location")] public AzureLocation? Location { get; set; } /// The deployment properties. + [WirePath("properties")] public ArmDeploymentProperties Properties { get; } /// Deployment tags. + [WirePath("tags")] public IDictionary Tags { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentData.Serialization.cs index a03e2662549c9..ea7cb93cf1c5e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentData.Serialization.cs @@ -248,7 +248,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.cs index 3dec517009fa1..fb411efbad5f3 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.cs @@ -89,6 +89,7 @@ internal ArmDeploymentExportResult(BinaryData template, IDictionary /// /// + [WirePath("template")] public BinaryData Template { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.cs index b591add180fe9..53e1e059132fd 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.cs @@ -64,10 +64,13 @@ internal ArmDeploymentOperation(string id, string operationId, ArmDeploymentOper } /// Full deployment operation ID. + [WirePath("id")] public string Id { get; } /// Deployment operation ID. + [WirePath("operationId")] public string OperationId { get; } /// Deployment properties. + [WirePath("properties")] public ArmDeploymentOperationProperties Properties { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.cs index d82152a089cd1..e594892448df3 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.cs @@ -78,20 +78,28 @@ internal ArmDeploymentOperationProperties(ProvisioningOperationKind? provisionin } /// The name of the current provisioning operation. + [WirePath("provisioningOperation")] public ProvisioningOperationKind? ProvisioningOperation { get; } /// The state of the provisioning. + [WirePath("provisioningState")] public string ProvisioningState { get; } /// The date and time of the operation. + [WirePath("timestamp")] public DateTimeOffset? Timestamp { get; } /// The duration of the operation. + [WirePath("duration")] public TimeSpan? Duration { get; } /// Deployment operation service request id. + [WirePath("serviceRequestId")] public string ServiceRequestId { get; } /// Operation status code from the resource provider. This property may not be set if a response has not yet been received. + [WirePath("statusCode")] public string StatusCode { get; } /// Operation status message from the resource provider. This property is optional. It will only be provided if an error was received from the resource provider. + [WirePath("statusMessage")] public StatusMessage StatusMessage { get; } /// The target resource. + [WirePath("targetResource")] public TargetResource TargetResource { get; } /// The HTTP request message. internal HttpMessage Request { get; } @@ -125,6 +133,7 @@ internal ArmDeploymentOperationProperties(ProvisioningOperationKind? provisionin /// /// /// + [WirePath("request.content")] public BinaryData RequestContent { get => Request?.Content; @@ -162,6 +171,7 @@ public BinaryData RequestContent /// /// /// + [WirePath("response.content")] public BinaryData ResponseContent { get => Response?.Content; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentParametersLink.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentParametersLink.cs index d5488a02308e9..3e96704bae877 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentParametersLink.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentParametersLink.cs @@ -73,8 +73,10 @@ internal ArmDeploymentParametersLink() } /// The URI of the parameters file. + [WirePath("uri")] public Uri Uri { get; set; } /// If included, must match the ContentVersion in the template. + [WirePath("contentVersion")] public string ContentVersion { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.cs index 47386d60ed999..2a3851d4dca0d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.cs @@ -110,8 +110,10 @@ internal ArmDeploymentProperties() /// /// /// + [WirePath("template")] public BinaryData Template { get; set; } /// The URI of the template. Use either the templateLink property or the template property, but not both. + [WirePath("templateLink")] public ArmDeploymentTemplateLink TemplateLink { get; set; } /// /// Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. @@ -143,14 +145,18 @@ internal ArmDeploymentProperties() /// /// /// + [WirePath("parameters")] public BinaryData Parameters { get; set; } /// The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. + [WirePath("parametersLink")] public ArmDeploymentParametersLink ParametersLink { get; set; } /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + [WirePath("mode")] public ArmDeploymentMode Mode { get; } /// The debug setting of the deployment. internal DebugSetting DebugSetting { get; set; } /// Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. + [WirePath("debugSetting.detailLevel")] public string DebugSettingDetailLevel { get => DebugSetting is null ? default : DebugSetting.DetailLevel; @@ -163,10 +169,12 @@ public string DebugSettingDetailLevel } /// The deployment on error behavior. + [WirePath("onErrorDeployment")] public ErrorDeployment ErrorDeployment { get; set; } /// Specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable to nested templates. If not specified, default value is outer. internal ExpressionEvaluationOptions ExpressionEvaluation { get; set; } /// The scope to be used for evaluation of parameters, variables and functions in a nested template. + [WirePath("expressionEvaluationOptions.scope")] public ExpressionEvaluationScope? ExpressionEvaluationScope { get => ExpressionEvaluation is null ? default : ExpressionEvaluation.Scope; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs index c0ddb68dd92cd..15bf4c7a833a5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs @@ -99,12 +99,16 @@ internal ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisionin } /// Denotes the state of provisioning. + [WirePath("provisioningState")] public ResourcesProvisioningState? ProvisioningState { get; } /// The correlation ID of the deployment. + [WirePath("correlationId")] public string CorrelationId { get; } /// The timestamp of the template deployment. + [WirePath("timestamp")] public DateTimeOffset? Timestamp { get; } /// The duration of the template deployment. + [WirePath("duration")] public TimeSpan? Duration { get; } /// /// Key/value pairs that represent deployment output. @@ -136,12 +140,16 @@ internal ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisionin /// /// /// + [WirePath("outputs")] public BinaryData Outputs { get; } /// The list of resource providers needed for the deployment. + [WirePath("providers")] public IReadOnlyList Providers { get; } /// The list of deployment dependencies. + [WirePath("dependencies")] public IReadOnlyList Dependencies { get; } /// The URI referencing the template. + [WirePath("templateLink")] public ArmDeploymentTemplateLink TemplateLink { get; } /// /// Deployment parameters. @@ -173,23 +181,31 @@ internal ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisionin /// /// /// + [WirePath("parameters")] public BinaryData Parameters { get; } /// The URI referencing the parameters. + [WirePath("parametersLink")] public ArmDeploymentParametersLink ParametersLink { get; } /// The deployment mode. Possible values are Incremental and Complete. + [WirePath("mode")] public ArmDeploymentMode? Mode { get; } /// The debug setting of the deployment. internal DebugSetting DebugSetting { get; } /// The deployment on error behavior. + [WirePath("onErrorDeployment")] public ErrorDeploymentExtended ErrorDeployment { get; } /// The hash produced for the template. + [WirePath("templateHash")] public string TemplateHash { get; } /// Array of provisioned resources. + [WirePath("outputResources")] public IReadOnlyList OutputResources { get; } /// Array of validated resources. + [WirePath("validatedResources")] public IReadOnlyList ValidatedResources { get; } /// The deployment error. + [WirePath("error")] public ResponseError Error { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptData.Serialization.cs index 2cb6118d26c23..9289a89050a2d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptData.Serialization.cs @@ -181,7 +181,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.Serialization.cs index 8b3790b6caa4e..7d70159ab9bd6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.Serialization.cs @@ -177,7 +177,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in UserAssignedIdentities) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 4, false); } builder.AppendLine(" }"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs index f7dda02a2f7ad..c56357f3556fd 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs @@ -67,10 +67,13 @@ internal ArmDeploymentScriptManagedIdentity(ArmDeploymentScriptManagedIdentityTy } /// Type of the managed identity. + [WirePath("type")] public ArmDeploymentScriptManagedIdentityType? IdentityType { get; set; } /// ID of the Azure Active Directory. + [WirePath("tenantId")] public Guid? TenantId { get; } /// The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity. + [WirePath("userAssignedIdentities")] public IDictionary UserAssignedIdentities { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPatch.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPatch.Serialization.cs index ba734b634c912..11770e4631114 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPatch.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPatch.Serialization.cs @@ -203,7 +203,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPatch.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPatch.cs index 6f3415c6f3260..afe9546dfe875 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPatch.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPatch.cs @@ -67,6 +67,7 @@ internal ArmDeploymentScriptPatch(ResourceIdentifier id, string name, ResourceTy } /// Resource tags to be updated. + [WirePath("tags")] public IDictionary Tags { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentTemplateLink.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentTemplateLink.cs index fe0d4c0179597..d838eb369d712 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentTemplateLink.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentTemplateLink.cs @@ -68,14 +68,19 @@ internal ArmDeploymentTemplateLink(Uri uri, string id, string relativePath, stri } /// The URI of the template to deploy. Use either the uri or id property, but not both. + [WirePath("uri")] public Uri Uri { get; set; } /// The resource id of a Template Spec. Use either the id or uri property, but not both. + [WirePath("id")] public string Id { get; set; } /// The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs. + [WirePath("relativePath")] public string RelativePath { get; set; } /// If included, must match the ContentVersion in the template. + [WirePath("contentVersion")] public string ContentVersion { get; set; } /// The query string (for example, a SAS token) to be used with the templateLink URI. + [WirePath("queryString")] public string QueryString { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.cs index 7229d7370955e..cf83345e9a800 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.cs @@ -63,8 +63,10 @@ internal ArmDeploymentValidateResult(ResponseError error, ArmDeploymentPropertie } /// The deployment validation error. + [WirePath("error")] public ResponseError Error { get; } /// The template deployment properties. + [WirePath("properties")] public ArmDeploymentPropertiesExtended Properties { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfContent.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfContent.cs index 7adb84c6ef34c..b8a5f7da619b5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfContent.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfContent.cs @@ -73,8 +73,10 @@ internal ArmDeploymentWhatIfContent() } /// The location to store the deployment data, only required at the tenant and management group scope. + [WirePath("location")] public AzureLocation? Location { get; set; } /// The deployment properties. + [WirePath("properties")] public ArmDeploymentWhatIfProperties Properties { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.cs index 0e68a8e5554be..9edb569f0ef7b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.cs @@ -43,6 +43,7 @@ internal ArmDeploymentWhatIfProperties() /// Optional What-If operation settings. internal ArmDeploymentWhatIfSettings WhatIfSettings { get; set; } /// The format of the What-If results. + [WirePath("whatIfSettings.resultFormat")] public WhatIfResultFormat? WhatIfResultFormat { get => WhatIfSettings is null ? default : WhatIfSettings.ResultFormat; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.cs index 0143b300e300d..6eb2c288fa54c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.cs @@ -60,6 +60,7 @@ internal ArmDeploymentWhatIfSettings(WhatIfResultFormat? resultFormat, IDictiona } /// The format of the What-If results. + [WirePath("resultFormat")] public WhatIfResultFormat? ResultFormat { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.Serialization.cs index 8c1fc4ef02e71..3a423b9dd1d4c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.Serialization.cs @@ -501,7 +501,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.cs index f5f1975d9c584..64f9c8b5cd97f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.cs @@ -85,6 +85,7 @@ internal AzureCliScript() /// Container settings. internal ContainerConfiguration ContainerSettings { get; set; } /// Container group name, if not specified then the name will get auto-generated. Not specifying a 'containerGroupName' indicates the system to generate a unique name which might end up flagging an Azure Policy as non-compliant. Use 'containerGroupName' when you have an Azure Policy that expects a specific naming convention or when you want to fully control the name. 'containerGroupName' property must be between 1 and 63 characters long, must contain only lowercase letters, numbers, and dashes and it cannot start or end with a dash and consecutive dashes are not allowed. To specify a 'containerGroupName', add the following object to properties: { "containerSettings": { "containerGroupName": "contoso-container" } }. If you do not want to specify a 'containerGroupName' then do not add 'containerSettings' property. + [WirePath("properties.containerSettings.containerGroupName")] public string ContainerGroupName { get => ContainerSettings is null ? default : ContainerSettings.ContainerGroupName; @@ -97,12 +98,16 @@ public string ContainerGroupName } /// Storage Account settings. + [WirePath("properties.storageAccountSettings")] public ScriptStorageConfiguration StorageAccountSettings { get; set; } /// The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. + [WirePath("properties.cleanupPreference")] public ScriptCleanupOptions? CleanupPreference { get; set; } /// State of the script execution. This only appears in the response. + [WirePath("properties.provisioningState")] public ScriptProvisioningState? ProvisioningState { get; } /// Contains the results of script execution. + [WirePath("properties.status")] public ScriptStatus Status { get; } /// /// List of script outputs. @@ -134,24 +139,34 @@ public string ContainerGroupName /// /// /// + [WirePath("properties.outputs")] public BinaryData Outputs { get; } /// Uri for the script. This is the entry point for the external script. + [WirePath("properties.primaryScriptUri")] public Uri PrimaryScriptUri { get; set; } /// Supporting files for the external script. + [WirePath("properties.supportingScriptUris")] public IList SupportingScriptUris { get; } /// Script body. + [WirePath("properties.scriptContent")] public string ScriptContent { get; set; } /// Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2'. + [WirePath("properties.arguments")] public string Arguments { get; set; } /// The environment variables to pass over to the script. + [WirePath("properties.environmentVariables")] public IList EnvironmentVariables { get; } /// Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. + [WirePath("properties.forceUpdateTag")] public string ForceUpdateTag { get; set; } /// Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. Duration is based on ISO 8601 pattern (for example P1D means one day). + [WirePath("properties.retentionInterval")] public TimeSpan RetentionInterval { get; set; } /// Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D. + [WirePath("properties.timeout")] public TimeSpan? Timeout { get; set; } /// Azure CLI module version to be used. + [WirePath("properties.azCliVersion")] public string AzCliVersion { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.Serialization.cs index 8eff4d9beaead..dff785f92dcb0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.Serialization.cs @@ -501,7 +501,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.cs index 6587ec37d0371..3d07bb264b92d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.cs @@ -85,6 +85,7 @@ internal AzurePowerShellScript() /// Container settings. internal ContainerConfiguration ContainerSettings { get; set; } /// Container group name, if not specified then the name will get auto-generated. Not specifying a 'containerGroupName' indicates the system to generate a unique name which might end up flagging an Azure Policy as non-compliant. Use 'containerGroupName' when you have an Azure Policy that expects a specific naming convention or when you want to fully control the name. 'containerGroupName' property must be between 1 and 63 characters long, must contain only lowercase letters, numbers, and dashes and it cannot start or end with a dash and consecutive dashes are not allowed. To specify a 'containerGroupName', add the following object to properties: { "containerSettings": { "containerGroupName": "contoso-container" } }. If you do not want to specify a 'containerGroupName' then do not add 'containerSettings' property. + [WirePath("properties.containerSettings.containerGroupName")] public string ContainerGroupName { get => ContainerSettings is null ? default : ContainerSettings.ContainerGroupName; @@ -97,12 +98,16 @@ public string ContainerGroupName } /// Storage Account settings. + [WirePath("properties.storageAccountSettings")] public ScriptStorageConfiguration StorageAccountSettings { get; set; } /// The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. + [WirePath("properties.cleanupPreference")] public ScriptCleanupOptions? CleanupPreference { get; set; } /// State of the script execution. This only appears in the response. + [WirePath("properties.provisioningState")] public ScriptProvisioningState? ProvisioningState { get; } /// Contains the results of script execution. + [WirePath("properties.status")] public ScriptStatus Status { get; } /// /// List of script outputs. @@ -134,24 +139,34 @@ public string ContainerGroupName /// /// /// + [WirePath("properties.outputs")] public BinaryData Outputs { get; } /// Uri for the script. This is the entry point for the external script. + [WirePath("properties.primaryScriptUri")] public Uri PrimaryScriptUri { get; set; } /// Supporting files for the external script. + [WirePath("properties.supportingScriptUris")] public IList SupportingScriptUris { get; } /// Script body. + [WirePath("properties.scriptContent")] public string ScriptContent { get; set; } /// Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2'. + [WirePath("properties.arguments")] public string Arguments { get; set; } /// The environment variables to pass over to the script. + [WirePath("properties.environmentVariables")] public IList EnvironmentVariables { get; } /// Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID. + [WirePath("properties.forceUpdateTag")] public string ForceUpdateTag { get; set; } /// Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. Duration is based on ISO 8601 pattern (for example P1D means one day). + [WirePath("properties.retentionInterval")] public TimeSpan RetentionInterval { get; set; } /// Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D. + [WirePath("properties.timeout")] public TimeSpan? Timeout { get; set; } /// Azure PowerShell module version to be used. + [WirePath("properties.azPowerShellVersion")] public string AzPowerShellVersion { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/BasicArmDependency.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/BasicArmDependency.cs index b72bf93ddbcfe..47e7469569ad0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/BasicArmDependency.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/BasicArmDependency.cs @@ -65,10 +65,13 @@ internal BasicArmDependency(string id, ResourceType? resourceType, string resour } /// The ID of the dependency. + [WirePath("id")] public string Id { get; } /// The dependency resource type. + [WirePath("resourceType")] public ResourceType? ResourceType { get; } /// The dependency resource name. + [WirePath("resourceName")] public string ResourceName { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ContainerConfiguration.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ContainerConfiguration.cs index 8cc31bbfe0f06..bfa1fbe7d552e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ContainerConfiguration.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ContainerConfiguration.cs @@ -60,6 +60,7 @@ internal ContainerConfiguration(string containerGroupName, IDictionary Container group name, if not specified then the name will get auto-generated. Not specifying a 'containerGroupName' indicates the system to generate a unique name which might end up flagging an Azure Policy as non-compliant. Use 'containerGroupName' when you have an Azure Policy that expects a specific naming convention or when you want to fully control the name. 'containerGroupName' property must be between 1 and 63 characters long, must contain only lowercase letters, numbers, and dashes and it cannot start or end with a dash and consecutive dashes are not allowed. To specify a 'containerGroupName', add the following object to properties: { "containerSettings": { "containerGroupName": "contoso-container" } }. If you do not want to specify a 'containerGroupName' then do not add 'containerSettings' property. + [WirePath("containerGroupName")] public string ContainerGroupName { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DebugSetting.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DebugSetting.cs index ced14bfe31123..82eb1b3522653 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DebugSetting.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DebugSetting.cs @@ -60,6 +60,7 @@ internal DebugSetting(string detailLevel, IDictionary serial } /// Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. + [WirePath("detailLevel")] public string DetailLevel { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeployment.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeployment.cs index eaee2b54f70ce..7251ba4d11f95 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeployment.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeployment.cs @@ -62,8 +62,10 @@ internal ErrorDeployment(ErrorDeploymentType? deploymentType, string deploymentN } /// The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. + [WirePath("type")] public ErrorDeploymentType? DeploymentType { get; set; } /// The deployment to be used on error case. + [WirePath("deploymentName")] public string DeploymentName { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeploymentExtended.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeploymentExtended.cs index bfb2884f003af..a85dfe8690428 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeploymentExtended.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ErrorDeploymentExtended.cs @@ -64,10 +64,13 @@ internal ErrorDeploymentExtended(string provisioningState, ErrorDeploymentType? } /// The state of the provisioning for the on error deployment. + [WirePath("provisioningState")] public string ProvisioningState { get; } /// The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. + [WirePath("type")] public ErrorDeploymentType? DeploymentType { get; } /// The deployment to be used on error case. + [WirePath("deploymentName")] public string DeploymentName { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ExpressionEvaluationOptions.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ExpressionEvaluationOptions.cs index 2913f8daf0875..85b552927ed1e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ExpressionEvaluationOptions.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ExpressionEvaluationOptions.cs @@ -60,6 +60,7 @@ internal ExpressionEvaluationOptions(ExpressionEvaluationScope? scope, IDictiona } /// The scope to be used for evaluation of parameters, variables and functions in a nested template. + [WirePath("scope")] public ExpressionEvaluationScope? Scope { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/HttpMessage.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/HttpMessage.cs index 2d9df8d35fdab..6a9fab5565431 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/HttpMessage.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/HttpMessage.cs @@ -89,6 +89,7 @@ internal HttpMessage(BinaryData content, IDictionary seriali /// /// /// + [WirePath("content")] public BinaryData Content { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.cs index ea0bc867662ee..abfff38f8691b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.cs @@ -75,10 +75,13 @@ internal JitApprover() } /// The approver service principal Id. + [WirePath("id")] public string Id { get; set; } /// The approver type. + [WirePath("type")] public JitApproverType? ApproverType { get; set; } /// The approver display name. + [WirePath("displayName")] public string DisplayName { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.cs index d09b7a1d39dbd..0a91f54a6c2f3 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.cs @@ -75,8 +75,10 @@ internal JitAuthorizationPolicies() } /// The the principal id that will be granted JIT access. + [WirePath("principalId")] public Guid PrincipalId { get; set; } /// The role definition id that will be granted to the Principal. + [WirePath("roleDefinitionId")] public string RoleDefinitionId { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestData.Serialization.cs index 092aabcc33f7f..e2d58df67693c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestData.Serialization.cs @@ -367,7 +367,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestListResult.cs index 263c936a15e24..1f819154c1e23 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestListResult.cs @@ -65,8 +65,10 @@ internal JitRequestListResult(IReadOnlyList value, string nextLi } /// The array of Jit request definition. + [WirePath("value")] public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. + [WirePath("nextLink")] public string NextLink { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestPatch.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestPatch.cs index 3259b4a05e2e0..4d0cc1b91b1fc 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestPatch.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestPatch.cs @@ -62,6 +62,7 @@ internal JitRequestPatch(IDictionary tags, IDictionary Jit request tags. + [WirePath("tags")] public IDictionary Tags { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitSchedulingPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitSchedulingPolicy.cs index 535fd5c6ca2b4..83c6d82fd3caa 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitSchedulingPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitSchedulingPolicy.cs @@ -75,10 +75,13 @@ internal JitSchedulingPolicy() } /// The type of JIT schedule. + [WirePath("type")] public JitSchedulingType SchedulingType { get; } /// The required duration of the JIT request. + [WirePath("duration")] public TimeSpan Duration { get; set; } /// The start time of the request. + [WirePath("startTime")] public DateTimeOffset StartOn { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/LinkedTemplateArtifact.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/LinkedTemplateArtifact.cs index ad7957f25461d..a2d357dcbb01b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/LinkedTemplateArtifact.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/LinkedTemplateArtifact.cs @@ -76,6 +76,7 @@ internal LinkedTemplateArtifact() } /// A filesystem safe relative path of the artifact. + [WirePath("path")] public string Path { get; set; } /// /// The Azure Resource Manager template. @@ -107,6 +108,7 @@ internal LinkedTemplateArtifact() /// /// /// + [WirePath("template")] public BinaryData Template { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptEnvironmentVariable.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptEnvironmentVariable.cs index e01cfd7e41f71..9e4abd749de8a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptEnvironmentVariable.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptEnvironmentVariable.cs @@ -75,10 +75,13 @@ internal ScriptEnvironmentVariable() } /// The name of the environment variable. + [WirePath("name")] public string Name { get; set; } /// The value of the environment variable. + [WirePath("value")] public string Value { get; set; } /// The value of the secure environment variable. + [WirePath("secureValue")] public string SecureValue { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogsList.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogsList.cs index f916a35cbd84a..c9caddae34de9 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogsList.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogsList.cs @@ -63,6 +63,7 @@ internal ScriptLogsList(IReadOnlyList value, IDictionary Deployment scripts logs. + [WirePath("value")] public IReadOnlyList Value { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptStatus.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptStatus.cs index 62f9b513fa685..5622236eec8bc 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptStatus.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptStatus.cs @@ -71,16 +71,22 @@ internal ScriptStatus(string containerInstanceId, string storageAccountId, DateT } /// ACI resource Id. + [WirePath("containerInstanceId")] public string ContainerInstanceId { get; } /// Storage account resource Id. + [WirePath("storageAccountId")] public string StorageAccountId { get; } /// Start time of the script execution. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; } /// End time of the script execution. + [WirePath("endTime")] public DateTimeOffset? EndOn { get; } /// Time the deployment script resource will expire. + [WirePath("expirationTime")] public DateTimeOffset? ExpireOn { get; } /// Error that is relayed from the script execution. + [WirePath("error")] public ResponseError Error { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptStorageConfiguration.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptStorageConfiguration.cs index 7dd6232fb7669..3ba61011bb8a6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptStorageConfiguration.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptStorageConfiguration.cs @@ -62,8 +62,10 @@ internal ScriptStorageConfiguration(string storageAccountName, string storageAcc } /// The storage account name. + [WirePath("storageAccountName")] public string StorageAccountName { get; set; } /// The storage account access key. + [WirePath("storageAccountKey")] public string StorageAccountKey { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/StatusMessage.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/StatusMessage.cs index eb0385e835ad0..f0b26dabb532b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/StatusMessage.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/StatusMessage.cs @@ -63,8 +63,10 @@ internal StatusMessage(string status, ResponseError error, IDictionary Status of the deployment operation. + [WirePath("status")] public string Status { get; } /// The error reported by the operation. + [WirePath("error")] public ResponseError Error { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TargetResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TargetResource.cs index d3a6cf5747c77..53a27e2d0874b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TargetResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TargetResource.cs @@ -65,10 +65,13 @@ internal TargetResource(string id, string resourceName, ResourceType? resourceTy } /// The ID of the resource. + [WirePath("id")] public string Id { get; } /// The name of the resource. + [WirePath("resourceName")] public string ResourceName { get; } /// The type of the resource. + [WirePath("resourceType")] public ResourceType? ResourceType { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateHashResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateHashResult.cs index 2422652402df5..940008ec3e6d6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateHashResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateHashResult.cs @@ -62,8 +62,10 @@ internal TemplateHashResult(string minifiedTemplate, string templateHash, IDicti } /// The minified template string. + [WirePath("minifiedTemplate")] public string MinifiedTemplate { get; } /// The template hash. + [WirePath("templateHash")] public string TemplateHash { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecData.Serialization.cs index 21c3efced78bb..8e071fa312012 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecData.Serialization.cs @@ -311,7 +311,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); @@ -435,7 +435,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Versions) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecPatch.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecPatch.Serialization.cs index 448a57c0f46d6..8b9eb03cdf94d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecPatch.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecPatch.Serialization.cs @@ -203,7 +203,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecPatch.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecPatch.cs index 908b0ad4537cf..0400836f9a7a6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecPatch.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecPatch.cs @@ -67,6 +67,7 @@ internal TemplateSpecPatch(ResourceIdentifier id, string name, ResourceType reso } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionData.Serialization.cs index 2a59275bd235a..837a1c9bf2e2a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionData.Serialization.cs @@ -343,7 +343,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionInfo.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionInfo.cs index 2fad7a00705f7..12525188e0d87 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionInfo.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionInfo.cs @@ -64,10 +64,13 @@ internal TemplateSpecVersionInfo(string description, DateTimeOffset? timeCreated } /// Template Spec version description. + [WirePath("description")] public string Description { get; } /// The timestamp of when the version was created. + [WirePath("timeCreated")] public DateTimeOffset? TimeCreated { get; } /// The timestamp of when the version was last modified. + [WirePath("timeModified")] public DateTimeOffset? TimeModified { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionPatch.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionPatch.Serialization.cs index ef70e51e529a6..ec3975e2bfce5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionPatch.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionPatch.Serialization.cs @@ -203,7 +203,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionPatch.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionPatch.cs index 702b8cb251423..151a250c1361b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionPatch.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionPatch.cs @@ -67,6 +67,7 @@ internal TemplateSpecVersionPatch(ResourceIdentifier id, string name, ResourceTy } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UnknownArmDeploymentScript.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UnknownArmDeploymentScript.Serialization.cs index f8ecd602b89a0..1351adcce6593 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UnknownArmDeploymentScript.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UnknownArmDeploymentScript.Serialization.cs @@ -249,7 +249,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChange.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChange.cs index 38b3fa1e770bb..864185c8e6b39 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChange.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChange.cs @@ -84,10 +84,13 @@ internal WhatIfChange() } /// Resource ID. + [WirePath("resourceId")] public string ResourceId { get; } /// Type of change that will be made to the resource when the deployment is executed. + [WirePath("changeType")] public WhatIfChangeType ChangeType { get; } /// The explanation about why the resource is unsupported by What-If. + [WirePath("unsupportedReason")] public string UnsupportedReason { get; } /// /// The snapshot of the resource before the deployment is executed. @@ -119,6 +122,7 @@ internal WhatIfChange() /// /// /// + [WirePath("before")] public BinaryData Before { get; } /// /// The predicted snapshot of the resource after the deployment is executed. @@ -150,8 +154,10 @@ internal WhatIfChange() /// /// /// + [WirePath("after")] public BinaryData After { get; } /// The predicted changes to resource properties. + [WirePath("delta")] public IReadOnlyList Delta { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfOperationResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfOperationResult.cs index fc634538a8ea4..413bb2424d72e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfOperationResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfOperationResult.cs @@ -67,10 +67,13 @@ internal WhatIfOperationResult(string status, ResponseError error, IReadOnlyList } /// Status of the What-If operation. + [WirePath("status")] public string Status { get; } /// Error when What-If operation fails. + [WirePath("error")] public ResponseError Error { get; } /// List of resource changes predicted by What-If operation. + [WirePath("properties.changes")] public IReadOnlyList Changes { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChange.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChange.cs index f50a46c9db3ec..98b65b92e1d0c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChange.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChange.cs @@ -82,8 +82,10 @@ internal WhatIfPropertyChange() } /// The path of the property. + [WirePath("path")] public string Path { get; } /// The type of property change. + [WirePath("propertyChangeType")] public WhatIfPropertyChangeType PropertyChangeType { get; } /// /// The value of the property before the deployment is executed. @@ -115,6 +117,7 @@ internal WhatIfPropertyChange() /// /// /// + [WirePath("before")] public BinaryData Before { get; } /// /// The value of the property after the deployment is executed. @@ -146,8 +149,10 @@ internal WhatIfPropertyChange() /// /// /// + [WirePath("after")] public BinaryData After { get; } /// Nested property changes. + [WirePath("children")] public IReadOnlyList Children { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLogData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLogData.cs index be9d0ca95c3eb..da968129ee1ea 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLogData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLogData.cs @@ -69,6 +69,7 @@ internal ScriptLogData(ResourceIdentifier id, string name, ResourceType resource } /// Script execution logs in text format. + [WirePath("properties.log")] public string Log { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecData.cs index b48ef09c61784..a0ab4e7891400 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecData.cs @@ -89,12 +89,16 @@ internal TemplateSpecData() } /// The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations. + [WirePath("location")] public AzureLocation Location { get; set; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Template Spec description. + [WirePath("properties.description")] public string Description { get; set; } /// Template Spec display name. + [WirePath("properties.displayName")] public string DisplayName { get; set; } /// /// The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. @@ -126,8 +130,10 @@ internal TemplateSpecData() /// /// /// + [WirePath("properties.metadata")] public BinaryData Metadata { get; set; } /// High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'. + [WirePath("properties.versions")] public IReadOnlyDictionary Versions { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionData.cs index aa00067532988..a54ba52093386 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionData.cs @@ -91,12 +91,16 @@ internal TemplateSpecVersionData() } /// The location of the Template Spec Version. It must match the location of the parent Template Spec. + [WirePath("location")] public AzureLocation Location { get; set; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Template Spec version description. + [WirePath("properties.description")] public string Description { get; set; } /// An array of linked template artifacts. + [WirePath("properties.linkedTemplates")] public IList LinkedTemplates { get; } /// /// The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. @@ -128,6 +132,7 @@ internal TemplateSpecVersionData() /// /// /// + [WirePath("properties.metadata")] public BinaryData Metadata { get; set; } /// /// The main Azure Resource Manager template content. @@ -159,6 +164,7 @@ internal TemplateSpecVersionData() /// /// /// + [WirePath("properties.mainTemplate")] public BinaryData MainTemplate { get; set; } /// /// The Azure Resource Manager template UI definition content. @@ -190,6 +196,7 @@ internal TemplateSpecVersionData() /// /// /// + [WirePath("properties.uiFormDefinition")] public BinaryData UiFormDefinition { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/BackupShortTermRetentionPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/BackupShortTermRetentionPolicyData.cs index c114108d593a1..ceec2ba49b38d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/BackupShortTermRetentionPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/BackupShortTermRetentionPolicyData.cs @@ -72,8 +72,10 @@ internal BackupShortTermRetentionPolicyData(ResourceIdentifier id, string name, } /// The backup retention period in days. This is how many days Point-in-Time Restore will be supported. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases. + [WirePath("properties.diffBackupIntervalInHours")] public DiffBackupIntervalInHours? DiffBackupIntervalInHours { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicyData.cs index 38cfdac34eab2..c9d980fe97e4b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicyData.cs @@ -80,16 +80,22 @@ internal DataMaskingPolicyData(ResourceIdentifier id, string name, ResourceType } /// The location of the data masking policy. + [WirePath("location")] public AzureLocation? Location { get; } /// The kind of data masking policy. Metadata, used for Azure portal. + [WirePath("kind")] public string Kind { get; } /// The state of the data masking policy. + [WirePath("properties.dataMaskingState")] public DataMaskingState? DataMaskingState { get; set; } /// The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. + [WirePath("properties.exemptPrincipals")] public string ExemptPrincipals { get; set; } /// The list of the application principals. This is a legacy parameter and is no longer used. + [WirePath("properties.applicationPrincipals")] public string ApplicationPrincipals { get; } /// The masking level. This is a legacy parameter and is no longer used. + [WirePath("properties.maskingLevel")] public string MaskingLevel { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataWarehouseUserActivityData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataWarehouseUserActivityData.cs index 663c5f675ac3f..14af97890e412 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataWarehouseUserActivityData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataWarehouseUserActivityData.cs @@ -69,6 +69,7 @@ internal DataWarehouseUserActivityData(ResourceIdentifier id, string name, Resou } /// Count of running and suspended queries. + [WirePath("properties.activeQueriesCount")] public int? ActiveQueriesCount { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionData.cs index 757b8710eea86..a50ec13f236f9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionData.cs @@ -72,8 +72,10 @@ internal DatabaseAdvancedThreatProtectionData(ResourceIdentifier id, string name } /// Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. + [WirePath("properties.state")] public AdvancedThreatProtectionState? State { get; set; } /// Specifies the UTC creation time of the policy. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseColumnData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseColumnData.cs index 54d48fa5867b2..9d485295099dc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseColumnData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseColumnData.cs @@ -76,12 +76,16 @@ internal DatabaseColumnData(ResourceIdentifier id, string name, ResourceType res } /// The column data type. + [WirePath("properties.columnType")] public SqlColumnDataType? ColumnType { get; set; } /// The table temporal type. + [WirePath("properties.temporalType")] public TableTemporalType? TemporalType { get; set; } /// Whether or not the column belongs to a memory optimized table. + [WirePath("properties.memoryOptimized")] public bool? IsMemoryOptimized { get; set; } /// Whether or not the column is computed. + [WirePath("properties.isComputed")] public bool? IsComputed { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseTableData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseTableData.cs index 7d990a3cee704..f92a9c64fb279 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseTableData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseTableData.cs @@ -72,8 +72,10 @@ internal DatabaseTableData(ResourceIdentifier id, string name, ResourceType reso } /// The table temporal type. + [WirePath("properties.temporalType")] public TableTemporalType? TemporalType { get; set; } /// Whether or not the table is memory optimized. + [WirePath("properties.memoryOptimized")] public bool? IsMemoryOptimized { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseVulnerabilityAssessmentData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseVulnerabilityAssessmentData.cs index 380506d613853..56f12a5b32396 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseVulnerabilityAssessmentData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseVulnerabilityAssessmentData.cs @@ -76,12 +76,16 @@ internal DatabaseVulnerabilityAssessmentData(ResourceIdentifier id, string name, } /// A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set. + [WirePath("properties.storageContainerPath")] public string StorageContainerPath { get; set; } /// A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. + [WirePath("properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } /// Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// The recurring scans settings. + [WirePath("properties.recurringScans")] public VulnerabilityAssessmentRecurringScansProperties RecurringScans { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselineData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselineData.cs index 3a20fb0bf00a6..0f5567c9631a6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselineData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselineData.cs @@ -71,6 +71,7 @@ internal DatabaseVulnerabilityAssessmentRuleBaselineData(ResourceIdentifier id, } /// The rule baseline result. + [WirePath("properties.baselineResults")] public IList BaselineResults { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DeletedServerData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DeletedServerData.cs index 87b6358955b74..540cf0a93321a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DeletedServerData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DeletedServerData.cs @@ -75,12 +75,16 @@ internal DeletedServerData(ResourceIdentifier id, string name, ResourceType reso } /// The version of the deleted server. + [WirePath("properties.version")] public string Version { get; } /// The deletion time of the deleted server. + [WirePath("properties.deletionTime")] public DateTimeOffset? DeletedOn { get; } /// The original ID of the server before deletion. + [WirePath("properties.originalId")] public ResourceIdentifier OriginalId { get; } /// The fully qualified domain name of the server. + [WirePath("properties.fullyQualifiedDomainName")] public string FullyQualifiedDomainName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DistributedAvailabilityGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DistributedAvailabilityGroupData.cs index bee1bba66fa24..a47b5c99fdb05 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DistributedAvailabilityGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DistributedAvailabilityGroupData.cs @@ -88,24 +88,34 @@ internal DistributedAvailabilityGroupData(ResourceIdentifier id, string name, Re } /// The name of the target database. + [WirePath("properties.targetDatabase")] public string TargetDatabase { get; set; } /// The source endpoint. + [WirePath("properties.sourceEndpoint")] public string SourceEndpoint { get; set; } /// The primary availability group name. + [WirePath("properties.primaryAvailabilityGroupName")] public string PrimaryAvailabilityGroupName { get; set; } /// The secondary availability group name. + [WirePath("properties.secondaryAvailabilityGroupName")] public string SecondaryAvailabilityGroupName { get; set; } /// The replication mode of a distributed availability group. Parameter will be ignored during link creation. + [WirePath("properties.replicationMode")] public DistributedAvailabilityGroupReplicationMode? ReplicationMode { get; set; } /// The distributed availability group id. + [WirePath("properties.distributedAvailabilityGroupId")] public Guid? DistributedAvailabilityGroupId { get; } /// The source replica id. + [WirePath("properties.sourceReplicaId")] public Guid? SourceReplicaId { get; } /// The target replica id. + [WirePath("properties.targetReplicaId")] public Guid? TargetReplicaId { get; } /// The link state. + [WirePath("properties.linkState")] public string LinkState { get; } /// The last hardened lsn. + [WirePath("properties.lastHardenedLsn")] public string LastHardenedLsn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolData.cs index f3e5936b65e7a..9ae8cd94b2a7b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPoolData.cs @@ -120,30 +120,43 @@ internal ElasticPoolData() /// ```` /// /// + [WirePath("sku")] public SqlSku Sku { get; set; } /// Kind of elastic pool. This is metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// The state of the elastic pool. + [WirePath("properties.state")] public ElasticPoolState? State { get; } /// The creation date of the elastic pool (ISO8601 format). + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// The storage limit for the database elastic pool in bytes. + [WirePath("properties.maxSizeBytes")] public long? MaxSizeBytes { get; set; } /// Minimal capacity that serverless pool will not shrink below, if not paused. + [WirePath("properties.minCapacity")] public double? MinCapacity { get; set; } /// The per database settings for the elastic pool. + [WirePath("properties.perDatabaseSettings")] public ElasticPoolPerDatabaseSettings PerDatabaseSettings { get; set; } /// Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// The license type to apply for this elastic pool. + [WirePath("properties.licenseType")] public ElasticPoolLicenseType? LicenseType { get; set; } /// Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. + [WirePath("properties.maintenanceConfigurationId")] public ResourceIdentifier MaintenanceConfigurationId { get; set; } /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. + [WirePath("properties.highAvailabilityReplicaCount")] public int? HighAvailabilityReplicaCount { get; set; } /// Type of enclave requested on the elastic pool. + [WirePath("properties.preferredEnclaveType")] public SqlAlwaysEncryptedEnclaveType? PreferredEnclaveType { get; set; } /// Specifies the availability zone the pool's primary replica is pinned to. + [WirePath("properties.availabilityZone")] public SqlAvailabilityZoneType? AvailabilityZone { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EncryptionProtectorData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EncryptionProtectorData.cs index ece7c33a5b5e0..b8c7b134848cd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EncryptionProtectorData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EncryptionProtectorData.cs @@ -84,20 +84,28 @@ internal EncryptionProtectorData(ResourceIdentifier id, string name, ResourceTyp } /// Kind of encryption protector. This is metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// Resource location. + [WirePath("location")] public AzureLocation? Location { get; } /// Subregion of the encryption protector. + [WirePath("properties.subregion")] public string Subregion { get; } /// The name of the server key. + [WirePath("properties.serverKeyName")] public string ServerKeyName { get; set; } /// The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. + [WirePath("properties.serverKeyType")] public SqlServerKeyType? ServerKeyType { get; set; } /// The URI of the server key. + [WirePath("properties.uri")] public Uri Uri { get; } /// Thumbprint of the server key. + [WirePath("properties.thumbprint")] public string Thumbprint { get; } /// Key auto rotation opt-in flag. Either true or false. + [WirePath("properties.autoRotationEnabled")] public bool? IsAutoRotationEnabled { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EndpointCertificateData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EndpointCertificateData.cs index 977c3368bd998..72cdfd7e0eacf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EndpointCertificateData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EndpointCertificateData.cs @@ -69,6 +69,7 @@ internal EndpointCertificateData(ResourceIdentifier id, string name, ResourceTyp } /// The certificate public blob. + [WirePath("properties.publicBlob")] public string PublicBlob { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyData.cs index b863284e98122..68fec8ef725c7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyData.cs @@ -176,8 +176,10 @@ internal ExtendedDatabaseBlobAuditingPolicyData(ResourceIdentifier id, string na } /// Specifies condition of where clause when creating an audit. + [WirePath("properties.predicateExpression")] public string PredicateExpression { get; set; } /// Specifies the number of days to keep in the audit logs in the storage account. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// /// Specifies the Actions-Groups and Actions to audit. @@ -242,8 +244,10 @@ internal ExtendedDatabaseBlobAuditingPolicyData(ResourceIdentifier id, string na /// /// For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) /// + [WirePath("properties.auditActionsAndGroups")] public IList AuditActionsAndGroups { get; } /// Specifies whether storageAccountAccessKey value is the storage's secondary key. + [WirePath("properties.isStorageSecondaryKeyInUse")] public bool? IsStorageSecondaryKeyInUse { get; set; } /// /// Specifies whether audit events are sent to Azure Monitor. @@ -259,17 +263,22 @@ internal ExtendedDatabaseBlobAuditingPolicyData(ResourceIdentifier id, string na /// or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// /// + [WirePath("properties.isAzureMonitorTargetEnabled")] public bool? IsAzureMonitorTargetEnabled { get; set; } /// /// Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. /// The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. /// + [WirePath("properties.queueDelayMs")] public int? QueueDelayMs { get; set; } /// Specifies whether Managed Identity is used to access blob storage. + [WirePath("properties.isManagedIdentityInUse")] public bool? IsManagedIdentityInUse { get; set; } /// Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. + [WirePath("properties.state")] public BlobAuditingPolicyState? State { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// /// Specifies the identifier key of the auditing storage account. @@ -279,8 +288,10 @@ internal ExtendedDatabaseBlobAuditingPolicyData(ResourceIdentifier id, string na /// 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. /// For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the blob storage subscription Id. + [WirePath("properties.storageAccountSubscriptionId")] public Guid? StorageAccountSubscriptionId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedServerBlobAuditingPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedServerBlobAuditingPolicyData.cs index c73f20525a071..3ee69548deb9f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedServerBlobAuditingPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedServerBlobAuditingPolicyData.cs @@ -202,10 +202,13 @@ internal ExtendedServerBlobAuditingPolicyData(ResourceIdentifier id, string name /// or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// /// + [WirePath("properties.isDevopsAuditEnabled")] public bool? IsDevopsAuditEnabled { get; set; } /// Specifies condition of where clause when creating an audit. + [WirePath("properties.predicateExpression")] public string PredicateExpression { get; set; } /// Specifies the number of days to keep in the audit logs in the storage account. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// /// Specifies the Actions-Groups and Actions to audit. @@ -270,8 +273,10 @@ internal ExtendedServerBlobAuditingPolicyData(ResourceIdentifier id, string name /// /// For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) /// + [WirePath("properties.auditActionsAndGroups")] public IList AuditActionsAndGroups { get; } /// Specifies whether storageAccountAccessKey value is the storage's secondary key. + [WirePath("properties.isStorageSecondaryKeyInUse")] public bool? IsStorageSecondaryKeyInUse { get; set; } /// /// Specifies whether audit events are sent to Azure Monitor. @@ -287,17 +292,22 @@ internal ExtendedServerBlobAuditingPolicyData(ResourceIdentifier id, string name /// or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// /// + [WirePath("properties.isAzureMonitorTargetEnabled")] public bool? IsAzureMonitorTargetEnabled { get; set; } /// /// Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. /// The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. /// + [WirePath("properties.queueDelayMs")] public int? QueueDelayMs { get; set; } /// Specifies whether Managed Identity is used to access blob storage. + [WirePath("properties.isManagedIdentityInUse")] public bool? IsManagedIdentityInUse { get; set; } /// Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. + [WirePath("properties.state")] public BlobAuditingPolicyState? State { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// /// Specifies the identifier key of the auditing storage account. @@ -307,8 +317,10 @@ internal ExtendedServerBlobAuditingPolicyData(ResourceIdentifier id, string name /// 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. /// For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the blob storage subscription Id. + [WirePath("properties.storageAccountSubscriptionId")] public Guid? StorageAccountSubscriptionId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs index 25e4ce10110d1..1320e51e0261a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroupData.cs @@ -87,20 +87,28 @@ internal FailoverGroupData(ResourceIdentifier id, string name, ResourceType reso } /// Resource location. + [WirePath("location")] public AzureLocation? Location { get; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Read-write endpoint of the failover group instance. + [WirePath("properties.readWriteEndpoint")] public FailoverGroupReadWriteEndpoint ReadWriteEndpoint { get; set; } /// Read-only endpoint of the failover group instance. + [WirePath("properties.readOnlyEndpoint")] public FailoverGroupReadOnlyEndpoint ReadOnlyEndpoint { get; set; } /// Local replication role of the failover group instance. + [WirePath("properties.replicationRole")] public FailoverGroupReplicationRole? ReplicationRole { get; } /// Replication state of the failover group instance. + [WirePath("properties.replicationState")] public string ReplicationState { get; } /// List of partner server information for the failover group. + [WirePath("properties.partnerServers")] public IList PartnerServers { get; } /// List of databases in the failover group. + [WirePath("properties.databases")] public IList FailoverDatabases { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyData.cs index eec2707801472..3a67bfa6c03f2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyData.cs @@ -83,12 +83,16 @@ internal GeoBackupPolicyData() } /// Kind of geo backup policy. This is metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// Backup policy location. + [WirePath("location")] public AzureLocation? Location { get; } /// The state of the geo backup policy. + [WirePath("properties.state")] public GeoBackupPolicyState State { get; set; } /// The storage type of the geo backup policy. + [WirePath("properties.storageType")] public string StorageType { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleData.cs index 7a4100910287b..2c021a12d1339 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleData.cs @@ -37,8 +37,10 @@ internal IPv6FirewallRuleData(ResourceIdentifier id, string name, ResourceType? } /// The start IP address of the firewall rule. Must be IPv6 format. + [WirePath("properties.startIPv6Address")] public string StartIPv6Address { get; set; } /// The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpv6Address. + [WirePath("properties.endIPv6Address")] public string EndIPv6Address { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstanceFailoverGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstanceFailoverGroupData.cs index 55ebbff01c40b..4f93f73590b9d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstanceFailoverGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstanceFailoverGroupData.cs @@ -84,12 +84,15 @@ internal InstanceFailoverGroupData(ResourceIdentifier id, string name, ResourceT } /// Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. + [WirePath("properties.secondaryType")] public GeoSecondaryInstanceType? SecondaryType { get; set; } /// Read-write endpoint of the failover group instance. + [WirePath("properties.readWriteEndpoint")] public InstanceFailoverGroupReadWriteEndpoint ReadWriteEndpoint { get; set; } /// Read-only endpoint of the failover group instance. internal InstanceFailoverGroupReadOnlyEndpoint ReadOnlyEndpoint { get; set; } /// Failover policy of the read-only endpoint for the failover group. + [WirePath("properties.readOnlyEndpoint.failoverPolicy")] public ReadOnlyEndpointFailoverPolicy? ReadOnlyEndpointFailoverPolicy { get => ReadOnlyEndpoint is null ? default : ReadOnlyEndpoint.FailoverPolicy; @@ -102,12 +105,16 @@ public ReadOnlyEndpointFailoverPolicy? ReadOnlyEndpointFailoverPolicy } /// Local replication role of the failover group instance. + [WirePath("properties.replicationRole")] public InstanceFailoverGroupReplicationRole? ReplicationRole { get; } /// Replication state of the failover group instance. + [WirePath("properties.replicationState")] public string ReplicationState { get; } /// Partner region information for the failover group. + [WirePath("properties.partnerRegions")] public IList PartnerRegions { get; } /// List of managed instance pairs in the failover group. + [WirePath("properties.managedInstancePairs")] public IList ManagedInstancePairs { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstancePoolData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstancePoolData.cs index 893a3fcdc5fa4..720c4e1e9a04d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstancePoolData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstancePoolData.cs @@ -88,16 +88,22 @@ internal InstancePoolData() } /// The name and tier of the SKU. + [WirePath("sku")] public SqlSku Sku { get; set; } /// Resource ID of the subnet to place this instance pool in. + [WirePath("properties.subnetId")] public ResourceIdentifier SubnetId { get; set; } /// Count of vCores belonging to this instance pool. + [WirePath("properties.vCores")] public int? VCores { get; set; } /// The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). + [WirePath("properties.licenseType")] public InstancePoolLicenseType? LicenseType { get; set; } /// The Dns Zone that the managed instance pool is in. + [WirePath("properties.dnsZone")] public string DnsZone { get; } /// Specifies maintenance configuration id to apply to this managed instance. + [WirePath("properties.maintenanceConfigurationId")] public ResourceIdentifier MaintenanceConfigurationId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Internal/WirePathAttribute.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..697bb2ef67ee8 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Sql +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LedgerDigestUploadData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LedgerDigestUploadData.cs index 69ebd0e832405..e483b6ce734fe 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LedgerDigestUploadData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LedgerDigestUploadData.cs @@ -72,8 +72,10 @@ internal LedgerDigestUploadData(ResourceIdentifier id, string name, ResourceType } /// The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. + [WirePath("properties.digestStorageEndpoint")] public string DigestStorageEndpoint { get; set; } /// Specifies the state of ledger digest upload. + [WirePath("properties.state")] public LedgerDigestUploadsState? State { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LogicalDatabaseTransparentDataEncryptionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LogicalDatabaseTransparentDataEncryptionData.cs index 3551fd608e4c7..1b2b91c55e47a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LogicalDatabaseTransparentDataEncryptionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LogicalDatabaseTransparentDataEncryptionData.cs @@ -70,6 +70,7 @@ internal LogicalDatabaseTransparentDataEncryptionData(ResourceIdentifier id, str } /// Specifies the state of the transparent data encryption. + [WirePath("properties.state")] public TransparentDataEncryptionState? State { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionBackupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionBackupData.cs index f129ac49183b8..0f6764a629a2a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionBackupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionBackupData.cs @@ -88,24 +88,34 @@ internal LongTermRetentionBackupData(ResourceIdentifier id, string name, Resourc } /// The server name that the backup database belong to. + [WirePath("properties.serverName")] public string ServerName { get; } /// The create time of the server. + [WirePath("properties.serverCreateTime")] public DateTimeOffset? ServerCreateOn { get; } /// The name of the database the backup belong to. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// The delete time of the database. + [WirePath("properties.databaseDeletionTime")] public DateTimeOffset? DatabaseDeletedOn { get; } /// The time the backup was taken. + [WirePath("properties.backupTime")] public DateTimeOffset? BackupOn { get; } /// The time the long term retention backup will expire. + [WirePath("properties.backupExpirationTime")] public DateTimeOffset? BackupExpireOn { get; } /// The storage redundancy type of the backup. + [WirePath("properties.backupStorageRedundancy")] public SqlBackupStorageRedundancy? BackupStorageRedundancy { get; } /// The storage redundancy type of the backup. + [WirePath("properties.requestedBackupStorageRedundancy")] public SqlBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } /// The setting whether the LTR backup is immutable. + [WirePath("properties.isBackupImmutable")] public bool? IsBackupImmutable { get; set; } /// The BackupStorageAccessTier for the LTR backup. + [WirePath("properties.backupStorageAccessTier")] public SqlBackupStorageAccessTier? BackupStorageAccessTier { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionPolicyData.cs index 15d8392277936..cf79d2c1e21d9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionPolicyData.cs @@ -80,16 +80,22 @@ internal LongTermRetentionPolicyData(ResourceIdentifier id, string name, Resourc } /// The setting whether to make LTR backups immutable. + [WirePath("properties.makeBackupsImmutable")] public bool? MakeBackupsImmutable { get; set; } /// The BackupStorageAccessTier for the LTR backups. + [WirePath("properties.backupStorageAccessTier")] public SqlBackupStorageAccessTier? BackupStorageAccessTier { get; set; } /// The weekly retention policy for an LTR backup in an ISO 8601 format. + [WirePath("properties.weeklyRetention")] public string WeeklyRetention { get; set; } /// The monthly retention policy for an LTR backup in an ISO 8601 format. + [WirePath("properties.monthlyRetention")] public string MonthlyRetention { get; set; } /// The yearly retention policy for an LTR backup in an ISO 8601 format. + [WirePath("properties.yearlyRetention")] public string YearlyRetention { get; set; } /// The week of year to take the yearly backup in an ISO 8601 format. + [WirePath("properties.weekOfYear")] public int? WeekOfYear { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowOptionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowOptionData.cs index 47e976a039fe2..d0d99ba998c1a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowOptionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowOptionData.cs @@ -83,18 +83,25 @@ internal MaintenanceWindowOptionData(ResourceIdentifier id, string name, Resourc } /// Whether maintenance windows are enabled for the database. + [WirePath("properties.isEnabled")] public bool? IsEnabled { get; set; } /// Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. + [WirePath("properties.maintenanceWindowCycles")] public IList MaintenanceWindowCycles { get; } /// Minimum duration of maintenance window. + [WirePath("properties.minDurationInMinutes")] public int? MinDurationInMinutes { get; set; } /// Default duration for maintenance window. + [WirePath("properties.defaultDurationInMinutes")] public int? DefaultDurationInMinutes { get; set; } /// Minimum number of maintenance windows cycles to be set on the database. + [WirePath("properties.minCycles")] public int? MinCycles { get; set; } /// Time granularity in minutes for maintenance windows. + [WirePath("properties.timeGranularityInMinutes")] public int? TimeGranularityInMinutes { get; set; } /// Whether we allow multiple maintenance windows per cycle. + [WirePath("properties.allowMultipleMaintenanceWindowsPerCycle")] public bool? AllowMultipleMaintenanceWindowsPerCycle { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowsData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowsData.cs index 776e8d9b7350e..49bdc903aab11 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowsData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowsData.cs @@ -71,6 +71,7 @@ internal MaintenanceWindowsData(ResourceIdentifier id, string name, ResourceType } /// Gets the time ranges. + [WirePath("properties.timeRanges")] public IList TimeRanges { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedBackupShortTermRetentionPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedBackupShortTermRetentionPolicyData.cs index aad9cded69022..2333cc190c651 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedBackupShortTermRetentionPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedBackupShortTermRetentionPolicyData.cs @@ -69,6 +69,7 @@ internal ManagedBackupShortTermRetentionPolicyData(ResourceIdentifier id, string } /// The backup retention period in days. This is how many days Point-in-Time Restore will be supported. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionData.cs index e368eb937f0ff..a110f1a7c7978 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionData.cs @@ -72,8 +72,10 @@ internal ManagedDatabaseAdvancedThreatProtectionData(ResourceIdentifier id, stri } /// Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. + [WirePath("properties.state")] public AdvancedThreatProtectionState? State { get; set; } /// Specifies the UTC creation time of the policy. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseData.cs index 031d5931d1890..7f5167b6a9830 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseData.cs @@ -120,48 +120,70 @@ internal ManagedDatabaseData() } /// Collation of the managed database. + [WirePath("properties.collation")] public string Collation { get; set; } /// Status of the database. + [WirePath("properties.status")] public ManagedDatabaseStatus? Status { get; } /// Creation date of the database. + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// Earliest restore point in time for point in time restore. + [WirePath("properties.earliestRestorePoint")] public DateTimeOffset? EarliestRestorePoint { get; } /// Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + [WirePath("properties.restorePointInTime")] public DateTimeOffset? RestorePointInTime { get; set; } /// Geo paired region. + [WirePath("properties.defaultSecondaryLocation")] public AzureLocation? DefaultSecondaryLocation { get; } /// Collation of the metadata catalog. + [WirePath("properties.catalogCollation")] public CatalogCollationType? CatalogCollation { get; set; } /// Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). + [WirePath("properties.createMode")] public ManagedDatabaseCreateMode? CreateMode { get; set; } /// Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. + [WirePath("properties.storageContainerUri")] public Uri StorageContainerUri { get; set; } /// The resource identifier of the source database associated with create operation of this database. + [WirePath("properties.sourceDatabaseId")] public ResourceIdentifier SourceDatabaseId { get; set; } /// The resource identifier of the cross-subscription source database associated with create operation of this database. + [WirePath("properties.crossSubscriptionSourceDatabaseId")] public ResourceIdentifier CrossSubscriptionSourceDatabaseId { get; set; } /// The restorable dropped database resource id to restore when creating this database. + [WirePath("properties.restorableDroppedDatabaseId")] public ResourceIdentifier RestorableDroppedDatabaseId { get; set; } /// The restorable cross-subscription dropped database resource id to restore when creating this database. + [WirePath("properties.crossSubscriptionRestorableDroppedDatabaseId")] public ResourceIdentifier CrossSubscriptionRestorableDroppedDatabaseId { get; set; } /// Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. + [WirePath("properties.storageContainerIdentity")] public string StorageContainerIdentity { get; set; } /// Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. + [WirePath("properties.storageContainerSasToken")] public string StorageContainerSasToken { get; set; } /// Instance Failover Group resource identifier that this managed database belongs to. + [WirePath("properties.failoverGroupId")] public ResourceIdentifier FailoverGroupId { get; } /// The resource identifier of the recoverable database associated with create operation of this database. + [WirePath("properties.recoverableDatabaseId")] public ResourceIdentifier RecoverableDatabaseId { get; set; } /// The name of the Long Term Retention backup to be used for restore of this managed database. + [WirePath("properties.longTermRetentionBackupResourceId")] public ResourceIdentifier LongTermRetentionBackupResourceId { get; set; } /// Whether to auto complete restore of this managed database. + [WirePath("properties.autoCompleteRestore")] public bool? AllowAutoCompleteRestore { get; set; } /// Last backup file name for restore of this managed database. + [WirePath("properties.lastBackupName")] public string LastBackupName { get; set; } /// Target managed instance id used in cross-subscription restore. + [WirePath("properties.crossSubscriptionTargetManagedInstanceId")] public ResourceIdentifier CrossSubscriptionTargetManagedInstanceId { get; set; } /// Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. + [WirePath("properties.isLedgerOn")] public bool? IsLedgerOn { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseRestoreDetailData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseRestoreDetailData.cs index d641e89715f9b..915271cd922da 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseRestoreDetailData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseRestoreDetailData.cs @@ -116,48 +116,70 @@ internal ManagedDatabaseRestoreDetailData(ResourceIdentifier id, string name, Re } /// Restore type. + [WirePath("properties.type")] public string RestoreType { get; } /// Restore status. + [WirePath("properties.status")] public string Status { get; } /// The reason why restore is in Blocked state. + [WirePath("properties.blockReason")] public string BlockReason { get; } /// Last uploaded file name. + [WirePath("properties.lastUploadedFileName")] public string LastUploadedFileName { get; } /// Last uploaded file time. + [WirePath("properties.lastUploadedFileTime")] public DateTimeOffset? LastUploadedFileOn { get; } /// Last restored file name. + [WirePath("properties.lastRestoredFileName")] public string LastRestoredFileName { get; } /// Last restored file time. + [WirePath("properties.lastRestoredFileTime")] public DateTimeOffset? LastRestoredFileOn { get; } /// Percent completed. + [WirePath("properties.percentCompleted")] public int? CompletedPercent { get; } /// Current restored size MB. + [WirePath("properties.currentRestoredSizeMB")] public int? CurrentRestoredSizeInMB { get; } /// Current restore plan size MB. + [WirePath("properties.currentRestorePlanSizeMB")] public int? CurrentRestorePlanSizeInMB { get; } /// Current backup type. + [WirePath("properties.currentBackupType")] public string CurrentBackupType { get; } /// Current restoring file name. + [WirePath("properties.currentRestoringFileName")] public string CurrentRestoringFileName { get; } /// Number of files detected. + [WirePath("properties.numberOfFilesDetected")] public int? NumberOfFilesFound { get; } /// Number of files queued. + [WirePath("properties.numberOfFilesQueued")] public int? NumberOfFilesQueued { get; } /// Number of files skipped. + [WirePath("properties.numberOfFilesSkipped")] public int? NumberOfFilesSkipped { get; } /// Number of files restoring. + [WirePath("properties.numberOfFilesRestoring")] public int? NumberOfFilesRestoring { get; } /// Number of files restored. + [WirePath("properties.numberOfFilesRestored")] public int? NumberOfFilesRestored { get; } /// Number of files unrestorable. + [WirePath("properties.numberOfFilesUnrestorable")] public int? NumberOfFilesUnrestorable { get; } /// Full backup sets. + [WirePath("properties.fullBackupSets")] public IReadOnlyList FullBackupSets { get; } /// Diff backup sets. + [WirePath("properties.diffBackupSets")] public IReadOnlyList DiffBackupSets { get; } /// Log backup sets. + [WirePath("properties.logBackupSets")] public IReadOnlyList LogBackupSets { get; } /// Unrestorable files. + [WirePath("properties.unrestorableFiles")] public IReadOnlyList UnrestorableFileList { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyData.cs index 362c08e4ed44e..c59d894027142 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyData.cs @@ -86,20 +86,28 @@ internal ManagedDatabaseSecurityAlertPolicyData(ResourceIdentifier id, string na } /// Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. + [WirePath("properties.state")] public SecurityAlertPolicyState? State { get; set; } /// Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force. + [WirePath("properties.disabledAlerts")] public IList DisabledAlerts { get; } /// Specifies an array of e-mail addresses to which the alert is sent. + [WirePath("properties.emailAddresses")] public IList EmailAddresses { get; } /// Specifies that the alert is sent to the account administrators. + [WirePath("properties.emailAccountAdmins")] public bool? SendToEmailAccountAdmins { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// Specifies the identifier key of the Threat Detection audit storage account. + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the number of days to keep in the Threat Detection audit logs. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// Specifies the UTC creation time of the policy. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdministratorData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdministratorData.cs index 10afe7c7ea00f..fec2a1c438cb4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdministratorData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdministratorData.cs @@ -76,12 +76,16 @@ internal ManagedInstanceAdministratorData(ResourceIdentifier id, string name, Re } /// Type of the managed instance administrator. + [WirePath("properties.administratorType")] public ManagedInstanceAdministratorType? AdministratorType { get; set; } /// Login name of the managed instance administrator. + [WirePath("properties.login")] public string Login { get; set; } /// SID (object ID) of the managed instance administrator. + [WirePath("properties.sid")] public Guid? Sid { get; set; } /// Tenant ID of the managed instance administrator. + [WirePath("properties.tenantId")] public Guid? TenantId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdvancedThreatProtectionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdvancedThreatProtectionData.cs index ee335bec24b9f..f4699b6896515 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdvancedThreatProtectionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdvancedThreatProtectionData.cs @@ -72,8 +72,10 @@ internal ManagedInstanceAdvancedThreatProtectionData(ResourceIdentifier id, stri } /// Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. + [WirePath("properties.state")] public AdvancedThreatProtectionState? State { get; set; } /// Specifies the UTC creation time of the policy. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationData.cs index 05bf463c15fe0..a33f59a9905b6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationData.cs @@ -69,6 +69,7 @@ internal ManagedInstanceAzureADOnlyAuthenticationData(ResourceIdentifier id, str } /// Azure Active Directory only Authentication enabled. + [WirePath("properties.azureADOnlyAuthentication")] public bool? IsAzureADOnlyAuthenticationEnabled { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs index 5d51ac8d1d901..05cf67810f7d3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceData.cs @@ -152,10 +152,13 @@ internal ManagedInstanceData() } /// The Azure Active Directory identity of the managed instance. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH. + [WirePath("sku")] public SqlSku Sku { get; set; } /// Gets the provisioning state. + [WirePath("properties.provisioningState")] public ManagedInstancePropertiesProvisioningState? ProvisioningState { get; } /// /// Specifies the mode of database creation. @@ -164,36 +167,52 @@ internal ManagedInstanceData() /// /// Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. /// + [WirePath("properties.managedInstanceCreateMode")] public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } /// The fully qualified domain name of the managed instance. + [WirePath("properties.fullyQualifiedDomainName")] public string FullyQualifiedDomainName { get; } /// Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). + [WirePath("properties.administratorLogin")] public string AdministratorLogin { get; set; } /// The administrator login password (required for managed instance creation). + [WirePath("properties.administratorLoginPassword")] public string AdministratorLoginPassword { get; set; } /// Subnet resource ID for the managed instance. + [WirePath("properties.subnetId")] public ResourceIdentifier SubnetId { get; set; } /// The state of the managed instance. + [WirePath("properties.state")] public string State { get; } /// The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). + [WirePath("properties.licenseType")] public ManagedInstanceLicenseType? LicenseType { get; set; } /// The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. + [WirePath("properties.vCores")] public int? VCores { get; set; } /// Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. + [WirePath("properties.storageSizeInGB")] public int? StorageSizeInGB { get; set; } /// Collation of the managed instance. + [WirePath("properties.collation")] public string Collation { get; set; } /// The Dns Zone that the managed instance is in. + [WirePath("properties.dnsZone")] public string DnsZone { get; } /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. + [WirePath("properties.dnsZonePartner")] public ResourceIdentifier ManagedDnsZonePartner { get; set; } /// Whether or not the public data endpoint is enabled. + [WirePath("properties.publicDataEndpointEnabled")] public bool? IsPublicDataEndpointEnabled { get; set; } /// The resource identifier of the source managed instance associated with create operation of this instance. + [WirePath("properties.sourceManagedInstanceId")] public ResourceIdentifier SourceManagedInstanceId { get; set; } /// Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + [WirePath("properties.restorePointInTime")] public DateTimeOffset? RestorePointInTime { get; set; } /// Connection type used for connecting to the instance. + [WirePath("properties.proxyOverride")] public ManagedInstanceProxyOverride? ProxyOverride { get; set; } /// /// Id of the timezone. Allowed values are timezones supported by Windows. @@ -203,28 +222,40 @@ internal ManagedInstanceData() /// List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. /// An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". /// + [WirePath("properties.timezoneId")] public string TimezoneId { get; set; } /// The Id of the instance pool this managed server belongs to. + [WirePath("properties.instancePoolId")] public ResourceIdentifier InstancePoolId { get; set; } /// Specifies maintenance configuration id to apply to this managed instance. + [WirePath("properties.maintenanceConfigurationId")] public ResourceIdentifier MaintenanceConfigurationId { get; set; } /// List of private endpoint connections on a managed instance. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'. + [WirePath("properties.minimalTlsVersion")] public string MinimalTlsVersion { get; set; } /// The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). + [WirePath("properties.currentBackupStorageRedundancy")] public SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get; } /// The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). + [WirePath("properties.requestedBackupStorageRedundancy")] public SqlBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } /// Whether or not the multi-az is enabled. + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// The resource id of a user assigned identity to be used by default. + [WirePath("properties.primaryUserAssignedIdentityId")] public ResourceIdentifier PrimaryUserAssignedIdentityId { get; set; } /// A CMK URI of the key to use for encryption. + [WirePath("properties.keyId")] public Uri KeyId { get; set; } /// The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. + [WirePath("properties.administrators")] public ManagedInstanceExternalAdministrator Administrators { get; set; } /// The managed instance's service principal. + [WirePath("properties.servicePrincipal")] public SqlServicePrincipal ServicePrincipal { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDtcData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDtcData.cs index 6c10680b840be..a2b57096425e2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDtcData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDtcData.cs @@ -79,14 +79,19 @@ internal ManagedInstanceDtcData(ResourceIdentifier id, string name, ResourceType } /// Active status of managed instance DTC. + [WirePath("properties.dtcEnabled")] public bool? DtcEnabled { get; set; } /// Security settings of managed instance DTC. + [WirePath("properties.securitySettings")] public ManagedInstanceDtcSecuritySettings SecuritySettings { get; set; } /// External dns suffix search list of managed instance DTC. + [WirePath("properties.externalDnsSuffixSearchList")] public IList ExternalDnsSuffixSearchList { get; } /// Host name dns suffix of managed instance DTC. + [WirePath("properties.dtcHostNameDnsSuffix")] public string DtcHostNameDnsSuffix { get; } /// Provisioning state of managed instance DTC. + [WirePath("properties.provisioningState")] public JobExecutionProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceEncryptionProtectorData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceEncryptionProtectorData.cs index 9e683a81f81f2..50865980e6598 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceEncryptionProtectorData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceEncryptionProtectorData.cs @@ -80,16 +80,22 @@ internal ManagedInstanceEncryptionProtectorData(ResourceIdentifier id, string na } /// Kind of encryption protector. This is metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// The name of the managed instance key. + [WirePath("properties.serverKeyName")] public string ServerKeyName { get; set; } /// The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. + [WirePath("properties.serverKeyType")] public SqlServerKeyType? ServerKeyType { get; set; } /// The URI of the server key. + [WirePath("properties.uri")] public Uri Uri { get; } /// Thumbprint of the server key. + [WirePath("properties.thumbprint")] public string Thumbprint { get; } /// Key auto rotation opt-in flag. Either true or false. + [WirePath("properties.autoRotationEnabled")] public bool? IsAutoRotationEnabled { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceKeyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceKeyData.cs index debcb1ba0525e..ae3331183fd23 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceKeyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceKeyData.cs @@ -80,16 +80,22 @@ internal ManagedInstanceKeyData(ResourceIdentifier id, string name, ResourceType } /// Kind of encryption protector. This is metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// The key type like 'ServiceManaged', 'AzureKeyVault'. + [WirePath("properties.serverKeyType")] public SqlServerKeyType? ServerKeyType { get; set; } /// The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. + [WirePath("properties.uri")] public Uri Uri { get; set; } /// Thumbprint of the key. + [WirePath("properties.thumbprint")] public string Thumbprint { get; } /// The key creation date. + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// Key auto rotation opt-in flag. Either true or false. + [WirePath("properties.autoRotationEnabled")] public bool? IsAutoRotationEnabled { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionBackupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionBackupData.cs index c252070772c28..3e2205b038a61 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionBackupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionBackupData.cs @@ -82,18 +82,25 @@ internal ManagedInstanceLongTermRetentionBackupData(ResourceIdentifier id, strin } /// The managed instance that the backup database belongs to. + [WirePath("properties.managedInstanceName")] public string ManagedInstanceName { get; } /// The create time of the instance. + [WirePath("properties.managedInstanceCreateTime")] public DateTimeOffset? ManagedInstanceCreateOn { get; } /// The name of the database the backup belong to. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// The delete time of the database. + [WirePath("properties.databaseDeletionTime")] public DateTimeOffset? DatabaseDeletedOn { get; } /// The time the backup was taken. + [WirePath("properties.backupTime")] public DateTimeOffset? BackupOn { get; } /// The time the long term retention backup will expire. + [WirePath("properties.backupExpirationTime")] public DateTimeOffset? BackupExpireOn { get; } /// The storage redundancy type of the backup. + [WirePath("properties.backupStorageRedundancy")] public SqlBackupStorageRedundancy? BackupStorageRedundancy { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicyData.cs index 2f74c3c789b20..a86c9b605e759 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicyData.cs @@ -75,12 +75,16 @@ internal ManagedInstanceLongTermRetentionPolicyData(ResourceIdentifier id, strin } /// The weekly retention policy for an LTR backup in an ISO 8601 format. + [WirePath("properties.weeklyRetention")] public string WeeklyRetention { get; set; } /// The monthly retention policy for an LTR backup in an ISO 8601 format. + [WirePath("properties.monthlyRetention")] public string MonthlyRetention { get; set; } /// The yearly retention policy for an LTR backup in an ISO 8601 format. + [WirePath("properties.yearlyRetention")] public string YearlyRetention { get; set; } /// The week of year to take the yearly backup in an ISO 8601 format. + [WirePath("properties.weekOfYear")] public int? WeekOfYear { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceOperationData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceOperationData.cs index 51ee943b6add1..769a4bf0be6f1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceOperationData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceOperationData.cs @@ -98,34 +98,49 @@ internal ManagedInstanceOperationData(ResourceIdentifier id, string name, Resour } /// The name of the managed instance the operation is being performed on. + [WirePath("properties.managedInstanceName")] public string ManagedInstanceName { get; } /// The name of operation. + [WirePath("properties.operation")] public string Operation { get; } /// The friendly name of operation. + [WirePath("properties.operationFriendlyName")] public string OperationFriendlyName { get; } /// The percentage of the operation completed. + [WirePath("properties.percentComplete")] public int? PercentComplete { get; } /// The operation start time. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The operation state. + [WirePath("properties.state")] public ManagementOperationState? State { get; } /// The operation error code. + [WirePath("properties.errorCode")] public int? ErrorCode { get; } /// The operation error description. + [WirePath("properties.errorDescription")] public string ErrorDescription { get; } /// The operation error severity. + [WirePath("properties.errorSeverity")] public int? ErrorSeverity { get; } /// Whether or not the error is a user error. + [WirePath("properties.isUserError")] public bool? IsUserError { get; } /// The estimated completion time of the operation. + [WirePath("properties.estimatedCompletionTime")] public DateTimeOffset? EstimatedCompleteOn { get; } /// The operation description. + [WirePath("properties.description")] public string Description { get; } /// Whether the operation can be cancelled. + [WirePath("properties.isCancellable")] public bool? IsCancellable { get; } /// The operation parameters. + [WirePath("properties.operationParameters")] public ManagedInstanceOperationParametersPair OperationParameters { get; } /// The operation steps. + [WirePath("properties.operationSteps")] public ManagedInstanceOperationSteps OperationSteps { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateEndpointConnectionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateEndpointConnectionData.cs index 7096fb1595c40..c326c0c8c8988 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateEndpointConnectionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateEndpointConnectionData.cs @@ -77,6 +77,7 @@ internal ManagedInstancePrivateEndpointConnectionData(ResourceIdentifier id, str /// Private endpoint which the connection belongs to. internal WritableSubResource PrivateEndpoint { get; set; } /// Gets or sets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; @@ -89,8 +90,10 @@ public ResourceIdentifier PrivateEndpointId } /// Connection State of the Private Endpoint Connection. + [WirePath("properties.privateLinkServiceConnectionState")] public ManagedInstancePrivateLinkServiceConnectionStateProperty ConnectionState { get; set; } /// State of the Private Endpoint Connection. + [WirePath("properties.provisioningState")] public string ProvisioningState { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateLinkData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateLinkData.cs index 039cbe561af32..b75a09a5f3b7d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateLinkData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateLinkData.cs @@ -70,6 +70,7 @@ internal ManagedInstancePrivateLinkData(ResourceIdentifier id, string name, Reso } /// The private link resource group id. + [WirePath("properties")] public ManagedInstancePrivateLinkProperties Properties { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceServerConfigurationOptionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceServerConfigurationOptionData.cs index f440a10307f22..493f191e64a77 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceServerConfigurationOptionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceServerConfigurationOptionData.cs @@ -72,8 +72,10 @@ internal ManagedInstanceServerConfigurationOptionData(ResourceIdentifier id, str } /// Value of the server configuration option. + [WirePath("properties.serverConfigurationOptionValue")] public int? ServerConfigurationOptionValue { get; set; } /// Provisioning state of server configuration option. + [WirePath("properties.provisioningState")] public JobExecutionProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleData.cs index bc1dcfc33943f..d379c354b9c50 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleData.cs @@ -79,14 +79,19 @@ internal ManagedInstanceStartStopScheduleData(ResourceIdentifier id, string name } /// The description of the schedule. + [WirePath("properties.description")] public string Description { get; set; } /// The time zone of the schedule. + [WirePath("properties.timeZoneId")] public string TimeZoneId { get; set; } /// Schedule list. + [WirePath("properties.scheduleList")] public IList ScheduleList { get; } /// Next action to be executed (Start or Stop). + [WirePath("properties.nextRunAction")] public string NextRunAction { get; } /// Timestamp when the next action will be executed in the corresponding schedule time zone. + [WirePath("properties.nextExecutionTime")] public string NextExecutionTime { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentData.cs index d6136dcb62439..a2b8ebf79e67d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentData.cs @@ -76,12 +76,16 @@ internal ManagedInstanceVulnerabilityAssessmentData(ResourceIdentifier id, strin } /// A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). + [WirePath("properties.storageContainerPath")] public string StorageContainerPath { get; set; } /// A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall. + [WirePath("properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } /// Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall. + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// The recurring scans settings. + [WirePath("properties.recurringScans")] public VulnerabilityAssessmentRecurringScansProperties RecurringScans { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedLedgerDigestUploadData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedLedgerDigestUploadData.cs index 6ca537e31d412..7406f31e54910 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedLedgerDigestUploadData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedLedgerDigestUploadData.cs @@ -72,8 +72,10 @@ internal ManagedLedgerDigestUploadData(ResourceIdentifier id, string name, Resou } /// The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. + [WirePath("properties.digestStorageEndpoint")] public string DigestStorageEndpoint { get; set; } /// Specifies the state of ledger digest upload. + [WirePath("properties.state")] public ManagedLedgerDigestUploadsState? State { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerDnsAliasData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerDnsAliasData.cs index 0449353bcb89b..f68f6ffb2bb3c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerDnsAliasData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerDnsAliasData.cs @@ -71,8 +71,10 @@ internal ManagedServerDnsAliasData(ResourceIdentifier id, string name, ResourceT } /// The fully qualified DNS record for managed server alias. + [WirePath("properties.azureDnsRecord")] public string AzureDnsRecord { get; } /// The fully qualified public DNS record for managed server alias. + [WirePath("properties.publicAzureDnsRecord")] public string PublicAzureDnsRecord { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerSecurityAlertPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerSecurityAlertPolicyData.cs index 9c4f1232421a8..22bfa5e37c511 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerSecurityAlertPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerSecurityAlertPolicyData.cs @@ -86,20 +86,28 @@ internal ManagedServerSecurityAlertPolicyData(ResourceIdentifier id, string name } /// Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. + [WirePath("properties.state")] public SecurityAlertsPolicyState? State { get; set; } /// Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force. + [WirePath("properties.disabledAlerts")] public IList DisabledAlerts { get; } /// Specifies an array of e-mail addresses to which the alert is sent. + [WirePath("properties.emailAddresses")] public IList EmailAddresses { get; } /// Specifies that the alert is sent to the account administrators. + [WirePath("properties.emailAccountAdmins")] public bool? SendToEmailAccountAdmins { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// Specifies the identifier key of the Threat Detection audit storage account. + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the number of days to keep in the Threat Detection audit logs. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// Specifies the UTC creation time of the policy. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionData.cs index 2601a0f50c135..456fcb9daeea8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionData.cs @@ -70,6 +70,7 @@ internal ManagedTransparentDataEncryptionData(ResourceIdentifier id, string name } /// Specifies the state of the transparent data encryption. + [WirePath("properties.state")] public TransparentDataEncryptionState? State { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs index 48008e6c79b4a..2f7292f0fd339 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs @@ -70,16 +70,22 @@ internal AutoPauseDelayTimeRange(int? minValue, int? maxValue, int? stepSize, in } /// Minimum value. + [WirePath("minValue")] public int? MinValue { get; } /// Maximum value. + [WirePath("maxValue")] public int? MaxValue { get; } /// Step value for discrete values between the minimum value and the maximum value. + [WirePath("stepSize")] public int? StepSize { get; } /// Default value is no value is provided. + [WirePath("default")] public int? Default { get; } /// Unit of time that delay is expressed in. + [WirePath("unit")] public PauseDelayTimeUnit? Unit { get; } /// Value that is used to not pause (infinite delay before pause). + [WirePath("doNotPauseValue")] public int? DoNotPauseValue { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptions.cs index 9178ee24b4387..c87519d296efe 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningOptions.cs @@ -66,12 +66,16 @@ internal AutomaticTuningOptions(AutomaticTuningOptionModeDesired? desiredState, } /// Automatic tuning option desired state. + [WirePath("desiredState")] public AutomaticTuningOptionModeDesired? DesiredState { get; set; } /// Automatic tuning option actual state. + [WirePath("actualState")] public AutomaticTuningOptionModeActual? ActualState { get; } /// Reason code if desired and actual state are different. + [WirePath("reasonCode")] public int? ReasonCode { get; } /// Reason description if desired and actual state are different. + [WirePath("reasonDesc")] public AutomaticTuningDisabledReason? ReasonDesc { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerOptions.cs index 50c0770facb68..6d9830dfecd97 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AutomaticTuningServerOptions.cs @@ -66,12 +66,16 @@ internal AutomaticTuningServerOptions(AutomaticTuningOptionModeDesired? desiredS } /// Automatic tuning option desired state. + [WirePath("desiredState")] public AutomaticTuningOptionModeDesired? DesiredState { get; set; } /// Automatic tuning option actual state. + [WirePath("actualState")] public AutomaticTuningOptionModeActual? ActualState { get; } /// Reason code if desired and actual state are different. + [WirePath("reasonCode")] public int? ReasonCode { get; } /// Reason description if desired and actual state are different. + [WirePath("reasonDesc")] public AutomaticTuningServerReason? ReasonDesc { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ChangeLongTermRetentionBackupAccessTierParameters.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ChangeLongTermRetentionBackupAccessTierParameters.cs index dd7f09ad4a3a4..a1adb2310bbc8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ChangeLongTermRetentionBackupAccessTierParameters.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ChangeLongTermRetentionBackupAccessTierParameters.cs @@ -76,8 +76,10 @@ internal ChangeLongTermRetentionBackupAccessTierParameters() } /// The long term retention backup storage access tier. + [WirePath("backupStorageAccessTier")] public string BackupStorageAccessTier { get; } /// The operation mode when updating ltr backup storage access tier. + [WirePath("operationMode")] public string OperationMode { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CompleteDatabaseRestoreDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CompleteDatabaseRestoreDefinition.cs index 58a7692c5c393..555314d3081d7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CompleteDatabaseRestoreDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CompleteDatabaseRestoreDefinition.cs @@ -71,6 +71,7 @@ internal CompleteDatabaseRestoreDefinition() } /// The last backup name to apply. + [WirePath("lastBackupName")] public string LastBackupName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CopyLongTermRetentionBackupContent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CopyLongTermRetentionBackupContent.cs index 8e70077751bd6..b44f52b1870f5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CopyLongTermRetentionBackupContent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CopyLongTermRetentionBackupContent.cs @@ -71,16 +71,22 @@ internal CopyLongTermRetentionBackupContent(string targetSubscriptionId, string } /// The subscription that owns the target server. + [WirePath("properties.targetSubscriptionId")] public string TargetSubscriptionId { get; set; } /// The resource group that owns the target server. + [WirePath("properties.targetResourceGroup")] public string TargetResourceGroup { get; set; } /// The resource Id of the target server that owns the database. + [WirePath("properties.targetServerResourceId")] public ResourceIdentifier TargetServerResourceId { get; set; } /// The fully qualified domain name of the target server. + [WirePath("properties.targetServerFullyQualifiedDomainName")] public string TargetServerFullyQualifiedDomainName { get; set; } /// The name of the database owns the copied backup. + [WirePath("properties.targetDatabaseName")] public string TargetDatabaseName { get; set; } /// The storage redundancy type of the copied backup. + [WirePath("properties.targetBackupStorageRedundancy")] public SqlBackupStorageRedundancy? TargetBackupStorageRedundancy { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs index 9a1cad355c3b2..f43bf336929d8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs @@ -71,6 +71,7 @@ internal CreateDatabaseRestorePointDefinition() } /// The restore point label to apply. + [WirePath("restorePointLabel")] public string RestorePointLabel { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRule.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRule.cs index 147ffbd46edb1..88d353e1f5415 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRule.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRule.cs @@ -90,30 +90,43 @@ internal DataMaskingRule(ResourceIdentifier id, string name, ResourceType resour } /// The location of the data masking rule. + [WirePath("location")] public AzureLocation? Location { get; } /// The kind of Data Masking Rule. Metadata, used for Azure portal. + [WirePath("kind")] public string Kind { get; } /// The alias name. This is a legacy parameter and is no longer used. + [WirePath("properties.aliasName")] public string AliasName { get; set; } /// The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. + [WirePath("properties.ruleState")] public DataMaskingRuleState? RuleState { get; set; } /// The schema name on which the data masking rule is applied. + [WirePath("properties.schemaName")] public string SchemaName { get; set; } /// The table name on which the data masking rule is applied. + [WirePath("properties.tableName")] public string TableName { get; set; } /// The column name on which the data masking rule is applied. + [WirePath("properties.columnName")] public string ColumnName { get; set; } /// The masking function that is used for the data masking rule. + [WirePath("properties.maskingFunction")] public DataMaskingFunction? MaskingFunction { get; set; } /// The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. + [WirePath("properties.numberFrom")] public string NumberFrom { get; set; } /// The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. + [WirePath("properties.numberTo")] public string NumberTo { get; set; } /// If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. + [WirePath("properties.prefixSize")] public string PrefixSize { get; set; } /// If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. + [WirePath("properties.suffixSize")] public string SuffixSize { get; set; } /// If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. + [WirePath("properties.replacementString")] public string ReplacementString { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseExportDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseExportDefinition.cs index b6474b1899229..b31a2d3ac59e6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseExportDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseExportDefinition.cs @@ -94,18 +94,25 @@ internal DatabaseExportDefinition() } /// Storage key type. + [WirePath("storageKeyType")] public StorageKeyType StorageKeyType { get; } /// Storage key. + [WirePath("storageKey")] public string StorageKey { get; } /// Storage Uri. + [WirePath("storageUri")] public Uri StorageUri { get; } /// Administrator login name. + [WirePath("administratorLogin")] public string AdministratorLogin { get; } /// Administrator login password. + [WirePath("administratorLoginPassword")] public string AdministratorLoginPassword { get; } /// Authentication type. + [WirePath("authenticationType")] public string AuthenticationType { get; set; } /// Optional resource information to enable network isolation for request. + [WirePath("networkIsolation")] public NetworkIsolationSettings NetworkIsolation { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseIdentity.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseIdentity.Serialization.cs index b2d1a7028e436..01c2ad20b15df 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseIdentity.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseIdentity.Serialization.cs @@ -177,7 +177,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in UserAssignedIdentities) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 4, false); } builder.AppendLine(" }"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseIdentity.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseIdentity.cs index c6ca111fd621a..56578bbb6a30d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseIdentity.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseIdentity.cs @@ -67,10 +67,13 @@ internal DatabaseIdentity(DatabaseIdentityType? identityType, Guid? tenantId, ID } /// The identity type. + [WirePath("type")] public DatabaseIdentityType? IdentityType { get; set; } /// The Azure Active Directory tenant id. + [WirePath("tenantId")] public Guid? TenantId { get; } /// The resource ids of the user assigned identities to use. + [WirePath("userAssignedIdentities")] public IDictionary UserAssignedIdentities { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseImportDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseImportDefinition.cs index df82dfdc226a5..2a41c693fa042 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseImportDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseImportDefinition.cs @@ -102,26 +102,37 @@ internal DatabaseImportDefinition() } /// Name of the import database. + [WirePath("databaseName")] public string DatabaseName { get; set; } /// Edition of the import database. + [WirePath("edition")] public string Edition { get; set; } /// Service level objective name of the import database. + [WirePath("serviceObjectiveName")] public string ServiceObjectiveName { get; set; } /// Max size in bytes for the import database. + [WirePath("maxSizeBytes")] public string MaxSizeBytes { get; set; } /// Storage key type. + [WirePath("storageKeyType")] public StorageKeyType StorageKeyType { get; } /// Storage key. + [WirePath("storageKey")] public string StorageKey { get; } /// Storage Uri. + [WirePath("storageUri")] public Uri StorageUri { get; } /// Administrator login name. + [WirePath("administratorLogin")] public string AdministratorLogin { get; } /// Administrator login password. + [WirePath("administratorLoginPassword")] public string AdministratorLoginPassword { get; } /// Authentication type. + [WirePath("authenticationType")] public string AuthenticationType { get; set; } /// Optional resource information to enable network isolation for request. + [WirePath("networkIsolation")] public NetworkIsolationSettings NetworkIsolation { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseOperationData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseOperationData.cs index 52398e5033436..5544118ed23a9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseOperationData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseOperationData.cs @@ -92,32 +92,46 @@ internal DatabaseOperationData(ResourceIdentifier id, string name, ResourceType } /// The name of the database the operation is being performed on. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// The name of operation. + [WirePath("properties.operation")] public string Operation { get; } /// The friendly name of operation. + [WirePath("properties.operationFriendlyName")] public string OperationFriendlyName { get; } /// The percentage of the operation completed. + [WirePath("properties.percentComplete")] public int? PercentComplete { get; } /// The name of the server. + [WirePath("properties.serverName")] public string ServerName { get; } /// The operation start time. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The operation state. + [WirePath("properties.state")] public ManagementOperationState? State { get; } /// The operation error code. + [WirePath("properties.errorCode")] public int? ErrorCode { get; } /// The operation error description. + [WirePath("properties.errorDescription")] public string ErrorDescription { get; } /// The operation error severity. + [WirePath("properties.errorSeverity")] public int? ErrorSeverity { get; } /// Whether or not the error is a user error. + [WirePath("properties.isUserError")] public bool? IsUserError { get; } /// The estimated completion time of the operation. + [WirePath("properties.estimatedCompletionTime")] public DateTimeOffset? EstimatedCompleteOn { get; } /// The operation description. + [WirePath("properties.description")] public string Description { get; } /// Whether the operation can be cancelled. + [WirePath("properties.isCancellable")] public bool? IsCancellable { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseUsage.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseUsage.cs index e49f788df289e..47268ca960f6a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseUsage.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseUsage.cs @@ -72,12 +72,16 @@ internal DatabaseUsage(ResourceIdentifier id, string name, ResourceType resource } /// User-readable name of the metric. + [WirePath("properties.displayName")] public string DisplayName { get; } /// Current value of the metric. + [WirePath("properties.currentValue")] public double? CurrentValue { get; } /// Boundary value of the metric. + [WirePath("properties.limit")] public double? Limit { get; } /// Unit of the metric. + [WirePath("properties.unit")] public string Unit { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs index 445484e0f7e34..03c5554d29183 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs @@ -72,6 +72,7 @@ internal DatabaseVulnerabilityAssessmentRuleBaselineItem() } /// The rule baseline result. + [WirePath("result")] public IList Result { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs index e61685e2edb84..571eda6a9e2e1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs @@ -66,6 +66,7 @@ internal DatabaseVulnerabilityAssessmentScansExport(ResourceIdentifier id, strin } /// Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + [WirePath("properties.exportedReportLocation")] public string ExportedReportLocation { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EditionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EditionCapability.cs index cb25fbd97b223..2fe675056e49a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EditionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EditionCapability.cs @@ -75,18 +75,25 @@ internal EditionCapability(string name, IReadOnlyList The database edition name. + [WirePath("name")] public string Name { get; } /// The list of supported service objectives for the edition. + [WirePath("supportedServiceLevelObjectives")] public IReadOnlyList SupportedServiceLevelObjectives { get; } /// Whether or not zone redundancy is supported for the edition. + [WirePath("zoneRedundant")] public bool? IsZoneRedundant { get; } /// The read scale capability for the edition. + [WirePath("readScale")] public ReadScaleCapability ReadScale { get; } /// The list of supported storage capabilities for this edition. + [WirePath("supportedStorageCapabilities")] public IReadOnlyList SupportedStorageCapabilities { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolActivity.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolActivity.cs index ac479dd4bd4a7..67532f9180c2d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolActivity.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolActivity.cs @@ -106,46 +106,67 @@ internal ElasticPoolActivity(ResourceIdentifier id, string name, ResourceType re } /// The geo-location where the resource lives. + [WirePath("location")] public AzureLocation? Location { get; set; } /// The time the operation finished (ISO8601 format). + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; } /// The error code if available. + [WirePath("properties.errorCode")] public int? ErrorCode { get; } /// The error message if available. + [WirePath("properties.errorMessage")] public string ErrorMessage { get; } /// The error severity if available. + [WirePath("properties.errorSeverity")] public int? ErrorSeverity { get; } /// The operation name. + [WirePath("properties.operation")] public string Operation { get; } /// The unique operation ID. + [WirePath("properties.operationId")] public Guid? OperationId { get; } /// The percentage complete if available. + [WirePath("properties.percentComplete")] public int? PercentComplete { get; } /// The requested max DTU per database if available. + [WirePath("properties.requestedDatabaseDtuMax")] public int? RequestedDatabaseDtuMax { get; } /// The requested min DTU per database if available. + [WirePath("properties.requestedDatabaseDtuMin")] public int? RequestedDatabaseDtuMin { get; } /// The requested DTU for the pool if available. + [WirePath("properties.requestedDtu")] public int? RequestedDtu { get; } /// The requested name for the elastic pool if available. + [WirePath("properties.requestedElasticPoolName")] public string RequestedElasticPoolName { get; } /// The requested storage limit for the pool in GB if available. + [WirePath("properties.requestedStorageLimitInGB")] public long? RequestedStorageLimitInGB { get; } /// The name of the elastic pool. + [WirePath("properties.elasticPoolName")] public string ElasticPoolName { get; } /// The name of the server the elastic pool is in. + [WirePath("properties.serverName")] public string ServerName { get; } /// The time the operation started (ISO8601 format). + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The current state of the operation. + [WirePath("properties.state")] public string State { get; } /// The requested storage limit in MB. + [WirePath("properties.requestedStorageLimitInMB")] public int? RequestedStorageLimitInMB { get; } /// The requested per database DTU guarantee. + [WirePath("properties.requestedDatabaseDtuGuarantee")] public int? RequestedDatabaseDtuGuarantee { get; } /// The requested per database DTU cap. + [WirePath("properties.requestedDatabaseDtuCap")] public int? RequestedDatabaseDtuCap { get; } /// The requested DTU guarantee. + [WirePath("properties.requestedDtuGuarantee")] public int? RequestedDtuGuarantee { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolData.Serialization.cs index c0b2a752045b6..0b21f91321ad5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolData.Serialization.cs @@ -432,7 +432,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolDatabaseActivity.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolDatabaseActivity.cs index 58770b6f2df82..1cf2ab79cddb4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolDatabaseActivity.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolDatabaseActivity.cs @@ -96,36 +96,52 @@ internal ElasticPoolDatabaseActivity(ResourceIdentifier id, string name, Resourc } /// The geo-location where the resource lives. + [WirePath("location")] public AzureLocation? Location { get; set; } /// The database name. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// The time the operation finished (ISO8601 format). + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; } /// The error code if available. + [WirePath("properties.errorCode")] public int? ErrorCode { get; } /// The error message if available. + [WirePath("properties.errorMessage")] public string ErrorMessage { get; } /// The error severity if available. + [WirePath("properties.errorSeverity")] public int? ErrorSeverity { get; } /// The operation name. + [WirePath("properties.operation")] public string Operation { get; } /// The unique operation ID. + [WirePath("properties.operationId")] public Guid? OperationId { get; } /// The percentage complete if available. + [WirePath("properties.percentComplete")] public int? PercentComplete { get; } /// The name for the elastic pool the database is moving into if available. + [WirePath("properties.requestedElasticPoolName")] public string RequestedElasticPoolName { get; } /// The name of the current elastic pool the database is in if available. + [WirePath("properties.currentElasticPoolName")] public string CurrentElasticPoolName { get; } /// The name of the current service objective if available. + [WirePath("properties.currentServiceObjective")] public string CurrentServiceObjective { get; } /// The name of the requested service objective if available. + [WirePath("properties.requestedServiceObjective")] public string RequestedServiceObjective { get; } /// The name of the server the elastic pool is in. + [WirePath("properties.serverName")] public string ServerName { get; } /// The time the operation started (ISO8601 format). + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The current state of the operation. + [WirePath("properties.state")] public string State { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs index 5f92ce8c897bd..f7f7326495117 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs @@ -70,14 +70,19 @@ internal ElasticPoolEditionCapability(string name, IReadOnlyList The elastic pool edition name. + [WirePath("name")] public string Name { get; } /// The list of supported elastic pool DTU levels for the edition. + [WirePath("supportedElasticPoolPerformanceLevels")] public IReadOnlyList SupportedElasticPoolPerformanceLevels { get; } /// Whether or not zone redundancy is supported for the edition. + [WirePath("zoneRedundant")] public bool? IsZoneRedundant { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolOperationData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolOperationData.cs index 14d3c01a5771c..a6f6e5d717393 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolOperationData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolOperationData.cs @@ -92,32 +92,46 @@ internal ElasticPoolOperationData(ResourceIdentifier id, string name, ResourceTy } /// The name of the elastic pool the operation is being performed on. + [WirePath("properties.elasticPoolName")] public string ElasticPoolName { get; } /// The name of operation. + [WirePath("properties.operation")] public string Operation { get; } /// The friendly name of operation. + [WirePath("properties.operationFriendlyName")] public string OperationFriendlyName { get; } /// The percentage of the operation completed. + [WirePath("properties.percentComplete")] public int? PercentComplete { get; } /// The name of the server. + [WirePath("properties.serverName")] public string ServerName { get; } /// The operation start time. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The operation state. + [WirePath("properties.state")] public string State { get; } /// The operation error code. + [WirePath("properties.errorCode")] public int? ErrorCode { get; } /// The operation error description. + [WirePath("properties.errorDescription")] public string ErrorDescription { get; } /// The operation error severity. + [WirePath("properties.errorSeverity")] public int? ErrorSeverity { get; } /// Whether or not the error is a user error. + [WirePath("properties.isUserError")] public bool? IsUserError { get; } /// The estimated completion time of the operation. + [WirePath("properties.estimatedCompletionTime")] public DateTimeOffset? EstimatedCompleteOn { get; } /// The operation description. + [WirePath("properties.description")] public string Description { get; } /// Whether the operation can be cancelled. + [WirePath("properties.isCancellable")] public bool? IsCancellable { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.cs index d30e4b4e2c012..8d2d594b00b2b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPatch.cs @@ -82,26 +82,37 @@ internal ElasticPoolPatch(SqlSku sku, IDictionary tags, long? ma } /// An ARM Resource SKU. + [WirePath("sku")] public SqlSku Sku { get; set; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// The storage limit for the database elastic pool in bytes. + [WirePath("properties.maxSizeBytes")] public long? MaxSizeBytes { get; set; } /// Minimal capacity that serverless pool will not shrink below, if not paused. + [WirePath("properties.minCapacity")] public double? MinCapacity { get; set; } /// The per database settings for the elastic pool. + [WirePath("properties.perDatabaseSettings")] public ElasticPoolPerDatabaseSettings PerDatabaseSettings { get; set; } /// Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// The license type to apply for this elastic pool. + [WirePath("properties.licenseType")] public ElasticPoolLicenseType? LicenseType { get; set; } /// Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. + [WirePath("properties.maintenanceConfigurationId")] public ResourceIdentifier MaintenanceConfigurationId { get; set; } /// The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. + [WirePath("properties.highAvailabilityReplicaCount")] public int? HighAvailabilityReplicaCount { get; set; } /// Type of enclave requested on the elastic pool. + [WirePath("properties.preferredEnclaveType")] public SqlAlwaysEncryptedEnclaveType? PreferredEnclaveType { get; set; } /// Specifies the availability zone the pool's primary replica is pinned to. + [WirePath("properties.availabilityZone")] public SqlAvailabilityZoneType? AvailabilityZone { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs index 095bcc88f5730..12e8b1de28a1a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs @@ -70,14 +70,19 @@ internal ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit, Perf } /// The maximum performance level per database. + [WirePath("limit")] public double? Limit { get; } /// Unit type used to measure performance level. + [WirePath("unit")] public PerformanceLevelUnit? Unit { get; } /// The list of supported min database performance levels. + [WirePath("supportedPerDatabaseMinPerformanceLevels")] public IReadOnlyList SupportedPerDatabaseMinPerformanceLevels { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs index e17a6f05e1583..de27723ca03a3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs @@ -66,12 +66,16 @@ internal ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit, Perf } /// The minimum performance level per database. + [WirePath("limit")] public double? Limit { get; } /// Unit type used to measure performance level. + [WirePath("unit")] public PerformanceLevelUnit? Unit { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs index 43ca2f722b1f9..d0761fcdd966e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs @@ -62,8 +62,10 @@ internal ElasticPoolPerDatabaseSettings(double? minCapacity, double? maxCapacity } /// The minimum capacity all databases are guaranteed. + [WirePath("minCapacity")] public double? MinCapacity { get; set; } /// The maximum capacity any one database can consume. + [WirePath("maxCapacity")] public double? MaxCapacity { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs index b35d399ff57d5..510cc39787129 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs @@ -88,28 +88,40 @@ internal ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability perfor } /// The performance level for the pool. + [WirePath("performanceLevel")] public PerformanceLevelCapability PerformanceLevel { get; } /// The sku. + [WirePath("sku")] public SqlSku Sku { get; } /// List of supported license types. + [WirePath("supportedLicenseTypes")] public IReadOnlyList SupportedLicenseTypes { get; } /// The maximum number of databases supported. + [WirePath("maxDatabaseCount")] public int? MaxDatabaseCount { get; } /// The included (free) max size for this performance level. + [WirePath("includedMaxSize")] public MaxSizeCapability IncludedMaxSize { get; } /// The list of supported max sizes. + [WirePath("supportedMaxSizes")] public IReadOnlyList SupportedMaxSizes { get; } /// The list of supported per database max sizes. + [WirePath("supportedPerDatabaseMaxSizes")] public IReadOnlyList SupportedPerDatabaseMaxSizes { get; } /// The list of supported per database max performance levels. + [WirePath("supportedPerDatabaseMaxPerformanceLevels")] public IReadOnlyList SupportedPerDatabaseMaxPerformanceLevels { get; } /// Whether or not zone redundancy is supported for the performance level. + [WirePath("zoneRedundant")] public bool? IsZoneRedundant { get; } /// List of supported maintenance configurations. + [WirePath("supportedMaintenanceConfigurations")] public IReadOnlyList SupportedMaintenanceConfigurations { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs index 4c1e87799218f..0ebe0e338276f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupData.Serialization.cs @@ -366,7 +366,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupPatch.cs index 0ae89d5600e63..fda14caa01aea 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupPatch.cs @@ -72,14 +72,19 @@ internal FailoverGroupPatch(IDictionary tags, FailoverGroupReadW } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Read-write endpoint of the failover group instance. + [WirePath("properties.readWriteEndpoint")] public FailoverGroupReadWriteEndpoint ReadWriteEndpoint { get; set; } /// Read-only endpoint of the failover group instance. + [WirePath("properties.readOnlyEndpoint")] public FailoverGroupReadOnlyEndpoint ReadOnlyEndpoint { get; set; } /// List of databases in the failover group. + [WirePath("properties.databases")] public IList FailoverDatabases { get; } /// List of partner server information for the failover group. + [WirePath("properties.partnerServers")] public IList PartnerServers { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index f5648115d60ea..2c7e4a9627cb1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -63,8 +63,10 @@ internal FailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverP } /// Failover policy of the read-only endpoint for the failover group. + [WirePath("failoverPolicy")] public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } /// The target partner server where the read-only endpoint points to. + [WirePath("targetServer")] public ResourceIdentifier TargetServer { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs index 5fed429b424a7..cdfb557aed366 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -69,8 +69,10 @@ internal FailoverGroupReadWriteEndpoint() } /// Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. + [WirePath("failoverPolicy")] public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } /// Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. + [WirePath("failoverWithDataLossGracePeriodMinutes")] public int? FailoverWithDataLossGracePeriodMinutes { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs index 394c9eb86c524..107eb3b85b7fe 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs @@ -94,18 +94,25 @@ internal ImportExistingDatabaseDefinition() } /// Storage key type. + [WirePath("storageKeyType")] public StorageKeyType StorageKeyType { get; } /// Storage key. + [WirePath("storageKey")] public string StorageKey { get; } /// Storage Uri. + [WirePath("storageUri")] public Uri StorageUri { get; } /// Administrator login name. + [WirePath("administratorLogin")] public string AdministratorLogin { get; } /// Administrator login password. + [WirePath("administratorLoginPassword")] public string AdministratorLoginPassword { get; } /// Authentication type. + [WirePath("authenticationType")] public string AuthenticationType { get; set; } /// Optional resource information to enable network isolation for request. + [WirePath("networkIsolation")] public NetworkIsolationSettings NetworkIsolation { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportExtensionsOperationResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportExtensionsOperationResult.cs index b753d43969601..c1d4999349369 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportExtensionsOperationResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportExtensionsOperationResult.cs @@ -78,18 +78,25 @@ internal ImportExportExtensionsOperationResult(ResourceIdentifier id, string nam } /// Request Id. + [WirePath("properties.requestId")] public Guid? RequestId { get; } /// Request type. + [WirePath("properties.requestType")] public string RequestType { get; } /// Last modified time. + [WirePath("properties.lastModifiedTime")] public string LastModifiedTime { get; } /// Server name. + [WirePath("properties.serverName")] public string ServerName { get; } /// Database name. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// Operation status. + [WirePath("properties.status")] public string Status { get; } /// Error message. + [WirePath("properties.errorMessage")] public string ErrorMessage { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportOperationResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportOperationResult.cs index 23bcbb09035ea..0aba868bac864 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportOperationResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportOperationResult.cs @@ -85,24 +85,34 @@ internal ImportExportOperationResult(ResourceIdentifier id, string name, Resourc } /// Request Id. + [WirePath("properties.requestId")] public Guid? RequestId { get; } /// Request type. + [WirePath("properties.requestType")] public string RequestType { get; } /// Queued time. + [WirePath("properties.queuedTime")] public string QueuedTime { get; } /// Last modified time. + [WirePath("properties.lastModifiedTime")] public string LastModifiedTime { get; } /// Blob Uri. + [WirePath("properties.blobUri")] public Uri BlobUri { get; } /// Server name. + [WirePath("properties.serverName")] public string ServerName { get; } /// Database name. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// Operation status. + [WirePath("properties.status")] public string Status { get; } /// Error message. + [WirePath("properties.errorMessage")] public string ErrorMessage { get; } /// Gets the status of private endpoints associated with this request. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs index 1f3551db4f75f..cadecc114d8ce 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -60,6 +60,7 @@ internal InstanceFailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? f } /// Failover policy of the read-only endpoint for the failover group. + [WirePath("failoverPolicy")] public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs index 4e9afe3883333..087c7b0db52fd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -69,8 +69,10 @@ internal InstanceFailoverGroupReadWriteEndpoint() } /// Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. + [WirePath("failoverPolicy")] public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } /// Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. + [WirePath("failoverWithDataLossGracePeriodMinutes")] public int? FailoverWithDataLossGracePeriodMinutes { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolData.Serialization.cs index d36e499ac768e..90ff663ef0197 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolData.Serialization.cs @@ -327,7 +327,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolEditionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolEditionCapability.cs index e85cc2750833b..dec28ff8c0cf2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolEditionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolEditionCapability.cs @@ -68,12 +68,16 @@ internal InstancePoolEditionCapability(string name, IReadOnlyList The instance pool version name. + [WirePath("name")] public string Name { get; } /// The supported families. + [WirePath("supportedFamilies")] public IReadOnlyList SupportedFamilies { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolFamilyCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolFamilyCapability.cs index 4dfbc62e8ad35..4a40217c9b94f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolFamilyCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolFamilyCapability.cs @@ -71,14 +71,19 @@ internal InstancePoolFamilyCapability(string name, IReadOnlyList Family name. + [WirePath("name")] public string Name { get; } /// List of supported license types. + [WirePath("supportedLicenseTypes")] public IReadOnlyList SupportedLicenseTypes { get; } /// List of supported virtual cores values. + [WirePath("supportedVcoresValues")] public IReadOnlyList SupportedVcoresValues { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolPatch.cs index 48c83a6849f4e..7b332e54ba26d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolPatch.cs @@ -74,18 +74,25 @@ internal InstancePoolPatch(SqlSku sku, IDictionary tags, Resourc } /// The name and tier of the SKU. + [WirePath("sku")] public SqlSku Sku { get; set; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Resource ID of the subnet to place this instance pool in. + [WirePath("properties.subnetId")] public ResourceIdentifier SubnetId { get; set; } /// Count of vCores belonging to this instance pool. + [WirePath("properties.vCores")] public int? VCores { get; set; } /// The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). + [WirePath("properties.licenseType")] public InstancePoolLicenseType? LicenseType { get; set; } /// The Dns Zone that the managed instance pool is in. + [WirePath("properties.dnsZone")] public string DnsZone { get; } /// Specifies maintenance configuration id to apply to this managed instance. + [WirePath("properties.maintenanceConfigurationId")] public ResourceIdentifier MaintenanceConfigurationId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsage.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsage.cs index 04583b52e085e..eb902cb55599c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsage.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsage.cs @@ -73,18 +73,25 @@ internal InstancePoolUsage(ResourceIdentifier id, InstancePoolUsageName name, Re } /// Resource ID. + [WirePath("id")] public ResourceIdentifier Id { get; } /// Resource name. + [WirePath("name")] public InstancePoolUsageName Name { get; } /// Resource type. + [WirePath("type")] public ResourceType? ResourceType { get; } /// Usage unit. + [WirePath("unit")] public string Unit { get; } /// Usage current value. + [WirePath("currentValue")] public int? CurrentValue { get; } /// Usage limit. + [WirePath("limit")] public int? Limit { get; } /// Usage requested limit. + [WirePath("requestedLimit")] public int? RequestedLimit { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsageName.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsageName.cs index 21de94a6703c9..7a1b0fcca6ef2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsageName.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsageName.cs @@ -62,8 +62,10 @@ internal InstancePoolUsageName(string value, string localizedValue, IDictionary< } /// Usage name value. + [WirePath("value")] public string Value { get; } /// Usage name localized value. + [WirePath("localizedValue")] public string LocalizedValue { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolVcoresCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolVcoresCapability.cs index 0435ba7b99cc3..418aff2d6655a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolVcoresCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolVcoresCapability.cs @@ -68,14 +68,19 @@ internal InstancePoolVcoresCapability(string name, int? value, MaxSizeCapability } /// The virtual cores identifier. + [WirePath("name")] public string Name { get; } /// The virtual cores value. + [WirePath("value")] public int? Value { get; } /// Storage limit. + [WirePath("storageLimit")] public MaxSizeCapability StorageLimit { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobExecutionTarget.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobExecutionTarget.cs index 8f5704954f10a..efc88589637af 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobExecutionTarget.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobExecutionTarget.cs @@ -64,10 +64,13 @@ internal JobExecutionTarget(JobTargetType? targetType, string serverName, string } /// The type of the target. + [WirePath("type")] public JobTargetType? TargetType { get; } /// The server name. + [WirePath("serverName")] public string ServerName { get; } /// The database name. + [WirePath("databaseName")] public string DatabaseName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepAction.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepAction.cs index 74c4336174b78..c0e11624665f8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepAction.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepAction.cs @@ -75,10 +75,13 @@ internal JobStepAction() } /// Type of action being executed by the job step. + [WirePath("type")] public JobStepActionType? ActionType { get; set; } /// The source of the action to execute. + [WirePath("source")] public JobStepActionSource? Source { get; set; } /// The action value, for example the text of the T-SQL script to execute. + [WirePath("value")] public string Value { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepExecutionOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepExecutionOptions.cs index 736b0df0367e2..2e874d956892f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepExecutionOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepExecutionOptions.cs @@ -68,14 +68,19 @@ internal JobStepExecutionOptions(int? timeoutSeconds, int? retryAttempts, int? i } /// Execution timeout for the job step. + [WirePath("timeoutSeconds")] public int? TimeoutSeconds { get; set; } /// Maximum number of times the job step will be reattempted if the first attempt fails. + [WirePath("retryAttempts")] public int? RetryAttempts { get; set; } /// Initial delay between retries for job step execution. + [WirePath("initialRetryIntervalSeconds")] public int? InitialRetryIntervalSeconds { get; set; } /// The maximum amount of time to wait between retries for job step execution. + [WirePath("maximumRetryIntervalSeconds")] public int? MaximumRetryIntervalSeconds { get; set; } /// The backoff multiplier for the time between retries. + [WirePath("retryIntervalBackoffMultiplier")] public float? RetryIntervalBackoffMultiplier { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepOutput.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepOutput.cs index 9829914afcb20..624734fdca671 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepOutput.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepOutput.cs @@ -94,20 +94,28 @@ internal JobStepOutput() } /// The output destination type. + [WirePath("type")] public JobStepOutputType? OutputType { get; set; } /// The output destination subscription id. + [WirePath("subscriptionId")] public Guid? SubscriptionId { get; set; } /// The output destination resource group. + [WirePath("resourceGroupName")] public string ResourceGroupName { get; set; } /// The output destination server name. + [WirePath("serverName")] public string ServerName { get; set; } /// The output destination database. + [WirePath("databaseName")] public string DatabaseName { get; set; } /// The output destination schema. + [WirePath("schemaName")] public string SchemaName { get; set; } /// The output destination table. + [WirePath("tableName")] public string TableName { get; set; } /// The resource ID of the credential to use to connect to the output destination. + [WirePath("credential")] public string Credential { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTarget.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTarget.cs index 638bd8fa4371c..fd27e28e842cb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTarget.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTarget.cs @@ -79,18 +79,25 @@ internal JobTarget() } /// Whether the target is included or excluded from the group. + [WirePath("membershipType")] public JobTargetGroupMembershipType? MembershipType { get; set; } /// The target type. + [WirePath("type")] public JobTargetType TargetType { get; set; } /// The target server name. + [WirePath("serverName")] public string ServerName { get; set; } /// The target database name. + [WirePath("databaseName")] public string DatabaseName { get; set; } /// The target elastic pool name. + [WirePath("elasticPoolName")] public string ElasticPoolName { get; set; } /// The target shard map. + [WirePath("shardMapName")] public string ShardMapName { get; set; } /// The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. + [WirePath("refreshCredential")] public string RefreshCredential { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LicenseTypeCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LicenseTypeCapability.cs index 170ac304151bb..1bd4e8f603931 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LicenseTypeCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LicenseTypeCapability.cs @@ -64,10 +64,13 @@ internal LicenseTypeCapability(string name, SqlCapabilityStatus? status, string } /// License type identifier. + [WirePath("name")] public string Name { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogSizeCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogSizeCapability.cs index 4efdcd44d6246..d56c19da1c69c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogSizeCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogSizeCapability.cs @@ -62,8 +62,10 @@ internal LogSizeCapability(int? limit, LogSizeUnit? unit, IDictionary The log size limit (see 'unit' for the units). + [WirePath("limit")] public int? Limit { get; } /// The units that the limit is expressed in. + [WirePath("unit")] public LogSizeUnit? Unit { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs index 5a8b26d292c0c..9471ad87cc3e3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs @@ -78,18 +78,25 @@ internal LongTermRetentionBackupOperationResult(ResourceIdentifier id, string na } /// Request Id. + [WirePath("properties.requestId")] public Guid? RequestId { get; } /// Operation type. + [WirePath("properties.operationType")] public string OperationType { get; } /// Source backup resource id. + [WirePath("properties.fromBackupResourceId")] public ResourceIdentifier FromBackupResourceId { get; } /// Target backup resource id. + [WirePath("properties.toBackupResourceId")] public ResourceIdentifier ToBackupResourceId { get; } /// The storage redundancy type of the copied backup. + [WirePath("properties.targetBackupStorageRedundancy")] public SqlBackupStorageRedundancy? TargetBackupStorageRedundancy { get; } /// Operation status. + [WirePath("properties.status")] public string Status { get; } /// Progress message. + [WirePath("properties.message")] public string Message { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceConfigurationCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceConfigurationCapability.cs index b570f5c4ac02e..73c52484066a7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceConfigurationCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceConfigurationCapability.cs @@ -66,12 +66,16 @@ internal MaintenanceConfigurationCapability(string name, bool? isZoneRedundant, } /// Maintenance configuration name. + [WirePath("name")] public string Name { get; } /// Whether or not zone redundancy is supported for the maintenance configuration. + [WirePath("zoneRedundant")] public bool? IsZoneRedundant { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs index feebd7a643ec3..a068a995c0c22 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs @@ -64,10 +64,13 @@ internal MaintenanceWindowTimeRange(SqlDayOfWeek? dayOfWeek, string startTime, T } /// Day of maintenance window. + [WirePath("dayOfWeek")] public SqlDayOfWeek? DayOfWeek { get; set; } /// Start time minutes offset from 12am. + [WirePath("startTime")] public string StartTime { get; set; } /// Duration of maintenance window in minutes. + [WirePath("duration")] public TimeSpan? Duration { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseData.Serialization.cs index 10a71e8b645d8..f7d62a998a509 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseData.Serialization.cs @@ -555,7 +555,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseMoveDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseMoveDefinition.cs index 19f013b3240ba..61ecbb0b7039c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseMoveDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseMoveDefinition.cs @@ -71,6 +71,7 @@ internal ManagedDatabaseMoveDefinition() } /// The destination managed database ID. + [WirePath("destinationManagedDatabaseId")] public ResourceIdentifier DestinationManagedDatabaseId { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.cs index 90f1997d43440..809552fe83549 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabasePatch.cs @@ -106,50 +106,73 @@ internal ManagedDatabasePatch(IDictionary tags, string collation } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Collation of the managed database. + [WirePath("properties.collation")] public string Collation { get; set; } /// Status of the database. + [WirePath("properties.status")] public ManagedDatabaseStatus? Status { get; } /// Creation date of the database. + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// Earliest restore point in time for point in time restore. + [WirePath("properties.earliestRestorePoint")] public DateTimeOffset? EarliestRestorePoint { get; } /// Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + [WirePath("properties.restorePointInTime")] public DateTimeOffset? RestorePointInTime { get; set; } /// Geo paired region. + [WirePath("properties.defaultSecondaryLocation")] public AzureLocation? DefaultSecondaryLocation { get; } /// Collation of the metadata catalog. + [WirePath("properties.catalogCollation")] public CatalogCollationType? CatalogCollation { get; set; } /// Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). + [WirePath("properties.createMode")] public ManagedDatabaseCreateMode? CreateMode { get; set; } /// Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. + [WirePath("properties.storageContainerUri")] public Uri StorageContainerUri { get; set; } /// The resource identifier of the source database associated with create operation of this database. + [WirePath("properties.sourceDatabaseId")] public ResourceIdentifier SourceDatabaseId { get; set; } /// The resource identifier of the cross-subscription source database associated with create operation of this database. + [WirePath("properties.crossSubscriptionSourceDatabaseId")] public ResourceIdentifier CrossSubscriptionSourceDatabaseId { get; set; } /// The restorable dropped database resource id to restore when creating this database. + [WirePath("properties.restorableDroppedDatabaseId")] public ResourceIdentifier RestorableDroppedDatabaseId { get; set; } /// The restorable cross-subscription dropped database resource id to restore when creating this database. + [WirePath("properties.crossSubscriptionRestorableDroppedDatabaseId")] public ResourceIdentifier CrossSubscriptionRestorableDroppedDatabaseId { get; set; } /// Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. + [WirePath("properties.storageContainerIdentity")] public string StorageContainerIdentity { get; set; } /// Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. + [WirePath("properties.storageContainerSasToken")] public string StorageContainerSasToken { get; set; } /// Instance Failover Group resource identifier that this managed database belongs to. + [WirePath("properties.failoverGroupId")] public ResourceIdentifier FailoverGroupId { get; } /// The resource identifier of the recoverable database associated with create operation of this database. + [WirePath("properties.recoverableDatabaseId")] public ResourceIdentifier RecoverableDatabaseId { get; set; } /// The name of the Long Term Retention backup to be used for restore of this managed database. + [WirePath("properties.longTermRetentionBackupResourceId")] public ResourceIdentifier LongTermRetentionBackupResourceId { get; set; } /// Whether to auto complete restore of this managed database. + [WirePath("properties.autoCompleteRestore")] public bool? AllowAutoCompleteRestore { get; set; } /// Last backup file name for restore of this managed database. + [WirePath("properties.lastBackupName")] public string LastBackupName { get; set; } /// Target managed instance id used in cross-subscription restore. + [WirePath("properties.crossSubscriptionTargetManagedInstanceId")] public ResourceIdentifier CrossSubscriptionTargetManagedInstanceId { get; set; } /// Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. + [WirePath("properties.isLedgerOn")] public bool? IsLedgerOn { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailBackupSetProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailBackupSetProperties.cs index 43a379bb65b77..5dd1f311ebfc1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailBackupSetProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailBackupSetProperties.cs @@ -70,16 +70,22 @@ internal ManagedDatabaseRestoreDetailBackupSetProperties(string status, string f } /// Backup set status. + [WirePath("status")] public string Status { get; } /// First stripe name. + [WirePath("firstStripeName")] public string FirstStripeName { get; } /// Number of stripes. + [WirePath("numberOfStripes")] public int? NumberOfStripes { get; } /// Backup size. + [WirePath("backupSizeMB")] public int? BackupSizeInMB { get; } /// Last restored file time. + [WirePath("restoreStartedTimestampUtc")] public DateTimeOffset? RestoreStartedOn { get; } /// Last restored file time. + [WirePath("restoreFinishedTimestampUtc")] public DateTimeOffset? RestoreFinishedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailUnrestorableFileProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailUnrestorableFileProperties.cs index a5ff77c87cb86..bd4ad4c92d007 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailUnrestorableFileProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailUnrestorableFileProperties.cs @@ -60,6 +60,7 @@ internal ManagedDatabaseRestoreDetailUnrestorableFileProperties(string name, IDi } /// File name. + [WirePath("name")] public string Name { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseStartMoveDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseStartMoveDefinition.cs index 5877b1525bf0a..942f6b12df1ca 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseStartMoveDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseStartMoveDefinition.cs @@ -73,8 +73,10 @@ internal ManagedDatabaseStartMoveDefinition() } /// The destination managed database ID. + [WirePath("destinationManagedDatabaseId")] public ResourceIdentifier DestinationManagedDatabaseId { get; } /// The move operation mode. + [WirePath("operationMode")] public ManagedDatabaseMoveOperationMode? OperationMode { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs index 3c16b7b017746..e37bf91eb4613 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs @@ -686,7 +686,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcSecuritySettings.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcSecuritySettings.cs index 68ead2c77bdd0..9d553c42a0c6d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcSecuritySettings.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcSecuritySettings.cs @@ -68,14 +68,19 @@ internal ManagedInstanceDtcSecuritySettings(ManagedInstanceDtcTransactionManager } /// Transaction Manager communication settings of managed instance DTC. + [WirePath("transactionManagerCommunicationSettings")] public ManagedInstanceDtcTransactionManagerCommunicationSettings TransactionManagerCommunicationSettings { get; set; } /// Allow XA Transactions to managed instance DTC. + [WirePath("xaTransactionsEnabled")] public bool? IsXATransactionsEnabled { get; set; } /// Allow SNA LU 6.2 Transactions to managed instance DTC. + [WirePath("snaLu6point2TransactionsEnabled")] public bool? SnaLu6Point2TransactionsEnabled { get; set; } /// Default timeout for XA Transactions (in seconds). + [WirePath("xaTransactionsDefaultTimeout")] public int? XATransactionsDefaultTimeoutInSeconds { get; set; } /// Maximum timeout for XA Transactions (in seconds). + [WirePath("xaTransactionsMaximumTimeout")] public int? XATransactionsMaximumTimeoutInSeconds { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcTransactionManagerCommunicationSettings.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcTransactionManagerCommunicationSettings.cs index 486504acade6c..01997fce2d4f9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcTransactionManagerCommunicationSettings.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcTransactionManagerCommunicationSettings.cs @@ -64,10 +64,13 @@ internal ManagedInstanceDtcTransactionManagerCommunicationSettings(bool? allowIn } /// Allow Inbound traffic to managed instance DTC. + [WirePath("allowInboundEnabled")] public bool? AllowInboundEnabled { get; set; } /// Allow Outbound traffic of managed instance DTC. + [WirePath("allowOutboundEnabled")] public bool? AllowOutboundEnabled { get; set; } /// Authentication type of managed instance DTC. + [WirePath("authentication")] public string Authentication { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEditionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEditionCapability.cs index 007392f9d6608..114367c2230a1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEditionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEditionCapability.cs @@ -73,16 +73,22 @@ internal ManagedInstanceEditionCapability(string name, IReadOnlyList The managed server version name. + [WirePath("name")] public string Name { get; } /// The supported families. + [WirePath("supportedFamilies")] public IReadOnlyList SupportedFamilies { get; } /// The list of supported storage capabilities for this edition. + [WirePath("supportedStorageCapabilities")] public IReadOnlyList SupportedStorageCapabilities { get; } /// Whether or not zone redundancy is supported for the edition. + [WirePath("zoneRedundant")] public bool? IsZoneRedundant { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDependency.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDependency.cs index 2ef0fd22fe60a..368790a6a723e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDependency.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDependency.cs @@ -64,8 +64,10 @@ internal ManagedInstanceEndpointDependency(string domainName, IReadOnlyList The domain name of the dependency. + [WirePath("domainName")] public string DomainName { get; } /// The IP Addresses and Ports used when connecting to DomainName. + [WirePath("endpointDetails")] public IReadOnlyList EndpointDetails { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDetail.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDetail.cs index 332be7e480f6a..fc75ebe2e8424 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDetail.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDetail.cs @@ -60,6 +60,7 @@ internal ManagedInstanceEndpointDetail(int? port, IDictionary The port an endpoint is connected to. + [WirePath("port")] public int? Port { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs index 1794dd74553e8..436153619fd92 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs @@ -70,16 +70,22 @@ internal ManagedInstanceExternalAdministrator(SqlAdministratorType? administrato } /// Type of the sever administrator. + [WirePath("administratorType")] public SqlAdministratorType? AdministratorType { get; set; } /// Principal Type of the sever administrator. + [WirePath("principalType")] public SqlServerPrincipalType? PrincipalType { get; set; } /// Login name of the server administrator. + [WirePath("login")] public string Login { get; set; } /// SID (object ID) of the server administrator. + [WirePath("sid")] public Guid? Sid { get; set; } /// Tenant ID of the administrator. + [WirePath("tenantId")] public Guid? TenantId { get; set; } /// Azure Active Directory only Authentication enabled. + [WirePath("azureADOnlyAuthentication")] public bool? IsAzureADOnlyAuthenticationEnabled { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceFamilyCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceFamilyCapability.cs index 644793fb23b3b..c1a4e6a97d2b2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceFamilyCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceFamilyCapability.cs @@ -73,16 +73,22 @@ internal ManagedInstanceFamilyCapability(string name, string sku, IReadOnlyList< } /// Family name. + [WirePath("name")] public string Name { get; } /// SKU name. + [WirePath("sku")] public string Sku { get; } /// List of supported license types. + [WirePath("supportedLicenseTypes")] public IReadOnlyList SupportedLicenseTypes { get; } /// List of supported virtual cores values. + [WirePath("supportedVcoresValues")] public IReadOnlyList SupportedVcoresValues { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceMaintenanceConfigurationCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceMaintenanceConfigurationCapability.cs index a9794d8797577..b30bba9a97f63 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceMaintenanceConfigurationCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceMaintenanceConfigurationCapability.cs @@ -64,10 +64,13 @@ internal ManagedInstanceMaintenanceConfigurationCapability(string name, SqlCapab } /// Maintenance configuration name. + [WirePath("name")] public string Name { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationParametersPair.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationParametersPair.cs index 2e73ac56fce07..b53d06b884831 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationParametersPair.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationParametersPair.cs @@ -62,8 +62,10 @@ internal ManagedInstanceOperationParametersPair(UpsertManagedServerOperationPara } /// The current parameters. + [WirePath("currentParameters")] public UpsertManagedServerOperationParameters CurrentParameters { get; } /// The requested parameters. + [WirePath("requestedParameters")] public UpsertManagedServerOperationParameters RequestedParameters { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationSteps.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationSteps.cs index 8c1c311dfd532..01e5432f1718a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationSteps.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationSteps.cs @@ -66,10 +66,13 @@ internal ManagedInstanceOperationSteps(string totalSteps, int? currentStep, IRea } /// The total number of operation steps. + [WirePath("totalSteps")] public string TotalSteps { get; } /// The number of current operation steps. + [WirePath("currentStep")] public int? CurrentStep { get; } /// The operation steps list. + [WirePath("stepsList")] public IReadOnlyList StepsList { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePairInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePairInfo.cs index 926783f8d406b..6f223f48653be 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePairInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePairInfo.cs @@ -63,8 +63,10 @@ internal ManagedInstancePairInfo(ResourceIdentifier primaryManagedInstanceId, Re } /// Id of Primary Managed Instance in pair. + [WirePath("primaryManagedInstanceId")] public ResourceIdentifier PrimaryManagedInstanceId { get; set; } /// Id of Partner Managed Instance in pair. + [WirePath("partnerManagedInstanceId")] public ResourceIdentifier PartnerManagedInstanceId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs index 7b0f9b3f22c6c..4564590e9977f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs @@ -139,12 +139,16 @@ internal ManagedInstancePatch(SqlSku sku, ManagedServiceIdentity identity, IDict } /// Managed instance sku. + [WirePath("sku")] public SqlSku Sku { get; set; } /// Managed instance identity. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Gets the provisioning state. + [WirePath("properties.provisioningState")] public ManagedInstancePropertiesProvisioningState? ProvisioningState { get; } /// /// Specifies the mode of database creation. @@ -153,36 +157,52 @@ internal ManagedInstancePatch(SqlSku sku, ManagedServiceIdentity identity, IDict /// /// Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. /// + [WirePath("properties.managedInstanceCreateMode")] public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } /// The fully qualified domain name of the managed instance. + [WirePath("properties.fullyQualifiedDomainName")] public string FullyQualifiedDomainName { get; } /// Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). + [WirePath("properties.administratorLogin")] public string AdministratorLogin { get; set; } /// The administrator login password (required for managed instance creation). + [WirePath("properties.administratorLoginPassword")] public string AdministratorLoginPassword { get; set; } /// Subnet resource ID for the managed instance. + [WirePath("properties.subnetId")] public ResourceIdentifier SubnetId { get; set; } /// The state of the managed instance. + [WirePath("properties.state")] public string State { get; } /// The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). + [WirePath("properties.licenseType")] public ManagedInstanceLicenseType? LicenseType { get; set; } /// The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. + [WirePath("properties.vCores")] public int? VCores { get; set; } /// Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. + [WirePath("properties.storageSizeInGB")] public int? StorageSizeInGB { get; set; } /// Collation of the managed instance. + [WirePath("properties.collation")] public string Collation { get; set; } /// The Dns Zone that the managed instance is in. + [WirePath("properties.dnsZone")] public string DnsZone { get; } /// The resource id of another managed instance whose DNS zone this managed instance will share after creation. + [WirePath("properties.dnsZonePartner")] public ResourceIdentifier ManagedDnsZonePartner { get; set; } /// Whether or not the public data endpoint is enabled. + [WirePath("properties.publicDataEndpointEnabled")] public bool? IsPublicDataEndpointEnabled { get; set; } /// The resource identifier of the source managed instance associated with create operation of this instance. + [WirePath("properties.sourceManagedInstanceId")] public ResourceIdentifier SourceManagedInstanceId { get; set; } /// Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + [WirePath("properties.restorePointInTime")] public DateTimeOffset? RestorePointInTime { get; set; } /// Connection type used for connecting to the instance. + [WirePath("properties.proxyOverride")] public ManagedInstanceProxyOverride? ProxyOverride { get; set; } /// /// Id of the timezone. Allowed values are timezones supported by Windows. @@ -192,28 +212,40 @@ internal ManagedInstancePatch(SqlSku sku, ManagedServiceIdentity identity, IDict /// List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. /// An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". /// + [WirePath("properties.timezoneId")] public string TimezoneId { get; set; } /// The Id of the instance pool this managed server belongs to. + [WirePath("properties.instancePoolId")] public ResourceIdentifier InstancePoolId { get; set; } /// Specifies maintenance configuration id to apply to this managed instance. + [WirePath("properties.maintenanceConfigurationId")] public ResourceIdentifier MaintenanceConfigurationId { get; set; } /// List of private endpoint connections on a managed instance. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'. + [WirePath("properties.minimalTlsVersion")] public string MinimalTlsVersion { get; set; } /// The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). + [WirePath("properties.currentBackupStorageRedundancy")] public SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get; } /// The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). + [WirePath("properties.requestedBackupStorageRedundancy")] public SqlBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } /// Whether or not the multi-az is enabled. + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// The resource id of a user assigned identity to be used by default. + [WirePath("properties.primaryUserAssignedIdentityId")] public ResourceIdentifier PrimaryUserAssignedIdentityId { get; set; } /// A CMK URI of the key to use for encryption. + [WirePath("properties.keyId")] public Uri KeyId { get; set; } /// The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. + [WirePath("properties.administrators")] public ManagedInstanceExternalAdministrator Administrators { get; set; } /// The managed instance's service principal. + [WirePath("properties.servicePrincipal")] public SqlServicePrincipal ServicePrincipal { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePecProperty.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePecProperty.cs index 0e8bb5d98848f..715a322571f96 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePecProperty.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePecProperty.cs @@ -63,8 +63,10 @@ internal ManagedInstancePecProperty(ResourceIdentifier id, ManagedInstancePrivat } /// Resource ID. + [WirePath("id")] public ResourceIdentifier Id { get; } /// Private endpoint connection properties. + [WirePath("properties")] public ManagedInstancePrivateEndpointConnectionProperties Properties { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionProperties.cs index cc100ea1cc387..2b697ae0b0faf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionProperties.cs @@ -68,14 +68,17 @@ internal ManagedInstancePrivateEndpointConnectionProperties(WritableSubResource /// Private endpoint which the connection belongs to. internal WritableSubResource PrivateEndpoint { get; } /// Gets or sets Id. + [WirePath("privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint?.Id; } /// Connection State of the Private Endpoint Connection. + [WirePath("privateLinkServiceConnectionState")] public ManagedInstancePrivateLinkServiceConnectionStateProperty PrivateLinkServiceConnectionState { get; } /// State of the Private Endpoint Connection. + [WirePath("provisioningState")] public string ProvisioningState { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkProperties.cs index 48175dae69724..11af9269dda8d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkProperties.cs @@ -64,8 +64,10 @@ internal ManagedInstancePrivateLinkProperties(string groupId, IReadOnlyList The private link resource group id. + [WirePath("groupId")] public string GroupId { get; } /// The private link resource required member names. + [WirePath("requiredMembers")] public IReadOnlyList RequiredMembers { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs index 2d0484aff1b18..e594b89ed2da2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs @@ -78,10 +78,13 @@ internal ManagedInstancePrivateLinkServiceConnectionStateProperty() } /// The private link service connection status. + [WirePath("status")] public string Status { get; set; } /// The private link service connection description. + [WirePath("description")] public string Description { get; set; } /// The private link service connection description. + [WirePath("actionsRequired")] public string ActionsRequired { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceQuery.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceQuery.cs index 58973deebd19b..54ccc5f4dd05c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceQuery.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceQuery.cs @@ -66,6 +66,7 @@ internal ManagedInstanceQuery(ResourceIdentifier id, string name, ResourceType r } /// Query text. + [WirePath("properties.queryText")] public string QueryText { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceResourceGetTopQueriesOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceResourceGetTopQueriesOptions.cs index f6e190ad428b6..1b8133611c367 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceResourceGetTopQueriesOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceResourceGetTopQueriesOptions.cs @@ -16,18 +16,25 @@ public ManagedInstanceResourceGetTopQueriesOptions() } /// How many 'top queries' to return. Default is 5. + [WirePath("numberOfQueries")] public int? NumberOfQueries { get; set; } /// Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. + [WirePath("databases")] public string Databases { get; set; } /// Start time for observed period. + [WirePath("startTime")] public string StartTime { get; set; } /// End time for observed period. + [WirePath("endTime")] public string EndTime { get; set; } /// The time step to be used to summarize the metric values. Default value is PT1H. + [WirePath("interval")] public QueryTimeGrainType? Interval { get; set; } /// Aggregation function to be used, default value is 'sum'. + [WirePath("aggregationFunction")] public AggregationFunctionType? AggregationFunction { get; set; } /// Metric to be used for ranking top queries. Default is 'cpu'. + [WirePath("observationMetric")] public SqlMetricType? ObservationMetric { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceUpdateDnsServersOperationData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceUpdateDnsServersOperationData.cs index a75fc344bdf89..dc1d9a2933ce3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceUpdateDnsServersOperationData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceUpdateDnsServersOperationData.cs @@ -66,6 +66,7 @@ internal ManagedInstanceUpdateDnsServersOperationData(ResourceIdentifier id, str } /// The status of the DNS refresh operation. + [WirePath("properties.status")] public DnsRefreshConfigurationPropertiesStatus? Status { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVcoresCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVcoresCapability.cs index 269073b930efb..8f9b93c94690e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVcoresCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVcoresCapability.cs @@ -79,22 +79,31 @@ internal ManagedInstanceVcoresCapability(string name, int? value, MaxSizeCapabil } /// The virtual cores identifier. + [WirePath("name")] public string Name { get; } /// The virtual cores value. + [WirePath("value")] public int? Value { get; } /// Included size. + [WirePath("includedMaxSize")] public MaxSizeCapability IncludedMaxSize { get; } /// Storage size ranges. + [WirePath("supportedStorageSizes")] public IReadOnlyList SupportedStorageSizes { get; } /// True if this service objective is supported for managed instances in an instance pool. + [WirePath("instancePoolSupported")] public bool? IsInstancePoolSupported { get; } /// True if this service objective is supported for standalone managed instances. + [WirePath("standaloneSupported")] public bool? IsStandaloneSupported { get; } /// List of supported maintenance configurations. + [WirePath("supportedMaintenanceConfigurations")] public IReadOnlyList SupportedMaintenanceConfigurations { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVersionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVersionCapability.cs index 397a410fcb717..e599fff5d7580 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVersionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVersionCapability.cs @@ -71,14 +71,19 @@ internal ManagedInstanceVersionCapability(string name, IReadOnlyList The server version name. + [WirePath("name")] public string Name { get; } /// The list of supported managed instance editions. + [WirePath("supportedEditions")] public IReadOnlyList SupportedEditions { get; } /// The list of supported instance pool editions. + [WirePath("supportedInstancePoolEditions")] public IReadOnlyList SupportedInstancePoolEditions { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasAcquisition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasAcquisition.cs index 23a697fe01d6f..72d8bac9c7fb2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasAcquisition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasAcquisition.cs @@ -71,6 +71,7 @@ internal ManagedServerDnsAliasAcquisition() } /// The resource ID of the managed server DNS alias that will be acquired to point to this managed server instead. + [WirePath("oldManagedServerDnsAliasResourceId")] public ResourceIdentifier OldManagedServerDnsAliasResourceId { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasCreateOrUpdateContent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasCreateOrUpdateContent.cs index 07d63c5e6b17b..4488fd860325c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasCreateOrUpdateContent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasCreateOrUpdateContent.cs @@ -60,6 +60,7 @@ internal ManagedServerDnsAliasCreateOrUpdateContent(bool? createDnsRecord, IDict } /// Whether or not DNS record should be created for this alias. + [WirePath("createDnsRecord")] public bool? CreateDnsRecord { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaxSizeCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaxSizeCapability.cs index ca7f8ff5263c2..c51ead4d1b7eb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaxSizeCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaxSizeCapability.cs @@ -62,8 +62,10 @@ internal MaxSizeCapability(int? limit, MaxSizeUnit? unit, IDictionary The maximum size limit (see 'unit' for the units). + [WirePath("limit")] public int? Limit { get; } /// The units that the limit is expressed in. + [WirePath("unit")] public MaxSizeUnit? Unit { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaxSizeRangeCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaxSizeRangeCapability.cs index fdff742ccedad..2431d734ab0b8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaxSizeRangeCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaxSizeRangeCapability.cs @@ -70,16 +70,22 @@ internal MaxSizeRangeCapability(MaxSizeCapability minValue, MaxSizeCapability ma } /// Minimum value. + [WirePath("minValue")] public MaxSizeCapability MinValue { get; } /// Maximum value. + [WirePath("maxValue")] public MaxSizeCapability MaxValue { get; } /// Scale/step size for discrete values between the minimum value and the maximum value. + [WirePath("scaleSize")] public MaxSizeCapability ScaleSize { get; } /// Size of transaction log. + [WirePath("logSize")] public LogSizeCapability LogSize { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MinCapacityCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MinCapacityCapability.cs index 31458635a52cd..f86157d799585 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MinCapacityCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MinCapacityCapability.cs @@ -64,10 +64,13 @@ internal MinCapacityCapability(double? value, SqlCapabilityStatus? status, strin } /// Min capacity value. + [WirePath("value")] public double? Value { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/NetworkIsolationSettings.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/NetworkIsolationSettings.cs index ee78764991ff5..6055624ca1f4a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/NetworkIsolationSettings.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/NetworkIsolationSettings.cs @@ -63,8 +63,10 @@ internal NetworkIsolationSettings(ResourceIdentifier storageAccountResourceId, R } /// The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. + [WirePath("storageAccountResourceId")] public ResourceIdentifier StorageAccountResourceId { get; set; } /// The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. + [WirePath("sqlServerResourceId")] public ResourceIdentifier SqlServerResourceId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PartnerRegionInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PartnerRegionInfo.cs index 9f5ebfd4d2ba2..43ef08398019f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PartnerRegionInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PartnerRegionInfo.cs @@ -63,8 +63,10 @@ internal PartnerRegionInfo(AzureLocation? location, InstanceFailoverGroupReplica } /// Geo location of the partner managed instances. + [WirePath("location")] public AzureLocation? Location { get; set; } /// Replication role of the partner managed instances. + [WirePath("replicationRole")] public InstanceFailoverGroupReplicationRole? ReplicationRole { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PartnerServerInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PartnerServerInfo.cs index 5d357fb61a311..b808d01c8b61a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PartnerServerInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PartnerServerInfo.cs @@ -75,10 +75,13 @@ internal PartnerServerInfo() } /// Resource identifier of the partner server. + [WirePath("id")] public ResourceIdentifier Id { get; set; } /// Geo location of the partner server. + [WirePath("location")] public AzureLocation? Location { get; } /// Replication role of the partner server. + [WirePath("replicationRole")] public FailoverGroupReplicationRole? ReplicationRole { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PerformanceLevelCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PerformanceLevelCapability.cs index 57cb0670ce134..97f48711570a8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PerformanceLevelCapability.cs @@ -62,8 +62,10 @@ internal PerformanceLevelCapability(double? value, PerformanceLevelUnit? unit, I } /// Performance level value. + [WirePath("value")] public double? Value { get; } /// Unit type used to measure performance level. + [WirePath("unit")] public PerformanceLevelUnit? Unit { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs index 0d0ead0bb319c..aec3cd9b3cebf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs @@ -65,10 +65,13 @@ internal PrivateEndpointConnectionRequestStatus(ResourceIdentifier privateLinkSe } /// Resource id for which the private endpoint is created. + [WirePath("privateLinkServiceId")] public ResourceIdentifier PrivateLinkServiceId { get; } /// The connection name for the private endpoint. + [WirePath("privateEndpointConnectionName")] public string PrivateEndpointConnectionName { get; } /// Status of this private endpoint connection. + [WirePath("status")] public string Status { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricInterval.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricInterval.cs index dc261d7054151..76258b0948935 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricInterval.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricInterval.cs @@ -68,12 +68,16 @@ internal QueryMetricInterval(string intervalStartTime, QueryTimeGrainType? inter } /// The start time for the metric interval (ISO-8601 format). + [WirePath("intervalStartTime")] public string IntervalStartTime { get; } /// Interval type (length). + [WirePath("intervalType")] public QueryTimeGrainType? IntervalType { get; } /// Execution count of a query in this interval. + [WirePath("executionCount")] public long? ExecutionCount { get; } /// List of metric objects for this interval. + [WirePath("metrics")] public IList Metrics { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricProperties.cs index b02cdc5f6d5e2..019ef1b423bd8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricProperties.cs @@ -76,22 +76,31 @@ internal QueryMetricProperties(string name, string displayName, QueryMetricUnitT } /// The name information for the metric. + [WirePath("name")] public string Name { get; } /// The UI appropriate name for the metric. + [WirePath("displayName")] public string DisplayName { get; } /// The unit of the metric. + [WirePath("unit")] public QueryMetricUnitType? Unit { get; } /// The value of the metric. + [WirePath("value")] public double? Value { get; } /// Metric value when min() aggregate function is used over the interval. + [WirePath("min")] public double? Min { get; } /// Metric value when max() aggregate function is used over the interval. + [WirePath("max")] public double? Max { get; } /// Metric value when avg() aggregate function is used over the interval. + [WirePath("avg")] public double? Avg { get; } /// Metric value when sum() aggregate function is used over the interval. + [WirePath("sum")] public double? Sum { get; } /// Metric value when stdev aggregate function is used over the interval. + [WirePath("stdev")] public double? Stdev { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatistics.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatistics.cs index 3019c69042845..5c405317c421a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatistics.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatistics.cs @@ -75,14 +75,19 @@ internal QueryStatistics(ResourceIdentifier id, string name, ResourceType resour } /// Database name of the database in which this query was executed. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// Unique query id (unique within one database). + [WirePath("properties.queryId")] public string QueryId { get; } /// The start time for the metric (ISO-8601 format). + [WirePath("properties.startTime")] public string StartTime { get; } /// The end time for the metric (ISO-8601 format). + [WirePath("properties.endTime")] public string EndTime { get; } /// List of intervals with appropriate metric data. + [WirePath("properties.intervals")] public IList Intervals { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatisticsProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatisticsProperties.cs index d24e24e52b420..20288de84362c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatisticsProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatisticsProperties.cs @@ -70,14 +70,19 @@ internal QueryStatisticsProperties(string databaseName, string queryId, string s } /// Database name of the database in which this query was executed. + [WirePath("databaseName")] public string DatabaseName { get; } /// Unique query id (unique within one database). + [WirePath("queryId")] public string QueryId { get; } /// The start time for the metric (ISO-8601 format). + [WirePath("startTime")] public string StartTime { get; } /// The end time for the metric (ISO-8601 format). + [WirePath("endTime")] public string EndTime { get; } /// List of intervals with appropriate metric data. + [WirePath("intervals")] public IReadOnlyList Intervals { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ReadScaleCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ReadScaleCapability.cs index 093e23452fa24..575240df78bef 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ReadScaleCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ReadScaleCapability.cs @@ -64,10 +64,13 @@ internal ReadScaleCapability(int? maxNumberOfReplicas, SqlCapabilityStatus? stat } /// The maximum number of read scale replicas. + [WirePath("maxNumberOfReplicas")] public int? MaxNumberOfReplicas { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionData.Serialization.cs index 173ffffb28579..4076e573bfd2e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionData.Serialization.cs @@ -1068,7 +1068,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Details) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionErrorInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionErrorInfo.cs index b96257953f66f..6006e4193b6a2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionErrorInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionErrorInfo.cs @@ -62,8 +62,10 @@ internal RecommendedActionErrorInfo(string errorCode, ActionRetryableState? isRe } /// Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists. + [WirePath("errorCode")] public string ErrorCode { get; } /// Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No. + [WirePath("isRetryable")] public ActionRetryableState? IsRetryable { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionImpactRecord.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionImpactRecord.cs index efd77e3994861..b9b0f26ae0488 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionImpactRecord.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionImpactRecord.cs @@ -68,14 +68,19 @@ internal RecommendedActionImpactRecord(string dimensionName, string unit, double } /// Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected. + [WirePath("dimensionName")] public string DimensionName { get; } /// Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected. + [WirePath("unit")] public string Unit { get; } /// Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected. + [WirePath("absoluteValue")] public double? AbsoluteValue { get; } /// Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes. + [WirePath("changeValueAbsolute")] public double? ChangeValueAbsolute { get; } /// Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage. + [WirePath("changeValueRelative")] public double? ChangeValueRelative { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionImplementationInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionImplementationInfo.cs index 1e43f6d50f86d..efd566e509a14 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionImplementationInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionImplementationInfo.cs @@ -62,8 +62,10 @@ internal RecommendedActionImplementationInfo(ImplementationMethod? method, strin } /// Gets the method in which this recommended action can be manually implemented. e.g., TSql, AzurePowerShell. + [WirePath("method")] public ImplementationMethod? Method { get; } /// Gets the manual implementation script. e.g., T-SQL script that could be executed on the database. + [WirePath("script")] public string Script { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionMetricInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionMetricInfo.cs index 8fb2b8fe76442..89f3d4f3c5144 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionMetricInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionMetricInfo.cs @@ -68,14 +68,19 @@ internal RecommendedActionMetricInfo(string metricName, string unit, string time } /// Gets the name of the metric. e.g., CPU, Number of Queries. + [WirePath("metricName")] public string MetricName { get; } /// Gets the unit in which metric is measured. e.g., DTU, Frequency. + [WirePath("unit")] public string Unit { get; } /// Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour). + [WirePath("timeGrain")] public string TimeGrain { get; } /// Gets the start time of time interval given by this MetricInfo. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; } /// Gets the value of the metric in the time interval given by this MetricInfo. + [WirePath("value")] public double? Value { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionStateInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionStateInfo.cs index d592c212809ca..0e07c5f9b4dce 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionStateInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionStateInfo.cs @@ -71,10 +71,13 @@ internal RecommendedActionStateInfo() } /// Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action. + [WirePath("currentValue")] public RecommendedActionCurrentState CurrentValue { get; set; } /// Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it. + [WirePath("actionInitiatedBy")] public RecommendedActionInitiatedBy? ActionInitiatedBy { get; } /// Gets the time when the state was last modified. + [WirePath("lastModified")] public DateTimeOffset? LastModified { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdate.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdate.cs index c440edb5421e9..733cacd3caf8a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdate.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdate.cs @@ -72,12 +72,16 @@ internal RecommendedSensitivityLabelUpdate(ResourceIdentifier id, string name, R } /// Gets or sets the op. + [WirePath("properties.op")] public RecommendedSensitivityLabelUpdateKind? Op { get; set; } /// Schema name of the column to update. + [WirePath("properties.schema")] public string Schema { get; set; } /// Table name of the column to update. + [WirePath("properties.table")] public string Table { get; set; } /// Column name to update. + [WirePath("properties.column")] public string Column { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateList.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateList.cs index f72218560233d..92ee8b1a490c5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateList.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateList.cs @@ -62,6 +62,7 @@ internal RecommendedSensitivityLabelUpdateList(IList Gets the operations. + [WirePath("operations")] public IList Operations { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseData.Serialization.cs index a273600ee238d..33947505a25be 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseData.Serialization.cs @@ -378,7 +378,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Keys) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RefreshExternalGovernanceStatusOperationResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RefreshExternalGovernanceStatusOperationResult.cs index 64d165135c92b..8892ae4389717 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RefreshExternalGovernanceStatusOperationResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RefreshExternalGovernanceStatusOperationResult.cs @@ -76,16 +76,22 @@ internal RefreshExternalGovernanceStatusOperationResult(ResourceIdentifier id, s } /// Request Id. + [WirePath("properties.requestId")] public Guid? RequestId { get; } /// Request type. + [WirePath("properties.requestType")] public string RequestType { get; } /// Queued time. + [WirePath("properties.queuedTime")] public string QueuedTime { get; } /// Server name. + [WirePath("properties.serverName")] public string ServerName { get; } /// Operation status. + [WirePath("properties.status")] public string Status { get; } /// Error message. + [WirePath("properties.errorMessage")] public string ErrorMessage { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceWithWritableName.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceWithWritableName.cs index e315489dbebd2..679e04e0a9d93 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceWithWritableName.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceWithWritableName.cs @@ -65,10 +65,13 @@ internal ResourceWithWritableName(ResourceIdentifier id, string name, ResourceTy } /// Resource ID. + [WirePath("id")] public ResourceIdentifier Id { get; } /// Resource name. + [WirePath("name")] public string Name { get; set; } /// Resource type. + [WirePath("type")] public ResourceType? ResourceType { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseData.Serialization.cs index cb8ba230e39c5..d3aec0fe02ffa 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseData.Serialization.cs @@ -368,7 +368,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); @@ -543,7 +543,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Keys) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseData.Serialization.cs index 29713669531a3..cc77cea95c7b1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseData.Serialization.cs @@ -296,7 +296,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEvent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEvent.cs index 9c368019a8acb..81b32ffbaaf27 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEvent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEvent.cs @@ -83,22 +83,31 @@ internal SecurityEvent(ResourceIdentifier id, string name, ResourceType resource } /// The time when the security event occurred. + [WirePath("properties.eventTime")] public DateTimeOffset? EventOn { get; } /// The type of the security event. + [WirePath("properties.securityEventType")] public SecurityEventType? SecurityEventType { get; } /// The subscription name. + [WirePath("properties.subscription")] public string Subscription { get; } /// The server name. + [WirePath("properties.server")] public string Server { get; } /// The database name. + [WirePath("properties.database")] public string Database { get; } /// The IP address of the client who executed the statement. + [WirePath("properties.clientIp")] public IPAddress ClientIP { get; } /// The application used to execute the statement. + [WirePath("properties.applicationName")] public string ApplicationName { get; } /// The principal user who executed the statement. + [WirePath("properties.principalName")] public string PrincipalName { get; } /// The sql injection additional properties, populated only if the type of the security event is sql injection. + [WirePath("properties.securityEventSqlInjectionAdditionalProperties")] public SecurityEventSqlInjectionAdditionalProperties SecurityEventSqlInjectionAdditionalProperties { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventSqlInjectionAdditionalProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventSqlInjectionAdditionalProperties.cs index aa6e5a71c38b7..75ded975bd9df 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventSqlInjectionAdditionalProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventSqlInjectionAdditionalProperties.cs @@ -72,18 +72,25 @@ internal SecurityEventSqlInjectionAdditionalProperties(string threatId, string s } /// The threat ID. + [WirePath("threatId")] public string ThreatId { get; } /// The statement. + [WirePath("statement")] public string Statement { get; } /// The statement highlight offset. + [WirePath("statementHighlightOffset")] public int? StatementHighlightOffset { get; } /// The statement highlight length. + [WirePath("statementHighlightLength")] public int? StatementHighlightLength { get; } /// The sql error code. + [WirePath("errorCode")] public int? ErrorCode { get; } /// The sql error severity. + [WirePath("errorSeverity")] public int? ErrorSeverity { get; } /// The sql error message. + [WirePath("errorMessage")] public string ErrorMessage { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdate.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdate.cs index ccaec9e353968..f978a0f53c574 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdate.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdate.cs @@ -75,14 +75,19 @@ internal SensitivityLabelUpdate(ResourceIdentifier id, string name, ResourceType } /// Gets or sets the op. + [WirePath("properties.op")] public SensitivityLabelUpdateKind? Op { get; set; } /// Schema name of the column to update. + [WirePath("properties.schema")] public string Schema { get; set; } /// Table name of the column to update. + [WirePath("properties.table")] public string Table { get; set; } /// Column name to update. + [WirePath("properties.column")] public string Column { get; set; } /// The sensitivity label information to apply on a column. + [WirePath("properties.sensitivityLabel")] public SensitivityLabelData SensitivityLabel { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateList.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateList.cs index 485416eb2d08c..ca68068d1f4d6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateList.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateList.cs @@ -62,6 +62,7 @@ internal SensitivityLabelUpdateList(IList operations, ID } /// Gets the operations. + [WirePath("operations")] public IList Operations { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDnsAliasAcquisition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDnsAliasAcquisition.cs index 3418eb61f3577..c16a6e4b9aefe 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDnsAliasAcquisition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDnsAliasAcquisition.cs @@ -71,6 +71,7 @@ internal ServerDnsAliasAcquisition() } /// The id of the server alias that will be acquired to point to this server instead. + [WirePath("oldServerDnsAliasId")] public ResourceIdentifier OldServerDnsAliasId { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerExternalAdministrator.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerExternalAdministrator.cs index 384b6c1c026e0..0abdba699e847 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerExternalAdministrator.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerExternalAdministrator.cs @@ -70,16 +70,22 @@ internal ServerExternalAdministrator(SqlAdministratorType? administratorType, Sq } /// Type of the sever administrator. + [WirePath("administratorType")] public SqlAdministratorType? AdministratorType { get; set; } /// Principal Type of the sever administrator. + [WirePath("principalType")] public SqlServerPrincipalType? PrincipalType { get; set; } /// Login name of the server administrator. + [WirePath("login")] public string Login { get; set; } /// SID (object ID) of the server administrator. + [WirePath("sid")] public Guid? Sid { get; set; } /// Tenant ID of the administrator. + [WirePath("tenantId")] public Guid? TenantId { get; set; } /// Azure Active Directory only Authentication enabled. + [WirePath("azureADOnlyAuthentication")] public bool? IsAzureADOnlyAuthenticationEnabled { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerOperationData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerOperationData.cs index 6d451643e9939..7cc6d4021d890 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerOperationData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerOperationData.cs @@ -90,30 +90,43 @@ internal ServerOperationData(ResourceIdentifier id, string name, ResourceType re } /// The name of operation. + [WirePath("properties.operation")] public string Operation { get; } /// The friendly name of operation. + [WirePath("properties.operationFriendlyName")] public string OperationFriendlyName { get; } /// The percentage of the operation completed. + [WirePath("properties.percentComplete")] public int? PercentComplete { get; } /// The name of the server. + [WirePath("properties.serverName")] public string ServerName { get; } /// The operation start time. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The operation state. + [WirePath("properties.state")] public ManagementOperationState? State { get; } /// The operation error code. + [WirePath("properties.errorCode")] public int? ErrorCode { get; } /// The operation error description. + [WirePath("properties.errorDescription")] public string ErrorDescription { get; } /// The operation error severity. + [WirePath("properties.errorSeverity")] public int? ErrorSeverity { get; } /// Whether or not the error is a user error. + [WirePath("properties.isUserError")] public bool? IsUserError { get; } /// The estimated completion time of the operation. + [WirePath("properties.estimatedCompletionTime")] public DateTimeOffset? EstimatedCompleteOn { get; } /// The operation description. + [WirePath("properties.description")] public string Description { get; } /// Whether the operation can be cancelled. + [WirePath("properties.isCancellable")] public bool? IsCancellable { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs index 64845a056bf27..f56617769a51d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs @@ -71,16 +71,20 @@ internal ServerPrivateEndpointConnectionProperties(WritableSubResource privateEn /// Private endpoint which the connection belongs to. internal WritableSubResource PrivateEndpoint { get; } /// Gets or sets Id. + [WirePath("privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint?.Id; } /// Group IDs. + [WirePath("groupIds")] public IReadOnlyList GroupIds { get; } /// Connection state of the private endpoint connection. + [WirePath("privateLinkServiceConnectionState")] public SqlPrivateLinkServiceConnectionStateProperty ConnectionState { get; } /// State of the private endpoint connection. + [WirePath("provisioningState")] public SqlPrivateEndpointProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustGroupServerInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustGroupServerInfo.cs index cd58c2806efc1..39838c90cdc5a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustGroupServerInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustGroupServerInfo.cs @@ -71,6 +71,7 @@ internal ServerTrustGroupServerInfo() } /// Server Id. + [WirePath("serverId")] public ResourceIdentifier ServerId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveCapability.cs index 5b7894cb27260..b01214e683de1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveCapability.cs @@ -91,32 +91,46 @@ internal ServiceObjectiveCapability(Guid? id, string name, IReadOnlyList The unique ID of the service objective. + [WirePath("id")] public Guid? Id { get; } /// The service objective name. + [WirePath("name")] public string Name { get; } /// The list of supported maximum database sizes. + [WirePath("supportedMaxSizes")] public IReadOnlyList SupportedMaxSizes { get; } /// The performance level. + [WirePath("performanceLevel")] public PerformanceLevelCapability PerformanceLevel { get; } /// The sku. + [WirePath("sku")] public SqlSku Sku { get; } /// List of supported license types. + [WirePath("supportedLicenseTypes")] public IReadOnlyList SupportedLicenseTypes { get; } /// The included (free) max size. + [WirePath("includedMaxSize")] public MaxSizeCapability IncludedMaxSize { get; } /// Whether or not zone redundancy is supported for the service objective. + [WirePath("zoneRedundant")] public bool? IsZoneRedundant { get; } /// Supported time range for auto pause delay. + [WirePath("supportedAutoPauseDelay")] public AutoPauseDelayTimeRange SupportedAutoPauseDelay { get; } /// List of supported min capacities. + [WirePath("supportedMinCapacities")] public IReadOnlyList SupportedMinCapacities { get; } /// The compute model. + [WirePath("computeModel")] public string ComputeModel { get; } /// List of supported maintenance configurations. + [WirePath("supportedMaintenanceConfigurations")] public IReadOnlyList SupportedMaintenanceConfigurations { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAutomaticTuningData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAutomaticTuningData.Serialization.cs index b684324925a72..2a3c2a2a9c57e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAutomaticTuningData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAutomaticTuningData.Serialization.cs @@ -307,7 +307,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Options) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseData.Serialization.cs index daa81f73fa228..01a8c38a90ccd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseData.Serialization.cs @@ -1008,7 +1008,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); @@ -1711,7 +1711,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Keys) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseExtension.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseExtension.cs index 00ba18edf5b98..b0c65e0bc8bbf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseExtension.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseExtension.cs @@ -72,12 +72,16 @@ internal SqlDatabaseExtension(ResourceIdentifier id, string name, ResourceType r } /// Operation Mode. + [WirePath("properties.operationMode")] public DatabaseExtensionOperationMode? OperationMode { get; set; } /// Storage key type. + [WirePath("properties.storageKeyType")] public StorageKeyType? StorageKeyType { get; set; } /// Storage key. + [WirePath("properties.storageKey")] public string StorageKey { get; set; } /// Storage Uri. + [WirePath("properties.storageUri")] public Uri StorageUri { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseKey.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseKey.cs index dad2d90f7440f..1d70a1767c715 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseKey.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseKey.cs @@ -66,12 +66,16 @@ internal SqlDatabaseKey(SqlDatabaseKeyType? keyType, string thumbprint, DateTime } /// The database key type. Only supported value is 'AzureKeyVault'. + [WirePath("type")] public SqlDatabaseKeyType? KeyType { get; } /// Thumbprint of the database key. + [WirePath("thumbprint")] public string Thumbprint { get; } /// The database key creation date. + [WirePath("creationDate")] public DateTimeOffset? CreatedOn { get; } /// Subregion of the server key. + [WirePath("subregion")] public string Subregion { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabasePatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabasePatch.cs index 21dd25fdb8b17..d615b24881c5e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabasePatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabasePatch.cs @@ -199,10 +199,13 @@ internal SqlDatabasePatch(SqlSku sku, DatabaseIdentity identity, IDictionary The name and tier of the SKU. + [WirePath("sku")] public SqlSku Sku { get; set; } /// Database identity. + [WirePath("identity")] public DatabaseIdentity Identity { get; set; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// /// Specifies the mode of database creation. @@ -223,88 +226,130 @@ internal SqlDatabasePatch(SqlSku sku, DatabaseIdentity identity, IDictionary + [WirePath("properties.createMode")] public SqlDatabaseCreateMode? CreateMode { get; set; } /// The collation of the database. + [WirePath("properties.collation")] public string Collation { get; set; } /// The max size of the database expressed in bytes. + [WirePath("properties.maxSizeBytes")] public long? MaxSizeBytes { get; set; } /// The name of the sample schema to apply when creating this database. + [WirePath("properties.sampleName")] public SampleSchemaName? SampleName { get; set; } /// The resource identifier of the elastic pool containing this database. + [WirePath("properties.elasticPoolId")] public ResourceIdentifier ElasticPoolId { get; set; } /// The resource identifier of the source database associated with create operation of this database. + [WirePath("properties.sourceDatabaseId")] public ResourceIdentifier SourceDatabaseId { get; set; } /// The status of the database. + [WirePath("properties.status")] public SqlDatabaseStatus? Status { get; } /// The ID of the database. + [WirePath("properties.databaseId")] public Guid? DatabaseId { get; } /// The creation date of the database (ISO8601 format). + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// The current service level objective name of the database. + [WirePath("properties.currentServiceObjectiveName")] public string CurrentServiceObjectiveName { get; } /// The requested service level objective name of the database. + [WirePath("properties.requestedServiceObjectiveName")] public string RequestedServiceObjectiveName { get; } /// The default secondary region for this database. + [WirePath("properties.defaultSecondaryLocation")] public AzureLocation? DefaultSecondaryLocation { get; } /// Failover Group resource identifier that this database belongs to. + [WirePath("properties.failoverGroupId")] public ResourceIdentifier FailoverGroupId { get; } /// Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + [WirePath("properties.restorePointInTime")] public DateTimeOffset? RestorePointInTime { get; set; } /// Specifies the time that the database was deleted. + [WirePath("properties.sourceDatabaseDeletionDate")] public DateTimeOffset? SourceDatabaseDeletedOn { get; set; } /// The resource identifier of the recovery point associated with create operation of this database. + [WirePath("properties.recoveryServicesRecoveryPointId")] public ResourceIdentifier RecoveryServicesRecoveryPointId { get; set; } /// The resource identifier of the long term retention backup associated with create operation of this database. + [WirePath("properties.longTermRetentionBackupResourceId")] public ResourceIdentifier LongTermRetentionBackupResourceId { get; set; } /// The resource identifier of the recoverable database associated with create operation of this database. + [WirePath("properties.recoverableDatabaseId")] public ResourceIdentifier RecoverableDatabaseId { get; set; } /// The resource identifier of the restorable dropped database associated with create operation of this database. + [WirePath("properties.restorableDroppedDatabaseId")] public ResourceIdentifier RestorableDroppedDatabaseId { get; set; } /// Collation of the metadata catalog. + [WirePath("properties.catalogCollation")] public CatalogCollationType? CatalogCollation { get; set; } /// Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. + [WirePath("properties.licenseType")] public DatabaseLicenseType? LicenseType { get; set; } /// The max log size for this database. + [WirePath("properties.maxLogSizeBytes")] public long? MaxLogSizeBytes { get; } /// This records the earliest start date and time that restore is available for this database (ISO8601 format). + [WirePath("properties.earliestRestoreDate")] public DateTimeOffset? EarliestRestoreOn { get; } /// The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. + [WirePath("properties.readScale")] public DatabaseReadScale? ReadScale { get; set; } /// The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. + [WirePath("properties.highAvailabilityReplicaCount")] public int? HighAvailabilityReplicaCount { get; set; } /// The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby. + [WirePath("properties.secondaryType")] public SecondaryType? SecondaryType { get; set; } /// The name and tier of the SKU. + [WirePath("properties.currentSku")] public SqlSku CurrentSku { get; } /// Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled. + [WirePath("properties.autoPauseDelay")] public int? AutoPauseDelay { get; set; } /// The storage account type used to store backups for this database. + [WirePath("properties.currentBackupStorageRedundancy")] public SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get; } /// The storage account type to be used to store backups for this database. + [WirePath("properties.requestedBackupStorageRedundancy")] public SqlBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } /// Minimal capacity that database will always have allocated, if not paused. + [WirePath("properties.minCapacity")] public double? MinCapacity { get; set; } /// The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + [WirePath("properties.pausedDate")] public DateTimeOffset? PausedOn { get; } /// The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + [WirePath("properties.resumedDate")] public DateTimeOffset? ResumedOn { get; } /// Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. + [WirePath("properties.maintenanceConfigurationId")] public ResourceIdentifier MaintenanceConfigurationId { get; set; } /// Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. + [WirePath("properties.isLedgerOn")] public bool? IsLedgerOn { get; set; } /// Infra encryption is enabled for this database. + [WirePath("properties.isInfraEncryptionEnabled")] public bool? IsInfraEncryptionEnabled { get; } /// The Client id used for cross tenant per database CMK scenario. + [WirePath("properties.federatedClientId")] public Guid? FederatedClientId { get; set; } /// The resource ids of the user assigned identities to use. + [WirePath("properties.keys")] public IDictionary Keys { get; } /// The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. + [WirePath("properties.encryptionProtector")] public string EncryptionProtector { get; set; } /// Type of enclave requested on the database i.e. Default or VBS enclaves. + [WirePath("properties.preferredEnclaveType")] public SqlAlwaysEncryptedEnclaveType? PreferredEnclaveType { get; set; } /// Whether or not the database uses free monthly limits. Allowed on one database in a subscription. + [WirePath("properties.useFreeLimit")] public bool? UseFreeLimit { get; set; } /// /// Specifies the behavior when monthly free limits are exhausted for the free database. @@ -313,6 +358,7 @@ internal SqlDatabasePatch(SqlSku sku, DatabaseIdentity identity, IDictionary + [WirePath("properties.freeLimitExhaustionBehavior")] public FreeLimitExhaustionBehavior? FreeLimitExhaustionBehavior { get; set; } /// /// Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. @@ -323,6 +369,7 @@ internal SqlDatabasePatch(SqlSku sku, DatabaseIdentity identity, IDictionary + [WirePath("properties.manualCutover")] public bool? ManualCutover { get; set; } /// /// To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. @@ -333,8 +380,10 @@ internal SqlDatabasePatch(SqlSku sku, DatabaseIdentity identity, IDictionary + [WirePath("properties.performCutover")] public bool? PerformCutover { get; set; } /// The flag to enable or disable auto rotation of database encryption protector AKV key. + [WirePath("properties.encryptionProtectorAutoRotation")] public bool? EncryptionProtectorAutoRotation { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlLocationCapabilities.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlLocationCapabilities.cs index 03d58ef4e2682..391bac65b771b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlLocationCapabilities.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlLocationCapabilities.cs @@ -71,14 +71,19 @@ internal SqlLocationCapabilities(string name, IReadOnlyList The location name. + [WirePath("name")] public string Name { get; } /// The list of supported server versions. + [WirePath("supportedServerVersions")] public IReadOnlyList SupportedServerVersions { get; } /// The list of supported managed instance versions. + [WirePath("supportedManagedInstanceVersions")] public IReadOnlyList SupportedManagedInstanceVersions { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetric.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetric.cs index 231b4a503ee1a..107cbb7d42f14 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetric.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetric.cs @@ -72,16 +72,22 @@ internal SqlMetric(DateTimeOffset? startOn, DateTimeOffset? endOn, string timeGr } /// The start time for the metric (ISO-8601 format). + [WirePath("startTime")] public DateTimeOffset? StartOn { get; } /// The end time for the metric (ISO-8601 format). + [WirePath("endTime")] public DateTimeOffset? EndOn { get; } /// The time step to be used to summarize the metric values. + [WirePath("timeGrain")] public string TimeGrain { get; } /// The unit of the metric. + [WirePath("unit")] public SqlMetricUnitType? Unit { get; } /// The name information for the metric. + [WirePath("name")] public SqlMetricName Name { get; } /// The metric values for the specified time window and timestep. + [WirePath("metricValues")] public IReadOnlyList MetricValues { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricAvailability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricAvailability.cs index 6d30ced641988..59fb5ffff2ead 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricAvailability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricAvailability.cs @@ -62,8 +62,10 @@ internal SqlMetricAvailability(string retention, string timeGrain, IDictionary The length of retention for the database metric. + [WirePath("retention")] public string Retention { get; } /// The granularity of the database metric. + [WirePath("timeGrain")] public string TimeGrain { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricDefinition.cs index c7675e091c4e1..a8318038880ee 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricDefinition.cs @@ -70,14 +70,19 @@ internal SqlMetricDefinition(SqlMetricName name, SqlMetricPrimaryAggregationType } /// The name information for the metric. + [WirePath("name")] public SqlMetricName Name { get; } /// The primary aggregation type defining how metric values are displayed. + [WirePath("primaryAggregationType")] public SqlMetricPrimaryAggregationType? PrimaryAggregationType { get; } /// The resource uri of the database. + [WirePath("resourceUri")] public string ResourceUriString { get; } /// The unit of the metric. + [WirePath("unit")] public SqlMetricDefinitionUnitType? Unit { get; } /// The list of database metric availabilities for the metric. + [WirePath("metricAvailabilities")] public IReadOnlyList MetricAvailabilities { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricName.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricName.cs index cd2c103a47668..cabffa7c9c9ad 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricName.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricName.cs @@ -62,8 +62,10 @@ internal SqlMetricName(string value, string localizedValue, IDictionary The name of the database metric. + [WirePath("value")] public string Value { get; } /// The friendly name of the database metric. + [WirePath("localizedValue")] public string LocalizedValue { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricValue.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricValue.cs index 0306aaecbf40e..0dc6db7b09a20 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricValue.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricValue.cs @@ -70,16 +70,22 @@ internal SqlMetricValue(int? count, double? average, double? maximum, double? mi } /// The number of values for the metric. + [WirePath("count")] public int? Count { get; } /// The average value of the metric. + [WirePath("average")] public double? Average { get; } /// The max value of the metric. + [WirePath("maximum")] public double? Maximum { get; } /// The min value of the metric. + [WirePath("minimum")] public double? Minimum { get; } /// The metric timestamp (ISO-8601 format). + [WirePath("timestamp")] public DateTimeOffset? Timestamp { get; } /// The total value of the metric. + [WirePath("total")] public double? Total { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameAvailabilityContent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameAvailabilityContent.cs index cf94aa81104ac..809110b60b2bf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameAvailabilityContent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameAvailabilityContent.cs @@ -74,8 +74,10 @@ internal SqlNameAvailabilityContent() } /// Gets the name. + [WirePath("name")] public string Name { get; } /// Gets the resource type. + [WirePath("type")] public SqlNameAvailabilityResourceType ResourceType { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameAvailabilityResponse.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameAvailabilityResponse.cs index 9376f47e92f50..60285984b682e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameAvailabilityResponse.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlNameAvailabilityResponse.cs @@ -66,12 +66,16 @@ internal SqlNameAvailabilityResponse(string name, bool? isAvailable, SqlNameUnav } /// The name whose availability was checked. + [WirePath("name")] public string Name { get; } /// True if the name is available, otherwise false. + [WirePath("available")] public bool? IsAvailable { get; } /// The reason code explaining why the name is unavailable. Will be undefined if the name is available. + [WirePath("reason")] public SqlNameUnavailableReason? Reason { get; } /// A message explaining why the name is unavailable. Will be undefined if the name is available. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpoint.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpoint.cs index 0fadfee2e67be..b6cdd3ab05d36 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpoint.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpoint.cs @@ -64,8 +64,10 @@ internal SqlOutboundEnvironmentEndpoint(string category, IReadOnlyList The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. + [WirePath("category")] public string Category { get; } /// The endpoints that the managed instance service communicates with in order to function correctly. + [WirePath("endpoints")] public IReadOnlyList Endpoints { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceProperties.cs index 28f032ca5f1f6..c53aa09209136 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceProperties.cs @@ -67,10 +67,13 @@ internal SqlPrivateLinkResourceProperties(string groupId, IReadOnlyList } /// The private link resource group id. + [WirePath("groupId")] public string GroupId { get; } /// The private link resource required member names. + [WirePath("requiredMembers")] public IReadOnlyList RequiredMembers { get; } /// The private link resource required zone names. + [WirePath("requiredZoneNames")] public IReadOnlyList RequiredZoneNames { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkServiceConnectionStateProperty.cs index 82bab8afe2e78..772a4f99c98cb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkServiceConnectionStateProperty.cs @@ -77,10 +77,13 @@ internal SqlPrivateLinkServiceConnectionStateProperty() } /// The private link service connection status. + [WirePath("status")] public SqlPrivateLinkServiceConnectionStatus Status { get; set; } /// The private link service connection description. + [WirePath("description")] public string Description { get; set; } /// The actions required for private link service connection. + [WirePath("actionsRequired")] public SqlPrivateLinkServiceConnectionActionsRequired? ActionsRequired { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlResourceMoveDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlResourceMoveDefinition.cs index 476c568d13bd0..e7576a1fb1a68 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlResourceMoveDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlResourceMoveDefinition.cs @@ -71,6 +71,7 @@ internal SqlResourceMoveDefinition() } /// The target ID for the resource. + [WirePath("id")] public ResourceIdentifier Id { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlScheduleItem.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlScheduleItem.cs index 861feaa13fcb0..c608170c580b2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlScheduleItem.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlScheduleItem.cs @@ -84,12 +84,16 @@ internal SqlScheduleItem() } /// Start day. + [WirePath("startDay")] public SqlDayOfWeek StartDay { get; set; } /// Start time. + [WirePath("startTime")] public string StartTime { get; set; } /// Stop day. + [WirePath("stopDay")] public SqlDayOfWeek StopDay { get; set; } /// Stop time. + [WirePath("stopTime")] public string StopTime { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAutomaticTuningData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAutomaticTuningData.Serialization.cs index 1eac11b840261..bb99092084e46 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAutomaticTuningData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAutomaticTuningData.Serialization.cs @@ -307,7 +307,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Options) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerData.Serialization.cs index 0e81ccf7ebbbf..4e8dc245d6e87 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerData.Serialization.cs @@ -499,7 +499,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentData.Serialization.cs index dbcfdcda04c67..e21d616703f0b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentData.Serialization.cs @@ -286,7 +286,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentPatch.cs index 6636251c2f719..115224696408b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentPatch.cs @@ -62,6 +62,7 @@ internal SqlServerJobAgentPatch(IDictionary tags, IDictionary Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentResourceGetJobExecutionsByAgentOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentResourceGetJobExecutionsByAgentOptions.cs index 5f28251cf618d..37835d0d4e680 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentResourceGetJobExecutionsByAgentOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentResourceGetJobExecutionsByAgentOptions.cs @@ -18,18 +18,25 @@ public SqlServerJobAgentResourceGetJobExecutionsByAgentOptions() } /// If specified, only job executions created at or after the specified time are included. + [WirePath("createTimeMin")] public DateTimeOffset? CreateTimeMin { get; set; } /// If specified, only job executions created before the specified time are included. + [WirePath("createTimeMax")] public DateTimeOffset? CreateTimeMax { get; set; } /// If specified, only job executions completed at or after the specified time are included. + [WirePath("endTimeMin")] public DateTimeOffset? EndTimeMin { get; set; } /// If specified, only job executions completed before the specified time are included. + [WirePath("endTimeMax")] public DateTimeOffset? EndTimeMax { get; set; } /// If specified, only active or only completed job executions are included. + [WirePath("isActive")] public bool? IsActive { get; set; } /// The number of elements in the collection to skip. + [WirePath("skip")] public int? Skip { get; set; } /// The number of elements to return from the collection. + [WirePath("top")] public int? Top { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionCollectionGetAllOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionCollectionGetAllOptions.cs index 2031c08ad9db8..0ca4059b1df02 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionCollectionGetAllOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionCollectionGetAllOptions.cs @@ -18,18 +18,25 @@ public SqlServerJobExecutionCollectionGetAllOptions() } /// If specified, only job executions created at or after the specified time are included. + [WirePath("createTimeMin")] public DateTimeOffset? CreateTimeMin { get; set; } /// If specified, only job executions created before the specified time are included. + [WirePath("createTimeMax")] public DateTimeOffset? CreateTimeMax { get; set; } /// If specified, only job executions completed at or after the specified time are included. + [WirePath("endTimeMin")] public DateTimeOffset? EndTimeMin { get; set; } /// If specified, only job executions completed before the specified time are included. + [WirePath("endTimeMax")] public DateTimeOffset? EndTimeMax { get; set; } /// If specified, only active or only completed job executions are included. + [WirePath("isActive")] public bool? IsActive { get; set; } /// The number of elements in the collection to skip. + [WirePath("skip")] public int? Skip { get; set; } /// The number of elements to return from the collection. + [WirePath("top")] public int? Top { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions.cs index c3f36254c66fd..58096e10923a0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions.cs @@ -25,20 +25,28 @@ internal SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions() } /// The id of the job execution. + [WirePath("jobExecutionId")] public Guid JobExecutionId { get; } /// If specified, only job executions created at or after the specified time are included. + [WirePath("createTimeMin")] public DateTimeOffset? CreateTimeMin { get; set; } /// If specified, only job executions created before the specified time are included. + [WirePath("createTimeMax")] public DateTimeOffset? CreateTimeMax { get; set; } /// If specified, only job executions completed at or after the specified time are included. + [WirePath("endTimeMin")] public DateTimeOffset? EndTimeMin { get; set; } /// If specified, only job executions completed before the specified time are included. + [WirePath("endTimeMax")] public DateTimeOffset? EndTimeMax { get; set; } /// If specified, only active or only completed job executions are included. + [WirePath("isActive")] public bool? IsActive { get; set; } /// The number of elements in the collection to skip. + [WirePath("skip")] public int? Skip { get; set; } /// The number of elements to return from the collection. + [WirePath("top")] public int? Top { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepCollectionGetAllOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepCollectionGetAllOptions.cs index 11fa5842b616a..b6a9598551cdb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepCollectionGetAllOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepCollectionGetAllOptions.cs @@ -18,18 +18,25 @@ public SqlServerJobExecutionStepCollectionGetAllOptions() } /// If specified, only job executions created at or after the specified time are included. + [WirePath("createTimeMin")] public DateTimeOffset? CreateTimeMin { get; set; } /// If specified, only job executions created before the specified time are included. + [WirePath("createTimeMax")] public DateTimeOffset? CreateTimeMax { get; set; } /// If specified, only job executions completed at or after the specified time are included. + [WirePath("endTimeMin")] public DateTimeOffset? EndTimeMin { get; set; } /// If specified, only job executions completed before the specified time are included. + [WirePath("endTimeMax")] public DateTimeOffset? EndTimeMax { get; set; } /// If specified, only active or only completed job executions are included. + [WirePath("isActive")] public bool? IsActive { get; set; } /// The number of elements in the collection to skip. + [WirePath("skip")] public int? Skip { get; set; } /// The number of elements to return from the collection. + [WirePath("top")] public int? Top { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepTargetCollectionGetAllOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepTargetCollectionGetAllOptions.cs index 6e78589ea137e..bab08ff83450c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepTargetCollectionGetAllOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepTargetCollectionGetAllOptions.cs @@ -18,18 +18,25 @@ public SqlServerJobExecutionStepTargetCollectionGetAllOptions() } /// If specified, only job executions created at or after the specified time are included. + [WirePath("createTimeMin")] public DateTimeOffset? CreateTimeMin { get; set; } /// If specified, only job executions created before the specified time are included. + [WirePath("createTimeMax")] public DateTimeOffset? CreateTimeMax { get; set; } /// If specified, only job executions completed at or after the specified time are included. + [WirePath("endTimeMin")] public DateTimeOffset? EndTimeMin { get; set; } /// If specified, only job executions completed before the specified time are included. + [WirePath("endTimeMax")] public DateTimeOffset? EndTimeMax { get; set; } /// If specified, only active or only completed job executions are included. + [WirePath("isActive")] public bool? IsActive { get; set; } /// The number of elements in the collection to skip. + [WirePath("skip")] public int? Skip { get; set; } /// The number of elements to return from the collection. + [WirePath("top")] public int? Top { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobSchedule.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobSchedule.cs index a816c13167160..6ae13c424d3d8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobSchedule.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobSchedule.cs @@ -68,14 +68,19 @@ internal SqlServerJobSchedule(DateTimeOffset? startOn, DateTimeOffset? endOn, Sq } /// Schedule start time. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; set; } /// Schedule end time. + [WirePath("endTime")] public DateTimeOffset? EndOn { get; set; } /// Schedule interval type. + [WirePath("type")] public SqlServerJobScheduleType? ScheduleType { get; set; } /// Whether or not the schedule is enabled. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format. + [WirePath("interval")] public TimeSpan? Interval { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs index 8de5d0d4e4ebc..77b9f14f8489f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs @@ -98,40 +98,58 @@ internal SqlServerPatch(ManagedServiceIdentity identity, IDictionary Server identity. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Administrator username for the server. Once created it cannot be changed. + [WirePath("properties.administratorLogin")] public string AdministratorLogin { get; set; } /// The administrator login password (required for server creation). + [WirePath("properties.administratorLoginPassword")] public string AdministratorLoginPassword { get; set; } /// The version of the server. + [WirePath("properties.version")] public string Version { get; set; } /// The state of the server. + [WirePath("properties.state")] public string State { get; } /// The fully qualified domain name of the server. + [WirePath("properties.fullyQualifiedDomainName")] public string FullyQualifiedDomainName { get; } /// List of private endpoint connections on a server. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// Minimal TLS version. Allowed values: 'None', 1.0', '1.1', '1.2', '1.3'. + [WirePath("properties.minimalTlsVersion")] public SqlMinimalTlsVersion? MinTlsVersion { get; set; } /// Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter'. + [WirePath("properties.publicNetworkAccess")] public ServerNetworkAccessFlag? PublicNetworkAccess { get; set; } /// Whether or not existing server has a workspace created and if it allows connection from workspace. + [WirePath("properties.workspaceFeature")] public ServerWorkspaceFeature? WorkspaceFeature { get; } /// The resource id of a user assigned identity to be used by default. + [WirePath("properties.primaryUserAssignedIdentityId")] public ResourceIdentifier PrimaryUserAssignedIdentityId { get; set; } /// The Client id used for cross tenant CMK scenario. + [WirePath("properties.federatedClientId")] public Guid? FederatedClientId { get; set; } /// A CMK URI of the key to use for encryption. + [WirePath("properties.keyId")] public Uri KeyId { get; set; } /// The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. + [WirePath("properties.administrators")] public ServerExternalAdministrator Administrators { get; set; } /// Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + [WirePath("properties.restrictOutboundNetworkAccess")] public ServerNetworkAccessFlag? RestrictOutboundNetworkAccess { get; set; } /// Whether or not to enable IPv6 support for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + [WirePath("properties.isIPv6Enabled")] public ServerNetworkAccessFlag? IsIPv6Enabled { get; set; } /// Status of external governance. + [WirePath("properties.externalGovernanceStatus")] public ExternalGovernanceStatus? ExternalGovernanceStatus { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPrivateEndpointConnection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPrivateEndpointConnection.cs index 51d1bedeb0566..839ebfc6510d5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPrivateEndpointConnection.cs @@ -63,8 +63,10 @@ internal SqlServerPrivateEndpointConnection(ResourceIdentifier id, ServerPrivate } /// Resource ID. + [WirePath("id")] public ResourceIdentifier Id { get; } /// Private endpoint connection properties. + [WirePath("properties")] public ServerPrivateEndpointConnectionProperties Properties { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerUsage.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerUsage.cs index 42e09c39bf6f6..71eba86dec102 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerUsage.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerUsage.cs @@ -72,18 +72,25 @@ internal SqlServerUsage(string name, string resourceName, string displayName, do } /// Name of the server usage metric. + [WirePath("name")] public string Name { get; } /// The name of the resource. + [WirePath("resourceName")] public string ResourceName { get; } /// The metric display name. + [WirePath("displayName")] public string DisplayName { get; } /// The current value of the metric. + [WirePath("currentValue")] public double? CurrentValue { get; } /// The current limit of the metric. + [WirePath("limit")] public double? Limit { get; } /// The units of the metric. + [WirePath("unit")] public string Unit { get; } /// The next reset time for the metric (ISO8601 format). + [WirePath("nextResetTime")] public DateTimeOffset? NextResetOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVersionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVersionCapability.cs index dae5819e58fe1..c6e3c287ab56b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVersionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVersionCapability.cs @@ -71,14 +71,19 @@ internal SqlServerVersionCapability(string name, IReadOnlyList The server version name. + [WirePath("name")] public string Name { get; } /// The list of supported database editions. + [WirePath("supportedEditions")] public IReadOnlyList SupportedEditions { get; } /// The list of supported elastic pool editions. + [WirePath("supportedElasticPoolEditions")] public IReadOnlyList SupportedElasticPoolEditions { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServicePrincipal.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServicePrincipal.cs index d744dfd32e028..d6961df94fd06 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServicePrincipal.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServicePrincipal.cs @@ -66,12 +66,16 @@ internal SqlServicePrincipal(Guid? principalId, Guid? clientId, Guid? tenantId, } /// The Azure Active Directory application object id. + [WirePath("principalId")] public Guid? PrincipalId { get; } /// The Azure Active Directory application client id. + [WirePath("clientId")] public Guid? ClientId { get; } /// The Azure Active Directory tenant id. + [WirePath("tenantId")] public Guid? TenantId { get; } /// Service principal type. + [WirePath("type")] public SqlServicePrincipalType? PrincipalType { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSku.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSku.cs index 499fd3cf86161..9352382710806 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSku.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSku.cs @@ -79,14 +79,19 @@ internal SqlSku() } /// The name of the SKU, typically, a letter + Number code, e.g. P3. + [WirePath("name")] public string Name { get; set; } /// The tier or edition of the particular SKU, e.g. Basic, Premium. + [WirePath("tier")] public string Tier { get; set; } /// Size of the particular SKU. + [WirePath("size")] public string Size { get; set; } /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + [WirePath("family")] public string Family { get; set; } /// Capacity of the particular SKU. + [WirePath("capacity")] public int? Capacity { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspace.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspace.cs index 192ed1830dcae..a66d9ebcf923d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspace.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspace.cs @@ -67,6 +67,7 @@ internal SqlSynapseLinkWorkspace(ResourceIdentifier id, string name, ResourceTyp } /// List of all synapselink workspaces. + [WirePath("properties.workspaces")] public IList Workspaces { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspaceInfo.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspaceInfo.cs index 91a0ef1aec555..5def8f009f984 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspaceInfo.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspaceInfo.cs @@ -63,8 +63,10 @@ internal SqlSynapseLinkWorkspaceInfo(ResourceIdentifier workspaceId, string link } /// Synapse link workspace id. + [WirePath("workspaceId")] public ResourceIdentifier WorkspaceId { get; set; } /// Link connection name. + [WirePath("linkConnectionName")] public string LinkConnectionName { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineAdjustedResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineAdjustedResult.cs index fa2051de2540c..1d8c94efc6b79 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineAdjustedResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineAdjustedResult.cs @@ -69,12 +69,16 @@ internal SqlVulnerabilityAssessmentBaselineAdjustedResult(SqlVulnerabilityAssess } /// SQL Vulnerability Assessment baseline details. + [WirePath("baseline")] public SqlVulnerabilityAssessmentBaselineDetails Baseline { get; } /// SQL Vulnerability Assessment baseline status. + [WirePath("status")] public SqlVulnerabilityAssessmentRuleStatus? Status { get; } /// SQL Vulnerability Assessment results that are not in baseline. + [WirePath("resultsNotInBaseline")] public IReadOnlyList> ResultsNotInBaseline { get; } /// SQL Vulnerability Assessment results that are in baseline. + [WirePath("resultsOnlyInBaseline")] public IReadOnlyList> ResultsOnlyInBaseline { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent.Serialization.cs index 8ae9153d02290..85f982e174deb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent.Serialization.cs @@ -322,7 +322,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Results) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent.cs index 252e0f680fee0..81c6fc8f59a01 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent.cs @@ -69,8 +69,10 @@ internal SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent(ResourceIdentif } /// The latest scan flag. + [WirePath("properties.latestScan")] public bool? IsLatestScan { get; set; } /// The rule baseline result list. + [WirePath("properties.results")] public IDictionary>> Results { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineData.Serialization.cs index 0f16aac35a1e8..186cbfe74b5d8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineData.Serialization.cs @@ -292,7 +292,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Results) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineDetails.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineDetails.cs index dacc38ad2cffa..51a0f81ae13df 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineDetails.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineDetails.cs @@ -64,8 +64,10 @@ internal SqlVulnerabilityAssessmentBaselineDetails(IReadOnlyList> } /// SQL Vulnerability Assessment baseline expected results. + [WirePath("expectedResults")] public IReadOnlyList> ExpectedResults { get; } /// SQL Vulnerability Assessment baseline update time (UTC). + [WirePath("updatedTime")] public DateTimeOffset? UpdatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs index e9864a05ca019..cc40f90e57009 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs @@ -69,8 +69,10 @@ internal SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent(ResourceIde } /// The latest scan flag. + [WirePath("properties.latestScan")] public bool? IsLatestScan { get; set; } /// The rule baseline result. + [WirePath("properties.results")] public IList> Results { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBenchmarkReference.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBenchmarkReference.cs index b75b31e9ad0ea..85a0274854d93 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBenchmarkReference.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBenchmarkReference.cs @@ -62,8 +62,10 @@ internal SqlVulnerabilityAssessmentBenchmarkReference(string benchmark, string r } /// SQL Vulnerability Assessment benchmark name. + [WirePath("benchmark")] public string Benchmark { get; } /// SQL Vulnerability Assessment benchmark reference. + [WirePath("reference")] public string Reference { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentQueryCheck.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentQueryCheck.cs index 9bb13ccbba795..be82f689e1aea 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentQueryCheck.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentQueryCheck.cs @@ -67,10 +67,13 @@ internal SqlVulnerabilityAssessmentQueryCheck(string query, IReadOnlyList SQL Vulnerability Assessment rule query. + [WirePath("query")] public string Query { get; } /// SQL Vulnerability Assessment query expected result. + [WirePath("expectedResult")] public IReadOnlyList> ExpectedResult { get; } /// SQL Vulnerability Assessment column names of query expected result. + [WirePath("columnNames")] public IReadOnlyList ColumnNames { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs index f5fb5f6d45c33..91d3873d83b64 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs @@ -68,12 +68,16 @@ internal SqlVulnerabilityAssessmentRemediation(string description, IReadOnlyList } /// SQL Vulnerability Assessment remediation description. + [WirePath("description")] public string Description { get; } /// SQL Vulnerability Assessment remediation script. + [WirePath("scripts")] public IReadOnlyList Scripts { get; } /// SQL Vulnerability Assessment is remediation automated. + [WirePath("automated")] public bool? IsAutomated { get; } /// SQL Vulnerability Assessment optional link to remediate in Azure Portal. + [WirePath("portalLink")] public string PortalLink { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRuleMetadata.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRuleMetadata.cs index 414b3aad70a52..8559a9de5d8b2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRuleMetadata.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRuleMetadata.cs @@ -78,22 +78,31 @@ internal SqlVulnerabilityAssessmentRuleMetadata(string ruleId, SqlVulnerabilityA } /// SQL Vulnerability Assessment rule Id. + [WirePath("ruleId")] public string RuleId { get; } /// SQL Vulnerability Assessment rule severity. + [WirePath("severity")] public SqlVulnerabilityAssessmentRuleSeverity? Severity { get; } /// SQL Vulnerability Assessment rule category. + [WirePath("category")] public string Category { get; } /// SQL Vulnerability Assessment rule type. + [WirePath("ruleType")] public SqlVulnerabilityAssessmentRuleType? RuleType { get; } /// SQL Vulnerability Assessment rule title. + [WirePath("title")] public string Title { get; } /// SQL Vulnerability Assessment rule description. + [WirePath("description")] public string Description { get; } /// SQL Vulnerability Assessment rule rationale. + [WirePath("rationale")] public string Rationale { get; } /// SQL Vulnerability Assessment rule query details. + [WirePath("queryCheck")] public SqlVulnerabilityAssessmentQueryCheck QueryCheck { get; } /// SQL Vulnerability Assessment benchmark references. + [WirePath("benchmarkReferences")] public IReadOnlyList BenchmarkReferences { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanError.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanError.cs index 508d25cab2f31..c6df799891e1f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanError.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanError.cs @@ -62,8 +62,10 @@ internal SqlVulnerabilityAssessmentScanError(string code, string message, IDicti } /// The error code. + [WirePath("code")] public string Code { get; } /// The error message. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/StorageCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/StorageCapability.cs index 8f910d83d5432..a738c444a6cd8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/StorageCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/StorageCapability.cs @@ -64,10 +64,13 @@ internal StorageCapability(StorageCapabilityStorageAccountType? storageAccountTy } /// The storage account type for the database's backups. + [WirePath("storageAccountType")] public StorageCapabilityStorageAccountType? StorageAccountType { get; } /// The status of the capability. + [WirePath("status")] public SqlCapabilityStatus? Status { get; } /// The reason for the capability not being available. + [WirePath("reason")] public string Reason { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentKeyProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentKeyProperties.cs index 48637ef22e9c4..97ee81737d3e8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentKeyProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentKeyProperties.cs @@ -60,6 +60,7 @@ internal SyncAgentKeyProperties(string syncAgentKey, IDictionary Key of sync agent. + [WirePath("syncAgentKey")] public string SyncAgentKey { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs index 453ad91f23085..d540708155fb9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs @@ -76,16 +76,22 @@ internal SyncAgentLinkedDatabase(ResourceIdentifier id, string name, ResourceTyp } /// Type of the sync agent linked database. + [WirePath("properties.databaseType")] public SyncMemberDbType? DatabaseType { get; } /// Id of the sync agent linked database. + [WirePath("properties.databaseId")] public Guid? DatabaseId { get; } /// Description of the sync agent linked database. + [WirePath("properties.description")] public string Description { get; } /// Server name of the sync agent linked database. + [WirePath("properties.serverName")] public string ServerName { get; } /// Database name of the sync agent linked database. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// User name of the sync agent linked database. + [WirePath("properties.userName")] public string UserName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaProperties.cs index a0ed3bb0eda93..0f75ea04924bb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaProperties.cs @@ -64,8 +64,10 @@ internal SyncFullSchemaProperties(IReadOnlyList tables, Dat } /// List of tables in the database full schema. + [WirePath("tables")] public IReadOnlyList Tables { get; } /// Last update time of the database schema. + [WirePath("lastUpdateTime")] public DateTimeOffset? LastUpdateOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTable.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTable.cs index 823a21b659be2..b5e382fbd0ca3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTable.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTable.cs @@ -70,14 +70,19 @@ internal SyncFullSchemaTable(IReadOnlyList columns, s } /// List of columns in the table of database full schema. + [WirePath("columns")] public IReadOnlyList Columns { get; } /// Error id of the table. + [WirePath("errorId")] public string ErrorId { get; } /// If there is error in the table. + [WirePath("hasError")] public bool? HasError { get; } /// Name of the table. + [WirePath("name")] public string Name { get; } /// Quoted name of the table. + [WirePath("quotedName")] public string QuotedName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTableColumn.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTableColumn.cs index 3cea63a766462..e4828d7e1fb6d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTableColumn.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTableColumn.cs @@ -72,18 +72,25 @@ internal SyncFullSchemaTableColumn(string dataSize, string dataType, string erro } /// Data size of the column. + [WirePath("dataSize")] public string DataSize { get; } /// Data type of the column. + [WirePath("dataType")] public string DataType { get; } /// Error id of the column. + [WirePath("errorId")] public string ErrorId { get; } /// If there is error in the table. + [WirePath("hasError")] public bool? HasError { get; } /// If it is the primary key of the table. + [WirePath("isPrimaryKey")] public bool? IsPrimaryKey { get; } /// Name of the column. + [WirePath("name")] public string Name { get; } /// Quoted name of the column. + [WirePath("quotedName")] public string QuotedName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupLogProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupLogProperties.cs index 08064cde5edd9..9048381f21179 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupLogProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupLogProperties.cs @@ -70,16 +70,22 @@ internal SyncGroupLogProperties(DateTimeOffset? timestamp, SyncGroupLogType? log } /// Timestamp of the sync group log. + [WirePath("timestamp")] public DateTimeOffset? Timestamp { get; } /// Type of the sync group log. + [WirePath("type")] public SyncGroupLogType? LogType { get; } /// Source of the sync group log. + [WirePath("source")] public string Source { get; } /// Details of the sync group log. + [WirePath("details")] public string Details { get; } /// TracingId of the sync group log. + [WirePath("tracingId")] public Guid? TracingId { get; } /// OperationStatus of the sync group log. + [WirePath("operationStatus")] public string OperationStatus { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchema.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchema.cs index fb0c4d7c0a558..1d5efe2557bd0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchema.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchema.cs @@ -64,8 +64,10 @@ internal SyncGroupSchema(IList tables, string masterSyncMe } /// List of tables in sync group schema. + [WirePath("tables")] public IList Tables { get; } /// Name of master sync member where the schema is from. + [WirePath("masterSyncMemberName")] public string MasterSyncMemberName { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTable.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTable.cs index 2a4bea5ac418a..48e2745918e90 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTable.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTable.cs @@ -64,8 +64,10 @@ internal SyncGroupSchemaTable(IList columns, string } /// List of columns in sync group schema. + [WirePath("columns")] public IList Columns { get; } /// Quoted name of sync group schema table. + [WirePath("quotedName")] public string QuotedName { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTableColumn.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTableColumn.cs index 19dce1c1e70e9..4bf0457cfdc72 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTableColumn.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTableColumn.cs @@ -64,10 +64,13 @@ internal SyncGroupSchemaTableColumn(string quotedName, string dataSize, string d } /// Quoted name of sync group table column. + [WirePath("quotedName")] public string QuotedName { get; set; } /// Data size of the column. + [WirePath("dataSize")] public string DataSize { get; set; } /// Data type of the column. + [WirePath("dataType")] public string DataType { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TdeCertificate.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TdeCertificate.cs index bba785e178d74..364365a6c8e8e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TdeCertificate.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TdeCertificate.cs @@ -68,8 +68,10 @@ internal TdeCertificate(ResourceIdentifier id, string name, ResourceType resourc } /// The base64 encoded certificate private blob. + [WirePath("properties.privateBlob")] public string PrivateBlob { get; set; } /// The certificate password. + [WirePath("properties.certPassword")] public string CertPassword { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueries.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueries.cs index 2432c23665570..fd4f365922b93 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueries.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueries.cs @@ -74,18 +74,25 @@ internal TopQueries(int? numberOfQueries, string aggregationFunction, string obs } /// Requested number of top queries. + [WirePath("numberOfQueries")] public int? NumberOfQueries { get; } /// Aggregation function used to calculate query metrics. + [WirePath("aggregationFunction")] public string AggregationFunction { get; } /// Metric used to rank queries. + [WirePath("observationMetric")] public string ObservationMetric { get; } /// Interval type (length). + [WirePath("intervalType")] public QueryTimeGrainType? IntervalType { get; } /// The start time for the metric (ISO-8601 format). + [WirePath("startTime")] public string StartTime { get; } /// The end time for the metric (ISO-8601 format). + [WirePath("endTime")] public string EndTime { get; } /// List of top resource consuming queries with appropriate metric data. + [WirePath("queries")] public IReadOnlyList Queries { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpdateLongTermRetentionBackupContent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpdateLongTermRetentionBackupContent.cs index f9792444c0071..25cf12d189ba3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpdateLongTermRetentionBackupContent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpdateLongTermRetentionBackupContent.cs @@ -60,6 +60,7 @@ internal UpdateLongTermRetentionBackupContent(SqlBackupStorageRedundancy? reques } /// The storage redundancy type of the copied backup. + [WirePath("properties.requestedBackupStorageRedundancy")] public SqlBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpsertManagedServerOperationParameters.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpsertManagedServerOperationParameters.cs index 0e8bd349b4f90..a62eeeda042ae 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpsertManagedServerOperationParameters.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpsertManagedServerOperationParameters.cs @@ -66,12 +66,16 @@ internal UpsertManagedServerOperationParameters(string family, string tier, int? } /// Gets the family. + [WirePath("family")] public string Family { get; } /// Gets the tier. + [WirePath("tier")] public string Tier { get; } /// Gets the v cores. + [WirePath("vCores")] public int? VCores { get; } /// Gets the storage size in gb. + [WirePath("storageSizeInGB")] public int? StorageSizeInGB { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpsertManagedServerOperationStep.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpsertManagedServerOperationStep.cs index 36b684449f0ca..53f312329e992 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpsertManagedServerOperationStep.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/UpsertManagedServerOperationStep.cs @@ -64,10 +64,13 @@ internal UpsertManagedServerOperationStep(int? order, string name, UpsertManaged } /// Gets the order. + [WirePath("order")] public int? Order { get; } /// Gets the name. + [WirePath("name")] public string Name { get; } /// Gets the status. + [WirePath("status")] public UpsertManagedServerOperationStepStatus? Status { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterData.Serialization.cs index 9f5905514697b..87dd33c8b48e6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterData.Serialization.cs @@ -291,7 +291,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterPatch.cs index 1921f895223b1..bfe22d40d72c0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterPatch.cs @@ -69,12 +69,16 @@ internal VirtualClusterPatch(IDictionary tags, ResourceIdentifie } /// Resource tags. + [WirePath("tags")] public IDictionary Tags { get; } /// Subnet resource ID for the virtual cluster. + [WirePath("properties.subnetId")] public ResourceIdentifier SubnetId { get; } /// Virtual cluster version. + [WirePath("properties.version")] public string Version { get; set; } /// List of resources in this virtual cluster. + [WirePath("properties.childResources")] public IReadOnlyList ChildResources { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs index e7c56ace36926..a06fce2fb6d5a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs @@ -66,10 +66,13 @@ internal VulnerabilityAssessmentRecurringScansProperties(bool? isEnabled, bool? } /// Recurring scans state. + [WirePath("isEnabled")] public bool? IsEnabled { get; set; } /// Specifies that the schedule scan notification will be is sent to the subscription administrators. + [WirePath("emailSubscriptionAdmins")] public bool? EmailSubscriptionAdmins { get; set; } /// Specifies an array of e-mail addresses to which the scan notification is sent. + [WirePath("emails")] public IList Emails { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentScanError.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentScanError.cs index 01402e793049d..024fa54f2fc46 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentScanError.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentScanError.cs @@ -62,8 +62,10 @@ internal VulnerabilityAssessmentScanError(string code, string message, IDictiona } /// The error code. + [WirePath("code")] public string Code { get; } /// The error message. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/OutboundFirewallRuleData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/OutboundFirewallRuleData.cs index 27810b0cc4429..e8744f9de88cc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/OutboundFirewallRuleData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/OutboundFirewallRuleData.cs @@ -69,6 +69,7 @@ internal OutboundFirewallRuleData(ResourceIdentifier id, string name, ResourceTy } /// The state of the outbound rule. + [WirePath("properties.provisioningState")] public string ProvisioningState { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecommendedActionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecommendedActionData.cs index e06372d8d5647..6acfc713706d2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecommendedActionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecommendedActionData.cs @@ -123,52 +123,76 @@ internal RecommendedActionData(ResourceIdentifier id, string name, ResourceType } /// Resource kind. + [WirePath("kind")] public string Kind { get; } /// Resource location. + [WirePath("location")] public AzureLocation? Location { get; } /// Gets the reason for recommending this action. e.g., DuplicateIndex. + [WirePath("properties.recommendationReason")] public string RecommendationReason { get; } /// Gets the time since when this recommended action is valid. + [WirePath("properties.validSince")] public DateTimeOffset? ValidSince { get; } /// Gets time when this recommended action was last refreshed. + [WirePath("properties.lastRefresh")] public DateTimeOffset? LastRefresh { get; } /// Gets the info of the current state the recommended action is in. + [WirePath("properties.state")] public RecommendedActionStateInfo State { get; set; } /// Gets if this recommended action is actionable by user. + [WirePath("properties.isExecutableAction")] public bool? IsExecutableAction { get; } /// Gets if changes applied by this recommended action can be reverted by user. + [WirePath("properties.isRevertableAction")] public bool? IsRevertableAction { get; } /// Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. + [WirePath("properties.isArchivedAction")] public bool? IsArchivedAction { get; } /// Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time. + [WirePath("properties.executeActionStartTime")] public DateTimeOffset? ExecuteActionStartOn { get; } /// Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation. + [WirePath("properties.executeActionDuration")] public TimeSpan? ExecuteActionDuration { get; } /// Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. + [WirePath("properties.revertActionStartTime")] public DateTimeOffset? RevertActionStartOn { get; } /// Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index. + [WirePath("properties.revertActionDuration")] public TimeSpan? RevertActionDuration { get; } /// Gets if approval for applying this recommended action was given by user/system. + [WirePath("properties.executeActionInitiatedBy")] public RecommendedActionInitiatedBy? ExecuteActionInitiatedBy { get; } /// Gets the time when this recommended action was approved for execution. + [WirePath("properties.executeActionInitiatedTime")] public DateTimeOffset? ExecuteActionInitiatedOn { get; } /// Gets if approval for reverting this recommended action was given by user/system. + [WirePath("properties.revertActionInitiatedBy")] public RecommendedActionInitiatedBy? RevertActionInitiatedBy { get; } /// Gets the time when this recommended action was approved for revert. + [WirePath("properties.revertActionInitiatedTime")] public DateTimeOffset? RevertActionInitiatedOn { get; } /// Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact. + [WirePath("properties.score")] public int? Score { get; } /// Gets the implementation details of this recommended action for user to apply it manually. + [WirePath("properties.implementationDetails")] public RecommendedActionImplementationInfo ImplementationDetails { get; } /// Gets the error details if and why this recommended action is put to error state. + [WirePath("properties.errorDetails")] public RecommendedActionErrorInfo ErrorDetails { get; } /// Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change. + [WirePath("properties.estimatedImpact")] public IReadOnlyList EstimatedImpact { get; } /// Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change. + [WirePath("properties.observedImpact")] public IReadOnlyList ObservedImpact { get; } /// Gets the time series info of metrics for this recommended action e.g., CPU consumption time series. + [WirePath("properties.timeSeries")] public IReadOnlyList TimeSeries { get; } /// Gets the linked objects, if any. + [WirePath("properties.linkedObjects")] public IReadOnlyList LinkedObjects { get; } /// /// Gets additional details specific to this recommended action. @@ -200,6 +224,7 @@ internal RecommendedActionData(ResourceIdentifier id, string name, ResourceType /// /// /// + [WirePath("properties.details")] public IReadOnlyDictionary Details { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseData.cs index 2b201c1f42f58..7be24d293542a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabaseData.cs @@ -79,14 +79,19 @@ internal RecoverableDatabaseData(ResourceIdentifier id, string name, ResourceTyp } /// The edition of the database. + [WirePath("properties.edition")] public string Edition { get; } /// The service level objective name of the database. + [WirePath("properties.serviceLevelObjective")] public string ServiceLevelObjective { get; } /// The elastic pool name of the database. + [WirePath("properties.elasticPoolName")] public string ElasticPoolName { get; } /// The last available backup date. + [WirePath("properties.lastAvailableBackupDate")] public DateTimeOffset? LastAvailableBackupOn { get; } /// The resource ids of the user assigned identities to use. + [WirePath("properties.keys")] public IDictionary Keys { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableManagedDatabaseData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableManagedDatabaseData.cs index 3baeb78bea77b..5812696420dba 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableManagedDatabaseData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableManagedDatabaseData.cs @@ -69,6 +69,7 @@ internal RecoverableManagedDatabaseData(ResourceIdentifier id, string name, Reso } /// The last available backup date. + [WirePath("properties.lastAvailableBackupDate")] public string LastAvailableBackupDate { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedDatabaseData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedDatabaseData.cs index 8352311299175..df6cc77d2a715 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedDatabaseData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedDatabaseData.cs @@ -93,20 +93,28 @@ internal RestorableDroppedDatabaseData() } /// The name and tier of the SKU. + [WirePath("sku")] public SqlSku Sku { get; set; } /// The name of the database. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// The max size of the database expressed in bytes. + [WirePath("properties.maxSizeBytes")] public long? MaxSizeBytes { get; } /// The creation date of the database (ISO8601 format). + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// The deletion date of the database (ISO8601 format). + [WirePath("properties.deletionDate")] public DateTimeOffset? DeletedOn { get; } /// The earliest restore date of the database (ISO8601 format). + [WirePath("properties.earliestRestoreDate")] public DateTimeOffset? EarliestRestoreOn { get; } /// The storage account type used to store backups for this database. + [WirePath("properties.backupStorageRedundancy")] public SqlBackupStorageRedundancy? BackupStorageRedundancy { get; } /// The resource ids of the user assigned identities to use. + [WirePath("properties.keys")] public IDictionary Keys { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedManagedDatabaseData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedManagedDatabaseData.cs index 9c15d933703cc..fbca3057a6349 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedManagedDatabaseData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedManagedDatabaseData.cs @@ -83,12 +83,16 @@ internal RestorableDroppedManagedDatabaseData() } /// The name of the database. + [WirePath("properties.databaseName")] public string DatabaseName { get; } /// The creation date of the database (ISO8601 format). + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// The deletion date of the database (ISO8601 format). + [WirePath("properties.deletionDate")] public DateTimeOffset? DeletedOn { get; } /// The earliest restore date of the database (ISO8601 format). + [WirePath("properties.earliestRestoreDate")] public DateTimeOffset? EarliestRestoreOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SensitivityLabelData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SensitivityLabelData.cs index 5bd3b1e0ae89e..a53030589085c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SensitivityLabelData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SensitivityLabelData.cs @@ -88,24 +88,34 @@ internal SensitivityLabelData(ResourceIdentifier id, string name, ResourceType r } /// Resource that manages the sensitivity label. + [WirePath("managedBy")] public string ManagedBy { get; } /// The schema name. + [WirePath("properties.schemaName")] public string SchemaName { get; } /// The table name. + [WirePath("properties.tableName")] public string TableName { get; } /// The column name. + [WirePath("properties.columnName")] public string ColumnName { get; } /// The label name. + [WirePath("properties.labelName")] public string LabelName { get; set; } /// The label ID. + [WirePath("properties.labelId")] public string LabelId { get; set; } /// The information type. + [WirePath("properties.informationType")] public string InformationType { get; set; } /// The information type ID. + [WirePath("properties.informationTypeId")] public string InformationTypeId { get; set; } /// Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. + [WirePath("properties.isDisabled")] public bool? IsDisabled { get; } /// Gets or sets the rank. + [WirePath("properties.rank")] public SensitivityLabelRank? Rank { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAdvancedThreatProtectionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAdvancedThreatProtectionData.cs index aaaf01ebaac69..3f55c2def1dad 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAdvancedThreatProtectionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAdvancedThreatProtectionData.cs @@ -72,8 +72,10 @@ internal ServerAdvancedThreatProtectionData(ResourceIdentifier id, string name, } /// Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. + [WirePath("properties.state")] public AdvancedThreatProtectionState? State { get; set; } /// Specifies the UTC creation time of the policy. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerTrustCertificateData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerTrustCertificateData.cs index cd0432747cd23..f3e7eaa2fb411 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerTrustCertificateData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerTrustCertificateData.cs @@ -73,10 +73,13 @@ internal ServerTrustCertificateData(ResourceIdentifier id, string name, Resource } /// The certificate public blob. + [WirePath("properties.publicBlob")] public string PublicBlob { get; set; } /// The certificate thumbprint. + [WirePath("properties.thumbprint")] public string Thumbprint { get; } /// The certificate name. + [WirePath("properties.certificateName")] public string CertificateName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServiceObjectiveData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServiceObjectiveData.cs index dbaaa31d3ec82..9b1e488560801 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServiceObjectiveData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServiceObjectiveData.cs @@ -77,14 +77,19 @@ internal ServiceObjectiveData(ResourceIdentifier id, string name, ResourceType r } /// The name for the service objective. + [WirePath("properties.serviceObjectiveName")] public string ServiceObjectiveName { get; } /// Gets whether the service level objective is the default service objective. + [WirePath("properties.isDefault")] public bool? IsDefault { get; } /// Gets whether the service level objective is a system service objective. + [WirePath("properties.isSystem")] public bool? IsSystem { get; } /// The description for the service level objective. + [WirePath("properties.description")] public string Description { get; } /// Gets whether the service level objective is enabled. + [WirePath("properties.enabled")] public bool? IsEnabled { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAdvisorData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAdvisorData.cs index 9f2c94865afd6..a87493de08fe1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAdvisorData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAdvisorData.cs @@ -85,20 +85,28 @@ internal SqlAdvisorData(ResourceIdentifier id, string name, ResourceType resourc } /// Resource kind. + [WirePath("kind")] public string Kind { get; } /// Resource location. + [WirePath("location")] public AzureLocation? Location { get; } /// Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. + [WirePath("properties.advisorStatus")] public SqlAdvisorStatus? AdvisorStatus { get; } /// Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'. + [WirePath("properties.autoExecuteStatus")] public AutoExecuteStatus? AutoExecuteStatus { get; set; } /// Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level). + [WirePath("properties.autoExecuteStatusInheritedFrom")] public AutoExecuteStatusInheritedFrom? AutoExecuteStatusInheritedFrom { get; } /// Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc. + [WirePath("properties.recommendationsStatus")] public string RecommendationsStatus { get; } /// Gets the time when the current resource was analyzed for recommendations by this advisor. + [WirePath("properties.lastChecked")] public DateTimeOffset? LastCheckedOn { get; } /// Gets the recommended actions for this advisor. + [WirePath("properties.recommendedActions")] public IReadOnlyList RecommendedActions { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfigurationData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfigurationData.cs index e506a4636787e..939d574bcc379 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfigurationData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfigurationData.cs @@ -70,6 +70,7 @@ internal SqlAgentConfigurationData(ResourceIdentifier id, string name, ResourceT } /// The state of Sql Agent. + [WirePath("properties.state")] public SqlAgentConfigurationPropertiesState? State { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseAutomaticTuningData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseAutomaticTuningData.cs index 48c721247d08f..84e9314c04faf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseAutomaticTuningData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseAutomaticTuningData.cs @@ -75,10 +75,13 @@ internal SqlDatabaseAutomaticTuningData(ResourceIdentifier id, string name, Reso } /// Automatic tuning desired state. + [WirePath("properties.desiredState")] public AutomaticTuningMode? DesiredState { get; set; } /// Automatic tuning actual state. + [WirePath("properties.actualState")] public AutomaticTuningMode? ActualState { get; } /// Automatic tuning options definition. + [WirePath("properties.options")] public IDictionary Options { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyData.cs index 4754cf30624ac..d6661fec64832 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyData.cs @@ -176,8 +176,10 @@ internal SqlDatabaseBlobAuditingPolicyData(ResourceIdentifier id, string name, R } /// Resource kind. + [WirePath("kind")] public string Kind { get; } /// Specifies the number of days to keep in the audit logs in the storage account. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// /// Specifies the Actions-Groups and Actions to audit. @@ -242,8 +244,10 @@ internal SqlDatabaseBlobAuditingPolicyData(ResourceIdentifier id, string name, R /// /// For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) /// + [WirePath("properties.auditActionsAndGroups")] public IList AuditActionsAndGroups { get; } /// Specifies whether storageAccountAccessKey value is the storage's secondary key. + [WirePath("properties.isStorageSecondaryKeyInUse")] public bool? IsStorageSecondaryKeyInUse { get; set; } /// /// Specifies whether audit events are sent to Azure Monitor. @@ -259,17 +263,22 @@ internal SqlDatabaseBlobAuditingPolicyData(ResourceIdentifier id, string name, R /// or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// /// + [WirePath("properties.isAzureMonitorTargetEnabled")] public bool? IsAzureMonitorTargetEnabled { get; set; } /// /// Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. /// The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. /// + [WirePath("properties.queueDelayMs")] public int? QueueDelayMs { get; set; } /// Specifies whether Managed Identity is used to access blob storage. + [WirePath("properties.isManagedIdentityInUse")] public bool? IsManagedIdentityInUse { get; set; } /// Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. + [WirePath("properties.state")] public BlobAuditingPolicyState? State { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// /// Specifies the identifier key of the auditing storage account. @@ -279,8 +288,10 @@ internal SqlDatabaseBlobAuditingPolicyData(ResourceIdentifier id, string name, R /// 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. /// For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the blob storage subscription Id. + [WirePath("properties.storageAccountSubscriptionId")] public Guid? StorageAccountSubscriptionId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseData.cs index 9fdecbec3b325..66cc99dea48b2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseData.cs @@ -261,12 +261,16 @@ internal SqlDatabaseData() /// ```` /// /// + [WirePath("sku")] public SqlSku Sku { get; set; } /// Kind of database. This is metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// Resource that manages the database. + [WirePath("managedBy")] public string ManagedBy { get; } /// The Azure Active Directory identity of the database. + [WirePath("identity")] public DatabaseIdentity Identity { get; set; } /// /// Specifies the mode of database creation. @@ -287,88 +291,130 @@ internal SqlDatabaseData() /// /// Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. /// + [WirePath("properties.createMode")] public SqlDatabaseCreateMode? CreateMode { get; set; } /// The collation of the database. + [WirePath("properties.collation")] public string Collation { get; set; } /// The max size of the database expressed in bytes. + [WirePath("properties.maxSizeBytes")] public long? MaxSizeBytes { get; set; } /// The name of the sample schema to apply when creating this database. + [WirePath("properties.sampleName")] public SampleSchemaName? SampleName { get; set; } /// The resource identifier of the elastic pool containing this database. + [WirePath("properties.elasticPoolId")] public ResourceIdentifier ElasticPoolId { get; set; } /// The resource identifier of the source database associated with create operation of this database. + [WirePath("properties.sourceDatabaseId")] public ResourceIdentifier SourceDatabaseId { get; set; } /// The status of the database. + [WirePath("properties.status")] public SqlDatabaseStatus? Status { get; } /// The ID of the database. + [WirePath("properties.databaseId")] public Guid? DatabaseId { get; } /// The creation date of the database (ISO8601 format). + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// The current service level objective name of the database. + [WirePath("properties.currentServiceObjectiveName")] public string CurrentServiceObjectiveName { get; } /// The requested service level objective name of the database. + [WirePath("properties.requestedServiceObjectiveName")] public string RequestedServiceObjectiveName { get; } /// The default secondary region for this database. + [WirePath("properties.defaultSecondaryLocation")] public AzureLocation? DefaultSecondaryLocation { get; } /// Failover Group resource identifier that this database belongs to. + [WirePath("properties.failoverGroupId")] public ResourceIdentifier FailoverGroupId { get; } /// Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + [WirePath("properties.restorePointInTime")] public DateTimeOffset? RestorePointInTime { get; set; } /// Specifies the time that the database was deleted. + [WirePath("properties.sourceDatabaseDeletionDate")] public DateTimeOffset? SourceDatabaseDeletedOn { get; set; } /// The resource identifier of the recovery point associated with create operation of this database. + [WirePath("properties.recoveryServicesRecoveryPointId")] public ResourceIdentifier RecoveryServicesRecoveryPointId { get; set; } /// The resource identifier of the long term retention backup associated with create operation of this database. + [WirePath("properties.longTermRetentionBackupResourceId")] public ResourceIdentifier LongTermRetentionBackupResourceId { get; set; } /// The resource identifier of the recoverable database associated with create operation of this database. + [WirePath("properties.recoverableDatabaseId")] public ResourceIdentifier RecoverableDatabaseId { get; set; } /// The resource identifier of the restorable dropped database associated with create operation of this database. + [WirePath("properties.restorableDroppedDatabaseId")] public ResourceIdentifier RestorableDroppedDatabaseId { get; set; } /// Collation of the metadata catalog. + [WirePath("properties.catalogCollation")] public CatalogCollationType? CatalogCollation { get; set; } /// Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. + [WirePath("properties.licenseType")] public DatabaseLicenseType? LicenseType { get; set; } /// The max log size for this database. + [WirePath("properties.maxLogSizeBytes")] public long? MaxLogSizeBytes { get; } /// This records the earliest start date and time that restore is available for this database (ISO8601 format). + [WirePath("properties.earliestRestoreDate")] public DateTimeOffset? EarliestRestoreOn { get; } /// The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. + [WirePath("properties.readScale")] public DatabaseReadScale? ReadScale { get; set; } /// The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. + [WirePath("properties.highAvailabilityReplicaCount")] public int? HighAvailabilityReplicaCount { get; set; } /// The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby. + [WirePath("properties.secondaryType")] public SecondaryType? SecondaryType { get; set; } /// The name and tier of the SKU. + [WirePath("properties.currentSku")] public SqlSku CurrentSku { get; } /// Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled. + [WirePath("properties.autoPauseDelay")] public int? AutoPauseDelay { get; set; } /// The storage account type used to store backups for this database. + [WirePath("properties.currentBackupStorageRedundancy")] public SqlBackupStorageRedundancy? CurrentBackupStorageRedundancy { get; } /// The storage account type to be used to store backups for this database. + [WirePath("properties.requestedBackupStorageRedundancy")] public SqlBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } /// Minimal capacity that database will always have allocated, if not paused. + [WirePath("properties.minCapacity")] public double? MinCapacity { get; set; } /// The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + [WirePath("properties.pausedDate")] public DateTimeOffset? PausedOn { get; } /// The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + [WirePath("properties.resumedDate")] public DateTimeOffset? ResumedOn { get; } /// Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. + [WirePath("properties.maintenanceConfigurationId")] public ResourceIdentifier MaintenanceConfigurationId { get; set; } /// Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. + [WirePath("properties.isLedgerOn")] public bool? IsLedgerOn { get; set; } /// Infra encryption is enabled for this database. + [WirePath("properties.isInfraEncryptionEnabled")] public bool? IsInfraEncryptionEnabled { get; } /// The Client id used for cross tenant per database CMK scenario. + [WirePath("properties.federatedClientId")] public Guid? FederatedClientId { get; set; } /// The resource ids of the user assigned identities to use. + [WirePath("properties.keys")] public IDictionary Keys { get; } /// The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. + [WirePath("properties.encryptionProtector")] public string EncryptionProtector { get; set; } /// Type of enclave requested on the database i.e. Default or VBS enclaves. + [WirePath("properties.preferredEnclaveType")] public SqlAlwaysEncryptedEnclaveType? PreferredEnclaveType { get; set; } /// Whether or not the database uses free monthly limits. Allowed on one database in a subscription. + [WirePath("properties.useFreeLimit")] public bool? UseFreeLimit { get; set; } /// /// Specifies the behavior when monthly free limits are exhausted for the free database. @@ -377,6 +423,7 @@ internal SqlDatabaseData() /// /// BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed. /// + [WirePath("properties.freeLimitExhaustionBehavior")] public FreeLimitExhaustionBehavior? FreeLimitExhaustionBehavior { get; set; } /// /// The resource identifier of the source associated with the create operation of this database. @@ -393,6 +440,7 @@ internal SqlDatabaseData() /// /// When source subscription belongs to a different tenant than target subscription, “x-ms-authorization-auxiliary” header must contain authentication token for the source tenant. For more details about “x-ms-authorization-auxiliary” header see https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant /// + [WirePath("properties.sourceResourceId")] public ResourceIdentifier SourceResourceId { get; set; } /// /// Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. @@ -403,6 +451,7 @@ internal SqlDatabaseData() /// /// To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. /// + [WirePath("properties.manualCutover")] public bool? ManualCutover { get; set; } /// /// To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. @@ -413,10 +462,13 @@ internal SqlDatabaseData() /// /// When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. /// + [WirePath("properties.performCutover")] public bool? PerformCutover { get; set; } /// Specifies the availability zone the database is pinned to. + [WirePath("properties.availabilityZone")] public SqlAvailabilityZoneType? AvailabilityZone { get; set; } /// The flag to enable or disable auto rotation of database encryption protector AKV key. + [WirePath("properties.encryptionProtectorAutoRotation")] public bool? EncryptionProtectorAutoRotation { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyData.cs index 52bd6f2554d40..b1d2ea7f5f2cc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyData.cs @@ -86,20 +86,28 @@ internal SqlDatabaseSecurityAlertPolicyData(ResourceIdentifier id, string name, } /// Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. + [WirePath("properties.state")] public SecurityAlertsPolicyState? State { get; set; } /// Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force. + [WirePath("properties.disabledAlerts")] public IList DisabledAlerts { get; } /// Specifies an array of e-mail addresses to which the alert is sent. + [WirePath("properties.emailAddresses")] public IList EmailAddresses { get; } /// Specifies that the alert is sent to the account administrators. + [WirePath("properties.emailAccountAdmins")] public bool? SendToEmailAccountAdmins { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// Specifies the identifier key of the Threat Detection audit storage account. + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the number of days to keep in the Threat Detection audit logs. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// Specifies the UTC creation time of the policy. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleData.cs index c51499585fdc0..b68cb0e5d48b2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleData.cs @@ -37,8 +37,10 @@ internal SqlFirewallRuleData(ResourceIdentifier id, string name, ResourceType? r } /// The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. + [WirePath("properties.startIpAddress")] public string StartIPAddress { get; set; } /// The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses. + [WirePath("properties.endIpAddress")] public string EndIPAddress { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlPrivateEndpointConnectionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlPrivateEndpointConnectionData.cs index f853a385be44b..72bad6578e930 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlPrivateEndpointConnectionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlPrivateEndpointConnectionData.cs @@ -80,6 +80,7 @@ internal SqlPrivateEndpointConnectionData(ResourceIdentifier id, string name, Re /// Private endpoint which the connection belongs to. internal WritableSubResource PrivateEndpoint { get; set; } /// Gets or sets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; @@ -92,10 +93,13 @@ public ResourceIdentifier PrivateEndpointId } /// Group IDs. + [WirePath("properties.groupIds")] public IReadOnlyList GroupIds { get; } /// Connection state of the private endpoint connection. + [WirePath("properties.privateLinkServiceConnectionState")] public SqlPrivateLinkServiceConnectionStateProperty ConnectionState { get; set; } /// State of the private endpoint connection. + [WirePath("properties.provisioningState")] public SqlPrivateEndpointProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlPrivateLinkResourceData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlPrivateLinkResourceData.cs index e5c2ba2ede89a..5c289ee7c7b2c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlPrivateLinkResourceData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlPrivateLinkResourceData.cs @@ -70,6 +70,7 @@ internal SqlPrivateLinkResourceData(ResourceIdentifier id, string name, Resource } /// The private link resource group id. + [WirePath("properties")] public SqlPrivateLinkResourceProperties Properties { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAutomaticTuningData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAutomaticTuningData.cs index 93cf00badc728..ba3ca113a7b16 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAutomaticTuningData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAutomaticTuningData.cs @@ -75,10 +75,13 @@ internal SqlServerAutomaticTuningData(ResourceIdentifier id, string name, Resour } /// Automatic tuning desired state. + [WirePath("properties.desiredState")] public AutomaticTuningServerMode? DesiredState { get; set; } /// Automatic tuning actual state. + [WirePath("properties.actualState")] public AutomaticTuningServerMode? ActualState { get; } /// Automatic tuning options definition. + [WirePath("properties.options")] public IDictionary Options { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAzureADAdministratorData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAzureADAdministratorData.cs index fcdbdadd27337..cc32284f2c36c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAzureADAdministratorData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAzureADAdministratorData.cs @@ -78,14 +78,19 @@ internal SqlServerAzureADAdministratorData(ResourceIdentifier id, string name, R } /// Type of the sever administrator. + [WirePath("properties.administratorType")] public SqlAdministratorType? AdministratorType { get; set; } /// Login name of the server administrator. + [WirePath("properties.login")] public string Login { get; set; } /// SID (object ID) of the server administrator. + [WirePath("properties.sid")] public Guid? Sid { get; set; } /// Tenant ID of the administrator. + [WirePath("properties.tenantId")] public Guid? TenantId { get; set; } /// Azure Active Directory only Authentication enabled. + [WirePath("properties.azureADOnlyAuthentication")] public bool? IsAzureADOnlyAuthenticationEnabled { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAzureADOnlyAuthenticationData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAzureADOnlyAuthenticationData.cs index 59932fdf83ad3..0f24c515bf7b9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAzureADOnlyAuthenticationData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerAzureADOnlyAuthenticationData.cs @@ -69,6 +69,7 @@ internal SqlServerAzureADOnlyAuthenticationData(ResourceIdentifier id, string na } /// Azure Active Directory only Authentication enabled. + [WirePath("properties.azureADOnlyAuthentication")] public bool? IsAzureADOnlyAuthenticationEnabled { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerBlobAuditingPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerBlobAuditingPolicyData.cs index 7f6562ef0e2ec..dc57922831fcb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerBlobAuditingPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerBlobAuditingPolicyData.cs @@ -200,8 +200,10 @@ internal SqlServerBlobAuditingPolicyData(ResourceIdentifier id, string name, Res /// or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// /// + [WirePath("properties.isDevopsAuditEnabled")] public bool? IsDevopsAuditEnabled { get; set; } /// Specifies the number of days to keep in the audit logs in the storage account. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// /// Specifies the Actions-Groups and Actions to audit. @@ -266,8 +268,10 @@ internal SqlServerBlobAuditingPolicyData(ResourceIdentifier id, string name, Res /// /// For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) /// + [WirePath("properties.auditActionsAndGroups")] public IList AuditActionsAndGroups { get; } /// Specifies whether storageAccountAccessKey value is the storage's secondary key. + [WirePath("properties.isStorageSecondaryKeyInUse")] public bool? IsStorageSecondaryKeyInUse { get; set; } /// /// Specifies whether audit events are sent to Azure Monitor. @@ -283,17 +287,22 @@ internal SqlServerBlobAuditingPolicyData(ResourceIdentifier id, string name, Res /// or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// /// + [WirePath("properties.isAzureMonitorTargetEnabled")] public bool? IsAzureMonitorTargetEnabled { get; set; } /// /// Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. /// The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. /// + [WirePath("properties.queueDelayMs")] public int? QueueDelayMs { get; set; } /// Specifies whether Managed Identity is used to access blob storage. + [WirePath("properties.isManagedIdentityInUse")] public bool? IsManagedIdentityInUse { get; set; } /// Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. + [WirePath("properties.state")] public BlobAuditingPolicyState? State { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// /// Specifies the identifier key of the auditing storage account. @@ -303,8 +312,10 @@ internal SqlServerBlobAuditingPolicyData(ResourceIdentifier id, string name, Res /// 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. /// For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the blob storage subscription Id. + [WirePath("properties.storageAccountSubscriptionId")] public Guid? StorageAccountSubscriptionId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerCommunicationLinkData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerCommunicationLinkData.cs index 5e96960db831a..87635d684dbea 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerCommunicationLinkData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerCommunicationLinkData.cs @@ -75,12 +75,16 @@ internal SqlServerCommunicationLinkData(ResourceIdentifier id, string name, Reso } /// Communication link location. + [WirePath("location")] public AzureLocation? Location { get; } /// Communication link kind. This property is used for Azure Portal metadata. + [WirePath("kind")] public string Kind { get; } /// The state. + [WirePath("properties.state")] public string State { get; } /// The name of the partner server. + [WirePath("properties.partnerServer")] public string PartnerServer { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerConnectionPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerConnectionPolicyData.cs index a606e709fe99c..cd2c609db2fe5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerConnectionPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerConnectionPolicyData.cs @@ -74,10 +74,13 @@ internal SqlServerConnectionPolicyData(ResourceIdentifier id, string name, Resou } /// Resource location. + [WirePath("location")] public AzureLocation? Location { get; } /// Metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// The server connection type. + [WirePath("properties.connectionType")] public ServerConnectionType? ConnectionType { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerData.cs index 973a0ced5f2ad..10954734a06ca 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerData.cs @@ -113,40 +113,58 @@ internal SqlServerData() } /// The Azure Active Directory identity of the server. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// Kind of sql server. This is metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// Administrator username for the server. Once created it cannot be changed. + [WirePath("properties.administratorLogin")] public string AdministratorLogin { get; set; } /// The administrator login password (required for server creation). + [WirePath("properties.administratorLoginPassword")] public string AdministratorLoginPassword { get; set; } /// The version of the server. + [WirePath("properties.version")] public string Version { get; set; } /// The state of the server. + [WirePath("properties.state")] public string State { get; } /// The fully qualified domain name of the server. + [WirePath("properties.fullyQualifiedDomainName")] public string FullyQualifiedDomainName { get; } /// List of private endpoint connections on a server. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// Minimal TLS version. Allowed values: 'None', 1.0', '1.1', '1.2', '1.3'. + [WirePath("properties.minimalTlsVersion")] public SqlMinimalTlsVersion? MinTlsVersion { get; set; } /// Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter'. + [WirePath("properties.publicNetworkAccess")] public ServerNetworkAccessFlag? PublicNetworkAccess { get; set; } /// Whether or not existing server has a workspace created and if it allows connection from workspace. + [WirePath("properties.workspaceFeature")] public ServerWorkspaceFeature? WorkspaceFeature { get; } /// The resource id of a user assigned identity to be used by default. + [WirePath("properties.primaryUserAssignedIdentityId")] public ResourceIdentifier PrimaryUserAssignedIdentityId { get; set; } /// The Client id used for cross tenant CMK scenario. + [WirePath("properties.federatedClientId")] public Guid? FederatedClientId { get; set; } /// A CMK URI of the key to use for encryption. + [WirePath("properties.keyId")] public Uri KeyId { get; set; } /// The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. + [WirePath("properties.administrators")] public ServerExternalAdministrator Administrators { get; set; } /// Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + [WirePath("properties.restrictOutboundNetworkAccess")] public ServerNetworkAccessFlag? RestrictOutboundNetworkAccess { get; set; } /// Whether or not to enable IPv6 support for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + [WirePath("properties.isIPv6Enabled")] public ServerNetworkAccessFlag? IsIPv6Enabled { get; set; } /// Status of external governance. + [WirePath("properties.externalGovernanceStatus")] public ExternalGovernanceStatus? ExternalGovernanceStatus { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseReplicationLinkData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseReplicationLinkData.cs index 4b5d1ebf31762..d0551234ec4d8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseReplicationLinkData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseReplicationLinkData.cs @@ -90,26 +90,37 @@ internal SqlServerDatabaseReplicationLinkData(ResourceIdentifier id, string name } /// Resource partner server. + [WirePath("properties.partnerServer")] public string PartnerServer { get; } /// Resource partner database. + [WirePath("properties.partnerDatabase")] public string PartnerDatabase { get; } /// Resource partner location. + [WirePath("properties.partnerLocation")] public AzureLocation? PartnerLocation { get; } /// Local replication role. + [WirePath("properties.role")] public SqlServerDatabaseReplicationRole? Role { get; } /// Partner replication role. + [WirePath("properties.partnerRole")] public SqlServerDatabaseReplicationRole? PartnerRole { get; } /// Replication mode. + [WirePath("properties.replicationMode")] public string ReplicationMode { get; } /// Time at which the link was created. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// Seeding completion percentage for the link. + [WirePath("properties.percentComplete")] public int? PercentComplete { get; } /// Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). + [WirePath("properties.replicationState")] public ReplicationLinkState? ReplicationState { get; } /// Whether the user is currently allowed to terminate the link. + [WirePath("properties.isTerminationAllowed")] public bool? IsTerminationAllowed { get; } /// Link type (GEO, NAMED, STANDBY). + [WirePath("properties.linkType")] public ReplicationLinkType? LinkType { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseRestorePointData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseRestorePointData.cs index 30a5a8ba29078..4718ba79c7ea5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseRestorePointData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseRestorePointData.cs @@ -78,14 +78,19 @@ internal SqlServerDatabaseRestorePointData(ResourceIdentifier id, string name, R } /// Resource location. + [WirePath("location")] public AzureLocation? Location { get; } /// The type of restore point. + [WirePath("properties.restorePointType")] public RestorePointType? RestorePointType { get; } /// The earliest time to which this database can be restored. + [WirePath("properties.earliestRestoreDate")] public DateTimeOffset? EarliestRestoreOn { get; } /// The time the backup was taken. + [WirePath("properties.restorePointCreationDate")] public DateTimeOffset? RestorePointCreatedOn { get; } /// The label of restore point for backup request by user. + [WirePath("properties.restorePointLabel")] public string RestorePointLabel { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDevOpsAuditingSettingData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDevOpsAuditingSettingData.cs index 1ba353357a2d6..133c44e85e429 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDevOpsAuditingSettingData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDevOpsAuditingSettingData.cs @@ -111,12 +111,16 @@ internal SqlServerDevOpsAuditingSettingData(ResourceIdentifier id, string name, /// or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) /// /// + [WirePath("properties.isAzureMonitorTargetEnabled")] public bool? IsAzureMonitorTargetEnabled { get; set; } /// Specifies whether Managed Identity is used to access blob storage. + [WirePath("properties.isManagedIdentityInUse")] public bool? IsManagedIdentityInUse { get; set; } /// Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. + [WirePath("properties.state")] public BlobAuditingPolicyState? State { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// /// Specifies the identifier key of the auditing storage account. @@ -126,8 +130,10 @@ internal SqlServerDevOpsAuditingSettingData(ResourceIdentifier id, string name, /// 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. /// For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the blob storage subscription Id. + [WirePath("properties.storageAccountSubscriptionId")] public Guid? StorageAccountSubscriptionId { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDnsAliasData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDnsAliasData.cs index 6e181a1513661..280e5cd1b220c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDnsAliasData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDnsAliasData.cs @@ -69,6 +69,7 @@ internal SqlServerDnsAliasData(ResourceIdentifier id, string name, ResourceType } /// The fully qualified DNS record for alias. + [WirePath("properties.azureDnsRecord")] public string AzureDnsRecord { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobAgentData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobAgentData.cs index 8c64d595b66cd..3cdbfc8341b2f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobAgentData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobAgentData.cs @@ -82,10 +82,13 @@ internal SqlServerJobAgentData() } /// The name and tier of the SKU. + [WirePath("sku")] public SqlSku Sku { get; set; } /// Resource ID of the database to store job metadata in. + [WirePath("properties.databaseId")] public ResourceIdentifier DatabaseId { get; set; } /// The state of the job agent. + [WirePath("properties.state")] public JobAgentState? State { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialData.cs index bec2ec1ecc1df..f0732eff322f2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialData.cs @@ -71,8 +71,10 @@ internal SqlServerJobCredentialData(ResourceIdentifier id, string name, Resource } /// The credential user name. + [WirePath("properties.username")] public string Username { get; set; } /// The credential password. + [WirePath("properties.password")] public string Password { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobData.cs index 2e823458fbb4a..ce942aa0fc063 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobData.cs @@ -74,10 +74,13 @@ internal SqlServerJobData(ResourceIdentifier id, string name, ResourceType resou } /// User-defined description of the job. + [WirePath("properties.description")] public string Description { get; set; } /// The job version number. + [WirePath("properties.version")] public int? Version { get; } /// Schedule properties of the job. + [WirePath("properties.schedule")] public SqlServerJobSchedule Schedule { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobExecutionData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobExecutionData.cs index 372cc99a116c2..9b8068761a15e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobExecutionData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobExecutionData.cs @@ -94,30 +94,43 @@ internal SqlServerJobExecutionData(ResourceIdentifier id, string name, ResourceT } /// The job version number. + [WirePath("properties.jobVersion")] public int? JobVersion { get; } /// The job step name. + [WirePath("properties.stepName")] public string StepName { get; } /// The job step id. + [WirePath("properties.stepId")] public int? StepId { get; } /// The unique identifier of the job execution. + [WirePath("properties.jobExecutionId")] public Guid? JobExecutionId { get; } /// The detailed state of the job execution. + [WirePath("properties.lifecycle")] public JobExecutionLifecycle? Lifecycle { get; } /// The ARM provisioning state of the job execution. + [WirePath("properties.provisioningState")] public JobExecutionProvisioningState? ProvisioningState { get; } /// The time that the job execution was created. + [WirePath("properties.createTime")] public DateTimeOffset? CreateOn { get; } /// The time that the job execution started. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The time that the job execution completed. + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; } /// Number of times the job execution has been attempted. + [WirePath("properties.currentAttempts")] public int? CurrentAttempts { get; set; } /// Start time of the current attempt. + [WirePath("properties.currentAttemptStartTime")] public DateTimeOffset? CurrentAttemptStartOn { get; } /// The last status or error message. + [WirePath("properties.lastMessage")] public string LastMessage { get; } /// The target that this execution is executed on. + [WirePath("properties.target")] public JobExecutionTarget Target { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepData.cs index 12ee18cfa4514..280da8ecb94c0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepData.cs @@ -80,16 +80,22 @@ internal SqlServerJobStepData(ResourceIdentifier id, string name, ResourceType r } /// The job step's index within the job. If not specified when creating the job step, it will be created as the last step. If not specified when updating the job step, the step id is not modified. + [WirePath("properties.stepId")] public int? StepId { get; set; } /// The resource ID of the target group that the job step will be executed on. + [WirePath("properties.targetGroup")] public string TargetGroup { get; set; } /// The resource ID of the job credential that will be used to connect to the targets. + [WirePath("properties.credential")] public string Credential { get; set; } /// The action payload of the job step. + [WirePath("properties.action")] public JobStepAction Action { get; set; } /// Output destination properties of the job step. + [WirePath("properties.output")] public JobStepOutput Output { get; set; } /// Execution options for the job step. + [WirePath("properties.executionOptions")] public JobStepExecutionOptions ExecutionOptions { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupData.cs index cc643b474ccc2..fef398e85c135 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupData.cs @@ -71,6 +71,7 @@ internal SqlServerJobTargetGroupData(ResourceIdentifier id, string name, Resourc } /// Members of the target group. + [WirePath("properties.members")] public IList Members { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerKeyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerKeyData.cs index 6f40a8df7a587..0f8ca5c33e827 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerKeyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerKeyData.cs @@ -84,20 +84,28 @@ internal SqlServerKeyData(ResourceIdentifier id, string name, ResourceType resou } /// Kind of encryption protector. This is metadata used for the Azure portal experience. + [WirePath("kind")] public string Kind { get; } /// Resource location. + [WirePath("location")] public AzureLocation? Location { get; } /// Subregion of the server key. + [WirePath("properties.subregion")] public string Subregion { get; } /// The server key type like 'ServiceManaged', 'AzureKeyVault'. + [WirePath("properties.serverKeyType")] public SqlServerKeyType? ServerKeyType { get; set; } /// The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. + [WirePath("properties.uri")] public Uri Uri { get; set; } /// Thumbprint of the server key. + [WirePath("properties.thumbprint")] public string Thumbprint { get; } /// The server key creation date. + [WirePath("properties.creationDate")] public DateTimeOffset? CreatedOn { get; } /// Key auto rotation opt-in flag. Either true or false. + [WirePath("properties.autoRotationEnabled")] public bool? IsAutoRotationEnabled { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSecurityAlertPolicyData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSecurityAlertPolicyData.cs index b48f3fb58f46f..35ec1350ee243 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSecurityAlertPolicyData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSecurityAlertPolicyData.cs @@ -86,20 +86,28 @@ internal SqlServerSecurityAlertPolicyData(ResourceIdentifier id, string name, Re } /// Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. + [WirePath("properties.state")] public SecurityAlertsPolicyState? State { get; set; } /// Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force. + [WirePath("properties.disabledAlerts")] public IList DisabledAlerts { get; } /// Specifies an array of e-mail addresses to which the alert is sent. + [WirePath("properties.emailAddresses")] public IList EmailAddresses { get; } /// Specifies that the alert is sent to the account administrators. + [WirePath("properties.emailAccountAdmins")] public bool? SendToEmailAccountAdmins { get; set; } /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. + [WirePath("properties.storageEndpoint")] public string StorageEndpoint { get; set; } /// Specifies the identifier key of the Threat Detection audit storage account. + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// Specifies the number of days to keep in the Threat Detection audit logs. + [WirePath("properties.retentionDays")] public int? RetentionDays { get; set; } /// Specifies the UTC creation time of the policy. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerTrustGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerTrustGroupData.cs index 27047453451aa..5890aa93fc501 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerTrustGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerTrustGroupData.cs @@ -74,8 +74,10 @@ internal SqlServerTrustGroupData(ResourceIdentifier id, string name, ResourceTyp } /// Group members information for the server trust group. + [WirePath("properties.groupMembers")] public IList GroupMembers { get; } /// Trust scope of the server trust group. + [WirePath("properties.trustScopes")] public IList TrustScopes { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVirtualNetworkRuleData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVirtualNetworkRuleData.cs index c6e8c8810bd23..ac6561f3f7e56 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVirtualNetworkRuleData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVirtualNetworkRuleData.cs @@ -74,10 +74,13 @@ internal SqlServerVirtualNetworkRuleData(ResourceIdentifier id, string name, Res } /// The ARM resource id of the virtual network subnet. + [WirePath("properties.virtualNetworkSubnetId")] public ResourceIdentifier VirtualNetworkSubnetId { get; set; } /// Create firewall rule before the virtual network has vnet service endpoint enabled. + [WirePath("properties.ignoreMissingVnetServiceEndpoint")] public bool? IgnoreMissingVnetServiceEndpoint { get; set; } /// Virtual Network Rule State. + [WirePath("properties.state")] public SqlServerVirtualNetworkRuleState? State { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentData.cs index 6be18dfe72155..f79d994eb111c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentData.cs @@ -76,12 +76,16 @@ internal SqlServerVulnerabilityAssessmentData(ResourceIdentifier id, string name } /// A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). + [WirePath("properties.storageContainerPath")] public string StorageContainerPath { get; set; } /// A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall. + [WirePath("properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } /// Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall. + [WirePath("properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } /// The recurring scans settings. + [WirePath("properties.recurringScans")] public VulnerabilityAssessmentRecurringScansProperties RecurringScans { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlTimeZoneData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlTimeZoneData.cs index 1f26ae9688863..db9859f464dba 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlTimeZoneData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlTimeZoneData.cs @@ -71,8 +71,10 @@ internal SqlTimeZoneData(ResourceIdentifier id, string name, ResourceType resour } /// The time zone id. + [WirePath("properties.timeZoneId")] public string TimeZoneId { get; } /// The time zone display name. + [WirePath("properties.displayName")] public string DisplayName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentBaselineData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentBaselineData.cs index 46590b6234438..cd68cdd979eb9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentBaselineData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentBaselineData.cs @@ -70,6 +70,7 @@ internal SqlVulnerabilityAssessmentBaselineData(ResourceIdentifier id, string na } /// The baseline set result. + [WirePath("properties.results")] public IDictionary>> Results { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentBaselineRuleData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentBaselineRuleData.cs index 0e1fb7562edae..46a24ac3836fc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentBaselineRuleData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentBaselineRuleData.cs @@ -70,6 +70,7 @@ internal SqlVulnerabilityAssessmentBaselineRuleData(ResourceIdentifier id, strin } /// The rule baseline result. + [WirePath("properties.results")] public IList> Results { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentData.cs index 520023aed2f94..8737e2ec5c839 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentData.cs @@ -70,6 +70,7 @@ internal SqlVulnerabilityAssessmentData(ResourceIdentifier id, string name, Reso } /// Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. + [WirePath("properties.state")] public SqlVulnerabilityAssessmentState? State { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanData.cs index f7f7ea0556893..4b5620bb80d07 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanData.cs @@ -103,38 +103,55 @@ internal SqlVulnerabilityAssessmentScanData(ResourceIdentifier id, string name, } /// The scan ID. + [WirePath("properties.scanId")] public string ScanId { get; } /// The scan trigger type. + [WirePath("properties.triggerType")] public VulnerabilityAssessmentScanTriggerType? TriggerType { get; } /// The scan status. + [WirePath("properties.state")] public VulnerabilityAssessmentScanState? State { get; } /// The scan start time (UTC). + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The scan end time (UTC). + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; } /// The scan errors. + [WirePath("properties.errors")] public IReadOnlyList Errors { get; } /// The server name. + [WirePath("properties.server")] public string Server { get; } /// The database name. + [WirePath("properties.database")] public string Database { get; } /// The SQL version. + [WirePath("properties.sqlVersion")] public string SqlVersion { get; } /// The number of failed rules with high severity. + [WirePath("properties.highSeverityFailedRulesCount")] public int? HighSeverityFailedRulesCount { get; } /// The number of failed rules with medium severity. + [WirePath("properties.mediumSeverityFailedRulesCount")] public int? MediumSeverityFailedRulesCount { get; } /// The number of failed rules with low severity. + [WirePath("properties.lowSeverityFailedRulesCount")] public int? LowSeverityFailedRulesCount { get; } /// The number of total passed rules. + [WirePath("properties.totalPassedRulesCount")] public int? TotalPassedRulesCount { get; } /// The number of total failed rules. + [WirePath("properties.totalFailedRulesCount")] public int? TotalFailedRulesCount { get; } /// The number of total rules assessed. + [WirePath("properties.totalRulesCount")] public int? TotalRulesCount { get; } /// Baseline created for this database, and has one or more rules. + [WirePath("properties.isBaselineApplied")] public bool? IsBaselineApplied { get; } /// The last scan time. + [WirePath("properties.lastScanTime")] public DateTimeOffset? LastScanOn { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanResultData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanResultData.cs index a753f4a0a1013..c8da5d7ccde9f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanResultData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlVulnerabilityAssessmentScanResultData.cs @@ -82,20 +82,28 @@ internal SqlVulnerabilityAssessmentScanResultData(ResourceIdentifier id, string } /// SQL Vulnerability Assessment rule Id. + [WirePath("properties.ruleId")] public string RuleId { get; } /// SQL Vulnerability Assessment rule result status. + [WirePath("properties.status")] public SqlVulnerabilityAssessmentRuleStatus? Status { get; } /// SQL Vulnerability Assessment error message. + [WirePath("properties.errorMessage")] public string ErrorMessage { get; } /// SQL Vulnerability Assessment is the query results trimmed. + [WirePath("properties.isTrimmed")] public bool? IsTrimmed { get; } /// SQL Vulnerability Assessment query results that was run. + [WirePath("properties.queryResults")] public IReadOnlyList> QueryResults { get; } /// SQL Vulnerability Assessment the remediation details. + [WirePath("properties.remediation")] public SqlVulnerabilityAssessmentRemediation Remediation { get; } /// SQL Vulnerability Assessment rule result adjusted with baseline. + [WirePath("properties.baselineAdjustedResult")] public SqlVulnerabilityAssessmentBaselineAdjustedResult BaselineAdjustedResult { get; } /// SQL Vulnerability Assessment rule metadata. + [WirePath("properties.ruleMetadata")] public SqlVulnerabilityAssessmentRuleMetadata RuleMetadata { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionUsageData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionUsageData.cs index 350779c4d3913..af5358ca4c573 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionUsageData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionUsageData.cs @@ -75,12 +75,16 @@ internal SubscriptionUsageData(ResourceIdentifier id, string name, ResourceType } /// User-readable name of the metric. + [WirePath("properties.displayName")] public string DisplayName { get; } /// Current value of the metric. + [WirePath("properties.currentValue")] public double? CurrentValue { get; } /// Boundary value of the metric. + [WirePath("properties.limit")] public double? Limit { get; } /// Unit of the metric. + [WirePath("properties.unit")] public string Unit { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncAgentData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncAgentData.cs index 358a1016f2818..4ec2a192645de 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncAgentData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncAgentData.cs @@ -80,16 +80,22 @@ internal SyncAgentData(ResourceIdentifier id, string name, ResourceType resource } /// ARM resource id of the sync database in the sync agent. + [WirePath("properties.syncDatabaseId")] public ResourceIdentifier SyncDatabaseId { get; set; } /// Last alive time of the sync agent. + [WirePath("properties.lastAliveTime")] public DateTimeOffset? LastAliveOn { get; } /// State of the sync agent. + [WirePath("properties.state")] public SyncAgentState? State { get; } /// If the sync agent version is up to date. + [WirePath("properties.isUpToDate")] public bool? IsUpToDate { get; } /// Expiration time of the sync agent version. + [WirePath("properties.expiryTime")] public DateTimeOffset? ExpireOn { get; } /// Version of the sync agent. + [WirePath("properties.version")] public string Version { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncGroupData.cs index 706feef50e667..6f675db4f8122 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncGroupData.cs @@ -94,30 +94,43 @@ internal SyncGroupData(ResourceIdentifier id, string name, ResourceType resource } /// The name and capacity of the SKU. + [WirePath("sku")] public SqlSku Sku { get; set; } /// Sync interval of the sync group. + [WirePath("properties.interval")] public int? Interval { get; set; } /// Last sync time of the sync group. + [WirePath("properties.lastSyncTime")] public DateTimeOffset? LastSyncOn { get; } /// Conflict resolution policy of the sync group. + [WirePath("properties.conflictResolutionPolicy")] public SyncConflictResolutionPolicy? ConflictResolutionPolicy { get; set; } /// ARM resource id of the sync database in the sync group. + [WirePath("properties.syncDatabaseId")] public ResourceIdentifier SyncDatabaseId { get; set; } /// User name for the sync group hub database credential. + [WirePath("properties.hubDatabaseUserName")] public string HubDatabaseUserName { get; set; } /// Password for the sync group hub database credential. + [WirePath("properties.hubDatabasePassword")] public string HubDatabasePassword { get; set; } /// Sync state of the sync group. + [WirePath("properties.syncState")] public SyncGroupState? SyncState { get; } /// Sync schema of the sync group. + [WirePath("properties.schema")] public SyncGroupSchema Schema { get; set; } /// If conflict logging is enabled. + [WirePath("properties.enableConflictLogging")] public bool? IsConflictLoggingEnabled { get; set; } /// Conflict logging retention period. + [WirePath("properties.conflictLoggingRetentionInDays")] public int? ConflictLoggingRetentionInDays { get; set; } /// If use private link connection is enabled. + [WirePath("properties.usePrivateLinkConnection")] public bool? UsePrivateLinkConnection { get; set; } /// Private endpoint name of the sync group if use private link connection is enabled. + [WirePath("properties.privateEndpointName")] public string PrivateEndpointName { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncMemberData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncMemberData.cs index 2a2d45085d5f1..9e977a1a95bfa 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncMemberData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncMemberData.cs @@ -92,28 +92,40 @@ internal SyncMemberData(ResourceIdentifier id, string name, ResourceType resourc } /// Database type of the sync member. + [WirePath("properties.databaseType")] public SyncMemberDbType? DatabaseType { get; set; } /// ARM resource id of the sync agent in the sync member. + [WirePath("properties.syncAgentId")] public ResourceIdentifier SyncAgentId { get; set; } /// SQL Server database id of the sync member. + [WirePath("properties.sqlServerDatabaseId")] public Guid? SqlServerDatabaseId { get; set; } /// ARM resource id of the sync member logical database, for sync members in Azure. + [WirePath("properties.syncMemberAzureDatabaseResourceId")] public ResourceIdentifier SyncMemberAzureDatabaseResourceId { get; set; } /// Whether to use private link connection. + [WirePath("properties.usePrivateLinkConnection")] public bool? UsePrivateLinkConnection { get; set; } /// Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. + [WirePath("properties.privateEndpointName")] public string PrivateEndpointName { get; } /// Server name of the member database in the sync member. + [WirePath("properties.serverName")] public string ServerName { get; set; } /// Database name of the member database in the sync member. + [WirePath("properties.databaseName")] public string DatabaseName { get; set; } /// User name of the member database in the sync member. + [WirePath("properties.userName")] public string UserName { get; set; } /// Password of the member database in the sync member. + [WirePath("properties.password")] public string Password { get; set; } /// Sync direction of the sync member. + [WirePath("properties.syncDirection")] public SyncDirection? SyncDirection { get; set; } /// Sync state of the sync member. + [WirePath("properties.syncState")] public SyncMemberState? SyncState { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualClusterData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualClusterData.cs index 124888f83040d..a53fe95277ff1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualClusterData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualClusterData.cs @@ -82,10 +82,13 @@ internal VirtualClusterData() } /// Subnet resource ID for the virtual cluster. + [WirePath("properties.subnetId")] public ResourceIdentifier SubnetId { get; } /// Virtual cluster version. + [WirePath("properties.version")] public string Version { get; set; } /// List of resources in this virtual cluster. + [WirePath("properties.childResources")] public IReadOnlyList ChildResources { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VulnerabilityAssessmentScanRecordData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VulnerabilityAssessmentScanRecordData.cs index 09fd4cc2c2053..917503b9e9741 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VulnerabilityAssessmentScanRecordData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VulnerabilityAssessmentScanRecordData.cs @@ -85,20 +85,28 @@ internal VulnerabilityAssessmentScanRecordData(ResourceIdentifier id, string nam } /// The scan ID. + [WirePath("properties.scanId")] public string ScanId { get; } /// The scan trigger type. + [WirePath("properties.triggerType")] public VulnerabilityAssessmentScanTriggerType? TriggerType { get; } /// The scan status. + [WirePath("properties.state")] public VulnerabilityAssessmentScanState? State { get; } /// The scan start time (UTC). + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// The scan end time (UTC). + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; } /// The scan errors. + [WirePath("properties.errors")] public IReadOnlyList Errors { get; } /// The scan results storage container path. + [WirePath("properties.storageContainerPath")] public string StorageContainerPath { get; } /// The number of failed security checks. + [WirePath("properties.numberOfFailedSecurityChecks")] public int? NumberOfFailedSecurityChecks { get; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadClassifierData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadClassifierData.cs index 562dfd10cb839..a6239b3b6ed68 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadClassifierData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadClassifierData.cs @@ -79,16 +79,22 @@ internal WorkloadClassifierData(ResourceIdentifier id, string name, ResourceType } /// The workload classifier member name. + [WirePath("properties.memberName")] public string MemberName { get; set; } /// The workload classifier label. + [WirePath("properties.label")] public string Label { get; set; } /// The workload classifier context. + [WirePath("properties.context")] public string Context { get; set; } /// The workload classifier start time for classification. + [WirePath("properties.startTime")] public string StartTime { get; set; } /// The workload classifier end time for classification. + [WirePath("properties.endTime")] public string EndTime { get; set; } /// The workload classifier importance. + [WirePath("properties.importance")] public string Importance { get; set; } } } diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadGroupData.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadGroupData.cs index 0aa9693ee98a1..f47e1ca7b10ed 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadGroupData.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadGroupData.cs @@ -79,16 +79,22 @@ internal WorkloadGroupData(ResourceIdentifier id, string name, ResourceType reso } /// The workload group minimum percentage resource. + [WirePath("properties.minResourcePercent")] public int? MinResourcePercent { get; set; } /// The workload group cap percentage resource. + [WirePath("properties.maxResourcePercent")] public int? MaxResourcePercent { get; set; } /// The workload group request minimum grant percentage. + [WirePath("properties.minResourcePercentPerRequest")] public double? MinResourcePercentPerRequest { get; set; } /// The workload group request maximum grant percentage. + [WirePath("properties.maxResourcePercentPerRequest")] public double? MaxResourcePercentPerRequest { get; set; } /// The workload group importance level. + [WirePath("properties.importance")] public string Importance { get; set; } /// The workload group query execution timeout. + [WirePath("properties.queryExecutionTimeout")] public int? QueryExecutionTimeout { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerData.cs index c7f3b67724390..612c0da480226 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerData.cs @@ -110,44 +110,64 @@ internal BlobContainerData(ResourceIdentifier id, string name, ResourceType reso } /// The version of the deleted blob container. + [WirePath("properties.version")] public string Version { get; } /// Indicates whether the blob container was deleted. + [WirePath("properties.deleted")] public bool? IsDeleted { get; } /// Blob container deletion time. + [WirePath("properties.deletedTime")] public DateTimeOffset? DeletedOn { get; } /// Remaining retention days for soft deleted blob container. + [WirePath("properties.remainingRetentionDays")] public int? RemainingRetentionDays { get; } /// Default the container to use specified encryption scope for all writes. + [WirePath("properties.defaultEncryptionScope")] public string DefaultEncryptionScope { get; set; } /// Block override of encryption scope from the container default. + [WirePath("properties.denyEncryptionScopeOverride")] public bool? PreventEncryptionScopeOverride { get; set; } /// Specifies whether data in the container may be accessed publicly and the level of access. + [WirePath("properties.publicAccess")] public StoragePublicAccessType? PublicAccess { get; set; } /// Returns the date and time the container was last modified. + [WirePath("properties.lastModifiedTime")] public DateTimeOffset? LastModifiedOn { get; } /// The lease status of the container. + [WirePath("properties.leaseStatus")] public StorageLeaseStatus? LeaseStatus { get; } /// Lease state of the container. + [WirePath("properties.leaseState")] public StorageLeaseState? LeaseState { get; } /// Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. + [WirePath("properties.leaseDuration")] public StorageLeaseDurationType? LeaseDuration { get; } /// A name-value pair to associate with the container as metadata. + [WirePath("properties.metadata")] public IDictionary Metadata { get; } /// The ImmutabilityPolicy property of the container. + [WirePath("properties.immutabilityPolicy")] public BlobContainerImmutabilityPolicy ImmutabilityPolicy { get; } /// The LegalHold property of the container. + [WirePath("properties.legalHold")] public LegalHoldProperties LegalHold { get; } /// The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + [WirePath("properties.hasLegalHold")] public bool? HasLegalHold { get; } /// The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. + [WirePath("properties.hasImmutabilityPolicy")] public bool? HasImmutabilityPolicy { get; } /// The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process. + [WirePath("properties.immutableStorageWithVersioning")] public ImmutableStorageWithVersioning ImmutableStorageWithVersioning { get; set; } /// Enable NFSv3 root squash on blob container. + [WirePath("properties.enableNfsV3RootSquash")] public bool? EnableNfsV3RootSquash { get; set; } /// Enable NFSv3 all squash on blob container. + [WirePath("properties.enableNfsV3AllSquash")] public bool? EnableNfsV3AllSquash { get; set; } /// Resource Etag. + [WirePath("etag")] public ETag? ETag { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyData.cs index 07870f2817f19..808ac4259e810 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyData.cs @@ -72,8 +72,10 @@ internal BlobInventoryPolicyData(ResourceIdentifier id, string name, ResourceTyp } /// Returns the last modified date and time of the blob inventory policy. + [WirePath("properties.lastModifiedTime")] public DateTimeOffset? LastModifiedOn { get; } /// The storage account blob inventory policy object. It is composed of policy rules. + [WirePath("properties.policy")] public BlobInventoryPolicySchema PolicySchema { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceData.cs index d80d29fbd4392..3ff9b8186675b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceData.cs @@ -88,10 +88,12 @@ internal BlobServiceData(ResourceIdentifier id, string name, ResourceType resour } /// Sku name and tier. + [WirePath("sku")] public StorageSku Sku { get; } /// Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service. internal StorageCorsRules Cors { get; set; } /// The List of CORS rules. You can include up to five CorsRule elements in the request. + [WirePath("properties.cors.corsRules")] public IList CorsRules { get @@ -103,20 +105,28 @@ public IList CorsRules } /// DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions. + [WirePath("properties.defaultServiceVersion")] public string DefaultServiceVersion { get; set; } /// The blob service properties for blob soft delete. + [WirePath("properties.deleteRetentionPolicy")] public DeleteRetentionPolicy DeleteRetentionPolicy { get; set; } /// Versioning is enabled if set to true. + [WirePath("properties.isVersioningEnabled")] public bool? IsVersioningEnabled { get; set; } /// Deprecated in favor of isVersioningEnabled property. + [WirePath("properties.automaticSnapshotPolicyEnabled")] public bool? IsAutomaticSnapshotPolicyEnabled { get; set; } /// The blob service properties for change feed events. + [WirePath("properties.changeFeed")] public BlobServiceChangeFeed ChangeFeed { get; set; } /// The blob service properties for blob restore policy. + [WirePath("properties.restorePolicy")] public RestorePolicy RestorePolicy { get; set; } /// The blob service properties for container soft delete. + [WirePath("properties.containerDeleteRetentionPolicy")] public DeleteRetentionPolicy ContainerDeleteRetentionPolicy { get; set; } /// The blob service property to configure last access time based tracking policy. + [WirePath("properties.lastAccessTimeTrackingPolicy")] public LastAccessTimeTrackingPolicy LastAccessTimeTrackingPolicy { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountData.cs index fbf8881eed4be..26741e64b855b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountData.cs @@ -77,14 +77,19 @@ internal DeletedAccountData(ResourceIdentifier id, string name, ResourceType res } /// Full resource id of the original storage account. + [WirePath("properties.storageAccountResourceId")] public ResourceIdentifier StorageAccountResourceId { get; } /// Location of the deleted account. + [WirePath("properties.location")] public AzureLocation? Location { get; } /// Can be used to attempt recovering this deleted account via PutStorageAccount API. + [WirePath("properties.restoreReference")] public string RestoreReference { get; } /// Creation time of the deleted account. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } /// Deletion time of the deleted account. + [WirePath("properties.deletionTime")] public DateTimeOffset? DeletedOn { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeData.cs index f7571223cc90e..86a2d6a32dbc9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeData.cs @@ -80,16 +80,22 @@ internal EncryptionScopeData(ResourceIdentifier id, string name, ResourceType re } /// The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. + [WirePath("properties.source")] public EncryptionScopeSource? Source { get; set; } /// The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. + [WirePath("properties.state")] public EncryptionScopeState? State { get; set; } /// Gets the creation date and time of the encryption scope in UTC. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } /// Gets the last modification date and time of the encryption scope in UTC. + [WirePath("properties.lastModifiedTime")] public DateTimeOffset? LastModifiedOn { get; } /// The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'. + [WirePath("properties.keyVaultProperties")] public EncryptionScopeKeyVaultProperties KeyVaultProperties { get; set; } /// A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. + [WirePath("properties.requireInfrastructureEncryption")] public bool? RequireInfrastructureEncryption { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.cs index 39202c20345b9..3030a44685c87 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.cs @@ -76,10 +76,12 @@ internal FileServiceData(ResourceIdentifier id, string name, ResourceType resour } /// Sku name and tier. + [WirePath("sku")] public StorageSku Sku { get; } /// Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service. internal StorageCorsRules Cors { get; set; } /// The List of CORS rules. You can include up to five CorsRule elements in the request. + [WirePath("properties.cors.corsRules")] public IList CorsRules { get @@ -91,10 +93,12 @@ public IList CorsRules } /// The file service properties for share soft delete. + [WirePath("properties.shareDeleteRetentionPolicy")] public DeleteRetentionPolicy ShareDeleteRetentionPolicy { get; set; } /// Protocol settings for file service. internal ProtocolSettings ProtocolSettings { get; set; } /// Setting for SMB protocol. + [WirePath("properties.protocolSettings.smb")] public SmbSetting ProtocolSmbSetting { get => ProtocolSettings is null ? default : ProtocolSettings.SmbSetting; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareData.cs index 147a76782c582..c0e90b6b1ee77 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareData.cs @@ -109,42 +109,61 @@ internal FileShareData(ResourceIdentifier id, string name, ResourceType resource } /// Returns the date and time the share was last modified. + [WirePath("properties.lastModifiedTime")] public DateTimeOffset? LastModifiedOn { get; } /// A name-value pair to associate with the share as metadata. + [WirePath("properties.metadata")] public IDictionary Metadata { get; } /// The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. + [WirePath("properties.shareQuota")] public int? ShareQuota { get; set; } /// The authentication protocol that is used for the file share. Can only be specified when creating a share. + [WirePath("properties.enabledProtocols")] public FileShareEnabledProtocol? EnabledProtocol { get; set; } /// The property is for NFS share only. The default is NoRootSquash. + [WirePath("properties.rootSquash")] public RootSquashType? RootSquash { get; set; } /// The version of the share. + [WirePath("properties.version")] public string Version { get; } /// Indicates whether the share was deleted. + [WirePath("properties.deleted")] public bool? IsDeleted { get; } /// The deleted time if the share was deleted. + [WirePath("properties.deletedTime")] public DateTimeOffset? DeletedOn { get; } /// Remaining retention days for share that was soft deleted. + [WirePath("properties.remainingRetentionDays")] public int? RemainingRetentionDays { get; } /// Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. + [WirePath("properties.accessTier")] public FileShareAccessTier? AccessTier { get; set; } /// Indicates the last modification time for share access tier. + [WirePath("properties.accessTierChangeTime")] public DateTimeOffset? AccessTierChangeOn { get; } /// Indicates if there is a pending transition for access tier. + [WirePath("properties.accessTierStatus")] public string AccessTierStatus { get; } /// The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files. + [WirePath("properties.shareUsageBytes")] public long? ShareUsageBytes { get; } /// The lease status of the share. + [WirePath("properties.leaseStatus")] public StorageLeaseStatus? LeaseStatus { get; } /// Lease state of the share. + [WirePath("properties.leaseState")] public StorageLeaseState? LeaseState { get; } /// Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased. + [WirePath("properties.leaseDuration")] public StorageLeaseDurationType? LeaseDuration { get; } /// List of stored access policies specified on the share. + [WirePath("properties.signedIdentifiers")] public IList SignedIdentifiers { get; } /// Creation time of share snapshot returned in the response of list shares with expand param "snapshots". + [WirePath("properties.snapshotTime")] public DateTimeOffset? SnapshotOn { get; } /// Resource Etag. + [WirePath("etag")] public ETag? ETag { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyData.cs index cb5dfae233eee..e8ec8a70a155f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyData.cs @@ -79,14 +79,19 @@ internal ImmutabilityPolicyData(ResourceIdentifier id, string name, ResourceType } /// The immutability period for the blobs in the container since the policy creation, in days. + [WirePath("properties.immutabilityPeriodSinceCreationInDays")] public int? ImmutabilityPeriodSinceCreationInDays { get; set; } /// The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. + [WirePath("properties.state")] public ImmutabilityPolicyState? State { get; } /// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. + [WirePath("properties.allowProtectedAppendWrites")] public bool? AllowProtectedAppendWrites { get; set; } /// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive. + [WirePath("properties.allowProtectedAppendWritesAll")] public bool? AllowProtectedAppendWritesAll { get; set; } /// Resource Etag. + [WirePath("etag")] public ETag? ETag { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Internal/WirePathAttribute.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..a89d3d33938e5 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Storage +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AccountImmutabilityPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AccountImmutabilityPolicy.cs index 002699bc8197c..8a603ecd0d3c4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AccountImmutabilityPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AccountImmutabilityPolicy.cs @@ -64,10 +64,13 @@ internal AccountImmutabilityPolicy(int? immutabilityPeriodSinceCreationInDays, A } /// The immutability period for the blobs in the container since the policy creation, in days. + [WirePath("immutabilityPeriodSinceCreationInDays")] public int? ImmutabilityPeriodSinceCreationInDays { get; set; } /// The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the policy, Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property, Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. + [WirePath("state")] public AccountImmutabilityPolicyState? State { get; set; } /// This property can only be changed for disabled and unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. + [WirePath("allowProtectedAppendWrites")] public bool? AllowProtectedAppendWrites { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AccountSasContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AccountSasContent.cs index e11a9aa43bc6f..c78bff4550dbe 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AccountSasContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AccountSasContent.cs @@ -87,20 +87,28 @@ internal AccountSasContent() } /// The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). + [WirePath("signedServices")] public StorageAccountSasSignedService Services { get; } /// The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. + [WirePath("signedResourceTypes")] public StorageAccountSasSignedResourceType ResourceTypes { get; } /// The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). + [WirePath("signedPermission")] public StorageAccountSasPermission Permissions { get; } /// An IP address or a range of IP addresses from which to accept requests. + [WirePath("signedIp")] public string IPAddressOrRange { get; set; } /// The protocol permitted for a request made with the account SAS. + [WirePath("signedProtocol")] public StorageAccountHttpProtocol? Protocols { get; set; } /// The time at which the SAS becomes valid. + [WirePath("signedStart")] public DateTimeOffset? SharedAccessStartOn { get; set; } /// The time at which the shared access signature becomes invalid. + [WirePath("signedExpiry")] public DateTimeOffset SharedAccessExpireOn { get; } /// The key to sign the account SAS token with. + [WirePath("keyToSign")] public string KeyToSign { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerData.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerData.Serialization.cs index 0f816f067048b..1b3252f178210 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerData.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerData.Serialization.cs @@ -715,7 +715,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Metadata) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs index 05eb1b02bf732..3885e2fed1e31 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs @@ -73,16 +73,22 @@ internal BlobContainerImmutabilityPolicy(ETag? etag, IReadOnlyList ImmutabilityPolicy Etag. + [WirePath("etag")] public ETag? ETag { get; } /// The ImmutabilityPolicy update history of the blob container. + [WirePath("updateHistory")] public IReadOnlyList UpdateHistory { get; } /// The immutability period for the blobs in the container since the policy creation, in days. + [WirePath("properties.immutabilityPeriodSinceCreationInDays")] public int? ImmutabilityPeriodSinceCreationInDays { get; } /// The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. + [WirePath("properties.state")] public ImmutabilityPolicyState? State { get; } /// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. + [WirePath("properties.allowProtectedAppendWrites")] public bool? AllowProtectedAppendWrites { get; } /// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive. + [WirePath("properties.allowProtectedAppendWritesAll")] public bool? AllowProtectedAppendWritesAll { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyDefinition.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyDefinition.cs index e1acde7f8cf27..1915298751b89 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyDefinition.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyDefinition.cs @@ -86,14 +86,19 @@ internal BlobInventoryPolicyDefinition() } /// An object that defines the filter set. + [WirePath("filters")] public BlobInventoryPolicyFilter Filters { get; set; } /// This is a required field, it specifies the format for the inventory files. + [WirePath("format")] public BlobInventoryPolicyFormat Format { get; set; } /// This is a required field. This field is used to schedule an inventory formation. + [WirePath("schedule")] public BlobInventoryPolicySchedule Schedule { get; set; } /// This is a required field. This field specifies the scope of the inventory created either at the blob or container level. + [WirePath("objectType")] public BlobInventoryPolicyObjectType ObjectType { get; set; } /// This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts. + [WirePath("schemaFields")] public IList SchemaFields { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs index fa590c193736c..2b00cd879fc2e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs @@ -74,16 +74,22 @@ internal BlobInventoryPolicyFilter(IList includePrefix, IList ex } /// An array of strings with maximum 10 blob prefixes to be included in the inventory. + [WirePath("prefixMatch")] public IList IncludePrefix { get; } /// An array of strings with maximum 10 blob prefixes to be excluded from the inventory. + [WirePath("excludePrefix")] public IList ExcludePrefix { get; } /// An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'. + [WirePath("blobTypes")] public IList BlobTypes { get; } /// Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded. + [WirePath("includeBlobVersions")] public bool? IncludeBlobVersions { get; set; } /// Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded. + [WirePath("includeSnapshots")] public bool? IncludeSnapshots { get; set; } /// For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded. + [WirePath("includeDeleted")] public bool? IncludeDeleted { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyRule.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyRule.cs index 505581eee2957..061c4eb8b26a5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyRule.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyRule.cs @@ -85,12 +85,16 @@ internal BlobInventoryPolicyRule() } /// Rule is enabled when set to true. + [WirePath("enabled")] public bool IsEnabled { get; set; } /// A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. + [WirePath("name")] public string Name { get; set; } /// Container name where blob inventory files are stored. Must be pre-created. + [WirePath("destination")] public string Destination { get; set; } /// An object that defines the blob inventory policy rule. + [WirePath("definition")] public BlobInventoryPolicyDefinition Definition { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicySchema.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicySchema.cs index 0246149203684..c4855f0c794fd 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicySchema.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicySchema.cs @@ -82,12 +82,16 @@ internal BlobInventoryPolicySchema() } /// Policy is enabled if set to true. + [WirePath("enabled")] public bool IsEnabled { get; set; } /// Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'. + [WirePath("destination")] public string Destination { get; } /// The valid value is Inventory. + [WirePath("type")] public BlobInventoryRuleType RuleType { get; set; } /// The storage account blob inventory policy rules. The rule is applied when it is enabled. + [WirePath("rules")] public IList Rules { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreContent.cs index 81587515c03c9..b4c3a8649f476 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreContent.cs @@ -76,8 +76,10 @@ internal BlobRestoreContent() } /// Restore blob to the specified time. + [WirePath("timetoRestore")] public DateTimeOffset TimeToRestore { get; set; } /// Blob ranges to restore. + [WirePath("blobRanges")] public IList BlobRanges { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreRange.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreRange.cs index 82a5679127c22..76f84adb71759 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreRange.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreRange.cs @@ -76,8 +76,10 @@ internal BlobRestoreRange() } /// Blob start range. This is inclusive. Empty means account start. + [WirePath("startRange")] public string StartRange { get; set; } /// Blob end range. This is exclusive. Empty means account end. + [WirePath("endRange")] public string EndRange { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreStatus.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreStatus.cs index 7c8729e463854..3140bcdb6007c 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreStatus.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobRestoreStatus.cs @@ -66,12 +66,16 @@ internal BlobRestoreStatus(BlobRestoreProgressStatus? status, string failureReas } /// The status of blob restore progress. Possible values are: - InProgress: Indicates that blob restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. - Failed: Indicates that blob restore is failed. + [WirePath("status")] public BlobRestoreProgressStatus? Status { get; } /// Failure reason when blob restore is failed. + [WirePath("failureReason")] public string FailureReason { get; } /// Id for tracking blob restore request. + [WirePath("restoreId")] public string RestoreId { get; } /// Blob restore request parameters. + [WirePath("parameters")] public BlobRestoreContent Parameters { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceChangeFeed.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceChangeFeed.cs index d98bc50822f17..79460f0e4f977 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceChangeFeed.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceChangeFeed.cs @@ -62,8 +62,10 @@ internal BlobServiceChangeFeed(bool? isEnabled, int? retentionInDays, IDictionar } /// Indicates whether change feed event logging is enabled for the Blob service. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed. + [WirePath("retentionInDays")] public int? RetentionInDays { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DateAfterCreation.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DateAfterCreation.cs index c5f11b5ad7dbc..f09bf79b89c00 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DateAfterCreation.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DateAfterCreation.cs @@ -69,8 +69,10 @@ internal DateAfterCreation() } /// Value indicating the age in days after creation. + [WirePath("daysAfterCreationGreaterThan")] public float DaysAfterCreationGreaterThan { get; set; } /// Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied. + [WirePath("daysAfterLastTierChangeGreaterThan")] public float? DaysAfterLastTierChangeGreaterThan { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DateAfterModification.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DateAfterModification.cs index 44599db94f283..067f15632ee8c 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DateAfterModification.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DateAfterModification.cs @@ -66,12 +66,16 @@ internal DateAfterModification(float? daysAfterModificationGreaterThan, float? d } /// Value indicating the age in days after last modification. + [WirePath("daysAfterModificationGreaterThan")] public float? DaysAfterModificationGreaterThan { get; set; } /// Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy. + [WirePath("daysAfterLastAccessTimeGreaterThan")] public float? DaysAfterLastAccessTimeGreaterThan { get; set; } /// Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied. + [WirePath("daysAfterLastTierChangeGreaterThan")] public float? DaysAfterLastTierChangeGreaterThan { get; set; } /// Value indicating the age in days after blob creation. + [WirePath("daysAfterCreationGreaterThan")] public float? DaysAfterCreationGreaterThan { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeleteRetentionPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeleteRetentionPolicy.cs index 0d0e464399640..88675e48f73f3 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeleteRetentionPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeleteRetentionPolicy.cs @@ -64,10 +64,13 @@ internal DeleteRetentionPolicy(bool? isEnabled, int? days, bool? allowPermanentD } /// Indicates whether DeleteRetentionPolicy is enabled. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365. + [WirePath("days")] public int? Days { get; set; } /// This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share. + [WirePath("allowPermanentDelete")] public bool? AllowPermanentDelete { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedShare.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedShare.cs index 33739b23a3fa0..95c86f5476d87 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedShare.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedShare.cs @@ -76,8 +76,10 @@ internal DeletedShare() } /// Required. Identify the name of the deleted share that will be restored. + [WirePath("deletedShareName")] public string DeletedShareName { get; } /// Required. Identify the version of the deleted share that will be restored. + [WirePath("deletedShareVersion")] public string DeletedShareVersion { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeKeyVaultProperties.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeKeyVaultProperties.cs index 1504bbd81bd3b..71e4d3a8e9274 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeKeyVaultProperties.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeKeyVaultProperties.cs @@ -64,10 +64,13 @@ internal EncryptionScopeKeyVaultProperties(Uri keyUri, string currentVersionedKe } /// The object identifier for a key vault key object. When applied, the encryption scope will use the key referenced by the identifier to enable customer-managed key support on this encryption scope. + [WirePath("keyUri")] public Uri KeyUri { get; set; } /// The object identifier of the current versioned Key Vault Key in use. + [WirePath("currentVersionedKeyIdentifier")] public string CurrentVersionedKeyIdentifier { get; } /// Timestamp of last rotation of the Key Vault Key. + [WirePath("lastKeyRotationTimestamp")] public DateTimeOffset? LastKeyRotationTimestamp { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceItems.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceItems.cs index 1e6e9c69844e2..0fa4d266849b1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceItems.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceItems.cs @@ -63,6 +63,7 @@ internal FileServiceItems(IReadOnlyList value, IDictionary List of file services returned. + [WirePath("value")] public IReadOnlyList Value { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareData.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareData.Serialization.cs index f53c2bcf8bb82..ca56a47e26eaf 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareData.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareData.Serialization.cs @@ -551,7 +551,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Metadata) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs index b3dddbd5f0811..ed5d87c5812e7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs @@ -71,10 +71,13 @@ internal FilesIdentityBasedAuthentication() } /// Indicates the directory service used. Note that this enum may be extended in the future. + [WirePath("directoryServiceOptions")] public DirectoryServiceOption DirectoryServiceOptions { get; set; } /// Required if directoryServiceOptions are AD, optional if they are AADKERB. + [WirePath("activeDirectoryProperties")] public StorageActiveDirectoryProperties ActiveDirectoryProperties { get; set; } /// Default share permission for users using Kerberos authentication if RBAC role is not assigned. + [WirePath("defaultSharePermission")] public DefaultSharePermission? DefaultSharePermission { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GeoReplicationStatistics.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GeoReplicationStatistics.cs index e972d87562c2a..e144773959237 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GeoReplicationStatistics.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GeoReplicationStatistics.cs @@ -64,10 +64,13 @@ internal GeoReplicationStatistics(GeoReplicationStatus? status, DateTimeOffset? } /// The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: Indicates initial synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable. + [WirePath("status")] public GeoReplicationStatus? Status { get; } /// All primary writes preceding this UTC date/time value are guaranteed to be available for read operations. Primary writes following this point in time may or may not be available for reads. Element may be default value if value of LastSyncTime is not available, this can happen if secondary is offline or we are in bootstrap. + [WirePath("lastSyncTime")] public DateTimeOffset? LastSyncOn { get; } /// A boolean flag which indicates whether or not account failover is supported for the account. + [WirePath("canFailover")] public bool? CanFailover { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GetAccountSasResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GetAccountSasResult.cs index 95d91f0021356..acd6c5f935f77 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GetAccountSasResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GetAccountSasResult.cs @@ -60,6 +60,7 @@ internal GetAccountSasResult(string accountSasToken, IDictionary List SAS credentials of storage account. + [WirePath("accountSasToken")] public string AccountSasToken { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GetServiceSasResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GetServiceSasResult.cs index 379d1ecebdbc6..1521b0c47c5ec 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GetServiceSasResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/GetServiceSasResult.cs @@ -60,6 +60,7 @@ internal GetServiceSasResult(string serviceSasToken, IDictionary List service SAS credentials of specific resource. + [WirePath("serviceSasToken")] public string ServiceSasToken { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutableStorageAccount.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutableStorageAccount.cs index d05b69c33a866..2b5215352bfd3 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutableStorageAccount.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutableStorageAccount.cs @@ -62,8 +62,10 @@ internal ImmutableStorageAccount(bool? isEnabled, AccountImmutabilityPolicy immu } /// A boolean flag which enables account-level immutability. All the containers under such an account have object-level immutability enabled by default. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// Specifies the default account-level immutability policy which is inherited and applied to objects that do not possess an explicit immutability policy at the object level. The object-level immutability policy has higher precedence than the container-level immutability policy, which has a higher precedence than the account-level immutability policy. + [WirePath("immutabilityPolicy")] public AccountImmutabilityPolicy ImmutabilityPolicy { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutableStorageWithVersioning.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutableStorageWithVersioning.cs index 7109d13754ca9..0e50330a6abfe 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutableStorageWithVersioning.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutableStorageWithVersioning.cs @@ -64,10 +64,13 @@ internal ImmutableStorageWithVersioning(bool? isEnabled, DateTimeOffset? timeSta } /// This is an immutable property, when set to true it enables object level immutability at the container level. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// Returns the date and time the object level immutability was enabled. + [WirePath("timeStamp")] public DateTimeOffset? TimeStamp { get; } /// This property denotes the container level immutability to object level immutability migration state. + [WirePath("migrationState")] public ImmutableStorageWithVersioningMigrationState? MigrationState { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs index c6329d507f832..e50e1d3eb68c8 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs @@ -75,12 +75,16 @@ internal LastAccessTimeTrackingPolicy() } /// When set to true last access time based tracking is enabled. + [WirePath("enable")] public bool IsEnabled { get; set; } /// Name of the policy. The valid value is AccessTimeTracking. This field is currently read only. + [WirePath("name")] public LastAccessTimeTrackingPolicyName? Name { get; set; } /// The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1. + [WirePath("trackingGranularityInDays")] public int? TrackingGranularityInDays { get; set; } /// An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only. + [WirePath("blobType")] public IList BlobType { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseContainerContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseContainerContent.cs index c4f6e33bd26ef..b4e535f46f8c0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseContainerContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseContainerContent.cs @@ -75,14 +75,19 @@ internal LeaseContainerContent() } /// Specifies the lease action. Can be one of the available actions. + [WirePath("action")] public LeaseContainerAction Action { get; } /// Identifies the lease. Can be specified in any valid GUID string format. + [WirePath("leaseId")] public string LeaseId { get; set; } /// Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. + [WirePath("breakPeriod")] public int? BreakPeriod { get; set; } /// Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires. + [WirePath("leaseDuration")] public int? LeaseDuration { get; set; } /// Optional for acquire, required for change. Proposed lease ID, in a GUID string format. + [WirePath("proposedLeaseId")] public string ProposedLeaseId { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseContainerResponse.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseContainerResponse.cs index 3e5eb0fce6ab2..75f864f7c85b6 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseContainerResponse.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseContainerResponse.cs @@ -62,8 +62,10 @@ internal LeaseContainerResponse(string leaseId, string leaseTimeSeconds, IDictio } /// Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease. + [WirePath("leaseId")] public string LeaseId { get; } /// Approximate time remaining in the lease period, in seconds. + [WirePath("leaseTimeSeconds")] public string LeaseTimeSeconds { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseShareContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseShareContent.cs index 8ccde653561b2..426eb46fa29a5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseShareContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseShareContent.cs @@ -75,14 +75,19 @@ internal LeaseShareContent() } /// Specifies the lease action. Can be one of the available actions. + [WirePath("action")] public LeaseShareAction Action { get; } /// Identifies the lease. Can be specified in any valid GUID string format. + [WirePath("leaseId")] public string LeaseId { get; set; } /// Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. + [WirePath("breakPeriod")] public int? BreakPeriod { get; set; } /// Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires. + [WirePath("leaseDuration")] public int? LeaseDuration { get; set; } /// Optional for acquire, required for change. Proposed lease ID, in a GUID string format. + [WirePath("proposedLeaseId")] public string ProposedLeaseId { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseShareResponse.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseShareResponse.cs index e05b16c1f8bc1..a3c1c46fd77c9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseShareResponse.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LeaseShareResponse.cs @@ -62,8 +62,10 @@ internal LeaseShareResponse(string leaseId, string leaseTimeSeconds, IDictionary } /// Returned unique lease ID that must be included with any request to delete the share, or to renew, change, or release the lease. + [WirePath("leaseId")] public string LeaseId { get; } /// Approximate time remaining in the lease period, in seconds. + [WirePath("leaseTimeSeconds")] public string LeaseTimeSeconds { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHold.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHold.cs index 7453248f7757f..289f608b6f37f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHold.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHold.cs @@ -76,10 +76,13 @@ internal LegalHold() } /// The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + [WirePath("hasLegalHold")] public bool? HasLegalHold { get; } /// Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + [WirePath("tags")] public IList Tags { get; } /// When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. + [WirePath("allowProtectedAppendWritesAll")] public bool? AllowProtectedAppendWritesAll { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldProperties.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldProperties.cs index 9b58bf5dcff08..9a926de223618 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldProperties.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldProperties.cs @@ -66,10 +66,13 @@ internal LegalHoldProperties(bool? hasLegalHold, IReadOnlyList tag } /// The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + [WirePath("hasLegalHold")] public bool? HasLegalHold { get; } /// The list of LegalHold tags of a blob container. + [WirePath("tags")] public IReadOnlyList Tags { get; } /// Protected append blob writes history. + [WirePath("protectedAppendWritesHistory")] public ProtectedAppendWritesHistory ProtectedAppendWritesHistory { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldTag.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldTag.cs index a8ecc80924f4a..3a7f537ce125d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldTag.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldTag.cs @@ -68,14 +68,19 @@ internal LegalHoldTag(string tag, DateTimeOffset? timestamp, string objectIdenti } /// The tag value. + [WirePath("tag")] public string Tag { get; } /// Returns the date and time the tag was added. + [WirePath("timestamp")] public DateTimeOffset? Timestamp { get; } /// Returns the Object ID of the user who added the tag. + [WirePath("objectIdentifier")] public string ObjectIdentifier { get; } /// Returns the Tenant ID that issued the token for the user who added the tag. + [WirePath("tenantId")] public Guid? TenantId { get; } /// Returns the User Principal Name of the user who added the tag. + [WirePath("upn")] public string Upn { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueServices.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueServices.cs index 20308e6f9e570..f42f26ad8766e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueServices.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueServices.cs @@ -63,6 +63,7 @@ internal ListQueueServices(IReadOnlyList value, IDictionary List of queue services returned. + [WirePath("value")] public IReadOnlyList Value { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableServices.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableServices.cs index 87f9d633fb336..54a1b39d56a5f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableServices.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableServices.cs @@ -63,6 +63,7 @@ internal ListTableServices(IReadOnlyList value, IDictionary List of table services returned. + [WirePath("value")] public IReadOnlyList Value { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserKeys.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserKeys.cs index db1443b7beff4..47e0939420830 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserKeys.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserKeys.cs @@ -64,8 +64,10 @@ internal LocalUserKeys(IReadOnlyList sshAuthorizedKeys, str } /// Optional, local user ssh authorized keys for SFTP. + [WirePath("sshAuthorizedKeys")] public IReadOnlyList SshAuthorizedKeys { get; } /// Auto generated by the server for SMB authentication. + [WirePath("sharedKey")] public string SharedKey { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserRegeneratePasswordResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserRegeneratePasswordResult.cs index 11c3e3916a198..14c9f95f1cacb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserRegeneratePasswordResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserRegeneratePasswordResult.cs @@ -60,6 +60,7 @@ internal LocalUserRegeneratePasswordResult(string sshPassword, IDictionary Auto generated password by the server for SSH authentication if hasSshPassword is set to true on the creation of local user. + [WirePath("sshPassword")] public string SshPassword { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyAction.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyAction.cs index f98380379495a..b97371b8b32a7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyAction.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyAction.cs @@ -64,10 +64,13 @@ internal ManagementPolicyAction(ManagementPolicyBaseBlob baseBlob, ManagementPol } /// The management policy action for base blob. + [WirePath("baseBlob")] public ManagementPolicyBaseBlob BaseBlob { get; set; } /// The management policy action for snapshot. + [WirePath("snapshot")] public ManagementPolicySnapShot Snapshot { get; set; } /// The management policy action for version. + [WirePath("version")] public ManagementPolicyVersion Version { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyBaseBlob.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyBaseBlob.cs index 14559a8122b9e..012b15d221459 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyBaseBlob.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyBaseBlob.cs @@ -70,16 +70,22 @@ internal ManagementPolicyBaseBlob(DateAfterModification tierToCool, DateAfterMod } /// The function to tier blobs to cool storage. + [WirePath("tierToCool")] public DateAfterModification TierToCool { get; set; } /// The function to tier blobs to archive storage. + [WirePath("tierToArchive")] public DateAfterModification TierToArchive { get; set; } /// The function to tier blobs to cold storage. + [WirePath("tierToCold")] public DateAfterModification TierToCold { get; set; } /// The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. + [WirePath("tierToHot")] public DateAfterModification TierToHot { get; set; } /// The function to delete the blob. + [WirePath("delete")] public DateAfterModification Delete { get; set; } /// This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan. + [WirePath("enableAutoTierToHotFromCool")] public bool? EnableAutoTierToHotFromCool { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyDefinition.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyDefinition.cs index 1cd8dc179b6ed..8d3c5b0f2210f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyDefinition.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyDefinition.cs @@ -73,8 +73,10 @@ internal ManagementPolicyDefinition() } /// An object that defines the action set. + [WirePath("actions")] public ManagementPolicyAction Actions { get; set; } /// An object that defines the filter set. + [WirePath("filters")] public ManagementPolicyFilter Filters { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyFilter.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyFilter.cs index 02406eadc06fa..2f589056401c9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyFilter.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyFilter.cs @@ -78,10 +78,13 @@ internal ManagementPolicyFilter() } /// An array of strings for prefixes to be match. + [WirePath("prefixMatch")] public IList PrefixMatch { get; } /// An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob. + [WirePath("blobTypes")] public IList BlobTypes { get; } /// An array of blob index tag based filters, there can be at most 10 tag filters. + [WirePath("blobIndexMatch")] public IList BlobIndexMatch { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyRule.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyRule.cs index 3b4a535e56c96..1b251ba2b0cdd 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyRule.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyRule.cs @@ -82,12 +82,16 @@ internal ManagementPolicyRule() } /// Rule is enabled if set to true. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. + [WirePath("name")] public string Name { get; set; } /// The valid value is Lifecycle. + [WirePath("type")] public ManagementPolicyRuleType RuleType { get; set; } /// An object that defines the Lifecycle rule. + [WirePath("definition")] public ManagementPolicyDefinition Definition { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicySchema.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicySchema.cs index 4bdad47cc39b4..decfaa2390ee5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicySchema.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicySchema.cs @@ -72,6 +72,7 @@ internal ManagementPolicySchema() } /// The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. + [WirePath("rules")] public IList Rules { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicySnapShot.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicySnapShot.cs index f3c7be9802273..376b6db32defd 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicySnapShot.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicySnapShot.cs @@ -68,14 +68,19 @@ internal ManagementPolicySnapShot(DateAfterCreation tierToCool, DateAfterCreatio } /// The function to tier blob snapshot to cool storage. + [WirePath("tierToCool")] public DateAfterCreation TierToCool { get; set; } /// The function to tier blob snapshot to archive storage. + [WirePath("tierToArchive")] public DateAfterCreation TierToArchive { get; set; } /// The function to tier blobs to cold storage. + [WirePath("tierToCold")] public DateAfterCreation TierToCold { get; set; } /// The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. + [WirePath("tierToHot")] public DateAfterCreation TierToHot { get; set; } /// The function to delete the blob snapshot. + [WirePath("delete")] public DateAfterCreation Delete { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyTagFilter.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyTagFilter.cs index 921ce68528eec..2d6fb130eb160 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyTagFilter.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyTagFilter.cs @@ -81,10 +81,13 @@ internal ManagementPolicyTagFilter() } /// This is the filter tag name, it can have 1 - 128 characters. + [WirePath("name")] public string Name { get; set; } /// This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported. + [WirePath("op")] public string Operator { get; set; } /// This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters. + [WirePath("value")] public string Value { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyVersion.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyVersion.cs index ca543e7668d50..749ee25b73732 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyVersion.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyVersion.cs @@ -68,14 +68,19 @@ internal ManagementPolicyVersion(DateAfterCreation tierToCool, DateAfterCreation } /// The function to tier blob version to cool storage. + [WirePath("tierToCool")] public DateAfterCreation TierToCool { get; set; } /// The function to tier blob version to archive storage. + [WirePath("tierToArchive")] public DateAfterCreation TierToArchive { get; set; } /// The function to tier blobs to cold storage. + [WirePath("tierToCold")] public DateAfterCreation TierToCold { get; set; } /// The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. + [WirePath("tierToHot")] public DateAfterCreation TierToHot { get; set; } /// The function to delete the blob version. + [WirePath("delete")] public DateAfterCreation Delete { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Multichannel.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Multichannel.cs index b402b3ea8660a..0387f95509c49 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Multichannel.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Multichannel.cs @@ -60,6 +60,7 @@ internal Multichannel(bool? isMultiChannelEnabled, IDictionary Indicates whether multichannel is enabled. + [WirePath("enabled")] public bool? IsMultiChannelEnabled { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs index 5d6b90a4913aa..b7cfc7934bad8 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs @@ -64,8 +64,10 @@ internal ObjectReplicationPolicyFilter(IList prefixMatch, string minCrea } /// Optional. Filters the results to replicate only blobs whose names begin with the specified prefix. + [WirePath("prefixMatch")] public IList PrefixMatch { get; } /// Blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z. + [WirePath("minCreationTime")] public string MinCreationTime { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyRule.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyRule.cs index 9b1d4a985b5c7..b45a487104e78 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyRule.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyRule.cs @@ -80,12 +80,16 @@ internal ObjectReplicationPolicyRule() } /// Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account. + [WirePath("ruleId")] public string RuleId { get; set; } /// Required. Source container name. + [WirePath("sourceContainer")] public string SourceContainer { get; set; } /// Required. Destination container name. + [WirePath("destinationContainer")] public string DestinationContainer { get; set; } /// Optional. An object that defines the filter set. + [WirePath("filters")] public ObjectReplicationPolicyFilter Filters { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtectedAppendWritesHistory.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtectedAppendWritesHistory.cs index 8fc469cf29c5e..4b6fc6a99b11d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtectedAppendWritesHistory.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtectedAppendWritesHistory.cs @@ -62,8 +62,10 @@ internal ProtectedAppendWritesHistory(bool? allowProtectedAppendWritesAll, DateT } /// When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. + [WirePath("allowProtectedAppendWritesAll")] public bool? AllowProtectedAppendWritesAll { get; } /// Returns the date and time the tag was added. + [WirePath("timestamp")] public DateTimeOffset? Timestamp { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.cs index 19e66af209530..187eeac54cd70 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.cs @@ -60,6 +60,7 @@ internal ProtocolSettings(SmbSetting smbSetting, IDictionary } /// Setting for SMB protocol. + [WirePath("smb")] public SmbSetting SmbSetting { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/RestorePolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/RestorePolicy.cs index d685120525dc8..cdc5ce35b71ec 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/RestorePolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/RestorePolicy.cs @@ -73,12 +73,16 @@ internal RestorePolicy() } /// Blob restore is enabled if set to true. + [WirePath("enabled")] public bool IsEnabled { get; set; } /// how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days. + [WirePath("days")] public int? Days { get; set; } /// Deprecated in favor of minRestoreTime property. + [WirePath("lastEnabledTime")] public DateTimeOffset? LastEnabledOn { get; } /// Returns the minimum date and time that the restore can be started. + [WirePath("minRestoreTime")] public DateTimeOffset? MinRestoreOn { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ServiceSasContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ServiceSasContent.cs index e6ec87758e3f8..35af60292ff6f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ServiceSasContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ServiceSasContent.cs @@ -105,40 +105,58 @@ internal ServiceSasContent() } /// The canonical path to the signed resource. + [WirePath("canonicalizedResource")] public string CanonicalizedResource { get; } /// The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). + [WirePath("signedResource")] public ServiceSasSignedResourceType? Resource { get; set; } /// The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). + [WirePath("signedPermission")] public StorageAccountSasPermission? Permissions { get; set; } /// An IP address or a range of IP addresses from which to accept requests. + [WirePath("signedIp")] public string IPAddressOrRange { get; set; } /// The protocol permitted for a request made with the account SAS. + [WirePath("signedProtocol")] public StorageAccountHttpProtocol? Protocols { get; set; } /// The time at which the SAS becomes valid. + [WirePath("signedStart")] public DateTimeOffset? SharedAccessStartOn { get; set; } /// The time at which the shared access signature becomes invalid. + [WirePath("signedExpiry")] public DateTimeOffset? SharedAccessExpiryOn { get; set; } /// A unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. + [WirePath("signedIdentifier")] public string Identifier { get; set; } /// The start of partition key. + [WirePath("startPk")] public string PartitionKeyStart { get; set; } /// The end of partition key. + [WirePath("endPk")] public string PartitionKeyEnd { get; set; } /// The start of row key. + [WirePath("startRk")] public string RowKeyStart { get; set; } /// The end of row key. + [WirePath("endRk")] public string RowKeyEnd { get; set; } /// The key to sign the account SAS token with. + [WirePath("keyToSign")] public string KeyToSign { get; set; } /// The response header override for cache control. + [WirePath("rscc")] public string CacheControl { get; set; } /// The response header override for content disposition. + [WirePath("rscd")] public string ContentDisposition { get; set; } /// The response header override for content encoding. + [WirePath("rsce")] public string ContentEncoding { get; set; } /// The response header override for content language. + [WirePath("rscl")] public string ContentLanguage { get; set; } /// The response header override for content type. + [WirePath("rsct")] public string ContentType { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.cs index cd2445a877d8c..9c4b16175b1eb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.cs @@ -70,6 +70,7 @@ internal SmbSetting(Multichannel multichannel, string versions, string authentic /// Multichannel setting. Applies to Premium FileStorage only. internal Multichannel Multichannel { get; set; } /// Indicates whether multichannel is enabled. + [WirePath("multichannel.enabled")] public bool? IsMultiChannelEnabled { get => Multichannel is null ? default : Multichannel.IsMultiChannelEnabled; @@ -82,12 +83,16 @@ public bool? IsMultiChannelEnabled } /// SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. Should be passed as a string with delimiter ';'. + [WirePath("versions")] public string Versions { get; set; } /// SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. Should be passed as a string with delimiter ';'. + [WirePath("authenticationMethods")] public string AuthenticationMethods { get; set; } /// Kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. Should be passed as a string with delimiter ';'. + [WirePath("kerberosTicketEncryption")] public string KerberosTicketEncryption { get; set; } /// SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. Should be passed as a string with delimiter ';'. + [WirePath("channelEncryption")] public string ChannelEncryption { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.cs index ad2b81a09a3b4..57c9e104b13d5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.cs @@ -134,26 +134,36 @@ internal StorageAccountCreateOrUpdateContent() } /// Required. Gets or sets the SKU name. + [WirePath("sku")] public StorageSku Sku { get; } /// Required. Indicates the type of storage account. + [WirePath("kind")] public StorageKind Kind { get; } /// Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. + [WirePath("location")] public AzureLocation Location { get; } /// Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location. + [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } /// Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. + [WirePath("tags")] public IDictionary Tags { get; } /// The identity of the resource. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. + [WirePath("properties.allowedCopyScope")] public AllowedCopyScope? AllowedCopyScope { get; set; } /// Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + [WirePath("properties.publicNetworkAccess")] public StoragePublicNetworkAccess? PublicNetworkAccess { get; set; } /// SasPolicy assigned to the storage account. + [WirePath("properties.sasPolicy")] public StorageAccountSasPolicy SasPolicy { get; set; } /// KeyPolicy assigned to the storage account. internal StorageAccountKeyPolicy KeyPolicy { get; set; } /// The key expiration period in days. + [WirePath("properties.keyPolicy.keyExpirationPeriodInDays")] public int? KeyExpirationPeriodInDays { get => KeyPolicy is null ? default(int?) : KeyPolicy.KeyExpirationPeriodInDays; @@ -164,42 +174,61 @@ public int? KeyExpirationPeriodInDays } /// User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + [WirePath("properties.customDomain")] public StorageCustomDomain CustomDomain { get; set; } /// Encryption settings to be used for server-side encryption for the storage account. + [WirePath("properties.encryption")] public StorageAccountEncryption Encryption { get; set; } /// Network rule set. + [WirePath("properties.networkAcls")] public StorageAccountNetworkRuleSet NetworkRuleSet { get; set; } /// Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. + [WirePath("properties.accessTier")] public StorageAccountAccessTier? AccessTier { get; set; } /// Provides the identity based authentication settings for Azure Files. + [WirePath("properties.azureFilesIdentityBasedAuthentication")] public FilesIdentityBasedAuthentication AzureFilesIdentityBasedAuthentication { get; set; } /// Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01. + [WirePath("properties.supportsHttpsTrafficOnly")] public bool? EnableHttpsTrafficOnly { get; set; } /// Enables Secure File Transfer Protocol, if set to true. + [WirePath("properties.isSftpEnabled")] public bool? IsSftpEnabled { get; set; } /// Enables local users feature, if set to true. + [WirePath("properties.isLocalUserEnabled")] public bool? IsLocalUserEnabled { get; set; } /// Account HierarchicalNamespace enabled if sets to true. + [WirePath("properties.isHnsEnabled")] public bool? IsHnsEnabled { get; set; } /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. + [WirePath("properties.largeFileSharesState")] public LargeFileSharesState? LargeFileSharesState { get; set; } /// Maintains information about the network routing choice opted by the user for data transfer. + [WirePath("properties.routingPreference")] public StorageRoutingPreference RoutingPreference { get; set; } /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. + [WirePath("properties.allowBlobPublicAccess")] public bool? AllowBlobPublicAccess { get; set; } /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. + [WirePath("properties.minimumTlsVersion")] public StorageMinimumTlsVersion? MinimumTlsVersion { get; set; } /// Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. + [WirePath("properties.allowSharedKeyAccess")] public bool? AllowSharedKeyAccess { get; set; } /// NFS 3.0 protocol support enabled if set to true. + [WirePath("properties.isNfsV3Enabled")] public bool? IsNfsV3Enabled { get; set; } /// Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. + [WirePath("properties.allowCrossTenantReplication")] public bool? AllowCrossTenantReplication { get; set; } /// A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. + [WirePath("properties.defaultToOAuthAuthentication")] public bool? IsDefaultToOAuthAuthentication { get; set; } /// The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the new containers in the account by default. + [WirePath("properties.immutableStorageWithVersioning")] public ImmutableStorageAccount ImmutableStorageWithVersioning { get; set; } /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. + [WirePath("properties.dnsEndpointType")] public StorageDnsEndpointType? DnsEndpointType { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountData.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountData.Serialization.cs index 178e98ac28143..44b9dd85727e8 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountData.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountData.Serialization.cs @@ -884,7 +884,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryption.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryption.cs index 4522b1599a8ef..93b3655ca4f37 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryption.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryption.cs @@ -68,14 +68,19 @@ internal StorageAccountEncryption(StorageAccountEncryptionServices services, Sto } /// List of services which support encryption. + [WirePath("services")] public StorageAccountEncryptionServices Services { get; set; } /// The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. + [WirePath("keySource")] public StorageAccountKeySource? KeySource { get; set; } /// A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. + [WirePath("requireInfrastructureEncryption")] public bool? RequireInfrastructureEncryption { get; set; } /// Properties provided by key vault. + [WirePath("keyvaultproperties")] public StorageAccountKeyVaultProperties KeyVaultProperties { get; set; } /// The identity to be used with service-side encryption at rest. + [WirePath("identity")] public StorageAccountEncryptionIdentity EncryptionIdentity { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryptionIdentity.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryptionIdentity.cs index 8d07a736d2224..f92f8dd054123 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryptionIdentity.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryptionIdentity.cs @@ -62,8 +62,10 @@ internal StorageAccountEncryptionIdentity(string encryptionUserAssignedIdentity, } /// Resource identifier of the UserAssigned identity to be associated with server-side encryption on the storage account. + [WirePath("userAssignedIdentity")] public string EncryptionUserAssignedIdentity { get; set; } /// ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. + [WirePath("federatedIdentityClientId")] public string EncryptionFederatedIdentityClientId { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryptionServices.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryptionServices.cs index a366d6a4be3e1..27497033f485b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryptionServices.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEncryptionServices.cs @@ -66,12 +66,16 @@ internal StorageAccountEncryptionServices(StorageEncryptionService blob, Storage } /// The encryption function of the blob storage service. + [WirePath("blob")] public StorageEncryptionService Blob { get; set; } /// The encryption function of the file storage service. + [WirePath("file")] public StorageEncryptionService File { get; set; } /// The encryption function of the table storage service. + [WirePath("table")] public StorageEncryptionService Table { get; set; } /// The encryption function of the queue storage service. + [WirePath("queue")] public StorageEncryptionService Queue { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.cs index 3bcd2f57ce942..3b07025389354 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.cs @@ -74,20 +74,28 @@ internal StorageAccountEndpoints(Uri blobUri, Uri queueUri, Uri tableUri, Uri fi } /// Gets the blob endpoint. + [WirePath("blob")] public Uri BlobUri { get; } /// Gets the queue endpoint. + [WirePath("queue")] public Uri QueueUri { get; } /// Gets the table endpoint. + [WirePath("table")] public Uri TableUri { get; } /// Gets the file endpoint. + [WirePath("file")] public Uri FileUri { get; } /// Gets the web endpoint. + [WirePath("web")] public Uri WebUri { get; } /// Gets the dfs endpoint. + [WirePath("dfs")] public Uri DfsUri { get; } /// Gets the microsoft routing storage endpoints. + [WirePath("microsoftEndpoints")] public StorageAccountMicrosoftEndpoints MicrosoftEndpoints { get; } /// Gets the internet routing storage endpoints. + [WirePath("internetEndpoints")] public StorageAccountInternetEndpoints InternetEndpoints { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPRule.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPRule.cs index 1f5fe7b2cfaeb..c7d1777b0dd01 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPRule.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPRule.cs @@ -73,8 +73,10 @@ internal StorageAccountIPRule() } /// Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + [WirePath("value")] public string IPAddressOrRange { get; set; } /// The action of IP ACL rule. + [WirePath("action")] public StorageAccountNetworkRuleAction? Action { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountInternetEndpoints.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountInternetEndpoints.cs index b8608522f0df5..7ab8d4146c884 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountInternetEndpoints.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountInternetEndpoints.cs @@ -66,12 +66,16 @@ internal StorageAccountInternetEndpoints(Uri blobUri, Uri fileUri, Uri webUri, U } /// Gets the blob endpoint. + [WirePath("blob")] public Uri BlobUri { get; } /// Gets the file endpoint. + [WirePath("file")] public Uri FileUri { get; } /// Gets the web endpoint. + [WirePath("web")] public Uri WebUri { get; } /// Gets the dfs endpoint. + [WirePath("dfs")] public Uri DfsUri { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKey.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKey.cs index 2aa06e8e13562..39538130e400d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKey.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKey.cs @@ -66,12 +66,16 @@ internal StorageAccountKey(string keyName, string value, StorageAccountKeyPermis } /// Name of the key. + [WirePath("keyName")] public string KeyName { get; } /// Base 64-encoded value of the key. + [WirePath("value")] public string Value { get; } /// Permissions for the key -- read-only or full permissions. + [WirePath("permissions")] public StorageAccountKeyPermission? Permissions { get; } /// Creation time of the key, in round trip date format. + [WirePath("creationTime")] public DateTimeOffset? CreatedOn { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyCreationTime.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyCreationTime.cs index ff8701937030e..9db5d567ef6d1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyCreationTime.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyCreationTime.cs @@ -62,8 +62,10 @@ internal StorageAccountKeyCreationTime(DateTimeOffset? key1, DateTimeOffset? key } /// Gets the key 1. + [WirePath("key1")] public DateTimeOffset? Key1 { get; } /// Gets the key 2. + [WirePath("key2")] public DateTimeOffset? Key2 { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyPolicy.cs index 259ed86aa1081..426ea3c51058e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyPolicy.cs @@ -67,6 +67,7 @@ internal StorageAccountKeyPolicy() } /// The key expiration period in days. + [WirePath("keyExpirationPeriodInDays")] public int KeyExpirationPeriodInDays { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyVaultProperties.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyVaultProperties.cs index 8f65c813df876..ba5e7d017c187 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyVaultProperties.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountKeyVaultProperties.cs @@ -70,16 +70,22 @@ internal StorageAccountKeyVaultProperties(string keyName, string keyVersion, Uri } /// The name of KeyVault key. + [WirePath("keyname")] public string KeyName { get; set; } /// The version of KeyVault key. + [WirePath("keyversion")] public string KeyVersion { get; set; } /// The Uri of KeyVault. + [WirePath("keyvaulturi")] public Uri KeyVaultUri { get; set; } /// The object identifier of the current versioned Key Vault Key in use. + [WirePath("currentVersionedKeyIdentifier")] public string CurrentVersionedKeyIdentifier { get; } /// Timestamp of last rotation of the Key Vault Key. + [WirePath("lastKeyRotationTimestamp")] public DateTimeOffset? LastKeyRotationTimestamp { get; } /// This is a read only property that represents the expiration time of the current version of the customer managed key used for encryption. + [WirePath("currentVersionedKeyExpirationTimestamp")] public DateTimeOffset? CurrentVersionedKeyExpirationTimestamp { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountMicrosoftEndpoints.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountMicrosoftEndpoints.cs index d03c0e320637d..bd973e908c485 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountMicrosoftEndpoints.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountMicrosoftEndpoints.cs @@ -70,16 +70,22 @@ internal StorageAccountMicrosoftEndpoints(Uri blobUri, Uri queueUri, Uri tableUr } /// Gets the blob endpoint. + [WirePath("blob")] public Uri BlobUri { get; } /// Gets the queue endpoint. + [WirePath("queue")] public Uri QueueUri { get; } /// Gets the table endpoint. + [WirePath("table")] public Uri TableUri { get; } /// Gets the file endpoint. + [WirePath("file")] public Uri FileUri { get; } /// Gets the web endpoint. + [WirePath("web")] public Uri WebUri { get; } /// Gets the dfs endpoint. + [WirePath("dfs")] public Uri DfsUri { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameAvailabilityContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameAvailabilityContent.cs index 3ca991614fba6..acfaaa5f2862d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameAvailabilityContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameAvailabilityContent.cs @@ -74,8 +74,10 @@ internal StorageAccountNameAvailabilityContent() } /// The storage account name. + [WirePath("name")] public string Name { get; } /// The type of resource, Microsoft.Storage/storageAccounts. + [WirePath("type")] public ResourceType ResourceType { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameAvailabilityResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameAvailabilityResult.cs index 71162f1f54954..aea46f73a2dcb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameAvailabilityResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNameAvailabilityResult.cs @@ -64,10 +64,13 @@ internal StorageAccountNameAvailabilityResult(bool? isNameAvailable, StorageAcco } /// Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + [WirePath("nameAvailable")] public bool? IsNameAvailable { get; } /// Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. + [WirePath("reason")] public StorageAccountNameUnavailableReason? Reason { get; } /// Gets an error message explaining the Reason value in more detail. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs index dff5a97414db0..9f1016395d79e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs @@ -79,14 +79,19 @@ internal StorageAccountNetworkRuleSet() } /// Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. + [WirePath("bypass")] public StorageNetworkBypass? Bypass { get; set; } /// Sets the resource access rules. + [WirePath("resourceAccessRules")] public IList ResourceAccessRules { get; } /// Sets the virtual network rules. + [WirePath("virtualNetworkRules")] public IList VirtualNetworkRules { get; } /// Sets the IP ACL rules. + [WirePath("ipRules")] public IList IPRules { get; } /// Specifies the default action of allow or deny when no other rules match. + [WirePath("defaultAction")] public StorageNetworkDefaultAction DefaultAction { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.cs index 5645cb42441fb..c1154c9f1a6b2 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.cs @@ -111,22 +111,30 @@ internal StorageAccountPatch(StorageSku sku, IDictionary tags, M } /// Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those SKU names be updated to any other value. + [WirePath("sku")] public StorageSku Sku { get; set; } /// Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. + [WirePath("tags")] public IDictionary Tags { get; } /// The identity of the resource. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. + [WirePath("kind")] public StorageKind? Kind { get; set; } /// Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + [WirePath("properties.customDomain")] public StorageCustomDomain CustomDomain { get; set; } /// Not applicable. Azure Storage encryption at rest is enabled by default for all storage accounts and cannot be disabled. + [WirePath("properties.encryption")] public StorageAccountEncryption Encryption { get; set; } /// SasPolicy assigned to the storage account. + [WirePath("properties.sasPolicy")] public StorageAccountSasPolicy SasPolicy { get; set; } /// KeyPolicy assigned to the storage account. internal StorageAccountKeyPolicy KeyPolicy { get; set; } /// The key expiration period in days. + [WirePath("properties.keyPolicy.keyExpirationPeriodInDays")] public int? KeyExpirationPeriodInDays { get => KeyPolicy is null ? default(int?) : KeyPolicy.KeyExpirationPeriodInDays; @@ -137,38 +145,55 @@ public int? KeyExpirationPeriodInDays } /// Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. + [WirePath("properties.accessTier")] public StorageAccountAccessTier? AccessTier { get; set; } /// Provides the identity based authentication settings for Azure Files. + [WirePath("properties.azureFilesIdentityBasedAuthentication")] public FilesIdentityBasedAuthentication AzureFilesIdentityBasedAuthentication { get; set; } /// Allows https traffic only to storage service if sets to true. + [WirePath("properties.supportsHttpsTrafficOnly")] public bool? EnableHttpsTrafficOnly { get; set; } /// Enables Secure File Transfer Protocol, if set to true. + [WirePath("properties.isSftpEnabled")] public bool? IsSftpEnabled { get; set; } /// Enables local users feature, if set to true. + [WirePath("properties.isLocalUserEnabled")] public bool? IsLocalUserEnabled { get; set; } /// Network rule set. + [WirePath("properties.networkAcls")] public StorageAccountNetworkRuleSet NetworkRuleSet { get; set; } /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. + [WirePath("properties.largeFileSharesState")] public LargeFileSharesState? LargeFileSharesState { get; set; } /// Maintains information about the network routing choice opted by the user for data transfer. + [WirePath("properties.routingPreference")] public StorageRoutingPreference RoutingPreference { get; set; } /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. + [WirePath("properties.allowBlobPublicAccess")] public bool? AllowBlobPublicAccess { get; set; } /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. + [WirePath("properties.minimumTlsVersion")] public StorageMinimumTlsVersion? MinimumTlsVersion { get; set; } /// Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. + [WirePath("properties.allowSharedKeyAccess")] public bool? AllowSharedKeyAccess { get; set; } /// Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. + [WirePath("properties.allowCrossTenantReplication")] public bool? AllowCrossTenantReplication { get; set; } /// A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. + [WirePath("properties.defaultToOAuthAuthentication")] public bool? IsDefaultToOAuthAuthentication { get; set; } /// Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + [WirePath("properties.publicNetworkAccess")] public StoragePublicNetworkAccess? PublicNetworkAccess { get; set; } /// The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default. + [WirePath("properties.immutableStorageWithVersioning")] public ImmutableStorageAccount ImmutableStorageWithVersioning { get; set; } /// Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. + [WirePath("properties.allowedCopyScope")] public AllowedCopyScope? AllowedCopyScope { get; set; } /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. + [WirePath("properties.dnsEndpointType")] public StorageDnsEndpointType? DnsEndpointType { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountRegenerateKeyContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountRegenerateKeyContent.cs index 58312a20c9561..1f4ac58621da3 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountRegenerateKeyContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountRegenerateKeyContent.cs @@ -71,6 +71,7 @@ internal StorageAccountRegenerateKeyContent() } /// The name of storage keys that want to be regenerated, possible values are key1, key2, kerb1, kerb2. + [WirePath("keyName")] public string KeyName { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountResourceAccessRule.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountResourceAccessRule.cs index acbafe0d133dd..37d645cb8a9be 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountResourceAccessRule.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountResourceAccessRule.cs @@ -63,8 +63,10 @@ internal StorageAccountResourceAccessRule(Guid? tenantId, ResourceIdentifier res } /// Tenant Id. + [WirePath("tenantId")] public Guid? TenantId { get; set; } /// Resource Id. + [WirePath("resourceId")] public ResourceIdentifier ResourceId { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountSasPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountSasPolicy.cs index ff0d0a5f1e8ee..c0774615b0c47 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountSasPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountSasPolicy.cs @@ -75,8 +75,10 @@ internal StorageAccountSasPolicy() } /// The SAS expiration period, DD.HH:MM:SS. + [WirePath("sasExpirationPeriod")] public string SasExpirationPeriod { get; set; } /// The SAS expiration action. Can only be Log. + [WirePath("expirationAction")] public ExpirationAction ExpirationAction { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountSkuConversionStatus.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountSkuConversionStatus.cs index 84c4766aec257..05da8a199c4e7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountSkuConversionStatus.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountSkuConversionStatus.cs @@ -66,12 +66,16 @@ internal StorageAccountSkuConversionStatus(StorageAccountSkuConversionState? sku } /// This property indicates the current sku conversion status. + [WirePath("skuConversionStatus")] public StorageAccountSkuConversionState? SkuConversionStatus { get; } /// This property represents the target sku name to which the account sku is being converted asynchronously. + [WirePath("targetSkuName")] public StorageSkuName? TargetSkuName { get; set; } /// This property represents the sku conversion start time. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; } /// This property represents the sku conversion end time. + [WirePath("endTime")] public DateTimeOffset? EndOn { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountVirtualNetworkRule.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountVirtualNetworkRule.cs index 8ba0ac1af0adc..b4b5831bea9a7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountVirtualNetworkRule.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountVirtualNetworkRule.cs @@ -75,10 +75,13 @@ internal StorageAccountVirtualNetworkRule() } /// Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + [WirePath("id")] public ResourceIdentifier VirtualNetworkResourceId { get; set; } /// The action of virtual network rule. + [WirePath("action")] public StorageAccountNetworkRuleAction? Action { get; set; } /// Gets the state of virtual network rule. + [WirePath("state")] public StorageAccountNetworkRuleState? State { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs index 6393315093083..b4504544a7322 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs @@ -87,20 +87,28 @@ internal StorageActiveDirectoryProperties() } /// Specifies the primary domain that the AD DNS server is authoritative for. + [WirePath("domainName")] public string DomainName { get; set; } /// Specifies the NetBIOS domain name. + [WirePath("netBiosDomainName")] public string NetBiosDomainName { get; set; } /// Specifies the Active Directory forest to get. + [WirePath("forestName")] public string ForestName { get; set; } /// Specifies the domain GUID. + [WirePath("domainGuid")] public Guid DomainGuid { get; set; } /// Specifies the security identifier (SID). + [WirePath("domainSid")] public string DomainSid { get; set; } /// Specifies the security identifier (SID) for Azure Storage. + [WirePath("azureStorageSid")] public string AzureStorageSid { get; set; } /// Specifies the Active Directory SAMAccountName for Azure Storage. + [WirePath("samAccountName")] public string SamAccountName { get; set; } /// Specifies the Active Directory account type for Azure Storage. + [WirePath("accountType")] public ActiveDirectoryAccountType? AccountType { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRule.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRule.cs index ca5e237528ec8..da795262dda58 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRule.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRule.cs @@ -91,14 +91,19 @@ internal StorageCorsRule() } /// Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains. + [WirePath("allowedOrigins")] public IList AllowedOrigins { get; } /// Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. + [WirePath("allowedMethods")] public IList AllowedMethods { get; } /// Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. + [WirePath("maxAgeInSeconds")] public int MaxAgeInSeconds { get; set; } /// Required if CorsRule element is present. A list of response headers to expose to CORS clients. + [WirePath("exposedHeaders")] public IList ExposedHeaders { get; } /// Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. + [WirePath("allowedHeaders")] public IList AllowedHeaders { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRules.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRules.cs index 7afa5b7d20cc3..0b4087e82134b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRules.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRules.cs @@ -62,6 +62,7 @@ internal StorageCorsRules(IList corsRules, IDictionary The List of CORS rules. You can include up to five CorsRule elements in the request. + [WirePath("corsRules")] public IList CorsRules { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCustomDomain.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCustomDomain.cs index 0e7a47fd85af0..64a715360483c 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCustomDomain.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCustomDomain.cs @@ -73,8 +73,10 @@ internal StorageCustomDomain() } /// Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. + [WirePath("name")] public string Name { get; set; } /// Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + [WirePath("useSubDomainName")] public bool? IsUseSubDomainNameEnabled { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageEncryptionService.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageEncryptionService.cs index d19a169369697..6c5c0ed9db7e9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageEncryptionService.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageEncryptionService.cs @@ -64,10 +64,13 @@ internal StorageEncryptionService(bool? isEnabled, DateTimeOffset? lastEnabledOn } /// A boolean indicating whether or not the service encrypts the data as it is stored. Encryption at rest is enabled by default today and cannot be disabled. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// Gets a rough estimate of the date/time when the encryption was last enabled by the user. Data is encrypted at rest by default today and cannot be disabled. + [WirePath("lastEnabledTime")] public DateTimeOffset? LastEnabledOn { get; } /// Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used. + [WirePath("keyType")] public StorageEncryptionKeyType? KeyType { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePermissionScope.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePermissionScope.cs index 55deb52f609f6..1578096dda3c7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePermissionScope.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePermissionScope.cs @@ -81,10 +81,13 @@ internal StoragePermissionScope() } /// The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create (c). + [WirePath("permissions")] public string Permissions { get; set; } /// The service used by the local user, e.g. blob, file. + [WirePath("service")] public string Service { get; set; } /// The name of resource, normally the container name or the file share name, used by the local user. + [WirePath("resourceName")] public string ResourceName { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceData.cs index 22569256135c3..a2cfe1225d174 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceData.cs @@ -72,10 +72,13 @@ internal StoragePrivateLinkResourceData(ResourceIdentifier id, string name, Reso } /// The private link resource group id. + [WirePath("properties.groupId")] public ResourceIdentifier GroupId { get; } /// The private link resource required member names. + [WirePath("properties.requiredMembers")] public IReadOnlyList RequiredMembers { get; } /// The private link resource Private link DNS zone name. + [WirePath("properties.requiredZoneNames")] public IList RequiredZoneNames { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceListResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceListResult.cs index c27388cb0731c..4ffdb6974a9ca 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceListResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceListResult.cs @@ -62,6 +62,7 @@ internal StoragePrivateLinkResourceListResult(IReadOnlyList Array of private link resources. + [WirePath("value")] public IReadOnlyList Value { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkServiceConnectionState.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkServiceConnectionState.cs index 728113aa494c6..3756afe043990 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkServiceConnectionState.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkServiceConnectionState.cs @@ -64,10 +64,13 @@ internal StoragePrivateLinkServiceConnectionState(StoragePrivateEndpointServiceC } /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + [WirePath("status")] public StoragePrivateEndpointServiceConnectionStatus? Status { get; set; } /// The reason for approval/rejection of the connection. + [WirePath("description")] public string Description { get; set; } /// A message indicating if changes on the service provider require any updates on the consumer. + [WirePath("actionRequired")] public string ActionRequired { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageQueueData.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageQueueData.Serialization.cs index b3e5a41078411..5700c634f0e44 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageQueueData.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageQueueData.Serialization.cs @@ -263,7 +263,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Metadata) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageRoutingPreference.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageRoutingPreference.cs index 8e99814876863..d7516c9a8bc4f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageRoutingPreference.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageRoutingPreference.cs @@ -64,10 +64,13 @@ internal StorageRoutingPreference(StorageRoutingChoice? routingChoice, bool? isM } /// Routing Choice defines the kind of network routing opted by the user. + [WirePath("routingChoice")] public StorageRoutingChoice? RoutingChoice { get; set; } /// A boolean flag which indicates whether microsoft routing storage endpoints are to be published. + [WirePath("publishMicrosoftEndpoints")] public bool? IsMicrosoftEndpointsPublished { get; set; } /// A boolean flag which indicates whether internet routing storage endpoints are to be published. + [WirePath("publishInternetEndpoints")] public bool? IsInternetEndpointsPublished { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageServiceAccessPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageServiceAccessPolicy.cs index 90e758f0d720e..1c2e8d7d48424 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageServiceAccessPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageServiceAccessPolicy.cs @@ -64,10 +64,13 @@ internal StorageServiceAccessPolicy(DateTimeOffset? startOn, DateTimeOffset? exp } /// Start time of the access policy. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; set; } /// Expiry time of the access policy. + [WirePath("expiryTime")] public DateTimeOffset? ExpireOn { get; set; } /// List of abbreviated permissions. + [WirePath("permission")] public string Permission { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSignedIdentifier.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSignedIdentifier.cs index 5f33c6cefebb5..b8abed23f6323 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSignedIdentifier.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSignedIdentifier.cs @@ -62,8 +62,10 @@ internal StorageSignedIdentifier(string id, StorageServiceAccessPolicy accessPol } /// An unique identifier of the stored access policy. + [WirePath("id")] public string Id { get; set; } /// Access policy. + [WirePath("accessPolicy")] public StorageServiceAccessPolicy AccessPolicy { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSku.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSku.cs index 0c68671b173ca..2f10e56b943a1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSku.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSku.cs @@ -69,8 +69,10 @@ internal StorageSku() } /// The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. + [WirePath("name")] public StorageSkuName Name { get; set; } /// The SKU tier. This is based on the SKU name. + [WirePath("tier")] public StorageSkuTier? Tier { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuCapability.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuCapability.cs index 4b864e1eba33c..af24effaf2a52 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuCapability.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuCapability.cs @@ -62,8 +62,10 @@ internal StorageSkuCapability(string name, string value, IDictionary The name of capability, The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. + [WirePath("name")] public string Name { get; } /// A string value to indicate states of given capability. Possibly 'true' or 'false'. + [WirePath("value")] public string Value { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs index 0ce783455adaa..3e38355e873db 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs @@ -83,18 +83,25 @@ internal StorageSkuInformation() } /// The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. + [WirePath("name")] public StorageSkuName Name { get; } /// The SKU tier. This is based on the SKU name. + [WirePath("tier")] public StorageSkuTier? Tier { get; } /// The type of the resource, usually it is 'storageAccounts'. + [WirePath("resourceType")] public string ResourceType { get; } /// Indicates the type of storage account. + [WirePath("kind")] public StorageKind? Kind { get; } /// The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + [WirePath("locations")] public IReadOnlyList Locations { get; } /// The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. + [WirePath("capabilities")] public IReadOnlyList Capabilities { get; } /// The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + [WirePath("restrictions")] public IReadOnlyList Restrictions { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuRestriction.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuRestriction.cs index b8c3bff8c3a34..bdfd0b1d0f462 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuRestriction.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuRestriction.cs @@ -66,10 +66,13 @@ internal StorageSkuRestriction(string restrictionType, IReadOnlyList val } /// The type of restrictions. As of now only possible value for this is location. + [WirePath("type")] public string RestrictionType { get; } /// The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + [WirePath("values")] public IReadOnlyList Values { get; } /// The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. + [WirePath("reasonCode")] public StorageRestrictionReasonCode? ReasonCode { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSshPublicKey.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSshPublicKey.cs index 070629057ee64..f60ccf7213bfd 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSshPublicKey.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSshPublicKey.cs @@ -62,8 +62,10 @@ internal StorageSshPublicKey(string description, string key, IDictionary Optional. It is used to store the function/usage of the key. + [WirePath("description")] public string Description { get; set; } /// Ssh public key base64 encoded. The format should be: '<keyType> <keyData>', e.g. ssh-rsa AAAABBBB. + [WirePath("key")] public string Key { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageTableAccessPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageTableAccessPolicy.cs index ce7c2cc91e71e..c9fca2933d477 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageTableAccessPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageTableAccessPolicy.cs @@ -75,10 +75,13 @@ internal StorageTableAccessPolicy() } /// Start time of the access policy. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; set; } /// Expiry time of the access policy. + [WirePath("expiryTime")] public DateTimeOffset? ExpireOn { get; set; } /// Required. List of abbreviated permissions. Supported permission values include 'r','a','u','d'. + [WirePath("permission")] public string Permission { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageTableSignedIdentifier.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageTableSignedIdentifier.cs index 007137663a0bb..2dbc790276f27 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageTableSignedIdentifier.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageTableSignedIdentifier.cs @@ -73,8 +73,10 @@ internal StorageTableSignedIdentifier() } /// unique-64-character-value of the stored access policy. + [WirePath("id")] public string Id { get; set; } /// Access policy. + [WirePath("accessPolicy")] public StorageTableAccessPolicy AccessPolicy { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsage.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsage.cs index d68093b6caaa2..8dfe9be7922ea 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsage.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsage.cs @@ -66,12 +66,16 @@ internal StorageUsage(StorageUsageUnit? unit, int? currentValue, int? limit, Sto } /// Gets the unit of measurement. + [WirePath("unit")] public StorageUsageUnit? Unit { get; } /// Gets the current count of the allocated resources in the subscription. + [WirePath("currentValue")] public int? CurrentValue { get; } /// Gets the maximum count of the resources that can be allocated in the subscription. + [WirePath("limit")] public int? Limit { get; } /// Gets the name of the type of usage. + [WirePath("name")] public StorageUsageName Name { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsageName.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsageName.cs index 51f55fed79dcb..24d00cd590463 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsageName.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageUsageName.cs @@ -62,8 +62,10 @@ internal StorageUsageName(string value, string localizedValue, IDictionary Gets a string describing the resource name. + [WirePath("value")] public string Value { get; } /// Gets a localized string describing the resource name. + [WirePath("localizedValue")] public string LocalizedValue { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/UpdateHistoryEntry.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/UpdateHistoryEntry.cs index 647dd08c011d0..aae27abbed995 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/UpdateHistoryEntry.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/UpdateHistoryEntry.cs @@ -74,20 +74,28 @@ internal UpdateHistoryEntry(ImmutabilityPolicyUpdateType? updateType, int? immut } /// The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. + [WirePath("update")] public ImmutabilityPolicyUpdateType? UpdateType { get; } /// The immutability period for the blobs in the container since the policy creation, in days. + [WirePath("immutabilityPeriodSinceCreationInDays")] public int? ImmutabilityPeriodSinceCreationInDays { get; } /// Returns the date and time the ImmutabilityPolicy was updated. + [WirePath("timestamp")] public DateTimeOffset? Timestamp { get; } /// Returns the Object ID of the user who updated the ImmutabilityPolicy. + [WirePath("objectIdentifier")] public string ObjectIdentifier { get; } /// Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy. + [WirePath("tenantId")] public Guid? TenantId { get; } /// Returns the User Principal Name of the user who updated the ImmutabilityPolicy. + [WirePath("upn")] public string Upn { get; } /// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. + [WirePath("allowProtectedAppendWrites")] public bool? AllowProtectedAppendWrites { get; } /// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive. + [WirePath("allowProtectedAppendWritesAll")] public bool? AllowProtectedAppendWritesAll { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyData.cs index a0d2264590eca..36c5798c0da24 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyData.cs @@ -79,14 +79,19 @@ internal ObjectReplicationPolicyData(ResourceIdentifier id, string name, Resourc } /// A unique id for object replication policy. + [WirePath("properties.policyId")] public string PolicyId { get; } /// Indicates when the policy is enabled on the source account. + [WirePath("properties.enabledTime")] public DateTimeOffset? EnabledOn { get; } /// Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false. + [WirePath("properties.sourceAccount")] public string SourceAccount { get; set; } /// Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false. + [WirePath("properties.destinationAccount")] public string DestinationAccount { get; set; } /// The storage account object replication rules. + [WirePath("properties.rules")] public IList Rules { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceData.cs index bee509311ec96..9243f787276ff 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceData.cs @@ -72,6 +72,7 @@ internal QueueServiceData(ResourceIdentifier id, string name, ResourceType resou /// Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service. internal StorageCorsRules Cors { get; set; } /// The List of CORS rules. You can include up to five CorsRule elements in the request. + [WirePath("properties.cors.corsRules")] public IList CorsRules { get diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.cs index 9ba708787651d..dc4f33bf2562d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.cs @@ -162,94 +162,136 @@ internal StorageAccountData() } /// Gets the SKU. + [WirePath("sku")] public StorageSku Sku { get; } /// Gets the Kind. + [WirePath("kind")] public StorageKind? Kind { get; } /// The identity of the resource. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// The extendedLocation of the resource. + [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } /// Gets the status of the storage account at the time the operation was called. + [WirePath("properties.provisioningState")] public StorageProvisioningState? ProvisioningState { get; } /// Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. + [WirePath("properties.primaryEndpoints")] public StorageAccountEndpoints PrimaryEndpoints { get; } /// Gets the location of the primary data center for the storage account. + [WirePath("properties.primaryLocation")] public AzureLocation? PrimaryLocation { get; } /// Gets the status indicating whether the primary location of the storage account is available or unavailable. + [WirePath("properties.statusOfPrimary")] public StorageAccountStatus? StatusOfPrimary { get; } /// Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. + [WirePath("properties.lastGeoFailoverTime")] public DateTimeOffset? LastGeoFailoverOn { get; } /// Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. + [WirePath("properties.secondaryLocation")] public AzureLocation? SecondaryLocation { get; } /// Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. + [WirePath("properties.statusOfSecondary")] public StorageAccountStatus? StatusOfSecondary { get; } /// Gets the creation date and time of the storage account in UTC. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; } /// Gets the custom domain the user assigned to this storage account. + [WirePath("properties.customDomain")] public StorageCustomDomain CustomDomain { get; } /// SasPolicy assigned to the storage account. + [WirePath("properties.sasPolicy")] public StorageAccountSasPolicy SasPolicy { get; } /// KeyPolicy assigned to the storage account. internal StorageAccountKeyPolicy KeyPolicy { get; } /// The key expiration period in days. + [WirePath("properties.keyPolicy.keyExpirationPeriodInDays")] public int? KeyExpirationPeriodInDays { get => KeyPolicy?.KeyExpirationPeriodInDays; } /// Storage account keys creation time. + [WirePath("properties.keyCreationTime")] public StorageAccountKeyCreationTime KeyCreationTime { get; } /// Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. + [WirePath("properties.secondaryEndpoints")] public StorageAccountEndpoints SecondaryEndpoints { get; } /// Encryption settings to be used for server-side encryption for the storage account. + [WirePath("properties.encryption")] public StorageAccountEncryption Encryption { get; } /// Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. + [WirePath("properties.accessTier")] public StorageAccountAccessTier? AccessTier { get; } /// Provides the identity based authentication settings for Azure Files. + [WirePath("properties.azureFilesIdentityBasedAuthentication")] public FilesIdentityBasedAuthentication AzureFilesIdentityBasedAuthentication { get; set; } /// Allows https traffic only to storage service if sets to true. + [WirePath("properties.supportsHttpsTrafficOnly")] public bool? EnableHttpsTrafficOnly { get; set; } /// Network rule set. + [WirePath("properties.networkAcls")] public StorageAccountNetworkRuleSet NetworkRuleSet { get; } /// Enables Secure File Transfer Protocol, if set to true. + [WirePath("properties.isSftpEnabled")] public bool? IsSftpEnabled { get; set; } /// Enables local users feature, if set to true. + [WirePath("properties.isLocalUserEnabled")] public bool? IsLocalUserEnabled { get; set; } /// Account HierarchicalNamespace enabled if sets to true. + [WirePath("properties.isHnsEnabled")] public bool? IsHnsEnabled { get; set; } /// Geo Replication Stats. + [WirePath("properties.geoReplicationStats")] public GeoReplicationStatistics GeoReplicationStats { get; } /// If the failover is in progress, the value will be true, otherwise, it will be null. + [WirePath("properties.failoverInProgress")] public bool? IsFailoverInProgress { get; } /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. + [WirePath("properties.largeFileSharesState")] public LargeFileSharesState? LargeFileSharesState { get; set; } /// List of private endpoint connection associated with the specified storage account. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// Maintains information about the network routing choice opted by the user for data transfer. + [WirePath("properties.routingPreference")] public StorageRoutingPreference RoutingPreference { get; set; } /// Blob restore status. + [WirePath("properties.blobRestoreStatus")] public BlobRestoreStatus BlobRestoreStatus { get; } /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. + [WirePath("properties.allowBlobPublicAccess")] public bool? AllowBlobPublicAccess { get; set; } /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. + [WirePath("properties.minimumTlsVersion")] public StorageMinimumTlsVersion? MinimumTlsVersion { get; set; } /// Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. + [WirePath("properties.allowSharedKeyAccess")] public bool? AllowSharedKeyAccess { get; set; } /// NFS 3.0 protocol support enabled if set to true. + [WirePath("properties.isNfsV3Enabled")] public bool? IsNfsV3Enabled { get; set; } /// Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. + [WirePath("properties.allowCrossTenantReplication")] public bool? AllowCrossTenantReplication { get; set; } /// A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. + [WirePath("properties.defaultToOAuthAuthentication")] public bool? IsDefaultToOAuthAuthentication { get; set; } /// Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + [WirePath("properties.publicNetworkAccess")] public StoragePublicNetworkAccess? PublicNetworkAccess { get; set; } /// The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default. + [WirePath("properties.immutableStorageWithVersioning")] public ImmutableStorageAccount ImmutableStorageWithVersioning { get; set; } /// Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. + [WirePath("properties.allowedCopyScope")] public AllowedCopyScope? AllowedCopyScope { get; set; } /// This property is readOnly and is set by server during asynchronous storage account sku conversion operations. + [WirePath("properties.storageAccountSkuConversionStatus")] public StorageAccountSkuConversionStatus StorageAccountSkuConversionStatus { get; set; } /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. + [WirePath("properties.dnsEndpointType")] public StorageDnsEndpointType? DnsEndpointType { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserData.cs index 7b09143dd26b3..7917ef261e2a5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserData.cs @@ -84,18 +84,25 @@ internal StorageAccountLocalUserData(ResourceIdentifier id, string name, Resourc } /// The permission scopes of the local user. + [WirePath("properties.permissionScopes")] public IList PermissionScopes { get; } /// Optional, local user home directory. + [WirePath("properties.homeDirectory")] public string HomeDirectory { get; set; } /// Optional, local user ssh authorized keys for SFTP. + [WirePath("properties.sshAuthorizedKeys")] public IList SshAuthorizedKeys { get; } /// A unique Security Identifier that is generated by the server. + [WirePath("properties.sid")] public string Sid { get; } /// Indicates whether shared key exists. Set it to false to remove existing shared key. + [WirePath("properties.hasSharedKey")] public bool? HasSharedKey { get; set; } /// Indicates whether ssh key exists. Set it to false to remove existing SSH key. + [WirePath("properties.hasSshKey")] public bool? HasSshKey { get; set; } /// Indicates whether ssh password exists. Set it to false to remove existing SSH password. + [WirePath("properties.hasSshPassword")] public bool? HasSshPassword { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyData.cs index daf1a78fbade3..909621e2be595 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyData.cs @@ -72,10 +72,12 @@ internal StorageAccountManagementPolicyData(ResourceIdentifier id, string name, } /// Returns the date and time the ManagementPolicies was last modified. + [WirePath("properties.lastModifiedTime")] public DateTimeOffset? LastModifiedOn { get; } /// The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. internal ManagementPolicySchema Policy { get; set; } /// The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. + [WirePath("properties.policy.rules")] public IList Rules { get => Policy is null ? default : Policy.Rules; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionData.cs index e216c36dc95f6..752227295a0a6 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionData.cs @@ -77,14 +77,17 @@ internal StoragePrivateEndpointConnectionData(ResourceIdentifier id, string name /// The resource of private end point. internal SubResource PrivateEndpoint { get; set; } /// Gets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; } /// A collection of information about the state of the connection between service consumer and provider. + [WirePath("properties.privateLinkServiceConnectionState")] public StoragePrivateLinkServiceConnectionState ConnectionState { get; set; } /// The provisioning state of the private endpoint connection resource. + [WirePath("properties.provisioningState")] public StoragePrivateEndpointConnectionProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueData.cs index 169d2f3b70ad6..e74522d99ea15 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueData.cs @@ -69,8 +69,10 @@ internal StorageQueueData(ResourceIdentifier id, string name, ResourceType resou } /// A name-value pair that represents queue metadata. + [WirePath("properties.metadata")] public IDictionary Metadata { get; } /// Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher. + [WirePath("properties.approximateMessageCount")] public int? ApproximateMessageCount { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableData.cs index cf494f70891ff..09bfaf04c8ae2 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableData.cs @@ -73,8 +73,10 @@ internal TableData(ResourceIdentifier id, string name, ResourceType resourceType } /// Table name under the specified account. + [WirePath("properties.tableName")] public string TableName { get; } /// List of stored access policies specified on the table. + [WirePath("properties.signedIdentifiers")] public IList SignedIdentifiers { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceData.cs index 756836db77fac..4c77b77b7c2b1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceData.cs @@ -72,6 +72,7 @@ internal TableServiceData(ResourceIdentifier id, string name, ResourceType resou /// Specifies CORS rules for the Table service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Table service. internal StorageCorsRules Cors { get; set; } /// The List of CORS rules. You can include up to five CorsRule elements in the request. + [WirePath("properties.cors.corsRules")] public IList CorsRules { get diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ApiKeyVaultReferenceData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ApiKeyVaultReferenceData.cs index b9335d65f1ef3..f43e8428d94ba 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ApiKeyVaultReferenceData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ApiKeyVaultReferenceData.cs @@ -88,24 +88,34 @@ internal ApiKeyVaultReferenceData(ResourceIdentifier id, string name, ResourceTy } /// Gets or sets the reference. + [WirePath("properties.reference")] public string Reference { get; set; } /// Gets or sets the status. + [WirePath("properties.status")] public ResolveStatus? Status { get; set; } /// Gets or sets the vault name. + [WirePath("properties.vaultName")] public string VaultName { get; set; } /// Gets or sets the secret name. + [WirePath("properties.secretName")] public string SecretName { get; set; } /// Gets or sets the secret version. + [WirePath("properties.secretVersion")] public string SecretVersion { get; set; } /// Managed service identity. + [WirePath("properties.identityType")] public ManagedServiceIdentity Identity { get; set; } /// Gets or sets the details. + [WirePath("properties.details")] public string Details { get; set; } /// Gets or sets the source. + [WirePath("properties.source")] public ConfigReferenceSource? Source { get; set; } /// Gets or sets the active version. + [WirePath("properties.activeVersion")] public string ActiveVersion { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateData.cs index c47b6e3d97eda..2d2f8175d1c1c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateData.cs @@ -121,48 +121,70 @@ internal AppCertificateData() } /// Certificate password. + [WirePath("properties.password")] public string Password { get; set; } /// Friendly name of the certificate. + [WirePath("properties.friendlyName")] public string FriendlyName { get; } /// Subject name of the certificate. + [WirePath("properties.subjectName")] public string SubjectName { get; } /// Host names the certificate applies to. + [WirePath("properties.hostNames")] public IList HostNames { get; } /// Pfx blob. + [WirePath("properties.pfxBlob")] public byte[] PfxBlob { get; set; } /// App name. + [WirePath("properties.siteName")] public string SiteName { get; } /// Self link. + [WirePath("properties.selfLink")] public string SelfLink { get; } /// Certificate issuer. + [WirePath("properties.issuer")] public string Issuer { get; } /// Certificate issue Date. + [WirePath("properties.issueDate")] public DateTimeOffset? IssueOn { get; } /// Certificate expiration date. + [WirePath("properties.expirationDate")] public DateTimeOffset? ExpireOn { get; } /// Certificate thumbprint. + [WirePath("properties.thumbprint")] public string ThumbprintString { get; } /// Is the certificate valid?. + [WirePath("properties.valid")] public bool? IsValid { get; } /// Raw bytes of .cer file. + [WirePath("properties.cerBlob")] public byte[] CerBlob { get; } /// Public key hash. + [WirePath("properties.publicKeyHash")] public string PublicKeyHash { get; } /// Specification for the App Service Environment to use for the certificate. + [WirePath("properties.hostingEnvironmentProfile")] public HostingEnvironmentProfile HostingEnvironmentProfile { get; } /// Key Vault Csm resource Id. + [WirePath("properties.keyVaultId")] public ResourceIdentifier KeyVaultId { get; set; } /// Key Vault secret name. + [WirePath("properties.keyVaultSecretName")] public string KeyVaultSecretName { get; set; } /// Status of the Key Vault secret. + [WirePath("properties.keyVaultSecretStatus")] public KeyVaultSecretStatus? KeyVaultSecretStatus { get; } /// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + [WirePath("properties.serverFarmId")] public ResourceIdentifier ServerFarmId { get; set; } /// CNAME of the certificate to be issued via free certificate. + [WirePath("properties.canonicalName")] public string CanonicalName { get; set; } /// Method of domain validation for free cert. + [WirePath("properties.domainValidationMethod")] public string DomainValidationMethod { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.cs index d61c8b5a8fbe1..0704420ae6272 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.cs @@ -84,12 +84,16 @@ internal AppServiceCertificateData() } /// Key Vault resource Id. + [WirePath("properties.keyVaultId")] public ResourceIdentifier KeyVaultId { get; set; } /// Key Vault secret name. + [WirePath("properties.keyVaultSecretName")] public string KeyVaultSecretName { get; set; } /// Status of the Key Vault secret. + [WirePath("properties.provisioningState")] public KeyVaultSecretStatus? ProvisioningState { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.cs index 7dc12362b91bd..88028086dccf5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.cs @@ -120,46 +120,67 @@ internal AppServiceCertificateOrderData() } /// State of the Key Vault secret. + [WirePath("properties.certificates")] public IDictionary Certificates { get; } /// Certificate distinguished name. + [WirePath("properties.distinguishedName")] public string DistinguishedName { get; set; } /// Domain verification token. + [WirePath("properties.domainVerificationToken")] public string DomainVerificationToken { get; } /// Duration in years (must be 1). + [WirePath("properties.validityInYears")] public int? ValidityInYears { get; set; } /// Certificate key size. + [WirePath("properties.keySize")] public int? KeySize { get; set; } /// Certificate product type. + [WirePath("properties.productType")] public CertificateProductType? ProductType { get; set; } /// <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>. + [WirePath("properties.autoRenew")] public bool? IsAutoRenew { get; set; } /// Status of certificate order. + [WirePath("properties.provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Current order status. + [WirePath("properties.status")] public CertificateOrderStatus? Status { get; } /// Signed certificate. + [WirePath("properties.signedCertificate")] public AppServiceCertificateDetails SignedCertificate { get; } /// Last CSR that was created for this order. + [WirePath("properties.csr")] public string Csr { get; set; } /// Intermediate certificate. + [WirePath("properties.intermediate")] public AppServiceCertificateDetails Intermediate { get; } /// Root certificate. + [WirePath("properties.root")] public AppServiceCertificateDetails Root { get; } /// Current serial number of the certificate. + [WirePath("properties.serialNumber")] public string SerialNumber { get; } /// Certificate last issuance time. + [WirePath("properties.lastCertificateIssuanceTime")] public DateTimeOffset? LastCertificateIssuedOn { get; } /// Certificate expiration time. + [WirePath("properties.expirationTime")] public DateTimeOffset? ExpireOn { get; } /// <code>true</code> if private key is external; otherwise, <code>false</code>. + [WirePath("properties.isPrivateKeyExternal")] public bool? IsPrivateKeyExternal { get; } /// Reasons why App Service Certificate is not renewable at the current moment. + [WirePath("properties.appServiceCertificateNotRenewableReasons")] public IReadOnlyList AppServiceCertificateNotRenewableReasons { get; } /// Time stamp when the certificate would be auto renewed next. + [WirePath("properties.nextAutoRenewalTimeStamp")] public DateTimeOffset? NextAutoRenewTimeStamp { get; } /// Contact info. + [WirePath("properties.contact")] public CertificateOrderContact Contact { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDetectorData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDetectorData.cs index b933cfa317f3f..d1008ada7856f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDetectorData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDetectorData.cs @@ -82,16 +82,22 @@ internal AppServiceDetectorData(ResourceIdentifier id, string name, ResourceType } /// metadata for the detector. + [WirePath("properties.metadata")] public DetectorInfo Metadata { get; set; } /// Data Set. + [WirePath("properties.dataset")] public IList Dataset { get; } /// Indicates status of the most severe insight. + [WirePath("properties.status")] public AppServiceStatusInfo Status { get; set; } /// Additional configuration for different data providers to be used by the UI. + [WirePath("properties.dataProvidersMetadata")] public IList DataProvidersMetadata { get; } /// Suggested utterances where the detector can be applicable. + [WirePath("properties.suggestedUtterances")] public QueryUtterancesResults SuggestedUtterances { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.cs index e9848ab63119e..6013366065bf0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.cs @@ -124,49 +124,70 @@ internal AppServiceDomainData() } /// Administrative contact. + [WirePath("properties.contactAdmin")] public RegistrationContactInfo ContactAdmin { get; set; } /// Billing contact. + [WirePath("properties.contactBilling")] public RegistrationContactInfo ContactBilling { get; set; } /// Registrant contact. + [WirePath("properties.contactRegistrant")] public RegistrationContactInfo ContactRegistrant { get; set; } /// Technical contact. + [WirePath("properties.contactTech")] public RegistrationContactInfo ContactTech { get; set; } /// Domain registration status. + [WirePath("properties.registrationStatus")] public AppServiceDomainStatus? RegistrationStatus { get; } /// Domain provisioning state. + [WirePath("properties.provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Name servers. + [WirePath("properties.nameServers")] public IReadOnlyList NameServers { get; } /// <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>. + [WirePath("properties.privacy")] public bool? IsDomainPrivacyEnabled { get; set; } /// Domain creation timestamp. + [WirePath("properties.createdTime")] public DateTimeOffset? CreatedOn { get; } /// Domain expiration timestamp. + [WirePath("properties.expirationTime")] public DateTimeOffset? ExpireOn { get; } /// Timestamp when the domain was renewed last time. + [WirePath("properties.lastRenewedTime")] public DateTimeOffset? LastRenewedOn { get; } /// <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>. + [WirePath("properties.autoRenew")] public bool? IsAutoRenew { get; set; } /// /// <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and /// it is hosted on name servers Azure has programmatic access to. /// + [WirePath("properties.readyForDnsRecordManagement")] public bool? IsDnsRecordManagementReady { get; } /// All hostnames derived from the domain and assigned to Azure resources. + [WirePath("properties.managedHostNames")] public IReadOnlyList ManagedHostNames { get; } /// Legal agreement consent. + [WirePath("properties.consent")] public DomainPurchaseConsent Consent { get; set; } /// Reasons why domain is not renewable. + [WirePath("properties.domainNotRenewableReasons")] public IReadOnlyList DomainNotRenewableReasons { get; } /// Current DNS type. + [WirePath("properties.dnsType")] public AppServiceDnsType? DnsType { get; set; } /// Azure DNS Zone to use. + [WirePath("properties.dnsZoneId")] public string DnsZoneId { get; set; } /// Target DNS type (would be used for migration). + [WirePath("properties.targetDnsType")] public AppServiceDnsType? TargetDnsType { get; set; } /// Gets or sets the auth code. + [WirePath("properties.authCode")] public string AuthCode { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentData.cs index adc86b8f558c7..1ef631910c4a8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentData.cs @@ -115,41 +115,58 @@ internal AppServiceEnvironmentData() } /// Provisioning state of the App Service Environment. + [WirePath("properties.provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Current status of the App Service Environment. + [WirePath("properties.status")] public HostingEnvironmentStatus? Status { get; } /// Description of the Virtual Network. + [WirePath("properties.virtualNetwork")] public AppServiceVirtualNetworkProfile VirtualNetwork { get; set; } /// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. + [WirePath("properties.internalLoadBalancingMode")] public LoadBalancingMode? InternalLoadBalancingMode { get; set; } /// Front-end VM size, e.g. "Medium", "Large". + [WirePath("properties.multiSize")] public string MultiSize { get; set; } /// Number of front-end instances. + [WirePath("properties.multiRoleCount")] public int? MultiRoleCount { get; } /// Number of IP SSL addresses reserved for the App Service Environment. + [WirePath("properties.ipsslAddressCount")] public int? IPSslAddressCount { get; set; } /// DNS suffix of the App Service Environment. + [WirePath("properties.dnsSuffix")] public string DnsSuffix { get; set; } /// Maximum number of VMs in the App Service Environment. + [WirePath("properties.maximumNumberOfMachines")] public int? MaximumNumberOfMachines { get; } /// Scale factor for front-ends. + [WirePath("properties.frontEndScaleFactor")] public int? FrontEndScaleFactor { get; set; } /// /// <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available /// (most likely because NSG blocked the incoming traffic). /// + [WirePath("properties.suspended")] public bool? IsSuspended { get; } /// Custom settings for changing the behavior of the App Service Environment. + [WirePath("properties.clusterSettings")] public IList ClusterSettings { get; } /// User added ip ranges to whitelist on ASE db. + [WirePath("properties.userWhitelistedIpRanges")] public IList UserWhitelistedIPRanges { get; } /// Flag that displays whether an ASE has linux workers or not. + [WirePath("properties.hasLinuxWorkers")] public bool? HasLinuxWorkers { get; } /// Dedicated Host Count. + [WirePath("properties.dedicatedHostCount")] public int? DedicatedHostCount { get; set; } /// Whether or not this App Service Environment is zone-redundant. + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceIdentifierData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceIdentifierData.cs index ebef0bcfcf586..23475613b3465 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceIdentifierData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceIdentifierData.cs @@ -71,8 +71,10 @@ internal AppServiceIdentifierData(ResourceIdentifier id, string name, ResourceTy } /// String representation of the identity. + [WirePath("properties.id")] public string Value { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.cs index c5d3b9ee9f863..0df390b456421 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.cs @@ -133,60 +133,85 @@ internal AppServicePlanData() } /// Description of a SKU for a scalable resource. + [WirePath("sku")] public AppServiceSkuDescription Sku { get; set; } /// Extended Location. + [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } /// Target worker tier assigned to the App Service plan. + [WirePath("properties.workerTierName")] public string WorkerTierName { get; set; } /// App Service plan status. + [WirePath("properties.status")] public AppServicePlanStatus? Status { get; } /// App Service plan subscription. + [WirePath("properties.subscription")] public string Subscription { get; } /// Specification for the App Service Environment to use for the App Service plan. + [WirePath("properties.hostingEnvironmentProfile")] public HostingEnvironmentProfile HostingEnvironmentProfile { get; set; } /// Maximum number of instances that can be assigned to this App Service plan. + [WirePath("properties.maximumNumberOfWorkers")] public int? MaximumNumberOfWorkers { get; } /// Geographical location for the App Service plan. + [WirePath("properties.geoRegion")] public string GeoRegion { get; } /// /// If <code>true</code>, apps assigned to this App Service plan can be scaled independently. /// If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. /// + [WirePath("properties.perSiteScaling")] public bool? IsPerSiteScaling { get; set; } /// ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku. + [WirePath("properties.elasticScaleEnabled")] public bool? IsElasticScaleEnabled { get; set; } /// Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. + [WirePath("properties.maximumElasticWorkerCount")] public int? MaximumElasticWorkerCount { get; set; } /// Number of apps assigned to this App Service plan. + [WirePath("properties.numberOfSites")] public int? NumberOfSites { get; } /// If <code>true</code>, this App Service Plan owns spot instances. + [WirePath("properties.isSpot")] public bool? IsSpot { get; set; } /// The time when the server farm expires. Valid only if it is a spot server farm. + [WirePath("properties.spotExpirationTime")] public DateTimeOffset? SpotExpireOn { get; set; } /// The time when the server farm free offer expires. + [WirePath("properties.freeOfferExpirationTime")] public DateTimeOffset? FreeOfferExpireOn { get; set; } /// Resource group of the App Service plan. + [WirePath("properties.resourceGroup")] public string ResourceGroup { get; } /// If Linux app service plan <code>true</code>, <code>false</code> otherwise. + [WirePath("properties.reserved")] public bool? IsReserved { get; set; } /// Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + [WirePath("properties.isXenon")] public bool? IsXenon { get; set; } /// If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + [WirePath("properties.hyperV")] public bool? IsHyperV { get; set; } /// Scaling worker count. + [WirePath("properties.targetWorkerCount")] public int? TargetWorkerCount { get; set; } /// Scaling worker size ID. + [WirePath("properties.targetWorkerSizeId")] public int? TargetWorkerSizeId { get; set; } /// Provisioning state of the App Service Plan. + [WirePath("properties.provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Specification for the Kubernetes Environment to use for the App Service plan. + [WirePath("properties.kubeEnvironmentProfile")] public KubeEnvironmentProfile KubeEnvironmentProfile { get; set; } /// /// If <code>true</code>, this App Service Plan will perform availability zone balancing. /// If <code>false</code>, this App Service Plan will not perform availability zone balancing. /// + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlData.cs index 1cafd8df86604..1457200ead40a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlData.cs @@ -77,14 +77,19 @@ internal AppServiceSourceControlData(ResourceIdentifier id, string name, Resourc } /// OAuth access token. + [WirePath("properties.token")] public string Token { get; set; } /// OAuth access token secret. + [WirePath("properties.tokenSecret")] public string TokenSecret { get; set; } /// OAuth refresh token. + [WirePath("properties.refreshToken")] public string RefreshToken { get; set; } /// OAuth token expiration. + [WirePath("properties.expirationTime")] public DateTimeOffset? ExpireOn { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceVirtualNetworkData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceVirtualNetworkData.cs index b40465269e159..4514543f63560 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceVirtualNetworkData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceVirtualNetworkData.cs @@ -88,23 +88,31 @@ internal AppServiceVirtualNetworkData(ResourceIdentifier id, string name, Resour } /// The Virtual Network's resource ID. + [WirePath("properties.vnetResourceId")] public ResourceIdentifier VnetResourceId { get; set; } /// The client certificate thumbprint. + [WirePath("properties.certThumbprint")] public string CertThumbprintString { get; } /// /// A certificate file (.cer) blob containing the public key of the private key used to authenticate a /// Point-To-Site VPN connection. /// + [WirePath("properties.certBlob")] public string CertBlob { get; set; } /// The routes that this Virtual Network connection uses. + [WirePath("properties.routes")] public IReadOnlyList Routes { get; } /// <code>true</code> if a resync is required; otherwise, <code>false</code>. + [WirePath("properties.resyncRequired")] public bool? IsResyncRequired { get; } /// DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses. + [WirePath("properties.dnsServers")] public string DnsServers { get; set; } /// Flag that is used to denote if this is VNET injection. + [WirePath("properties.isSwift")] public bool? IsSwift { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceVirtualNetworkGatewayData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceVirtualNetworkGatewayData.cs index ab56032831d75..f649b12871c81 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceVirtualNetworkGatewayData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceVirtualNetworkGatewayData.cs @@ -73,10 +73,13 @@ internal AppServiceVirtualNetworkGatewayData(ResourceIdentifier id, string name, } /// The Virtual Network name. + [WirePath("properties.vnetName")] public string VnetName { get; set; } /// The URI where the VPN package can be downloaded. + [WirePath("properties.vpnPackageUri")] public Uri VpnPackageUri { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceWorkerPoolData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceWorkerPoolData.cs index e6975ff350f68..5aefaee6dd070 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceWorkerPoolData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceWorkerPoolData.cs @@ -83,18 +83,25 @@ internal AppServiceWorkerPoolData(ResourceIdentifier id, string name, ResourceTy } /// Description of a SKU for a scalable resource. + [WirePath("sku")] public AppServiceSkuDescription Sku { get; set; } /// Worker size ID for referencing this worker pool. + [WirePath("properties.workerSizeId")] public int? WorkerSizeId { get; set; } /// Shared or dedicated app hosting. + [WirePath("properties.computeMode")] public ComputeModeOption? ComputeMode { get; set; } /// VM size of the worker pool instances. + [WirePath("properties.workerSize")] public string WorkerSize { get; set; } /// Number of instances in the worker pool. + [WirePath("properties.workerCount")] public int? WorkerCount { get; set; } /// Names of all instances in the worker pool (read only). + [WirePath("properties.instanceNames")] public IReadOnlyList InstanceNames { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationData.cs index 4fdd22bb60053..71c38103010a6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationData.cs @@ -84,16 +84,22 @@ internal AseV3NetworkingConfigurationData(ResourceIdentifier id, string name, Re } /// Gets the windows outbound ip addresses. + [WirePath("properties.windowsOutboundIpAddresses")] public IReadOnlyList WindowsOutboundIPAddresses { get; } /// Gets the linux outbound ip addresses. + [WirePath("properties.linuxOutboundIpAddresses")] public IReadOnlyList LinuxOutboundIPAddresses { get; } /// Gets the external inbound ip addresses. + [WirePath("properties.externalInboundIpAddresses")] public IReadOnlyList ExternalInboundIPAddresses { get; } /// Gets the internal inbound ip addresses. + [WirePath("properties.internalInboundIpAddresses")] public IReadOnlyList InternalInboundIPAddresses { get; } /// Property to enable and disable new private endpoint connection creation on ASE. + [WirePath("properties.allowNewPrivateEndpointConnections")] public bool? AllowNewPrivateEndpointConnections { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ContinuousWebJobData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ContinuousWebJobData.cs index 28dcf232f9999..250d3c64201f4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ContinuousWebJobData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ContinuousWebJobData.cs @@ -91,22 +91,31 @@ internal ContinuousWebJobData(ResourceIdentifier id, string name, ResourceType r } /// Job status. + [WirePath("properties.status")] public ContinuousWebJobStatus? Status { get; set; } /// Detailed status. + [WirePath("properties.detailed_status")] public string DetailedStatus { get; set; } /// Log URL. + [WirePath("properties.log_url")] public Uri LogUri { get; set; } /// Run command. + [WirePath("properties.run_command")] public string RunCommand { get; set; } /// Job URL. + [WirePath("properties.url")] public Uri Uri { get; set; } /// Extra Info URL. + [WirePath("properties.extra_info_url")] public Uri ExtraInfoUri { get; set; } /// Job type. + [WirePath("properties.web_job_type")] public WebJobType? WebJobType { get; set; } /// Error information. + [WirePath("properties.error")] public string Error { get; set; } /// Using SDK?. + [WirePath("properties.using_sdk")] public bool? IsUsingSdk { get; set; } /// /// Job settings. @@ -138,8 +147,10 @@ internal ContinuousWebJobData(ResourceIdentifier id, string name, ResourceType r /// /// /// + [WirePath("properties.settings")] public IDictionary Settings { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CsmPublishingCredentialsPoliciesEntityData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CsmPublishingCredentialsPoliciesEntityData.cs index 7f1ed95232e2e..320d85f8c7a42 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CsmPublishingCredentialsPoliciesEntityData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CsmPublishingCredentialsPoliciesEntityData.cs @@ -71,8 +71,10 @@ internal CsmPublishingCredentialsPoliciesEntityData(ResourceIdentifier id, strin } /// <code>true</code> to allow access to a publishing method; otherwise, <code>false</code>. + [WirePath("properties.allow")] public bool? Allow { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteData.cs index ca56d90612add..0a8ed329e38cd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteData.cs @@ -85,22 +85,31 @@ internal DeletedSiteData(ResourceIdentifier id, string name, ResourceType resour } /// Numeric id for the deleted site. + [WirePath("properties.deletedSiteId")] public int? DeletedSiteId { get; } /// Time in UTC when the app was deleted. + [WirePath("properties.deletedTimestamp")] public string DeletedTimestamp { get; } /// Subscription containing the deleted site. + [WirePath("properties.subscription")] public string Subscription { get; } /// ResourceGroup that contained the deleted site. + [WirePath("properties.resourceGroup")] public string ResourceGroup { get; } /// Name of the deleted site. + [WirePath("properties.deletedSiteName")] public string DeletedSiteName { get; } /// Slot of the deleted site. + [WirePath("properties.slot")] public string Slot { get; } /// Kind of site that was deleted. + [WirePath("properties.kind")] public string KindPropertiesKind { get; } /// Geo Region of the deleted site. + [WirePath("properties.geoRegionName")] public string GeoRegionName { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DetectorDefinitionResourceData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DetectorDefinitionResourceData.cs index 03c65a0c1f411..bbf2d9524c823 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DetectorDefinitionResourceData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DetectorDefinitionResourceData.cs @@ -77,14 +77,19 @@ internal DetectorDefinitionResourceData(ResourceIdentifier id, string name, Reso } /// Display name of the detector. + [WirePath("properties.displayName")] public string DisplayName { get; } /// Description of the detector. + [WirePath("properties.description")] public string Description { get; } /// Detector Rank. + [WirePath("properties.rank")] public double? Rank { get; } /// Flag representing whether detector is enabled or not. + [WirePath("properties.isEnabled")] public bool? IsEnabled { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DiagnosticCategoryData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DiagnosticCategoryData.cs index 132b767f9d097..69006af25b9bc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DiagnosticCategoryData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DiagnosticCategoryData.cs @@ -71,8 +71,10 @@ internal DiagnosticCategoryData(ResourceIdentifier id, string name, ResourceType } /// Description of the diagnostic category. + [WirePath("properties.description")] public string Description { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.cs index abab2b02b98c7..b5044b48488fe 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.cs @@ -71,8 +71,10 @@ internal DomainOwnershipIdentifierData(ResourceIdentifier id, string name, Resou } /// Ownership Id. + [WirePath("properties.ownershipId")] public string OwnershipId { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/FunctionEnvelopeData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/FunctionEnvelopeData.cs index 92bfcc5f6b427..9ab6510057c89 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/FunctionEnvelopeData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/FunctionEnvelopeData.cs @@ -96,18 +96,25 @@ internal FunctionEnvelopeData(ResourceIdentifier id, string name, ResourceType r } /// Function App ID. + [WirePath("properties.function_app_id")] public string FunctionAppId { get; set; } /// Script root path URI. + [WirePath("properties.script_root_path_href")] public string ScriptRootPathHref { get; set; } /// Script URI. + [WirePath("properties.script_href")] public string ScriptHref { get; set; } /// Config URI. + [WirePath("properties.config_href")] public string ConfigHref { get; set; } /// Test data URI. + [WirePath("properties.test_data_href")] public string TestDataHref { get; set; } /// Secrets file URI. + [WirePath("properties.secrets_file_href")] public string SecretsFileHref { get; set; } /// Function URI. + [WirePath("properties.href")] public string Href { get; set; } /// /// Config information. @@ -139,18 +146,25 @@ internal FunctionEnvelopeData(ResourceIdentifier id, string name, ResourceType r /// /// /// + [WirePath("properties.config")] public BinaryData Config { get; set; } /// File list. + [WirePath("properties.files")] public IDictionary Files { get; } /// Test data used when testing via the Azure Portal. + [WirePath("properties.test_data")] public string TestData { get; set; } /// The invocation URL. + [WirePath("properties.invoke_url_template")] public string InvokeUrlTemplate { get; set; } /// The function language. + [WirePath("properties.language")] public string Language { get; set; } /// Gets or sets a value indicating whether the function is disabled. + [WirePath("properties.isDisabled")] public bool? IsDisabled { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostNameBindingData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostNameBindingData.cs index 56ada3621169c..7bcd116789226 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostNameBindingData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostNameBindingData.cs @@ -88,24 +88,34 @@ internal HostNameBindingData(ResourceIdentifier id, string name, ResourceType re } /// App Service app name. + [WirePath("properties.siteName")] public string SiteName { get; set; } /// Fully qualified ARM domain resource URI. + [WirePath("properties.domainId")] public string DomainId { get; set; } /// Azure resource name. + [WirePath("properties.azureResourceName")] public string AzureResourceName { get; set; } /// Azure resource type. + [WirePath("properties.azureResourceType")] public AppServiceResourceType? AzureResourceType { get; set; } /// Custom DNS record type. + [WirePath("properties.customHostNameDnsRecordType")] public CustomHostNameDnsRecordType? CustomHostNameDnsRecordType { get; set; } /// Hostname type. + [WirePath("properties.hostNameType")] public AppServiceHostNameType? HostNameType { get; set; } /// SSL type. + [WirePath("properties.sslState")] public HostNameBindingSslState? SslState { get; set; } /// SSL certificate thumbprint. + [WirePath("properties.thumbprint")] public string ThumbprintString { get; set; } /// Virtual IP address assigned to the hostname if IP based SSL is enabled. + [WirePath("properties.virtualIP")] public string VirtualIP { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionData.cs index b1d1038deeb8d..59c15799b4081 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionData.cs @@ -88,25 +88,34 @@ internal HybridConnectionData(ResourceIdentifier id, string name, ResourceType r } /// The name of the Service Bus namespace. + [WirePath("properties.serviceBusNamespace")] public string ServiceBusNamespace { get; set; } /// The name of the Service Bus relay. + [WirePath("properties.relayName")] public string RelayName { get; set; } /// The ARM URI to the Service Bus relay. + [WirePath("properties.relayArmUri")] public ResourceIdentifier RelayArmId { get; set; } /// The hostname of the endpoint. + [WirePath("properties.hostname")] public string Hostname { get; set; } /// The port of the endpoint. + [WirePath("properties.port")] public int? Port { get; set; } /// The name of the Service Bus key which has Send permissions. This is used to authenticate to Service Bus. + [WirePath("properties.sendKeyName")] public string SendKeyName { get; set; } /// /// The value of the Service Bus key. This is used to authenticate to Service Bus. In ARM this key will not be returned /// normally, use the POST /listKeys API instead. /// + [WirePath("properties.sendKeyValue")] public string SendKeyValue { get; set; } /// The suffix for the service bus endpoint. By default this is .servicebus.windows.net. + [WirePath("properties.serviceBusSuffix")] public string ServiceBusSuffix { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimitData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimitData.cs index 57f8575dd4b7b..7b7b21a03121e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimitData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimitData.cs @@ -73,10 +73,13 @@ internal HybridConnectionLimitData(ResourceIdentifier id, string name, ResourceT } /// The current number of Hybrid Connections. + [WirePath("properties.current")] public int? Current { get; } /// The maximum number of Hybrid Connections allowed. + [WirePath("properties.maximum")] public int? Maximum { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Internal/WirePathAttribute.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Internal/WirePathAttribute.cs new file mode 100644 index 0000000000000..3753ed40024dd --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Internal/WirePathAttribute.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.AppService +{ + [AttributeUsage(AttributeTargets.Property)] + internal class WirePathAttribute : Attribute + { + private string _wirePath; + + public WirePathAttribute(string wirePath) + { + _wirePath = wirePath; + } + + public override string ToString() + { + return _wirePath; + } + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentData.cs index 83bde9883ce69..b0e4ccd0a0b0b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentData.cs @@ -105,32 +105,42 @@ internal KubeEnvironmentData() } /// Extended Location. + [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } /// Provisioning state of the Kubernetes Environment. + [WirePath("properties.provisioningState")] public KubeEnvironmentProvisioningState? ProvisioningState { get; } /// Any errors that occurred during deployment or deployment validation. + [WirePath("properties.deploymentErrors")] public string DeploymentErrors { get; } /// Only visible within Vnet/Subnet. + [WirePath("properties.internalLoadBalancerEnabled")] public bool? IsInternalLoadBalancerEnabled { get; set; } /// Default Domain Name for the cluster. + [WirePath("properties.defaultDomain")] public string DefaultDomain { get; } /// Static IP of the KubeEnvironment. + [WirePath("properties.staticIp")] public string StaticIP { get; set; } /// /// Cluster configuration which determines the ARC cluster /// components types. Eg: Choosing between BuildService kind, /// FrontEnd Service ArtifactsStorageType etc. /// + [WirePath("properties.arcConfiguration")] public ArcConfiguration ArcConfiguration { get; set; } /// /// Cluster configuration which enables the log daemon to export /// app logs to a destination. Currently only "log-analytics" is /// supported /// + [WirePath("properties.appLogsConfiguration")] public AppLogsConfiguration AppLogsConfiguration { get; set; } /// Gets or sets the aks resource id. + [WirePath("properties.aksResourceID")] public ResourceIdentifier AksResourceId { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MSDeployStatusData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MSDeployStatusData.cs index 3b5573a4d3a1b..f1aa8b38c3a6e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MSDeployStatusData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MSDeployStatusData.cs @@ -80,16 +80,22 @@ internal MSDeployStatusData(ResourceIdentifier id, string name, ResourceType res } /// Username of deployer. + [WirePath("properties.deployer")] public string Deployer { get; } /// Provisioning state. + [WirePath("properties.provisioningState")] public MSDeployProvisioningState? ProvisioningState { get; } /// Start time of deploy operation. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; } /// End time of deploy operation. + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; } /// Whether the deployment operation has completed. + [WirePath("properties.complete")] public bool? IsComplete { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatusData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatusData.cs index b6bf5d8dade8c..d9b311c980580 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatusData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatusData.cs @@ -76,12 +76,16 @@ internal MigrateMySqlStatusData(ResourceIdentifier id, string name, ResourceType } /// Status of the migration task. + [WirePath("properties.migrationOperationStatus")] public AppServiceOperationStatus? MigrationOperationStatus { get; } /// Operation ID for the migration task. + [WirePath("properties.operationId")] public string OperationId { get; } /// True if the web app has in app MySql enabled. + [WirePath("properties.localMySqlEnabled")] public bool? IsLocalMySqlEnabled { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AbnormalTimePeriod.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AbnormalTimePeriod.cs index 94209e76b120e..d313a53db834c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AbnormalTimePeriod.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AbnormalTimePeriod.cs @@ -69,12 +69,16 @@ internal AbnormalTimePeriod(DateTimeOffset? startOn, DateTimeOffset? endOn, ILis } /// Start time of the downtime. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; set; } /// End time of the downtime. + [WirePath("endTime")] public DateTimeOffset? EndOn { get; set; } /// List of Possible Cause of downtime. + [WirePath("events")] public IList Events { get; } /// List of proposed solutions. + [WirePath("solutions")] public IList Solutions { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AllowedAudiencesValidation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AllowedAudiencesValidation.cs index 70bcca984bb1a..d98359937d0b3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AllowedAudiencesValidation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AllowedAudiencesValidation.cs @@ -62,6 +62,7 @@ internal AllowedAudiencesValidation(IList allowedAudiences, IDictionary< } /// The configuration settings of the allowed list of audiences from which to validate the JWT token. + [WirePath("allowedAudiences")] public IList AllowedAudiences { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AnalysisDetectorEvidences.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AnalysisDetectorEvidences.cs index d5e3bf9f1eb91..e0d2ac8e03baf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AnalysisDetectorEvidences.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AnalysisDetectorEvidences.cs @@ -71,16 +71,21 @@ internal AnalysisDetectorEvidences(string source, DetectorDefinition detectorDef } /// Name of the Detector. + [WirePath("source")] public string Source { get; set; } /// Detector Definition. + [WirePath("detectorDefinition")] public DetectorDefinition DetectorDefinition { get; set; } /// Source Metrics. + [WirePath("metrics")] public IList Metrics { get; } /// Additional Source Data. + [WirePath("data")] public IList> Data { get; } /// Detector Meta Data. internal DetectorMetadata DetectorMetaData { get; set; } /// Source of the Data. + [WirePath("detectorMetaData.dataSource")] public DetectorDataSource DataSource { get => DetectorMetaData is null ? default : DetectorMetaData.DataSource; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApiManagementConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApiManagementConfig.cs index b3c67ba02344b..bab73d3b3c71f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApiManagementConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApiManagementConfig.cs @@ -60,6 +60,7 @@ internal ApiManagementConfig(string id, IDictionary serializ } /// APIM-Api Identifier. + [WirePath("id")] public string Id { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificateData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificateData.Serialization.cs index 42b9efc3e27a3..497a0e961ea18 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificateData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificateData.Serialization.cs @@ -273,7 +273,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificatePatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificatePatch.cs index e931b6559017a..72820b126ff50 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificatePatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificatePatch.cs @@ -109,48 +109,70 @@ internal AppCertificatePatch(ResourceIdentifier id, string name, ResourceType re } /// Certificate password. + [WirePath("properties.password")] public string Password { get; set; } /// Friendly name of the certificate. + [WirePath("properties.friendlyName")] public string FriendlyName { get; } /// Subject name of the certificate. + [WirePath("properties.subjectName")] public string SubjectName { get; } /// Host names the certificate applies to. + [WirePath("properties.hostNames")] public IList HostNames { get; } /// Pfx blob. + [WirePath("properties.pfxBlob")] public byte[] PfxBlob { get; set; } /// App name. + [WirePath("properties.siteName")] public string SiteName { get; } /// Self link. + [WirePath("properties.selfLink")] public string SelfLink { get; } /// Certificate issuer. + [WirePath("properties.issuer")] public string Issuer { get; } /// Certificate issue Date. + [WirePath("properties.issueDate")] public DateTimeOffset? IssueOn { get; } /// Certificate expiration date. + [WirePath("properties.expirationDate")] public DateTimeOffset? ExpireOn { get; } /// Certificate thumbprint. + [WirePath("properties.thumbprint")] public string ThumbprintString { get; } /// Is the certificate valid?. + [WirePath("properties.valid")] public bool? IsValid { get; } /// Raw bytes of .cer file. + [WirePath("properties.cerBlob")] public byte[] CerBlob { get; } /// Public key hash. + [WirePath("properties.publicKeyHash")] public string PublicKeyHash { get; } /// Specification for the App Service Environment to use for the certificate. + [WirePath("properties.hostingEnvironmentProfile")] public HostingEnvironmentProfile HostingEnvironmentProfile { get; } /// Key Vault Csm resource Id. + [WirePath("properties.keyVaultId")] public ResourceIdentifier KeyVaultId { get; set; } /// Key Vault secret name. + [WirePath("properties.keyVaultSecretName")] public string KeyVaultSecretName { get; set; } /// Status of the Key Vault secret. + [WirePath("properties.keyVaultSecretStatus")] public KeyVaultSecretStatus? KeyVaultSecretStatus { get; } /// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + [WirePath("properties.serverFarmId")] public ResourceIdentifier ServerFarmId { get; set; } /// CNAME of the certificate to be issued via free certificate. + [WirePath("properties.canonicalName")] public string CanonicalName { get; set; } /// Method of domain validation for free cert. + [WirePath("properties.domainValidationMethod")] public string DomainValidationMethod { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppInsightsWebAppStackSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppInsightsWebAppStackSettings.cs index c729aadee4ad6..0ee62040fa34a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppInsightsWebAppStackSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppInsightsWebAppStackSettings.cs @@ -62,8 +62,10 @@ internal AppInsightsWebAppStackSettings(bool? isSupported, bool? isDefaultOff, I } /// <code>true</code> if remote Application Insights is supported for the stack; otherwise, <code>false</code>. + [WirePath("isSupported")] public bool? IsSupported { get; } /// <code>true</code> if Application Insights is disabled by default for the stack; otherwise, <code>false</code>. + [WirePath("isDefaultOff")] public bool? IsDefaultOff { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppLogsConfiguration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppLogsConfiguration.cs index 17aaf8eca3e73..c9517955c3d6e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppLogsConfiguration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppLogsConfiguration.cs @@ -62,8 +62,10 @@ internal AppLogsConfiguration(string destination, LogAnalyticsConfiguration logA } /// Gets or sets the destination. + [WirePath("destination")] public string Destination { get; set; } /// Gets or sets the log analytics configuration. + [WirePath("logAnalyticsConfiguration")] public LogAnalyticsConfiguration LogAnalyticsConfiguration { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppRegistration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppRegistration.cs index f103658446acd..8077c876a4d10 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppRegistration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppRegistration.cs @@ -62,8 +62,10 @@ internal AppRegistration(string appId, string appSecretSettingName, IDictionary< } /// The App ID of the app used for login. + [WirePath("appId")] public string AppId { get; set; } /// The app setting name that contains the app secret. + [WirePath("appSecretSettingName")] public string AppSecretSettingName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadAllowedPrincipals.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadAllowedPrincipals.cs index 53db4fe5ee73d..283bc25b8daa4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadAllowedPrincipals.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadAllowedPrincipals.cs @@ -65,8 +65,10 @@ internal AppServiceAadAllowedPrincipals(IList groups, IList iden } /// The list of the allowed groups. + [WirePath("groups")] public IList Groups { get; } /// The list of the allowed identities. + [WirePath("identities")] public IList Identities { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadLoginFlow.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadLoginFlow.cs index fb16991bd2522..b21f8337b2ed0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadLoginFlow.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadLoginFlow.cs @@ -70,8 +70,10 @@ internal AppServiceAadLoginFlow(IList loginParameters, bool? isWwwAuthen /// Login parameters to send to the OpenID Connect authorization endpoint when /// a user logs in. Each parameter must be in the form "key=value". /// + [WirePath("loginParameters")] public IList LoginParameters { get; } /// <code>true</code> if the www-authenticate provider should be omitted from the request; otherwise, <code>false</code>. + [WirePath("disableWWWAuthenticate")] public bool? IsWwwAuthenticateDisabled { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadProvider.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadProvider.cs index 16ca51a270b32..f5ece2266275d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadProvider.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadProvider.cs @@ -72,18 +72,23 @@ internal AppServiceAadProvider(bool? isEnabled, AppServiceAadRegistration regist } /// <code>false</code> if the Azure Active Directory provider should not be enabled despite the set registration; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the Azure Active Directory app registration. + [WirePath("registration")] public AppServiceAadRegistration Registration { get; set; } /// The configuration settings of the Azure Active Directory login flow. + [WirePath("login")] public AppServiceAadLoginFlow Login { get; set; } /// The configuration settings of the Azure Active Directory token validation flow. + [WirePath("validation")] public AppServiceAadValidation Validation { get; set; } /// /// Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party tooling. /// This is an internal flag primarily intended to support the Azure Management Portal. Users should not /// read or write to this property. /// + [WirePath("isAutoProvisioned")] public bool? IsAutoProvisioned { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadRegistration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadRegistration.cs index 08fc3ebba8841..5def760a415ae 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadRegistration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadRegistration.cs @@ -94,6 +94,7 @@ internal AppServiceAadRegistration(string openIdIssuer, string clientId, string /// This URI is a case-sensitive identifier for the token issuer. /// More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html /// + [WirePath("openIdIssuer")] public string OpenIdIssuer { get; set; } /// /// The Client ID of this relying party application, known as the client_id. @@ -101,23 +102,28 @@ internal AppServiceAadRegistration(string openIdIssuer, string clientId, string /// other 3rd party OpenID Connect providers. /// More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html /// + [WirePath("clientId")] public string ClientId { get; set; } /// The app setting name that contains the client secret of the relying party application. + [WirePath("clientSecretSettingName")] public string ClientSecretSettingName { get; set; } /// /// An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as /// a replacement for the Client Secret. It is also optional. /// + [WirePath("clientSecretCertificateThumbprint")] public string ClientSecretCertificateThumbprintString { get; set; } /// /// An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as /// a replacement for the Client Secret Certificate Thumbprint. It is also optional. /// + [WirePath("clientSecretCertificateSubjectAlternativeName")] public string ClientSecretCertificateSubjectAlternativeName { get; set; } /// /// An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as /// a replacement for the Client Secret Certificate Thumbprint. It is also optional. /// + [WirePath("clientSecretCertificateIssuer")] public string ClientSecretCertificateIssuer { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadValidation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadValidation.cs index 65854955d7d4c..353a57722852d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadValidation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadValidation.cs @@ -66,10 +66,13 @@ internal AppServiceAadValidation(JwtClaimChecks jwtClaimChecks, IList al } /// The configuration settings of the checks that should be made while validating the JWT Claims. + [WirePath("jwtClaimChecks")] public JwtClaimChecks JwtClaimChecks { get; set; } /// The list of audiences that can make successful authentication/authorization requests. + [WirePath("allowedAudiences")] public IList AllowedAudiences { get; } /// The configuration settings of the default authorization policy. + [WirePath("defaultAuthorizationPolicy")] public DefaultAuthorizationPolicy DefaultAuthorizationPolicy { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceApiDefinitionInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceApiDefinitionInfo.cs index c372f7fbc0c56..8a822a054eaae 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceApiDefinitionInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceApiDefinitionInfo.cs @@ -60,6 +60,7 @@ internal AppServiceApiDefinitionInfo(Uri uri, IDictionary se } /// The URL of the API definition. + [WirePath("url")] public Uri Uri { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAppleProvider.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAppleProvider.cs index fb48c76fec184..fbb980c18673a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAppleProvider.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAppleProvider.cs @@ -64,12 +64,15 @@ internal AppServiceAppleProvider(bool? isEnabled, AppServiceAppleRegistration re } /// <code>false</code> if the Apple provider should not be enabled despite the set registration; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the Apple registration. + [WirePath("registration")] public AppServiceAppleRegistration Registration { get; set; } /// The configuration settings of the login flow. internal LoginScopes Login { get; set; } /// A list of the scopes that should be requested while authenticating. + [WirePath("login.scopes")] public IList LoginScopes { get diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAppleRegistration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAppleRegistration.cs index 6a02e62352bd7..ada7347cf1bd6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAppleRegistration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAppleRegistration.cs @@ -62,8 +62,10 @@ internal AppServiceAppleRegistration(string clientId, string clientSecretSetting } /// The Client ID of the app used for login. + [WirePath("clientId")] public string ClientId { get; set; } /// The app setting name that contains the client secret. + [WirePath("clientSecretSettingName")] public string ClientSecretSettingName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceArmPlan.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceArmPlan.cs index 4899f4d5dbd48..8513f35eb5e83 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceArmPlan.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceArmPlan.cs @@ -68,14 +68,19 @@ internal AppServiceArmPlan(string name, string publisher, string product, string } /// The name. + [WirePath("name")] public string Name { get; } /// The publisher. + [WirePath("publisher")] public string Publisher { get; } /// The product. + [WirePath("product")] public string Product { get; } /// The promotion code. + [WirePath("promotionCode")] public string PromotionCode { get; } /// Version of product. + [WirePath("version")] public string Version { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBillingMeter.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBillingMeter.cs index b91a959792a40..48981ecdfa13f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBillingMeter.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBillingMeter.cs @@ -78,18 +78,25 @@ internal AppServiceBillingMeter(ResourceIdentifier id, string name, ResourceType } /// Meter GUID onboarded in Commerce. + [WirePath("properties.meterId")] public Guid? MeterId { get; set; } /// Azure Location of billable resource. + [WirePath("properties.billingLocation")] public AzureLocation? BillingLocation { get; set; } /// Short Name from App Service Azure pricing Page. + [WirePath("properties.shortName")] public string ShortName { get; set; } /// Friendly name of the meter. + [WirePath("properties.friendlyName")] public string FriendlyName { get; set; } /// App Service OS type meter used for. + [WirePath("properties.osType")] public string OSType { get; set; } /// Meter Multiplier. + [WirePath("properties.multiplier")] public double? Multiplier { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageApplicationLogsConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageApplicationLogsConfig.cs index 11eb177694cce..5a271286236d8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageApplicationLogsConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageApplicationLogsConfig.cs @@ -68,14 +68,17 @@ internal AppServiceBlobStorageApplicationLogsConfig(WebAppLogLevel? level, Uri s } /// Log level. + [WirePath("level")] public WebAppLogLevel? Level { get; set; } /// SAS url to a azure blob container with read/write/list/delete permissions. + [WirePath("sasUrl")] public Uri SasUri { get; set; } /// /// Retention in days. /// Remove blobs older than X days. /// 0 or lower means no retention. /// + [WirePath("retentionInDays")] public int? RetentionInDays { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageHttpLogsConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageHttpLogsConfig.cs index 30fe48b349f5c..30e581170f76b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageHttpLogsConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageHttpLogsConfig.cs @@ -68,14 +68,17 @@ internal AppServiceBlobStorageHttpLogsConfig(Uri sasUri, int? retentionInDays, b } /// SAS url to a azure blob container with read/write/list/delete permissions. + [WirePath("sasUrl")] public Uri SasUri { get; set; } /// /// Retention in days. /// Remove blobs older than X days. /// 0 or lower means no retention. /// + [WirePath("retentionInDays")] public int? RetentionInDays { get; set; } /// True if configuration is enabled, false if it is disabled and null if configuration is not set. + [WirePath("enabled")] public bool? IsEnabled { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageTokenStore.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageTokenStore.cs index c0286581ec6c9..fd242aa78b105 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageTokenStore.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceBlobStorageTokenStore.cs @@ -60,6 +60,7 @@ internal AppServiceBlobStorageTokenStore(string sasUrlSettingName, IDictionary The name of the app setting containing the SAS URL of the blob storage containing the tokens. + [WirePath("sasUrlSettingName")] public string SasUrlSettingName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateData.Serialization.cs index f934c0f603e2a..83d37e9456a1a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateData.Serialization.cs @@ -293,7 +293,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.cs index ad06d8763ff47..74ead050a257d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.cs @@ -76,22 +76,31 @@ internal AppServiceCertificateDetails(int? version, string serialNumber, string } /// Certificate Version. + [WirePath("version")] public int? Version { get; } /// Certificate Serial Number. + [WirePath("serialNumber")] public string SerialNumber { get; } /// Certificate Thumbprint. + [WirePath("thumbprint")] public string ThumbprintString { get; } /// Certificate Subject. + [WirePath("subject")] public string Subject { get; } /// Date Certificate is valid from. + [WirePath("notBefore")] public DateTimeOffset? NotBefore { get; } /// Date Certificate is valid to. + [WirePath("notAfter")] public DateTimeOffset? NotAfter { get; } /// Certificate Signature algorithm. + [WirePath("signatureAlgorithm")] public string SignatureAlgorithm { get; } /// Certificate Issuer. + [WirePath("issuer")] public string Issuer { get; } /// Raw certificate data. + [WirePath("rawData")] public string RawData { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.cs index 1c28207dd0095..c768852aad328 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.cs @@ -70,10 +70,13 @@ internal AppServiceCertificateEmail(ResourceIdentifier id, string name, Resource } /// Email id. + [WirePath("properties.emailId")] public string EmailId { get; set; } /// Time stamp. + [WirePath("properties.timeStamp")] public DateTimeOffset? TimeStamp { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderData.Serialization.cs index 051e07613cdad..3649bf995dec1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderData.Serialization.cs @@ -557,7 +557,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); @@ -645,7 +645,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Certificates) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.Serialization.cs index 175a65f8fb0bf..18db43b155f8f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.Serialization.cs @@ -560,7 +560,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Certificates) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs index ee4cf3919714e..987b9317d1dd0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs @@ -108,46 +108,67 @@ internal AppServiceCertificateOrderPatch(ResourceIdentifier id, string name, Res } /// State of the Key Vault secret. + [WirePath("properties.certificates")] public IDictionary Certificates { get; } /// Certificate distinguished name. + [WirePath("properties.distinguishedName")] public string DistinguishedName { get; set; } /// Domain verification token. + [WirePath("properties.domainVerificationToken")] public string DomainVerificationToken { get; } /// Duration in years (must be 1). + [WirePath("properties.validityInYears")] public int? ValidityInYears { get; set; } /// Certificate key size. + [WirePath("properties.keySize")] public int? KeySize { get; set; } /// Certificate product type. + [WirePath("properties.productType")] public CertificateProductType? ProductType { get; set; } /// <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>. + [WirePath("properties.autoRenew")] public bool? IsAutoRenew { get; set; } /// Status of certificate order. + [WirePath("properties.provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Current order status. + [WirePath("properties.status")] public CertificateOrderStatus? Status { get; } /// Signed certificate. + [WirePath("properties.signedCertificate")] public AppServiceCertificateDetails SignedCertificate { get; } /// Last CSR that was created for this order. + [WirePath("properties.csr")] public string Csr { get; set; } /// Intermediate certificate. + [WirePath("properties.intermediate")] public AppServiceCertificateDetails Intermediate { get; } /// Root certificate. + [WirePath("properties.root")] public AppServiceCertificateDetails Root { get; } /// Current serial number of the certificate. + [WirePath("properties.serialNumber")] public string SerialNumber { get; } /// Certificate last issuance time. + [WirePath("properties.lastCertificateIssuanceTime")] public DateTimeOffset? LastCertificateIssuanceOn { get; } /// Certificate expiration time. + [WirePath("properties.expirationTime")] public DateTimeOffset? ExpireOn { get; } /// <code>true</code> if private key is external; otherwise, <code>false</code>. + [WirePath("properties.isPrivateKeyExternal")] public bool? IsPrivateKeyExternal { get; } /// Reasons why App Service Certificate is not renewable at the current moment. + [WirePath("properties.appServiceCertificateNotRenewableReasons")] public IReadOnlyList AppServiceCertificateNotRenewableReasons { get; } /// Time stamp when the certificate would be auto renewed next. + [WirePath("properties.nextAutoRenewalTimeStamp")] public DateTimeOffset? NextAutoRenewalTimeStamp { get; } /// Contact info. + [WirePath("properties.contact")] public CertificateOrderContact Contact { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.cs index c9ef309b1143a..900a53d69be1c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.cs @@ -72,12 +72,16 @@ internal AppServiceCertificatePatch(ResourceIdentifier id, string name, Resource } /// Key Vault resource Id. + [WirePath("properties.keyVaultId")] public ResourceIdentifier KeyVaultId { get; set; } /// Key Vault secret name. + [WirePath("properties.keyVaultSecretName")] public string KeyVaultSecretName { get; set; } /// Status of the Key Vault secret. + [WirePath("properties.provisioningState")] public KeyVaultSecretStatus? ProvisioningState { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.cs index 40f4a46256f28..113c1f8393caa 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.cs @@ -65,10 +65,13 @@ internal AppServiceCertificateProperties(ResourceIdentifier keyVaultId, string k } /// Key Vault resource Id. + [WirePath("keyVaultId")] public ResourceIdentifier KeyVaultId { get; set; } /// Key Vault secret name. + [WirePath("keyVaultSecretName")] public string KeyVaultSecretName { get; set; } /// Status of the Key Vault secret. + [WirePath("provisioningState")] public KeyVaultSecretStatus? ProvisioningState { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceConfigurationDictionary.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceConfigurationDictionary.Serialization.cs index 265d514973a9f..13a1a57816ca5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceConfigurationDictionary.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceConfigurationDictionary.Serialization.cs @@ -214,7 +214,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Properties) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceConfigurationDictionary.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceConfigurationDictionary.cs index e6430f1c29d1a..12dfb0b5ccb1a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceConfigurationDictionary.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceConfigurationDictionary.cs @@ -69,8 +69,10 @@ internal AppServiceConfigurationDictionary(ResourceIdentifier id, string name, R } /// Settings. + [WirePath("properties")] public IDictionary Properties { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCorsSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCorsSettings.cs index 26743aed05fb4..0254d155c1b1e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCorsSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCorsSettings.cs @@ -74,12 +74,14 @@ internal AppServiceCorsSettings(IList allowedOrigins, bool? isCredential /// Gets or sets the list of origins that should be allowed to make cross-origin /// calls (for example: http://example.com:12345). Use "*" to allow all. /// + [WirePath("allowedOrigins")] public IList AllowedOrigins { get; } /// /// Gets or sets whether CORS requests with credentials are allowed. See /// https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials /// for more details. /// + [WirePath("supportCredentials")] public bool? IsCredentialsSupported { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDatabaseBackupSetting.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDatabaseBackupSetting.cs index b91287235ca94..be034c927fc9d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDatabaseBackupSetting.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDatabaseBackupSetting.cs @@ -76,15 +76,19 @@ internal AppServiceDatabaseBackupSetting() } /// Database type (e.g. SqlAzure / MySql). + [WirePath("databaseType")] public AppServiceDatabaseType DatabaseType { get; set; } /// Gets or sets the name. + [WirePath("name")] public string Name { get; set; } /// /// Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. /// This is used during restore with overwrite connection strings options. /// + [WirePath("connectionStringName")] public string ConnectionStringName { get; set; } /// Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one. + [WirePath("connectionString")] public string ConnectionString { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDeploymentLocations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDeploymentLocations.cs index 240a756d1a70f..c2c74777025ab 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDeploymentLocations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDeploymentLocations.cs @@ -71,10 +71,13 @@ internal AppServiceDeploymentLocations(IReadOnlyList locati } /// Available regions. + [WirePath("locations")] public IReadOnlyList Locations { get; } /// Available App Service Environments with full descriptions of the environments. + [WirePath("hostingEnvironments")] public IReadOnlyList HostingEnvironments { get; } /// Available App Service Environments with basic information. + [WirePath("hostingEnvironmentDeploymentInfos")] public IReadOnlyList HostingEnvironmentDeploymentInfos { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainData.Serialization.cs index 0c66310b5977e..b9049b655d7c4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainData.Serialization.cs @@ -574,7 +574,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifier.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifier.cs index 74b4ba59fa78b..2e17529dc9128 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifier.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifier.cs @@ -60,6 +60,7 @@ internal AppServiceDomainNameIdentifier(string name, IDictionary Name of the object. + [WirePath("name")] public string Name { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs index 2681a9e98cad4..49a65365890a8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs @@ -112,49 +112,70 @@ internal AppServiceDomainPatch(ResourceIdentifier id, string name, ResourceType } /// Administrative contact. + [WirePath("properties.contactAdmin")] public RegistrationContactInfo ContactAdmin { get; set; } /// Billing contact. + [WirePath("properties.contactBilling")] public RegistrationContactInfo ContactBilling { get; set; } /// Registrant contact. + [WirePath("properties.contactRegistrant")] public RegistrationContactInfo ContactRegistrant { get; set; } /// Technical contact. + [WirePath("properties.contactTech")] public RegistrationContactInfo ContactTech { get; set; } /// Domain registration status. + [WirePath("properties.registrationStatus")] public AppServiceDomainStatus? RegistrationStatus { get; } /// Domain provisioning state. + [WirePath("properties.provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Name servers. + [WirePath("properties.nameServers")] public IReadOnlyList NameServers { get; } /// <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>. + [WirePath("properties.privacy")] public bool? IsDomainPrivacyEnabled { get; set; } /// Domain creation timestamp. + [WirePath("properties.createdTime")] public DateTimeOffset? CreatedOn { get; } /// Domain expiration timestamp. + [WirePath("properties.expirationTime")] public DateTimeOffset? ExpireOn { get; } /// Timestamp when the domain was renewed last time. + [WirePath("properties.lastRenewedTime")] public DateTimeOffset? LastRenewedOn { get; } /// <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>. + [WirePath("properties.autoRenew")] public bool? IsAutoRenew { get; set; } /// /// <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and /// it is hosted on name servers Azure has programmatic access to. /// + [WirePath("properties.readyForDnsRecordManagement")] public bool? IsReadyForDnsRecordManagement { get; } /// All hostnames derived from the domain and assigned to Azure resources. + [WirePath("properties.managedHostNames")] public IReadOnlyList ManagedHostNames { get; } /// Legal agreement consent. + [WirePath("properties.consent")] public DomainPurchaseConsent Consent { get; set; } /// Reasons why domain is not renewable. + [WirePath("properties.domainNotRenewableReasons")] public IReadOnlyList DomainNotRenewableReasons { get; } /// Current DNS type. + [WirePath("properties.dnsType")] public AppServiceDnsType? DnsType { get; set; } /// Azure DNS Zone to use. + [WirePath("properties.dnsZoneId")] public string DnsZoneId { get; set; } /// Target DNS type (would be used for migration). + [WirePath("properties.targetDnsType")] public AppServiceDnsType? TargetDnsType { get; set; } /// Gets or sets the auth code. + [WirePath("properties.authCode")] public string AuthCode { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDependency.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDependency.cs index 88850e23470a7..c40e5162691e0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDependency.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDependency.cs @@ -64,8 +64,10 @@ internal AppServiceEndpointDependency(string domainName, IReadOnlyList The domain name of the dependency. + [WirePath("domainName")] public string DomainName { get; } /// The IP Addresses and Ports used when connecting to DomainName. + [WirePath("endpointDetails")] public IReadOnlyList EndpointDetails { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDetail.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDetail.cs index 84ee878c84f06..897a883de4207 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDetail.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDetail.cs @@ -67,12 +67,16 @@ internal AppServiceEndpointDetail(IPAddress ipAddress, int? port, double? latenc } /// An IP Address that Domain Name currently resolves to. + [WirePath("ipAddress")] public IPAddress IPAddress { get; } /// The port an endpoint is connected to. + [WirePath("port")] public int? Port { get; } /// The time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port. + [WirePath("latency")] public double? Latency { get; } /// Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. + [WirePath("isAccessible")] public bool? IsAccessible { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentAddressResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentAddressResult.cs index 98e453bfff503..46f95004cce20 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentAddressResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentAddressResult.cs @@ -77,14 +77,19 @@ internal AppServiceEnvironmentAddressResult(ResourceIdentifier id, string name, } /// Main public virtual IP. + [WirePath("properties.serviceIpAddress")] public IPAddress ServiceIPAddress { get; set; } /// Virtual Network internal IP address of the App Service Environment if it is in internal load-balancing mode. + [WirePath("properties.internalIpAddress")] public IPAddress InternalIPAddress { get; set; } /// IP addresses appearing on outbound connections. + [WirePath("properties.outboundIpAddresses")] public IList OutboundIPAddresses { get; } /// Additional virtual IPs. + [WirePath("properties.vipMappings")] public IList VirtualIPMappings { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentData.Serialization.cs index d326d8611b489..0e5d00d5719a1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentData.Serialization.cs @@ -504,7 +504,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentPatch.cs index 3fa11be063f6e..1617071c6e01e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentPatch.cs @@ -103,41 +103,58 @@ internal AppServiceEnvironmentPatch(ResourceIdentifier id, string name, Resource } /// Provisioning state of the App Service Environment. + [WirePath("properties.provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Current status of the App Service Environment. + [WirePath("properties.status")] public HostingEnvironmentStatus? Status { get; } /// Description of the Virtual Network. + [WirePath("properties.virtualNetwork")] public AppServiceVirtualNetworkProfile VirtualNetwork { get; set; } /// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. + [WirePath("properties.internalLoadBalancingMode")] public LoadBalancingMode? InternalLoadBalancingMode { get; set; } /// Front-end VM size, e.g. "Medium", "Large". + [WirePath("properties.multiSize")] public string MultiSize { get; set; } /// Number of front-end instances. + [WirePath("properties.multiRoleCount")] public int? MultiRoleCount { get; } /// Number of IP SSL addresses reserved for the App Service Environment. + [WirePath("properties.ipsslAddressCount")] public int? IPSslAddressCount { get; set; } /// DNS suffix of the App Service Environment. + [WirePath("properties.dnsSuffix")] public string DnsSuffix { get; set; } /// Maximum number of VMs in the App Service Environment. + [WirePath("properties.maximumNumberOfMachines")] public int? MaximumNumberOfMachines { get; } /// Scale factor for front-ends. + [WirePath("properties.frontEndScaleFactor")] public int? FrontEndScaleFactor { get; set; } /// /// <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available /// (most likely because NSG blocked the incoming traffic). /// + [WirePath("properties.suspended")] public bool? IsSuspended { get; } /// Custom settings for changing the behavior of the App Service Environment. + [WirePath("properties.clusterSettings")] public IList ClusterSettings { get; } /// User added ip ranges to whitelist on ASE db. + [WirePath("properties.userWhitelistedIpRanges")] public IList UserWhitelistedIPRanges { get; } /// Flag that displays whether an ASE has linux workers or not. + [WirePath("properties.hasLinuxWorkers")] public bool? HasLinuxWorkers { get; } /// Dedicated Host Count. + [WirePath("properties.dedicatedHostCount")] public int? DedicatedHostCount { get; set; } /// Whether or not this App Service Environment is zone-redundant. + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentProperties.cs index 56986e5f4e3d7..a986229540142 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentProperties.cs @@ -106,39 +106,55 @@ internal AppServiceEnvironmentProperties() } /// Provisioning state of the App Service Environment. + [WirePath("provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Current status of the App Service Environment. + [WirePath("status")] public HostingEnvironmentStatus? Status { get; } /// Description of the Virtual Network. + [WirePath("virtualNetwork")] public AppServiceVirtualNetworkProfile VirtualNetwork { get; set; } /// Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. + [WirePath("internalLoadBalancingMode")] public LoadBalancingMode? InternalLoadBalancingMode { get; set; } /// Front-end VM size, e.g. "Medium", "Large". + [WirePath("multiSize")] public string MultiSize { get; set; } /// Number of front-end instances. + [WirePath("multiRoleCount")] public int? MultiRoleCount { get; } /// Number of IP SSL addresses reserved for the App Service Environment. + [WirePath("ipsslAddressCount")] public int? IPSslAddressCount { get; set; } /// DNS suffix of the App Service Environment. + [WirePath("dnsSuffix")] public string DnsSuffix { get; set; } /// Maximum number of VMs in the App Service Environment. + [WirePath("maximumNumberOfMachines")] public int? MaximumNumberOfMachines { get; } /// Scale factor for front-ends. + [WirePath("frontEndScaleFactor")] public int? FrontEndScaleFactor { get; set; } /// /// <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available /// (most likely because NSG blocked the incoming traffic). /// + [WirePath("suspended")] public bool? IsSuspended { get; } /// Custom settings for changing the behavior of the App Service Environment. + [WirePath("clusterSettings")] public IList ClusterSettings { get; } /// User added ip ranges to whitelist on ASE db. + [WirePath("userWhitelistedIpRanges")] public IList UserWhitelistedIPRanges { get; } /// Flag that displays whether an ASE has linux workers or not. + [WirePath("hasLinuxWorkers")] public bool? HasLinuxWorkers { get; } /// Dedicated Host Count. + [WirePath("dedicatedHostCount")] public int? DedicatedHostCount { get; set; } /// Whether or not this App Service Environment is zone-redundant. + [WirePath("zoneRedundant")] public bool? IsZoneRedundant { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceFacebookProvider.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceFacebookProvider.cs index b9ce27ddbe729..e6f7349af5fcd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceFacebookProvider.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceFacebookProvider.cs @@ -66,14 +66,18 @@ internal AppServiceFacebookProvider(bool? isEnabled, AppRegistration registratio } /// <code>false</code> if the Facebook provider should not be enabled despite the set registration; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the app registration for the Facebook provider. + [WirePath("registration")] public AppRegistration Registration { get; set; } /// The version of the Facebook api to be used while logging in. + [WirePath("graphApiVersion")] public string GraphApiVersion { get; set; } /// The configuration settings of the login flow. internal LoginScopes Login { get; set; } /// A list of the scopes that should be requested while authenticating. + [WirePath("login.scopes")] public IList LoginScopes { get diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceForwardProxy.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceForwardProxy.cs index 8322104028d31..5b17ddf280f83 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceForwardProxy.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceForwardProxy.cs @@ -64,10 +64,13 @@ internal AppServiceForwardProxy(ForwardProxyConvention? convention, string custo } /// The convention used to determine the url of the request made. + [WirePath("convention")] public ForwardProxyConvention? Convention { get; set; } /// The name of the header containing the host of the request. + [WirePath("customHostHeaderName")] public string CustomHostHeaderName { get; set; } /// The name of the header containing the scheme of the request. + [WirePath("customProtoHeaderName")] public string CustomProtoHeaderName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGeoRegion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGeoRegion.cs index 99146e459c477..9c82b0412bcca 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGeoRegion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGeoRegion.cs @@ -72,12 +72,16 @@ internal AppServiceGeoRegion(ResourceIdentifier id, string name, ResourceType re } /// Region description. + [WirePath("properties.description")] public string Description { get; } /// Display name for region. + [WirePath("properties.displayName")] public string DisplayName { get; } /// Display name for region. + [WirePath("properties.orgDomain")] public string OrgDomain { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGitHubProvider.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGitHubProvider.cs index 1e420b869a281..809afc4e444a9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGitHubProvider.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGitHubProvider.cs @@ -64,12 +64,15 @@ internal AppServiceGitHubProvider(bool? isEnabled, ClientRegistration registrati } /// <code>false</code> if the GitHub provider should not be enabled despite the set registration; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the app registration for the GitHub provider. + [WirePath("registration")] public ClientRegistration Registration { get; set; } /// The configuration settings of the login flow. internal LoginScopes Login { get; set; } /// A list of the scopes that should be requested while authenticating. + [WirePath("login.scopes")] public IList LoginScopes { get diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGoogleProvider.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGoogleProvider.cs index 847feecc1accb..a155cc4687d2b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGoogleProvider.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceGoogleProvider.cs @@ -66,12 +66,15 @@ internal AppServiceGoogleProvider(bool? isEnabled, ClientRegistration registrati } /// <code>false</code> if the Google provider should not be enabled despite the set registration; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the app registration for the Google provider. + [WirePath("registration")] public ClientRegistration Registration { get; set; } /// The configuration settings of the login flow. internal LoginScopes Login { get; set; } /// A list of the scopes that should be requested while authenticating. + [WirePath("login.scopes")] public IList LoginScopes { get @@ -85,6 +88,7 @@ public IList LoginScopes /// The configuration settings of the Azure Active Directory token validation flow. internal AllowedAudiencesValidation Validation { get; set; } /// The configuration settings of the allowed list of audiences from which to validate the JWT token. + [WirePath("validation.allowedAudiences")] public IList ValidationAllowedAudiences { get diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs index ea04f66c3f34d..ee876e69edbb9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs @@ -72,16 +72,22 @@ internal AppServiceHostName(string name, IReadOnlyList siteNames, string } /// Name of the hostname. + [WirePath("name")] public string Name { get; } /// List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager. + [WirePath("siteNames")] public IReadOnlyList SiteNames { get; } /// Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name. + [WirePath("azureResourceName")] public string AzureResourceName { get; } /// Type of the Azure resource the hostname is assigned to. + [WirePath("azureResourceType")] public AppServiceResourceType? AzureResourceType { get; } /// Type of the DNS record. + [WirePath("customHostNameDnsRecordType")] public CustomHostNameDnsRecordType? CustomHostNameDnsRecordType { get; } /// Type of the hostname. + [WirePath("hostNameType")] public AppServiceHostNameType? HostNameType { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpLogsConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpLogsConfig.cs index 22bb4c3f22dd6..22e40f81c63e1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpLogsConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpLogsConfig.cs @@ -62,8 +62,10 @@ internal AppServiceHttpLogsConfig(FileSystemHttpLogsConfig fileSystem, AppServic } /// Http logs to file system configuration. + [WirePath("fileSystem")] public FileSystemHttpLogsConfig FileSystem { get; set; } /// Http logs to azure blob storage configuration. + [WirePath("azureBlobStorage")] public AppServiceBlobStorageHttpLogsConfig AzureBlobStorage { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpSettings.cs index 4e99d4a1f1dce..cfafa49170d3c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpSettings.cs @@ -64,10 +64,12 @@ internal AppServiceHttpSettings(bool? isHttpsRequired, AppServiceHttpSettingsRou } /// <code>false</code> if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, <code>true</code>. + [WirePath("requireHttps")] public bool? IsHttpsRequired { get; set; } /// The configuration settings of the paths HTTP requests. internal AppServiceHttpSettingsRoutes Routes { get; set; } /// The prefix that should precede all the authentication/authorization paths. + [WirePath("routes.apiPrefix")] public string RoutesApiPrefix { get => Routes is null ? default : Routes.ApiPrefix; @@ -80,6 +82,7 @@ public string RoutesApiPrefix } /// The configuration settings of a forward proxy used to make the requests. + [WirePath("forwardProxy")] public AppServiceForwardProxy ForwardProxy { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpSettingsRoutes.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpSettingsRoutes.cs index 0b0be3d15beb1..5747a791e749b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpSettingsRoutes.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHttpSettingsRoutes.cs @@ -60,6 +60,7 @@ internal AppServiceHttpSettingsRoutes(string apiPrefix, IDictionary The prefix that should precede all the authentication/authorization paths. + [WirePath("apiPrefix")] public string ApiPrefix { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.Serialization.cs index 280c2c5efcff8..c1bc05c5d983d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.Serialization.cs @@ -464,7 +464,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Headers) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs index 0d30ccfffcc8f..1b121282cbbd9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs @@ -109,24 +109,34 @@ internal AppServiceIPSecurityRestriction(string ipAddressOrCidr, string subnetMa /// CIDR notation such as ipv4/mask (leading bit match). For CIDR, /// SubnetMask property must not be specified. /// + [WirePath("ipAddress")] public string IPAddressOrCidr { get; set; } /// Subnet mask for the range of IP addresses the restriction is valid for. + [WirePath("subnetMask")] public string SubnetMask { get; set; } /// Virtual network resource id. + [WirePath("vnetSubnetResourceId")] public ResourceIdentifier VnetSubnetResourceId { get; set; } /// (internal) Vnet traffic tag. + [WirePath("vnetTrafficTag")] public int? VnetTrafficTag { get; set; } /// (internal) Subnet traffic tag. + [WirePath("subnetTrafficTag")] public int? SubnetTrafficTag { get; set; } /// Allow or Deny access for this IP range. + [WirePath("action")] public string Action { get; set; } /// Defines what this IP filter will be used for. This is to support IP filtering on proxies. + [WirePath("tag")] public AppServiceIPFilterTag? Tag { get; set; } /// Priority of IP restriction rule. + [WirePath("priority")] public int? Priority { get; set; } /// IP restriction rule name. + [WirePath("name")] public string Name { get; set; } /// IP restriction rule description. + [WirePath("description")] public string Description { get; set; } /// /// IP restriction rule headers. @@ -146,6 +156,7 @@ internal AppServiceIPSecurityRestriction(string ipAddressOrCidr, string subnetMa /// X-Azure-FDID and X-FD-HealthProbe. /// The matching logic is exact match. /// + [WirePath("headers")] public IDictionary> Headers { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIdentityProviders.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIdentityProviders.Serialization.cs index 037b1e989dd94..cfd2f749ebfc3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIdentityProviders.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIdentityProviders.Serialization.cs @@ -364,7 +364,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in CustomOpenIdConnectProviders) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 4, false); } builder.AppendLine(" }"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIdentityProviders.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIdentityProviders.cs index 19adda317139c..7e13f2c098cd3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIdentityProviders.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIdentityProviders.cs @@ -81,25 +81,34 @@ internal AppServiceIdentityProviders(AppServiceAadProvider azureActiveDirectory, } /// The configuration settings of the Azure Active directory provider. + [WirePath("azureActiveDirectory")] public AppServiceAadProvider AzureActiveDirectory { get; set; } /// The configuration settings of the Facebook provider. + [WirePath("facebook")] public AppServiceFacebookProvider Facebook { get; set; } /// The configuration settings of the GitHub provider. + [WirePath("gitHub")] public AppServiceGitHubProvider GitHub { get; set; } /// The configuration settings of the Google provider. + [WirePath("google")] public AppServiceGoogleProvider Google { get; set; } /// The configuration settings of the legacy Microsoft Account provider. + [WirePath("legacyMicrosoftAccount")] public LegacyMicrosoftAccount LegacyMicrosoftAccount { get; set; } /// The configuration settings of the Twitter provider. + [WirePath("twitter")] public AppServiceTwitterProvider Twitter { get; set; } /// The configuration settings of the Apple provider. + [WirePath("apple")] public AppServiceAppleProvider Apple { get; set; } /// The configuration settings of the Azure Static Web Apps provider. + [WirePath("azureStaticWebApps")] public AppServiceStaticWebAppsProvider AzureStaticWebApps { get; set; } /// /// The map of the name of the alias of each custom Open ID Connect provider to the /// configuration settings of the custom Open ID Connect provider. /// + [WirePath("customOpenIdConnectProviders")] public IDictionary CustomOpenIdConnectProviders { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceNameValuePair.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceNameValuePair.cs index 0fb74ace2ffd0..bc47d708e48b5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceNameValuePair.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceNameValuePair.cs @@ -62,8 +62,10 @@ internal AppServiceNameValuePair(string name, string value, IDictionary Pair name. + [WirePath("name")] public string Name { get; set; } /// Pair value. + [WirePath("value")] public string Value { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperation.cs index 6c2863eb92b52..f7020e0786188 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperation.cs @@ -77,20 +77,28 @@ internal AppServiceOperation(string id, string name, AppServiceOperationStatus? } /// Operation ID. + [WirePath("id")] public string Id { get; } /// Operation name. + [WirePath("name")] public string Name { get; } /// The current status of the operation. + [WirePath("status")] public AppServiceOperationStatus? Status { get; } /// Any errors associate with the operation. + [WirePath("errors")] public IReadOnlyList Errors { get; } /// Time when operation has started. + [WirePath("createdTime")] public DateTimeOffset? CreatedOn { get; } /// Time when operation has been updated. + [WirePath("modifiedTime")] public DateTimeOffset? ModifiedOn { get; } /// Time when operation will expire. + [WirePath("expirationTime")] public DateTimeOffset? ExpireOn { get; } /// Applicable only for stamp operation ids. + [WirePath("geoMasterOperationId")] public Guid? GeoMasterOperationId { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanData.Serialization.cs index 7984d678584a0..8e673570418f1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanData.Serialization.cs @@ -629,7 +629,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.cs index 8a556545fb826..b68b0fc9218c6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.cs @@ -116,56 +116,79 @@ internal AppServicePlanPatch(ResourceIdentifier id, string name, ResourceType re } /// Target worker tier assigned to the App Service plan. + [WirePath("properties.workerTierName")] public string WorkerTierName { get; set; } /// App Service plan status. + [WirePath("properties.status")] public AppServicePlanStatus? Status { get; } /// App Service plan subscription. + [WirePath("properties.subscription")] public string Subscription { get; } /// Specification for the App Service Environment to use for the App Service plan. + [WirePath("properties.hostingEnvironmentProfile")] public HostingEnvironmentProfile HostingEnvironmentProfile { get; set; } /// Maximum number of instances that can be assigned to this App Service plan. + [WirePath("properties.maximumNumberOfWorkers")] public int? MaximumNumberOfWorkers { get; } /// Geographical location for the App Service plan. + [WirePath("properties.geoRegion")] public string GeoRegion { get; } /// /// If <code>true</code>, apps assigned to this App Service plan can be scaled independently. /// If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. /// + [WirePath("properties.perSiteScaling")] public bool? IsPerSiteScaling { get; set; } /// ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku. + [WirePath("properties.elasticScaleEnabled")] public bool? IsElasticScaleEnabled { get; set; } /// Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. + [WirePath("properties.maximumElasticWorkerCount")] public int? MaximumElasticWorkerCount { get; set; } /// Number of apps assigned to this App Service plan. + [WirePath("properties.numberOfSites")] public int? NumberOfSites { get; } /// If <code>true</code>, this App Service Plan owns spot instances. + [WirePath("properties.isSpot")] public bool? IsSpot { get; set; } /// The time when the server farm expires. Valid only if it is a spot server farm. + [WirePath("properties.spotExpirationTime")] public DateTimeOffset? SpotExpirationOn { get; set; } /// The time when the server farm free offer expires. + [WirePath("properties.freeOfferExpirationTime")] public DateTimeOffset? FreeOfferExpirationOn { get; set; } /// Resource group of the App Service plan. + [WirePath("properties.resourceGroup")] public string ResourceGroup { get; } /// If Linux app service plan <code>true</code>, <code>false</code> otherwise. + [WirePath("properties.reserved")] public bool? IsReserved { get; set; } /// Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + [WirePath("properties.isXenon")] public bool? IsXenon { get; set; } /// If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + [WirePath("properties.hyperV")] public bool? IsHyperV { get; set; } /// Scaling worker count. + [WirePath("properties.targetWorkerCount")] public int? TargetWorkerCount { get; set; } /// Scaling worker size ID. + [WirePath("properties.targetWorkerSizeId")] public int? TargetWorkerSizeId { get; set; } /// Provisioning state of the App Service Plan. + [WirePath("properties.provisioningState")] public ProvisioningState? ProvisioningState { get; } /// Specification for the Kubernetes Environment to use for the App Service plan. + [WirePath("properties.kubeEnvironmentProfile")] public KubeEnvironmentProfile KubeEnvironmentProfile { get; set; } /// /// If <code>true</code>, this App Service Plan will perform availability zone balancing. /// If <code>false</code>, this App Service Plan will not perform availability zone balancing. /// + [WirePath("properties.zoneRedundant")] public bool? IsZoneRedundant { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePoolSkuInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePoolSkuInfo.cs index 8b44bbf2d00f8..b9c78e89d38fa 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePoolSkuInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePoolSkuInfo.cs @@ -65,10 +65,13 @@ internal AppServicePoolSkuInfo(ResourceType? resourceType, AppServiceSkuDescript } /// Resource type that this SKU applies to. + [WirePath("resourceType")] public ResourceType? ResourceType { get; } /// Name and tier of the SKU. + [WirePath("sku")] public AppServiceSkuDescription Sku { get; } /// Min, max, and default scale values of the SKU. + [WirePath("capacity")] public AppServiceSkuCapacity Capacity { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceData.cs index 4ce3594a1a03b..c5199d1de032c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceData.cs @@ -76,6 +76,7 @@ internal AppServicePrivateLinkResourceData() } /// Properties of a private link resource. + [WirePath("properties")] public AppServicePrivateLinkResourceProperties Properties { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceProperties.cs index 0e806420a2245..b0fd648a9f507 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceProperties.cs @@ -67,10 +67,13 @@ internal AppServicePrivateLinkResourceProperties(string groupId, IReadOnlyList GroupId of a private link resource. + [WirePath("groupId")] public string GroupId { get; } /// RequiredMembers of a private link resource. + [WirePath("requiredMembers")] public IReadOnlyList RequiredMembers { get; } /// RequiredZoneNames of a private link resource. + [WirePath("requiredZoneNames")] public IReadOnlyList RequiredZoneNames { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceRecommendation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceRecommendation.cs index 9d6228a88f82d..1de93751053f3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceRecommendation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceRecommendation.cs @@ -114,52 +114,76 @@ internal AppServiceRecommendation(ResourceIdentifier id, string name, ResourceTy } /// Timestamp when this instance was created. + [WirePath("properties.creationTime")] public DateTimeOffset? CreatedOn { get; set; } /// A GUID value that each recommendation object is associated with. + [WirePath("properties.recommendationId")] public Guid? RecommendationId { get; set; } /// Full ARM resource ID string that this recommendation object is associated with. + [WirePath("properties.resourceId")] public ResourceIdentifier ResourceId { get; set; } /// Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site. + [WirePath("properties.resourceScope")] public ResourceScopeType? ResourceScope { get; set; } /// Unique name of the rule. + [WirePath("properties.ruleName")] public string RuleName { get; set; } /// UI friendly name of the rule (may not be unique). + [WirePath("properties.displayName")] public string DisplayName { get; set; } /// Recommendation text. + [WirePath("properties.message")] public string Message { get; set; } /// Level indicating how critical this recommendation can impact. + [WirePath("properties.level")] public NotificationLevel? Level { get; set; } /// List of channels that this recommendation can apply. + [WirePath("properties.channels")] public RecommendationChannel? Channels { get; set; } /// The list of category tags that this recommendation belongs to. + [WirePath("properties.categoryTags")] public IReadOnlyList CategoryTags { get; } /// Name of action recommended by this object. + [WirePath("properties.actionName")] public string ActionName { get; set; } /// True if this recommendation is still valid (i.e. "actionable"). False if it is invalid. + [WirePath("properties.enabled")] public int? Enabled { get; set; } /// The list of states of this recommendation. If it's null then it should be considered "Active". + [WirePath("properties.states")] public IList States { get; } /// The beginning time in UTC of a range that the recommendation refers to. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; set; } /// The end time in UTC of a range that the recommendation refers to. + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; set; } /// When to notify this recommendation next in UTC. Null means that this will never be notified anymore. + [WirePath("properties.nextNotificationTime")] public DateTimeOffset? NextNotificationOn { get; set; } /// Date and time in UTC when this notification expires. + [WirePath("properties.notificationExpirationTime")] public DateTimeOffset? NotificationExpirationOn { get; set; } /// Last timestamp in UTC this instance was actually notified. Null means that this recommendation hasn't been notified yet. + [WirePath("properties.notifiedTime")] public DateTimeOffset? NotifiedOn { get; set; } /// A metric value measured by the rule. + [WirePath("properties.score")] public double? Score { get; set; } /// True if this is associated with a dynamically added rule. + [WirePath("properties.isDynamic")] public bool? IsDynamic { get; set; } /// Extension name of the portal if exists. + [WirePath("properties.extensionName")] public string ExtensionName { get; set; } /// Deep link to a blade on the portal. + [WirePath("properties.bladeName")] public string BladeName { get; set; } /// Forward link to an external document associated with the rule. + [WirePath("properties.forwardLink")] public string ForwardLink { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuCapability.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuCapability.cs index 6671b866e724c..fef1ffff25edf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuCapability.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuCapability.cs @@ -64,10 +64,13 @@ internal AppServiceSkuCapability(string name, string value, string reason, IDict } /// Name of the SKU capability. + [WirePath("name")] public string Name { get; set; } /// Value of the SKU capability. + [WirePath("value")] public string Value { get; set; } /// Reason of the SKU capability. + [WirePath("reason")] public string Reason { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuCapacity.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuCapacity.cs index c336bab071988..362ef0025bf26 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuCapacity.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuCapacity.cs @@ -68,14 +68,19 @@ internal AppServiceSkuCapacity(int? minimum, int? maximum, int? elasticMaximum, } /// Minimum number of workers for this App Service plan SKU. + [WirePath("minimum")] public int? Minimum { get; set; } /// Maximum number of workers for this App Service plan SKU. + [WirePath("maximum")] public int? Maximum { get; set; } /// Maximum number of Elastic workers for this App Service plan SKU. + [WirePath("elasticMaximum")] public int? ElasticMaximum { get; set; } /// Default number of workers for this App Service plan SKU. + [WirePath("default")] public int? Default { get; set; } /// Available scale configurations for an App Service plan. + [WirePath("scaleType")] public string ScaleType { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuDescription.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuDescription.cs index 70c21a52b7983..478cf198eaaf0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuDescription.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuDescription.cs @@ -77,20 +77,28 @@ internal AppServiceSkuDescription(string name, string tier, string size, string } /// Name of the resource SKU. + [WirePath("name")] public string Name { get; set; } /// Service tier of the resource SKU. + [WirePath("tier")] public string Tier { get; set; } /// Size specifier of the resource SKU. + [WirePath("size")] public string Size { get; set; } /// Family code of the resource SKU. + [WirePath("family")] public string Family { get; set; } /// Current number of instances assigned to the resource. + [WirePath("capacity")] public int? Capacity { get; set; } /// Min, max, and default scale values of the SKU. + [WirePath("skuCapacity")] public AppServiceSkuCapacity SkuCapacity { get; set; } /// Locations of the SKU. + [WirePath("locations")] public IList Locations { get; } /// Capabilities of the SKU, e.g., is traffic manager enabled?. + [WirePath("capabilities")] public IList Capabilities { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuResult.cs index 71f387b0ad51b..70549940e6a2f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuResult.cs @@ -64,8 +64,10 @@ internal AppServiceSkuResult(ResourceType? resourceType, IReadOnlyList Resource type that this SKU applies to. + [WirePath("resourceType")] public ResourceType? ResourceType { get; } /// List of SKUs the subscription is able to use. + [WirePath("skus")] public IReadOnlyList Skus { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStaticWebAppsProvider.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStaticWebAppsProvider.cs index c9f9809d19103..bcd41c6c09b7a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStaticWebAppsProvider.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStaticWebAppsProvider.cs @@ -62,10 +62,12 @@ internal AppServiceStaticWebAppsProvider(bool? isEnabled, AppServiceStaticWebApp } /// <code>false</code> if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the Azure Static Web Apps registration. internal AppServiceStaticWebAppsRegistration Registration { get; set; } /// The Client ID of the app used for login. + [WirePath("registration.clientId")] public string RegistrationClientId { get => Registration is null ? default : Registration.ClientId; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStaticWebAppsRegistration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStaticWebAppsRegistration.cs index 59e55e40dfb55..e6e8fe6d56502 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStaticWebAppsRegistration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStaticWebAppsRegistration.cs @@ -60,6 +60,7 @@ internal AppServiceStaticWebAppsRegistration(string clientId, IDictionary The Client ID of the app used for login. + [WirePath("clientId")] public string ClientId { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStatusInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStatusInfo.cs index a9b7839bab3b5..b3734db47f039 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStatusInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStatusInfo.cs @@ -62,8 +62,10 @@ internal AppServiceStatusInfo(string message, DetectorInsightStatus? statusId, I } /// Descriptive message. + [WirePath("message")] public string Message { get; set; } /// Level of the most severe insight generated by the detector. + [WirePath("statusId")] public DetectorInsightStatus? StatusId { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageAccessInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageAccessInfo.cs index 038f82532aeee..825ca9507713c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageAccessInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceStorageAccessInfo.cs @@ -70,16 +70,22 @@ internal AppServiceStorageAccessInfo(AppServiceStorageType? storageType, string } /// Type of storage. + [WirePath("type")] public AppServiceStorageType? StorageType { get; set; } /// Name of the storage account. + [WirePath("accountName")] public string AccountName { get; set; } /// Name of the file share (container name, for Blob storage). + [WirePath("shareName")] public string ShareName { get; set; } /// Access key for the storage account. + [WirePath("accessKey")] public string AccessKey { get; set; } /// Path to mount the storage within the site's runtime environment. + [WirePath("mountPath")] public string MountPath { get; set; } /// State of the storage account. + [WirePath("state")] public AppServiceStorageAccountState? State { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTableStorageApplicationLogsConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTableStorageApplicationLogsConfig.cs index 4ebf4ee3ac1a8..25c7f66078f2e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTableStorageApplicationLogsConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTableStorageApplicationLogsConfig.cs @@ -73,8 +73,10 @@ internal AppServiceTableStorageApplicationLogsConfig() } /// Log level. + [WirePath("level")] public WebAppLogLevel? Level { get; set; } /// SAS URL to an Azure table with add/query/delete permissions. + [WirePath("sasUrl")] public string SasUriString { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTokenStore.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTokenStore.cs index f3e49e2acf469..e27c0222abed9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTokenStore.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTokenStore.cs @@ -75,15 +75,18 @@ internal AppServiceTokenStore(bool? isEnabled, double? tokenRefreshExtensionHour /// <code>true</code> to durably store platform-specific security tokens that are obtained during login flows; otherwise, <code>false</code>. /// The default is <code>false</code>. /// + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// /// The number of hours after session token expiration that a session token can be used to /// call the token refresh API. The default is 72 hours. /// + [WirePath("tokenRefreshExtensionHours")] public double? TokenRefreshExtensionHours { get; set; } /// The configuration settings of the storage of the tokens if a file system is used. internal FileSystemTokenStore FileSystem { get; set; } /// The directory in which the tokens will be stored. + [WirePath("fileSystem.directory")] public string FileSystemDirectory { get => FileSystem is null ? default : FileSystem.Directory; @@ -98,6 +101,7 @@ public string FileSystemDirectory /// The configuration settings of the storage of the tokens if blob storage is used. internal AppServiceBlobStorageTokenStore AzureBlobStorage { get; set; } /// The name of the app setting containing the SAS URL of the blob storage containing the tokens. + [WirePath("azureBlobStorage.sasUrlSettingName")] public string AzureBlobStorageSasUrlSettingName { get => AzureBlobStorage is null ? default : AzureBlobStorage.SasUrlSettingName; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTwitterProvider.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTwitterProvider.cs index a52962ff7fac1..470b64167a4d6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTwitterProvider.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceTwitterProvider.cs @@ -62,8 +62,10 @@ internal AppServiceTwitterProvider(bool? isEnabled, TwitterRegistration registra } /// <code>false</code> if the Twitter provider should not be enabled despite the set registration; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the app registration for the Twitter provider. + [WirePath("registration")] public TwitterRegistration Registration { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceUsage.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceUsage.cs index cfbe973a5eb54..b80dd79b6fefe 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceUsage.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceUsage.cs @@ -82,22 +82,31 @@ internal AppServiceUsage(ResourceIdentifier id, string name, ResourceType resour } /// Friendly name shown in the UI. + [WirePath("properties.displayName")] public string DisplayName { get; } /// Name of the quota resource. + [WirePath("properties.resourceName")] public string ResourceName { get; } /// Units of measurement for the quota resource. + [WirePath("properties.unit")] public string Unit { get; } /// The current value of the resource counter. + [WirePath("properties.currentValue")] public long? CurrentValue { get; } /// The resource limit. + [WirePath("properties.limit")] public long? Limit { get; } /// Next reset time for the resource counter. + [WirePath("properties.nextResetTime")] public DateTimeOffset? NextResetOn { get; } /// Compute mode used for this usage. + [WirePath("properties.computeMode")] public ComputeModeOption? ComputeMode { get; } /// Site mode used for this usage. + [WirePath("properties.siteMode")] public string SiteMode { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceValidateContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceValidateContent.cs index 98e8f75d73ae3..e77bfd09c7ea5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceValidateContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceValidateContent.cs @@ -107,38 +107,55 @@ internal AppServiceValidateContent() } /// Resource name to verify. + [WirePath("name")] public string Name { get; } /// Resource type used for verification. + [WirePath("type")] public ValidateResourceType ValidateResourceType { get; } /// Expected location of the resource. + [WirePath("location")] public AzureLocation Location { get; } /// ARM resource ID of an App Service plan that would host the app. + [WirePath("properties.serverFarmId")] public ResourceIdentifier ServerFarmId { get; set; } /// Name of the target SKU for the App Service plan. + [WirePath("properties.skuName")] public string SkuName { get; set; } /// <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>. + [WirePath("properties.needLinuxWorkers")] public bool? NeedLinuxWorkers { get; set; } /// <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>. + [WirePath("properties.isSpot")] public bool? IsSpot { get; set; } /// Target capacity of the App Service plan (number of VMs). + [WirePath("properties.capacity")] public int? Capacity { get; set; } /// Name of App Service Environment where app or App Service plan should be created. + [WirePath("properties.hostingEnvironment")] public string HostingEnvironment { get; set; } /// <code>true</code> if App Service plan is running as a windows container. + [WirePath("properties.isXenon")] public bool? IsXenon { get; set; } /// Base URL of the container registry. + [WirePath("properties.containerRegistryBaseUrl")] public Uri ContainerRegistryBaseUri { get; set; } /// Username for to access the container registry. + [WirePath("properties.containerRegistryUsername")] public string ContainerRegistryUsername { get; set; } /// Password for to access the container registry. + [WirePath("properties.containerRegistryPassword")] public string ContainerRegistryPassword { get; set; } /// Repository name (image name). + [WirePath("properties.containerImageRepository")] public string ContainerImageRepository { get; set; } /// Image tag. + [WirePath("properties.containerImageTag")] public string ContainerImageTag { get; set; } /// Platform (windows or linux). + [WirePath("properties.containerImagePlatform")] public string ContainerImagePlatform { get; set; } /// App Service Environment Properties. + [WirePath("properties.appServiceEnvironment")] public AppServiceEnvironmentProperties AppServiceEnvironment { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceValidateResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceValidateResult.cs index 5a4addd008c1f..72a38c11725c0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceValidateResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceValidateResult.cs @@ -62,8 +62,10 @@ internal AppServiceValidateResult(string status, ValidateResponseError error, ID } /// Result of validation. + [WirePath("status")] public string Status { get; } /// Error details for the case when validation fails. + [WirePath("error")] public ValidateResponseError Error { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProfile.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProfile.cs index 8906c52d87a0f..e53668cced7b1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProfile.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProfile.cs @@ -77,12 +77,16 @@ internal AppServiceVirtualNetworkProfile() } /// Resource id of the Virtual Network. + [WirePath("id")] public ResourceIdentifier Id { get; set; } /// Name of the Virtual Network (read-only). + [WirePath("name")] public string Name { get; } /// Resource type of the Virtual Network (read-only). + [WirePath("type")] public ResourceType? ResourceType { get; } /// Subnet within the Virtual Network. + [WirePath("subnet")] public string Subnet { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProperties.cs index 351a228a0243b..4f0372575cd59 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProperties.cs @@ -77,21 +77,28 @@ internal AppServiceVirtualNetworkProperties(ResourceIdentifier vnetResourceId, s } /// The Virtual Network's resource ID. + [WirePath("vnetResourceId")] public ResourceIdentifier VnetResourceId { get; } /// The client certificate thumbprint. + [WirePath("certThumbprint")] public string CertThumbprintString { get; } /// /// A certificate file (.cer) blob containing the public key of the private key used to authenticate a /// Point-To-Site VPN connection. /// + [WirePath("certBlob")] public string CertBlob { get; } /// The routes that this Virtual Network connection uses. + [WirePath("routes")] public IReadOnlyList Routes { get; } /// <code>true</code> if a resync is required; otherwise, <code>false</code>. + [WirePath("resyncRequired")] public bool? IsResyncRequired { get; } /// DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses. + [WirePath("dnsServers")] public string DnsServers { get; } /// Flag that is used to denote if this is VNET injection. + [WirePath("isSwift")] public bool? IsSwift { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkRoute.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkRoute.cs index 7bf6ef7268f5c..4492cbe96c398 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkRoute.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkRoute.cs @@ -79,8 +79,10 @@ internal AppServiceVirtualNetworkRoute(ResourceIdentifier id, string name, Resou } /// The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified. + [WirePath("properties.startAddress")] public string StartAddress { get; set; } /// The ending address for this route. If the start address is specified in CIDR notation, this must be omitted. + [WirePath("properties.endAddress")] public string EndAddress { get; set; } /// /// The type of route this is: @@ -90,8 +92,10 @@ internal AppServiceVirtualNetworkRoute(ResourceIdentifier id, string name, Resou /// /// These values will be used for syncing an app's routes with those from a Virtual Network. /// + [WirePath("properties.routeType")] public AppServiceVirtualNetworkRouteType? RouteType { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkValidationContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkValidationContent.cs index 460956775784b..259bd6a4ee3d8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkValidationContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkValidationContent.cs @@ -74,14 +74,19 @@ internal AppServiceVirtualNetworkValidationContent(ResourceIdentifier id, string } /// The Resource Group of the VNET to be validated. + [WirePath("properties.vnetResourceGroup")] public string VnetResourceGroup { get; set; } /// The name of the VNET to be validated. + [WirePath("properties.vnetName")] public string VnetName { get; set; } /// The subnet name to be validated. + [WirePath("properties.vnetSubnetName")] public string VnetSubnetName { get; set; } /// The ARM Resource ID of the subnet to validate. + [WirePath("properties.subnetResourceId")] public ResourceIdentifier SubnetResourceId { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppSnapshot.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppSnapshot.cs index c77fcdf50f2ea..1f0b039fa1fb4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppSnapshot.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppSnapshot.cs @@ -68,8 +68,10 @@ internal AppSnapshot(ResourceIdentifier id, string name, ResourceType resourceTy } /// The time the snapshot was taken. + [WirePath("properties.time")] public string Time { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationLogsConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationLogsConfig.cs index f55fe544626bd..cfa4fda06b159 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationLogsConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationLogsConfig.cs @@ -66,6 +66,7 @@ internal ApplicationLogsConfig(FileSystemApplicationLogsConfig fileSystem, AppSe /// Application logs to file system configuration. internal FileSystemApplicationLogsConfig FileSystem { get; set; } /// Log level. + [WirePath("fileSystem.level")] public WebAppLogLevel? FileSystemLevel { get => FileSystem is null ? default : FileSystem.Level; @@ -78,8 +79,10 @@ public WebAppLogLevel? FileSystemLevel } /// Application logs to azure table storage configuration. + [WirePath("azureTableStorage")] public AppServiceTableStorageApplicationLogsConfig AzureTableStorage { get; set; } /// Application logs to blob storage configuration. + [WirePath("azureBlobStorage")] public AppServiceBlobStorageApplicationLogsConfig AzureBlobStorage { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStack.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStack.cs index 2d7ee93c7be4e..f995be2651c4a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStack.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStack.cs @@ -74,16 +74,22 @@ internal ApplicationStack(string name, string display, string dependency, IList< } /// Application stack name. + [WirePath("name")] public string Name { get; set; } /// Application stack display name. + [WirePath("display")] public string Display { get; set; } /// Application stack dependency. + [WirePath("dependency")] public string Dependency { get; set; } /// List of major versions available. + [WirePath("majorVersions")] public IList MajorVersions { get; } /// List of frameworks associated with application stack. + [WirePath("frameworks")] public IList Frameworks { get; } /// <code>true</code> if this is the stack is deprecated; otherwise, <code>false</code>. + [WirePath("isDeprecated")] public IList IsDeprecated { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStackResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStackResource.cs index ac5f07c8f7e36..6ba89cf2f8408 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStackResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStackResource.cs @@ -81,18 +81,25 @@ internal ApplicationStackResource(ResourceIdentifier id, string name, ResourceTy } /// Application stack name. + [WirePath("properties.name")] public string StackName { get; set; } /// Application stack display name. + [WirePath("properties.display")] public string Display { get; set; } /// Application stack dependency. + [WirePath("properties.dependency")] public string Dependency { get; set; } /// List of major versions available. + [WirePath("properties.majorVersions")] public IList MajorVersions { get; } /// List of frameworks associated with application stack. + [WirePath("properties.frameworks")] public IList Frameworks { get; } /// <code>true</code> if this is the stack is deprecated; otherwise, <code>false</code>. + [WirePath("properties.isDeprecated")] public IList IsDeprecated { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ArcConfiguration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ArcConfiguration.cs index 326fc2fcaf616..934c48ee27755 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ArcConfiguration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ArcConfiguration.cs @@ -72,18 +72,24 @@ internal ArcConfiguration(ArtifactStorageType? artifactsStorageType, string arti } /// Gets or sets the artifacts storage type. + [WirePath("artifactsStorageType")] public ArtifactStorageType? ArtifactsStorageType { get; set; } /// Gets or sets the artifact storage class name. + [WirePath("artifactStorageClassName")] public string ArtifactStorageClassName { get; set; } /// Gets or sets the artifact storage mount path. + [WirePath("artifactStorageMountPath")] public string ArtifactStorageMountPath { get; set; } /// Gets or sets the artifact storage node name. + [WirePath("artifactStorageNodeName")] public string ArtifactStorageNodeName { get; set; } /// Gets or sets the artifact storage access mode. + [WirePath("artifactStorageAccessMode")] public string ArtifactStorageAccessMode { get; set; } /// Gets or sets the front end service configuration. internal FrontEndConfiguration FrontEndServiceConfiguration { get; set; } /// Gets or sets the front end service kind. + [WirePath("frontEndServiceConfiguration.kind")] public FrontEndServiceType? FrontEndServiceKind { get => FrontEndServiceConfiguration is null ? default : FrontEndServiceConfiguration.Kind; @@ -96,6 +102,7 @@ public FrontEndServiceType? FrontEndServiceKind } /// Gets or sets the kube config. + [WirePath("kubeConfig")] public string KubeConfig { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AuthPlatform.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AuthPlatform.cs index 4eae51e614402..d59178657e789 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AuthPlatform.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AuthPlatform.cs @@ -70,16 +70,19 @@ internal AuthPlatform(bool? isEnabled, string runtimeVersion, string configFileP } /// <code>true</code> if the Authentication / Authorization feature is enabled for the current app; otherwise, <code>false</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// /// The RuntimeVersion of the Authentication / Authorization feature in use for the current app. /// The setting in this value can control the behavior of certain features in the Authentication / Authorization module. /// + [WirePath("runtimeVersion")] public string RuntimeVersion { get; set; } /// /// The path of the config file containing auth settings if they come from a file. /// If the path is relative, base will the site's root directory. /// + [WirePath("configFilePath")] public string ConfigFilePath { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealActions.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealActions.cs index 610e6f7d5a656..691d01db069f7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealActions.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealActions.cs @@ -67,13 +67,16 @@ internal AutoHealActions(AutoHealActionType? actionType, AutoHealCustomAction cu } /// Predefined action to be taken. + [WirePath("actionType")] public AutoHealActionType? ActionType { get; set; } /// Custom action to be taken. + [WirePath("customAction")] public AutoHealCustomAction CustomAction { get; set; } /// /// Minimum time the process must execute /// before taking the action /// + [WirePath("minProcessExecutionTime")] public string MinProcessExecutionTime { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealCustomAction.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealCustomAction.cs index 4c33de6fcfbd5..ee910161840a1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealCustomAction.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealCustomAction.cs @@ -65,8 +65,10 @@ internal AutoHealCustomAction(string exe, string parameters, IDictionary Executable to be run. + [WirePath("exe")] public string Exe { get; set; } /// Parameters for the executable. + [WirePath("parameters")] public string Parameters { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealRules.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealRules.cs index 23fcb2a7912db..eef9871ecd4d0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealRules.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealRules.cs @@ -62,8 +62,10 @@ internal AutoHealRules(AutoHealTriggers triggers, AutoHealActions actions, IDict } /// Conditions that describe when to execute the auto-heal actions. + [WirePath("triggers")] public AutoHealTriggers Triggers { get; set; } /// Actions to be executed when a rule is triggered. + [WirePath("actions")] public AutoHealActions Actions { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealTriggers.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealTriggers.cs index 0077457a8ca4e..0ceeae37f592a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealTriggers.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealTriggers.cs @@ -74,16 +74,22 @@ internal AutoHealTriggers(RequestsBasedTrigger requests, int? privateBytesInKB, } /// A rule based on total requests. + [WirePath("requests")] public RequestsBasedTrigger Requests { get; set; } /// A rule based on private bytes. + [WirePath("privateBytesInKB")] public int? PrivateBytesInKB { get; set; } /// A rule based on status codes. + [WirePath("statusCodes")] public IList StatusCodes { get; } /// A rule based on request execution time. + [WirePath("slowRequests")] public SlowRequestsBasedTrigger SlowRequests { get; set; } /// A rule based on multiple Slow Requests Rule with path. + [WirePath("slowRequestsWithPath")] public IList SlowRequestsWithPath { get; } /// A rule based on status codes ranges. + [WirePath("statusCodesRange")] public IList StatusCodesRange { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureStoragePropertyDictionary.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureStoragePropertyDictionary.Serialization.cs index 1fea6be85e54a..d920c158014e4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureStoragePropertyDictionary.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureStoragePropertyDictionary.Serialization.cs @@ -214,7 +214,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Properties) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 4, false); } builder.AppendLine(" }"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureStoragePropertyDictionary.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureStoragePropertyDictionary.cs index 41c7082ee78b5..906de3fcc555a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureStoragePropertyDictionary.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureStoragePropertyDictionary.cs @@ -69,8 +69,10 @@ internal AzureStoragePropertyDictionary(ResourceIdentifier id, string name, Reso } /// Azure storage accounts. + [WirePath("properties")] public IDictionary Properties { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.cs index a443e2f165458..9d50465b51b08 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.cs @@ -70,10 +70,13 @@ internal CertificateOrderAction(ResourceIdentifier id, string name, ResourceType } /// Action type. + [WirePath("properties.actionType")] public CertificateOrderActionType? ActionType { get; } /// Time at which the certificate action was performed. + [WirePath("properties.createdAt")] public DateTimeOffset? CreatedOn { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.cs index ff2d9f9aaedb9..67f932d48e2db 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.cs @@ -66,12 +66,16 @@ internal CertificateOrderContact(string email, string nameFirst, string nameLast } /// Gets the email. + [WirePath("email")] public string Email { get; } /// Gets the name first. + [WirePath("nameFirst")] public string NameFirst { get; } /// Gets the name last. + [WirePath("nameLast")] public string NameLast { get; } /// Gets the phone. + [WirePath("phone")] public string Phone { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ClientRegistration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ClientRegistration.cs index 3ce17196cb990..e28cfde7dde99 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ClientRegistration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ClientRegistration.cs @@ -62,8 +62,10 @@ internal ClientRegistration(string clientId, string clientSecretSettingName, IDi } /// The Client ID of the app used for login. + [WirePath("clientId")] public string ClientId { get; set; } /// The app setting name that contains the client secret. + [WirePath("clientSecretSettingName")] public string ClientSecretSettingName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloningInfo.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloningInfo.Serialization.cs index 6ea76596d71ec..948b6fb4c96b1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloningInfo.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloningInfo.Serialization.cs @@ -376,7 +376,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in AppSettingsOverrides) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloningInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloningInfo.cs index 1defdfdd26d1e..e4a0a8b15dbf2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloningInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CloningInfo.cs @@ -112,36 +112,47 @@ internal CloningInfo() /// Correlation ID of cloning operation. This ID ties multiple cloning operations /// together to use the same snapshot. /// + [WirePath("correlationId")] public Guid? CorrelationId { get; set; } /// <code>true</code> to overwrite destination app; otherwise, <code>false</code>. + [WirePath("overwrite")] public bool? CanOverwrite { get; set; } /// <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>. + [WirePath("cloneCustomHostNames")] public bool? CloneCustomHostNames { get; set; } /// <code>true</code> to clone source control from source app; otherwise, <code>false</code>. + [WirePath("cloneSourceControl")] public bool? CloneSourceControl { get; set; } /// /// ARM resource ID of the source app. App resource ID is of the form /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. /// + [WirePath("sourceWebAppId")] public ResourceIdentifier SourceWebAppId { get; set; } /// Location of source app ex: West US or North Europe. + [WirePath("sourceWebAppLocation")] public AzureLocation? SourceWebAppLocation { get; set; } /// App Service Environment. + [WirePath("hostingEnvironment")] public string HostingEnvironment { get; set; } /// /// Application setting overrides for cloned app. If specified, these settings override the settings cloned /// from source app. Otherwise, application settings from source app are retained. /// + [WirePath("appSettingsOverrides")] public IDictionary AppSettingsOverrides { get; } /// <code>true</code> to configure load balancing for source and destination app. + [WirePath("configureLoadBalancing")] public bool? ConfigureLoadBalancing { get; set; } /// /// ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. /// + [WirePath("trafficManagerProfileId")] public ResourceIdentifier TrafficManagerProfileId { get; set; } /// Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. + [WirePath("trafficManagerProfileName")] public string TrafficManagerProfileName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnStringInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnStringInfo.cs index 4a5da66d92d22..b8bc5d7c6670f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnStringInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnStringInfo.cs @@ -64,10 +64,13 @@ internal ConnStringInfo(string name, string connectionString, ConnectionStringTy } /// Name of connection string. + [WirePath("name")] public string Name { get; set; } /// Connection string value. + [WirePath("connectionString")] public string ConnectionString { get; set; } /// Type of database. + [WirePath("type")] public ConnectionStringType? ConnectionStringType { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnStringValueTypePair.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnStringValueTypePair.cs index d314ffbc63f59..3a03cafb3d2be 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnStringValueTypePair.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnStringValueTypePair.cs @@ -75,8 +75,10 @@ internal ConnStringValueTypePair() } /// Value of pair. + [WirePath("value")] public string Value { get; set; } /// Type of database. + [WirePath("type")] public ConnectionStringType ConnectionStringType { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringDictionary.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringDictionary.Serialization.cs index 5216ce691dcb3..0d88066d3be4e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringDictionary.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringDictionary.Serialization.cs @@ -214,7 +214,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Properties) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 4, false); } builder.AppendLine(" }"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringDictionary.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringDictionary.cs index 57501476b613e..2b3d9c1d9d016 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringDictionary.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ConnectionStringDictionary.cs @@ -69,8 +69,10 @@ internal ConnectionStringDictionary(ResourceIdentifier id, string name, Resource } /// Connection strings. + [WirePath("properties")] public IDictionary Properties { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuStatistics.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuStatistics.cs index d57aabafbdbbe..b382536e63b8f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuStatistics.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuStatistics.cs @@ -66,12 +66,16 @@ internal ContainerCpuStatistics(ContainerCpuUsage cpuUsage, long? systemCpuUsage } /// Gets or sets the cpu usage. + [WirePath("cpuUsage")] public ContainerCpuUsage CpuUsage { get; set; } /// Gets or sets the system cpu usage. + [WirePath("systemCpuUsage")] public long? SystemCpuUsage { get; set; } /// Gets or sets the online cpu count. + [WirePath("onlineCpuCount")] public int? OnlineCpuCount { get; set; } /// Gets or sets the throttling data. + [WirePath("throttlingData")] public ContainerThrottlingInfo ThrottlingData { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuUsage.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuUsage.cs index c1f85df7c6268..57f674990f9bb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuUsage.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuUsage.cs @@ -68,12 +68,16 @@ internal ContainerCpuUsage(long? totalUsage, IList perCpuUsage, long? kern } /// Gets or sets the total usage. + [WirePath("totalUsage")] public long? TotalUsage { get; set; } /// Gets the per cpu usage. + [WirePath("perCpuUsage")] public IList PerCpuUsage { get; } /// Gets or sets the kernel mode usage. + [WirePath("kernelModeUsage")] public long? KernelModeUsage { get; set; } /// Gets or sets the user mode usage. + [WirePath("userModeUsage")] public long? UserModeUsage { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerInfo.cs index d6f6e75f59cec..ed3eeeb2bf02f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerInfo.cs @@ -74,20 +74,28 @@ internal ContainerInfo(DateTimeOffset? currentTimeStamp, DateTimeOffset? previou } /// Gets or sets the current time stamp. + [WirePath("currentTimeStamp")] public DateTimeOffset? CurrentTimeStamp { get; set; } /// Gets or sets the previous time stamp. + [WirePath("previousTimeStamp")] public DateTimeOffset? PreviousTimeStamp { get; set; } /// Gets or sets the current cpu stats. + [WirePath("currentCpuStats")] public ContainerCpuStatistics CurrentCpuStats { get; set; } /// Gets or sets the previous cpu stats. + [WirePath("previousCpuStats")] public ContainerCpuStatistics PreviousCpuStats { get; set; } /// Gets or sets the memory stats. + [WirePath("memoryStats")] public ContainerMemoryStatistics MemoryStats { get; set; } /// Gets or sets the name. + [WirePath("name")] public string Name { get; set; } /// Gets or sets the id. + [WirePath("id")] public string Id { get; set; } /// Gets or sets the eth 0. + [WirePath("eth0")] public ContainerNetworkInterfaceStatistics Eth0 { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerMemoryStatistics.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerMemoryStatistics.cs index 21fd3657e550f..3c7d7428bfd65 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerMemoryStatistics.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerMemoryStatistics.cs @@ -64,10 +64,13 @@ internal ContainerMemoryStatistics(long? usage, long? maxUsage, long? limit, IDi } /// Gets or sets the usage. + [WirePath("usage")] public long? Usage { get; set; } /// Gets or sets the max usage. + [WirePath("maxUsage")] public long? MaxUsage { get; set; } /// Gets or sets the limit. + [WirePath("limit")] public long? Limit { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerNetworkInterfaceStatistics.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerNetworkInterfaceStatistics.cs index f3c06270da234..0c75a232d02db 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerNetworkInterfaceStatistics.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerNetworkInterfaceStatistics.cs @@ -74,20 +74,28 @@ internal ContainerNetworkInterfaceStatistics(long? rxBytes, long? rxPackets, lon } /// Gets or sets the rx bytes. + [WirePath("rxBytes")] public long? RxBytes { get; set; } /// Gets or sets the rx packets. + [WirePath("rxPackets")] public long? RxPackets { get; set; } /// Gets or sets the rx errors. + [WirePath("rxErrors")] public long? RxErrors { get; set; } /// Gets or sets the rx dropped. + [WirePath("rxDropped")] public long? RxDropped { get; set; } /// Gets or sets the tx bytes. + [WirePath("txBytes")] public long? TxBytes { get; set; } /// Gets or sets the tx packets. + [WirePath("txPackets")] public long? TxPackets { get; set; } /// Gets or sets the tx errors. + [WirePath("txErrors")] public long? TxErrors { get; set; } /// Gets or sets the tx dropped. + [WirePath("txDropped")] public long? TxDropped { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerThrottlingInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerThrottlingInfo.cs index 9b2bf720ce1f6..6da6221681c8e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerThrottlingInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerThrottlingInfo.cs @@ -64,10 +64,13 @@ internal ContainerThrottlingInfo(int? periods, int? throttledPeriods, int? throt } /// Gets or sets the periods. + [WirePath("periods")] public int? Periods { get; set; } /// Gets or sets the throttled periods. + [WirePath("throttledPeriods")] public int? ThrottledPeriods { get; set; } /// Gets or sets the throttled time. + [WirePath("throttledTime")] public int? ThrottledTime { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContinuousWebJobData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContinuousWebJobData.Serialization.cs index e764587f2eaef..697488ef4cb51 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContinuousWebJobData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContinuousWebJobData.Serialization.cs @@ -575,7 +575,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Settings) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDescription.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDescription.cs index 37a62be2a985a..a3d4e38de5f54 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDescription.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDescription.cs @@ -68,16 +68,21 @@ internal CsmOperationDescription(string name, bool? isDataAction, CsmOperationDi } /// Gets the name. + [WirePath("name")] public string Name { get; } /// Gets the is data action. + [WirePath("isDataAction")] public bool? IsDataAction { get; } /// Meta data about operation used for display in portal. + [WirePath("display")] public CsmOperationDisplay Display { get; } /// Gets the origin. + [WirePath("origin")] public string Origin { get; } /// Properties available for a Microsoft.Web resource provider operation. internal CsmOperationDescriptionProperties Properties { get; } /// Resource metrics service provided by Microsoft.Insights resource provider. + [WirePath("properties.serviceSpecification")] public ServiceSpecification CsmOperationDescriptionServiceSpecification { get => Properties?.ServiceSpecification; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDescriptionProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDescriptionProperties.cs index 50556b46c172b..7c518f3ce094d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDescriptionProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDescriptionProperties.cs @@ -60,6 +60,7 @@ internal CsmOperationDescriptionProperties(ServiceSpecification serviceSpecifica } /// Resource metrics service provided by Microsoft.Insights resource provider. + [WirePath("serviceSpecification")] public ServiceSpecification ServiceSpecification { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDisplay.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDisplay.cs index 8f778246827d1..c6656acd4279a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDisplay.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmOperationDisplay.cs @@ -66,12 +66,16 @@ internal CsmOperationDisplay(string provider, string resource, string operation, } /// Gets the provider. + [WirePath("provider")] public string Provider { get; } /// Gets the resource. + [WirePath("resource")] public string Resource { get; } /// Gets the operation. + [WirePath("operation")] public string Operation { get; } /// Gets the description. + [WirePath("description")] public string Description { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmPublishingProfile.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmPublishingProfile.cs index 4b8e4146e8e75..6261d73579f60 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmPublishingProfile.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmPublishingProfile.cs @@ -72,8 +72,10 @@ internal CsmPublishingProfile(PublishingProfileFormat? format, bool? isIncludeDi /// WebDeploy -- default /// Ftp /// + [WirePath("format")] public PublishingProfileFormat? Format { get; set; } /// Include the DisasterRecover endpoint if true. + [WirePath("includeDisasterRecoveryEndpoints")] public bool? IsIncludeDisasterRecoveryEndpoints { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmSlotEntity.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmSlotEntity.cs index ca6149891bde9..0cbfca565a423 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmSlotEntity.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmSlotEntity.cs @@ -75,8 +75,10 @@ internal CsmSlotEntity() } /// Destination deployment slot during swap operation. + [WirePath("targetSlot")] public string TargetSlot { get; } /// <code>true</code> to preserve Virtual Network to the slot during swap; otherwise, <code>false</code>. + [WirePath("preserveVnet")] public bool PreserveVnet { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmUsageQuota.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmUsageQuota.cs index 084ff3d0b7138..40f8f61f49cef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmUsageQuota.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CsmUsageQuota.cs @@ -68,14 +68,19 @@ internal CsmUsageQuota(string unit, DateTimeOffset? nextResetOn, long? currentVa } /// Units of measurement for the quota resource. + [WirePath("unit")] public string Unit { get; } /// Next reset time for the resource counter. + [WirePath("nextResetTime")] public DateTimeOffset? NextResetOn { get; } /// The current value of the resource counter. + [WirePath("currentValue")] public long? CurrentValue { get; } /// The resource limit. + [WirePath("limit")] public long? Limit { get; } /// Quota name. + [WirePath("name")] public LocalizableString Name { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostnameAnalysisResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostnameAnalysisResult.cs index 4f0df7d209998..0e26dfa8eb476 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostnameAnalysisResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostnameAnalysisResult.cs @@ -94,28 +94,40 @@ internal CustomHostnameAnalysisResult(ResourceIdentifier id, string name, Resour } /// <code>true</code> if hostname is already verified; otherwise, <code>false</code>. + [WirePath("properties.isHostnameAlreadyVerified")] public bool? IsHostnameAlreadyVerified { get; } /// DNS verification test result. + [WirePath("properties.customDomainVerificationTest")] public DnsVerificationTestResult? CustomDomainVerificationTest { get; } /// Raw failure information if DNS verification fails. + [WirePath("properties.customDomainVerificationFailureInfo")] public ResponseError CustomDomainVerificationFailureInfo { get; } /// <code>true</code> if there is a conflict on a scale unit; otherwise, <code>false</code>. + [WirePath("properties.hasConflictOnScaleUnit")] public bool? HasConflictOnScaleUnit { get; } /// <code>true</code> if there is a conflict across subscriptions; otherwise, <code>false</code>. + [WirePath("properties.hasConflictAcrossSubscription")] public bool? HasConflictAcrossSubscription { get; } /// Name of the conflicting app on scale unit if it's within the same subscription. + [WirePath("properties.conflictingAppResourceId")] public string ConflictingAppResourceId { get; } /// CName records controller can see for this hostname. + [WirePath("properties.cNameRecords")] public IList CNameRecords { get; } /// TXT records controller can see for this hostname. + [WirePath("properties.txtRecords")] public IList TxtRecords { get; } /// A records controller can see for this hostname. + [WirePath("properties.aRecords")] public IList ARecords { get; } /// Alternate CName records controller can see for this hostname. + [WirePath("properties.alternateCNameRecords")] public IList AlternateCNameRecords { get; } /// Alternate TXT records controller can see for this hostname. + [WirePath("properties.alternateTxtRecords")] public IList AlternateTxtRecords { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomOpenIdConnectProvider.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomOpenIdConnectProvider.cs index 6ec46cccfbc0c..506e1a008b789 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomOpenIdConnectProvider.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomOpenIdConnectProvider.cs @@ -64,10 +64,13 @@ internal CustomOpenIdConnectProvider(bool? isEnabled, OpenIdConnectRegistration } /// <code>false</code> if the custom Open ID provider provider should not be enabled; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the app registration for the custom Open ID Connect provider. + [WirePath("registration")] public OpenIdConnectRegistration Registration { get; set; } /// The configuration settings of the login flow of the custom Open ID Connect provider. + [WirePath("login")] public OpenIdConnectLogin Login { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderKeyValuePair.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderKeyValuePair.cs index 14bdc9dfe9a0b..56863d0969329 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderKeyValuePair.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderKeyValuePair.cs @@ -62,6 +62,7 @@ internal DataProviderKeyValuePair(string key, BinaryData value, IDictionary Gets the key. + [WirePath("key")] public string Key { get; } /// /// Any object @@ -93,6 +94,7 @@ internal DataProviderKeyValuePair(string key, BinaryData value, IDictionary /// /// + [WirePath("value")] public BinaryData Value { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderMetadata.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderMetadata.cs index f1d3410e189d4..658e0bdf619ea 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderMetadata.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderMetadata.cs @@ -64,8 +64,10 @@ internal DataProviderMetadata(string providerName, IReadOnlyList Gets or sets the provider name. + [WirePath("providerName")] public string ProviderName { get; set; } /// Settings for the data provider. + [WirePath("propertyBag")] public IReadOnlyList PropertyBag { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseColumn.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseColumn.cs index 2a8a245383224..e033cfbe17ca9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseColumn.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseColumn.cs @@ -64,10 +64,13 @@ internal DataTableResponseColumn(string columnName, string dataType, string colu } /// Name of the column. + [WirePath("columnName")] public string ColumnName { get; set; } /// Data type which looks like 'String' or 'Int32'. + [WirePath("dataType")] public string DataType { get; set; } /// Column Type. + [WirePath("columnType")] public string ColumnType { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseObject.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseObject.cs index 34c4a9d11d822..235ab2529758a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseObject.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseObject.cs @@ -67,10 +67,13 @@ internal DataTableResponseObject(string tableName, IList Name of the table. + [WirePath("tableName")] public string TableName { get; set; } /// List of columns with data types. + [WirePath("columns")] public IList Columns { get; } /// Raw row values. + [WirePath("rows")] public IList> Rows { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultAuthorizationPolicy.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultAuthorizationPolicy.cs index 959a3c308fde8..ac50f63a62619 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultAuthorizationPolicy.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultAuthorizationPolicy.cs @@ -64,8 +64,10 @@ internal DefaultAuthorizationPolicy(AppServiceAadAllowedPrincipals allowedPrinci } /// The configuration settings of the Azure Active Directory allowed principals. + [WirePath("allowedPrincipals")] public AppServiceAadAllowedPrincipals AllowedPrincipals { get; set; } /// The configuration settings of the Azure Active Directory allowed applications. + [WirePath("allowedApplications")] public IList AllowedApplications { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DeletedAppRestoreContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DeletedAppRestoreContent.cs index f112b1ad1807c..a135ff60da690 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DeletedAppRestoreContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DeletedAppRestoreContent.cs @@ -83,17 +83,22 @@ internal DeletedAppRestoreContent(ResourceIdentifier id, string name, ResourceTy /// ARM resource ID of the deleted app. Example: /// /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId} /// + [WirePath("properties.deletedSiteId")] public ResourceIdentifier DeletedSiteId { get; set; } /// If true, deleted site configuration, in addition to content, will be restored. + [WirePath("properties.recoverConfiguration")] public bool? RecoverConfiguration { get; set; } /// /// Point in time to restore the deleted app from, formatted as a DateTime string. /// If unspecified, default value is the time that the app was deleted. /// + [WirePath("properties.snapshotTime")] public string SnapshotTime { get; set; } /// If true, the snapshot is retrieved from DRSecondary endpoint. + [WirePath("properties.useDRSecondary")] public bool? UseDRSecondary { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorAbnormalTimePeriod.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorAbnormalTimePeriod.cs index 4866cf33e1ff3..fe3254e11354e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorAbnormalTimePeriod.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorAbnormalTimePeriod.cs @@ -77,20 +77,28 @@ internal DetectorAbnormalTimePeriod(DateTimeOffset? startOn, DateTimeOffset? end } /// Start time of the correlated event. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; set; } /// End time of the correlated event. + [WirePath("endTime")] public DateTimeOffset? EndOn { get; set; } /// Message describing the event. + [WirePath("message")] public string Message { get; set; } /// Represents the name of the Detector. + [WirePath("source")] public string Source { get; set; } /// Represents the rank of the Detector. + [WirePath("priority")] public double? Priority { get; set; } /// Downtime metadata. + [WirePath("metaData")] public IList> MetaData { get; } /// Represents the type of the Detector. + [WirePath("type")] public DetectorIssueType? IssueType { get; set; } /// List of proposed solutions. + [WirePath("solutions")] public IList Solutions { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDataSource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDataSource.cs index d98ac0db80c08..0c0aa9dcc5a32 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDataSource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDataSource.cs @@ -65,8 +65,10 @@ internal DetectorDataSource(IList instructions, IList Instructions if any for the data source. + [WirePath("instructions")] public IList Instructions { get; } /// Datasource Uri Links. + [WirePath("dataSourceUri")] public IList DataSourceUri { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDefinition.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDefinition.cs index 72d0b447f20c4..27dd1de3a8487 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDefinition.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDefinition.cs @@ -66,12 +66,16 @@ internal DetectorDefinition(string displayName, string description, double? rank } /// Display name of the detector. + [WirePath("displayName")] public string DisplayName { get; } /// Description of the detector. + [WirePath("description")] public string Description { get; } /// Detector Rank. + [WirePath("rank")] public double? Rank { get; } /// Flag representing whether detector is enabled or not. + [WirePath("isEnabled")] public bool? IsEnabled { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInfo.cs index 62450af055a57..937fbbd03c68b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInfo.cs @@ -79,22 +79,31 @@ internal DetectorInfo(string id, string name, string description, string author, } /// Id of detector. + [WirePath("id")] public string Id { get; } /// Name of detector. + [WirePath("name")] public string Name { get; } /// Short description of the detector and its purpose. + [WirePath("description")] public string Description { get; } /// Author of the detector. + [WirePath("author")] public string Author { get; } /// Problem category. This serves for organizing group for detectors. + [WirePath("category")] public string Category { get; } /// List of Support Topics for which this detector is enabled. + [WirePath("supportTopicList")] public IReadOnlyList SupportTopicList { get; } /// Analysis Types for which this detector should apply to. + [WirePath("analysisType")] public IReadOnlyList AnalysisType { get; } /// Whether this detector is an Analysis Detector or not. + [WirePath("type")] public DetectorType? DetectorType { get; } /// Defines score of a detector to power ML based matching. + [WirePath("score")] public float? Score { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorMetadata.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorMetadata.cs index d112f52cb295a..a05feb0e8003d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorMetadata.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorMetadata.cs @@ -60,6 +60,7 @@ internal DetectorMetadata(DetectorDataSource dataSource, IDictionary Source of the Data. + [WirePath("dataSource")] public DetectorDataSource DataSource { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorSupportTopic.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorSupportTopic.cs index 2e73029fcc941..87e081707c51a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorSupportTopic.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorSupportTopic.cs @@ -63,8 +63,10 @@ internal DetectorSupportTopic(string id, ResourceIdentifier pesId, IDictionary Support Topic Id. + [WirePath("id")] public string Id { get; } /// Unique resource Id. + [WirePath("pesId")] public ResourceIdentifier PesId { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticAnalysis.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticAnalysis.cs index 9edc492e0c324..7e753d337e06c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticAnalysis.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticAnalysis.cs @@ -79,16 +79,22 @@ internal DiagnosticAnalysis(ResourceIdentifier id, string name, ResourceType res } /// Start time of the period. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; set; } /// End time of the period. + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; set; } /// List of time periods. + [WirePath("properties.abnormalTimePeriods")] public IList AbnormalTimePeriods { get; } /// Data by each detector. + [WirePath("properties.payload")] public IList Payload { get; } /// Data by each detector for detectors that did not corelate. + [WirePath("properties.nonCorrelatedDetectors")] public IList NonCorrelatedDetectors { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataRendering.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataRendering.cs index 9aefb7a1e958b..fa6610d8bcc08 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataRendering.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataRendering.cs @@ -64,10 +64,13 @@ internal DiagnosticDataRendering(DiagnosticDataRenderingType? renderingType, str } /// Rendering Type. + [WirePath("type")] public DiagnosticDataRenderingType? RenderingType { get; set; } /// Title of data. + [WirePath("title")] public string Title { get; set; } /// Description of the data that will help it be interpreted. + [WirePath("description")] public string Description { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataset.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataset.cs index fe46841600a83..e0942da23dea2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataset.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDataset.cs @@ -62,8 +62,10 @@ internal DiagnosticDataset(DataTableResponseObject table, DiagnosticDataRenderin } /// Data in table form. + [WirePath("table")] public DataTableResponseObject Table { get; set; } /// Properties that describe how the table should be rendered. + [WirePath("renderingProperties")] public DiagnosticDataRendering RenderingProperties { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDetectorResponse.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDetectorResponse.cs index 652b441f20591..b8c8ca2893967 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDetectorResponse.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDetectorResponse.cs @@ -85,22 +85,30 @@ internal DiagnosticDetectorResponse(ResourceIdentifier id, string name, Resource } /// Start time of the period. + [WirePath("properties.startTime")] public DateTimeOffset? StartOn { get; set; } /// End time of the period. + [WirePath("properties.endTime")] public DateTimeOffset? EndOn { get; set; } /// Flag representing Issue was detected. + [WirePath("properties.issueDetected")] public bool? IssueDetected { get; set; } /// Detector's definition. + [WirePath("properties.detectorDefinition")] public DetectorDefinition DetectorDefinition { get; set; } /// Metrics provided by the detector. + [WirePath("properties.metrics")] public IList Metrics { get; } /// List of Correlated events found by the detector. + [WirePath("properties.abnormalTimePeriods")] public IList AbnormalTimePeriods { get; } /// Additional Data that detector wants to send. + [WirePath("properties.data")] public IList> Data { get; } /// Meta Data. internal DetectorMetadata ResponseMetaData { get; set; } /// Source of the Data. + [WirePath("properties.responseMetaData.dataSource")] public DetectorDataSource DataSource { get => ResponseMetaData is null ? default : ResponseMetaData.DataSource; @@ -113,6 +121,7 @@ public DetectorDataSource DataSource } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSample.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSample.cs index 8e38c8830ba00..cab347f792ade 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSample.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSample.cs @@ -75,6 +75,7 @@ internal DiagnosticMetricSample(DateTimeOffset? timestamp, string roleInstance, } /// Time at which metric is measured. + [WirePath("timestamp")] public DateTimeOffset? Timestamp { get; set; } /// /// Role Instance. Null if this counter is not per instance @@ -82,14 +83,19 @@ internal DiagnosticMetricSample(DateTimeOffset? timestamp, string roleInstance, /// i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) /// where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis /// + [WirePath("roleInstance")] public string RoleInstance { get; set; } /// Total value of the metric. If multiple measurements are made this will have sum of all. + [WirePath("total")] public double? Total { get; set; } /// Maximum of the metric sampled during the time period. + [WirePath("maximum")] public double? Maximum { get; set; } /// Minimum of the metric sampled during the time period. + [WirePath("minimum")] public double? Minimum { get; set; } /// Whether the values are aggregates across all workers or not. + [WirePath("isAggregated")] public bool? IsAggregated { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSet.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSet.cs index 477889ecadb09..1c9ff1b1b842b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSet.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSet.cs @@ -72,16 +72,22 @@ internal DiagnosticMetricSet(string name, string unit, DateTimeOffset? startOn, } /// Name of the metric. + [WirePath("name")] public string Name { get; set; } /// Metric's unit. + [WirePath("unit")] public string Unit { get; set; } /// Start time of the period. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; set; } /// End time of the period. + [WirePath("endTime")] public DateTimeOffset? EndOn { get; set; } /// Presented time grain. Supported grains at the moment are PT1M, PT1H, P1D. + [WirePath("timeGrain")] public string TimeGrain { get; set; } /// Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}. + [WirePath("values")] public IList Values { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolution.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolution.cs index 4072f421f8916..50ec757e01c5d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolution.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolution.cs @@ -75,18 +75,25 @@ internal DiagnosticSolution(double? id, string displayName, double? order, strin } /// Solution Id. + [WirePath("id")] public double? Id { get; set; } /// Display Name of the solution. + [WirePath("displayName")] public string DisplayName { get; set; } /// Order of the solution. + [WirePath("order")] public double? Order { get; set; } /// Description of the solution. + [WirePath("description")] public string Description { get; set; } /// Type of Solution. + [WirePath("type")] public DiagnosticSolutionType? SolutionType { get; set; } /// Solution Data. + [WirePath("data")] public IList> Data { get; } /// Solution Metadata. + [WirePath("metadata")] public IList> Metadata { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.cs index d28ff7e0644ac..834ca0f9b57ee 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.cs @@ -64,10 +64,13 @@ internal DomainAvailabilityCheckResult(string name, bool? isAvailable, AppServic } /// Name of the domain. + [WirePath("name")] public string Name { get; } /// <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>. + [WirePath("available")] public bool? IsAvailable { get; } /// Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything. + [WirePath("domainType")] public AppServiceDomainType? DomainType { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.cs index 87073ff2ca15c..392a7682de481 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.cs @@ -64,10 +64,13 @@ internal DomainControlCenterSsoRequestInfo(Uri uri, string postParameterKey, str } /// URL where the single sign-on request is to be made. + [WirePath("url")] public Uri Uri { get; } /// Post parameter key. + [WirePath("postParameterKey")] public string PostParameterKey { get; } /// Post parameter value. Client should use 'application/x-www-form-urlencoded' encoding for this value. + [WirePath("postParameterValue")] public string PostParameterValue { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs index e7832c21f90ca..89df25e471773 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs @@ -66,10 +66,13 @@ internal DomainPurchaseConsent(IList agreementKeys, string agreedBy, Dat } /// List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under <code>TopLevelDomain</code> resource. + [WirePath("agreementKeys")] public IList AgreementKeys { get; } /// Client IP address. + [WirePath("agreedBy")] public string AgreedBy { get; set; } /// Timestamp when the agreements were accepted. + [WirePath("agreedAt")] public DateTimeOffset? AgreedOn { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.cs index a47ff12ad1d21..38dd095a8deaa 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.cs @@ -62,8 +62,10 @@ internal DomainRecommendationSearchContent(string keywords, int? maxDomainRecomm } /// Keywords to be used for generating domain recommendations. + [WirePath("keywords")] public string Keywords { get; set; } /// Maximum number of recommendations. + [WirePath("maxDomainRecommendations")] public int? MaxDomainRecommendations { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemApplicationLogsConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemApplicationLogsConfig.cs index f4c3319f4757f..73655d8ff40f8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemApplicationLogsConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemApplicationLogsConfig.cs @@ -60,6 +60,7 @@ internal FileSystemApplicationLogsConfig(WebAppLogLevel? level, IDictionary Log level. + [WirePath("level")] public WebAppLogLevel? Level { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemHttpLogsConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemHttpLogsConfig.cs index 93ece3e792ab6..b360423fc5767 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemHttpLogsConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemHttpLogsConfig.cs @@ -76,14 +76,17 @@ internal FileSystemHttpLogsConfig(int? retentionInMb, int? retentionInDays, bool /// When reached old log files will be removed to make space for new ones. /// Value can range between 25 and 100. /// + [WirePath("retentionInMb")] public int? RetentionInMb { get; set; } /// /// Retention in days. /// Remove files older than X days. /// 0 or lower means no retention. /// + [WirePath("retentionInDays")] public int? RetentionInDays { get; set; } /// True if configuration is enabled, false if it is disabled and null if configuration is not set. + [WirePath("enabled")] public bool? IsEnabled { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemTokenStore.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemTokenStore.cs index 9258d966e0f0d..dc3add702cf83 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemTokenStore.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FileSystemTokenStore.cs @@ -60,6 +60,7 @@ internal FileSystemTokenStore(string directory, IDictionary } /// The directory in which the tokens will be stored. + [WirePath("directory")] public string Directory { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FrontEndConfiguration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FrontEndConfiguration.cs index 86e4a30ad2d53..9d52062e37276 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FrontEndConfiguration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FrontEndConfiguration.cs @@ -60,6 +60,7 @@ internal FrontEndConfiguration(FrontEndServiceType? kind, IDictionary Gets or sets the kind. + [WirePath("kind")] public FrontEndServiceType? Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppHostKeys.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppHostKeys.Serialization.cs index 9c864519fe4be..887ed45f24460 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppHostKeys.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppHostKeys.Serialization.cs @@ -191,7 +191,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in FunctionKeys) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); @@ -227,7 +227,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in SystemKeys) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppHostKeys.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppHostKeys.cs index 60cb35a801cae..3e796809f48a8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppHostKeys.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppHostKeys.cs @@ -67,10 +67,13 @@ internal FunctionAppHostKeys(string masterKey, IReadOnlyDictionary Secret key. + [WirePath("masterKey")] public string MasterKey { get; } /// Host level function keys. + [WirePath("functionKeys")] public IReadOnlyDictionary FunctionKeys { get; } /// System keys. + [WirePath("systemKeys")] public IReadOnlyDictionary SystemKeys { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMajorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMajorVersion.cs index a597656371eb6..97435aa947245 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMajorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMajorVersion.cs @@ -66,10 +66,13 @@ internal FunctionAppMajorVersion(string displayText, string value, IReadOnlyList } /// Function App stack major version (display only). + [WirePath("displayText")] public string DisplayText { get; } /// Function App stack major version name. + [WirePath("value")] public string Value { get; } /// Minor versions associated with the major version. + [WirePath("minorVersions")] public IReadOnlyList MinorVersions { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMinorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMinorVersion.cs index 8f03727db020e..f43245bd743c5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMinorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMinorVersion.cs @@ -64,10 +64,13 @@ internal FunctionAppMinorVersion(string displayText, string value, FunctionAppRu } /// Function App stack (display only). + [WirePath("displayText")] public string DisplayText { get; } /// Function App stack name. + [WirePath("value")] public string Value { get; } /// Settings associated with the minor version. + [WirePath("stackSettings")] public FunctionAppRuntimes StackSettings { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.Serialization.cs index bd4cdbfc194b2..9605971aa7c95 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.Serialization.cs @@ -398,7 +398,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in AppSettingsDictionary) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.cs index a80172a6b0d2b..07f812f2c385f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.cs @@ -89,32 +89,46 @@ internal FunctionAppRuntimeSettings(string runtimeVersion, bool? isRemoteDebuggi } /// Function App stack minor version (runtime only). + [WirePath("runtimeVersion")] public string RuntimeVersion { get; } /// <code>true</code> if remote debugging is supported for the stack; otherwise, <code>false</code>. + [WirePath("remoteDebuggingSupported")] public bool? IsRemoteDebuggingSupported { get; } /// Application Insights settings associated with the minor version. + [WirePath("appInsightsSettings")] public AppInsightsWebAppStackSettings AppInsightsSettings { get; } /// GitHub Actions settings associated with the minor version. + [WirePath("gitHubActionSettings")] public GitHubActionWebAppStackSettings GitHubActionSettings { get; } /// Application settings associated with the minor version. + [WirePath("appSettingsDictionary")] public IReadOnlyDictionary AppSettingsDictionary { get; } /// Configuration settings associated with the minor version. + [WirePath("siteConfigPropertiesDictionary")] public SiteConfigPropertiesDictionary SiteConfigPropertiesDictionary { get; } /// List of supported Functions extension versions. + [WirePath("supportedFunctionsExtensionVersions")] public IReadOnlyList SupportedFunctionsExtensionVersions { get; } /// <code>true</code> if the stack is in preview; otherwise, <code>false</code>. + [WirePath("isPreview")] public bool? IsPreview { get; } /// <code>true</code> if the stack is deprecated; otherwise, <code>false</code>. + [WirePath("isDeprecated")] public bool? IsDeprecated { get; } /// <code>true</code> if the stack should be hidden; otherwise, <code>false</code>. + [WirePath("isHidden")] public bool? IsHidden { get; } /// End-of-life date for the minor version. + [WirePath("endOfLifeDate")] public DateTimeOffset? EndOfLifeOn { get; } /// <code>true</code> if the stack version is auto-updated; otherwise, <code>false</code>. + [WirePath("isAutoUpdate")] public bool? IsAutoUpdate { get; } /// <code>true</code> if the minor version is early-access; otherwise, <code>false</code>. + [WirePath("isEarlyAccess")] public bool? IsEarlyAccess { get; } /// <code>true</code> if the minor version the default; otherwise, <code>false</code>. + [WirePath("isDefault")] public bool? IsDefault { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimes.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimes.cs index 75a2a018a1893..361279d51d4a8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimes.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimes.cs @@ -62,8 +62,10 @@ internal FunctionAppRuntimes(FunctionAppRuntimeSettings linuxRuntimeSettings, Fu } /// Linux-specific settings associated with the minor version. + [WirePath("linuxRuntimeSettings")] public FunctionAppRuntimeSettings LinuxRuntimeSettings { get; } /// Windows-specific settings associated with the minor version. + [WirePath("windowsRuntimeSettings")] public FunctionAppRuntimeSettings WindowsRuntimeSettings { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppStack.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppStack.cs index be54007c242e9..b907cf3e1ef23 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppStack.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppStack.cs @@ -77,16 +77,22 @@ internal FunctionAppStack(ResourceIdentifier id, string name, ResourceType resou } /// Function App stack location. + [WirePath("location")] public AzureLocation? Location { get; } /// Function App stack (display only). + [WirePath("properties.displayText")] public string DisplayText { get; } /// Function App stack name. + [WirePath("properties.value")] public string Value { get; } /// List of major versions available. + [WirePath("properties.majorVersions")] public IReadOnlyList MajorVersions { get; } /// Function App stack preferred OS. + [WirePath("properties.preferredOs")] public StackPreferredOS? PreferredOS { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionEnvelopeData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionEnvelopeData.Serialization.cs index b7ef322ab5c17..278a65b497c97 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionEnvelopeData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionEnvelopeData.Serialization.cs @@ -596,7 +596,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Files) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionSecrets.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionSecrets.cs index 4685aa7dd6666..1e2ff48beed40 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionSecrets.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionSecrets.cs @@ -62,8 +62,10 @@ internal FunctionSecrets(string key, Uri triggerUri, IDictionary Secret key. + [WirePath("key")] public string Key { get; } /// Trigger URL. + [WirePath("trigger_url")] public Uri TriggerUri { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionCodeConfiguration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionCodeConfiguration.cs index 0162525555865..7b17eb3d54fbf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionCodeConfiguration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionCodeConfiguration.cs @@ -62,8 +62,10 @@ internal GitHubActionCodeConfiguration(string runtimeStack, string runtimeVersio } /// Runtime stack is used to determine the workflow file content for code base apps. + [WirePath("runtimeStack")] public string RuntimeStack { get; set; } /// Runtime version is used to determine what build version to set in the workflow file. + [WirePath("runtimeVersion")] public string RuntimeVersion { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionConfiguration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionConfiguration.cs index 5bfb7f7ac7877..a8fa33954a11c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionConfiguration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionConfiguration.cs @@ -66,12 +66,16 @@ internal GitHubActionConfiguration(GitHubActionCodeConfiguration codeConfigurati } /// GitHub Action code configuration. + [WirePath("codeConfiguration")] public GitHubActionCodeConfiguration CodeConfiguration { get; set; } /// GitHub Action container configuration. + [WirePath("containerConfiguration")] public GitHubActionContainerConfiguration ContainerConfiguration { get; set; } /// This will help determine the workflow configuration to select. + [WirePath("isLinux")] public bool? IsLinux { get; set; } /// Workflow option to determine whether the workflow file should be generated and written to the repository. + [WirePath("generateWorkflowFile")] public bool? GenerateWorkflowFile { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionContainerConfiguration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionContainerConfiguration.cs index b3e15d17bd72f..2139f0744a35c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionContainerConfiguration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionContainerConfiguration.cs @@ -66,12 +66,16 @@ internal GitHubActionContainerConfiguration(Uri serverUri, string imageName, str } /// The server URL for the container registry where the build will be hosted. + [WirePath("serverUrl")] public Uri ServerUri { get; set; } /// The image name for the build. + [WirePath("imageName")] public string ImageName { get; set; } /// The username used to upload the image to the container registry. + [WirePath("username")] public string Username { get; set; } /// The password used to upload the image to the container registry. + [WirePath("password")] public string Password { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionWebAppStackSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionWebAppStackSettings.cs index b2883098c7eb9..060dec67e804b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionWebAppStackSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GitHubActionWebAppStackSettings.cs @@ -62,8 +62,10 @@ internal GitHubActionWebAppStackSettings(bool? isSupported, string supportedVers } /// <code>true</code> if GitHub Actions is supported for the stack; otherwise, <code>false</code>. + [WirePath("isSupported")] public bool? IsSupported { get; } /// The minor version that is supported for GitHub Actions. + [WirePath("supportedVersion")] public string SupportedVersion { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalCsmSkuDescription.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalCsmSkuDescription.cs index c5e0827989651..0b49ca76f74c9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalCsmSkuDescription.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalCsmSkuDescription.cs @@ -75,18 +75,25 @@ internal GlobalCsmSkuDescription(string name, string tier, string size, string f } /// Name of the resource SKU. + [WirePath("name")] public string Name { get; } /// Service Tier of the resource SKU. + [WirePath("tier")] public string Tier { get; } /// Size specifier of the resource SKU. + [WirePath("size")] public string Size { get; } /// Family code of the resource SKU. + [WirePath("family")] public string Family { get; } /// Min, max, and default scale values of the SKU. + [WirePath("capacity")] public AppServiceSkuCapacity Capacity { get; } /// Locations of the SKU. + [WirePath("locations")] public IReadOnlyList Locations { get; } /// Capabilities of the SKU, e.g., is traffic manager enabled?. + [WirePath("capabilities")] public IReadOnlyList Capabilities { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalValidation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalValidation.cs index d7f651e8e5b1c..738b1fc6f6dbb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalValidation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalValidation.cs @@ -72,16 +72,20 @@ internal GlobalValidation(bool? isAuthenticationRequired, UnauthenticatedClientA } /// <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>. + [WirePath("requireAuthentication")] public bool? IsAuthenticationRequired { get; set; } /// The action to take when an unauthenticated client attempts to access the app. + [WirePath("unauthenticatedClientAction")] public UnauthenticatedClientActionV2? UnauthenticatedClientAction { get; set; } /// /// The default authentication provider to use when multiple providers are configured. /// This setting is only needed if multiple providers are configured and the unauthenticated client /// action is set to "RedirectToLoginPage". /// + [WirePath("redirectToProvider")] public string RedirectToProvider { get; set; } /// The paths for which unauthenticated flow would not be redirected to the login page. + [WirePath("excludedPaths")] public IList ExcludedPaths { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostNameSslState.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostNameSslState.cs index 7ba344cd87eb6..2a4898a093d0e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostNameSslState.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostNameSslState.cs @@ -70,16 +70,22 @@ internal HostNameSslState(string name, HostNameBindingSslState? sslState, string } /// Hostname. + [WirePath("name")] public string Name { get; set; } /// SSL type. + [WirePath("sslState")] public HostNameBindingSslState? SslState { get; set; } /// Virtual IP address assigned to the hostname if IP based SSL is enabled. + [WirePath("virtualIP")] public string VirtualIP { get; set; } /// SSL certificate thumbprint. + [WirePath("thumbprint")] public string ThumbprintString { get; set; } /// Set to <code>true</code> to update existing hostname. + [WirePath("toUpdate")] public bool? ToUpdate { get; set; } /// Indicates whether the hostname is a standard or repository hostname. + [WirePath("hostType")] public AppServiceHostType? HostType { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDeploymentInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDeploymentInfo.cs index 0e70df5489b8b..313c3aa3ff609 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDeploymentInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDeploymentInfo.cs @@ -63,8 +63,10 @@ internal HostingEnvironmentDeploymentInfo(string name, AzureLocation? location, } /// Name of the App Service Environment. + [WirePath("name")] public string Name { get; } /// Location of the App Service Environment. + [WirePath("location")] public AzureLocation? Location { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDiagnostics.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDiagnostics.cs index 6a187e5954921..58ec30cb4f538 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDiagnostics.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDiagnostics.cs @@ -62,8 +62,10 @@ internal HostingEnvironmentDiagnostics(string name, string diagnosticsOutput, ID } /// Name/identifier of the diagnostics. + [WirePath("name")] public string Name { get; } /// Diagnostics output. + [WirePath("diagnosticsOutput")] public string DiagnosticsOutput { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentProfile.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentProfile.cs index 94a908ea12c2c..5267a519e4a57 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentProfile.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentProfile.cs @@ -65,10 +65,13 @@ internal HostingEnvironmentProfile(ResourceIdentifier id, string name, ResourceT } /// Resource ID of the App Service Environment. + [WirePath("id")] public ResourceIdentifier Id { get; set; } /// Name of the App Service Environment. + [WirePath("name")] public string Name { get; } /// Resource type of the App Service Environment. + [WirePath("type")] public ResourceType? ResourceType { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HttpRequestHandlerMapping.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HttpRequestHandlerMapping.cs index bdf3fa75f4a44..44e179ff39118 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HttpRequestHandlerMapping.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HttpRequestHandlerMapping.cs @@ -67,10 +67,13 @@ internal HttpRequestHandlerMapping(string extension, string scriptProcessor, str } /// Requests with this extension will be handled using the specified FastCGI application. + [WirePath("extension")] public string Extension { get; set; } /// The absolute path to the FastCGI application. + [WirePath("scriptProcessor")] public string ScriptProcessor { get; set; } /// Command-line arguments to be passed to the script processor. + [WirePath("arguments")] public string Arguments { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HybridConnectionKey.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HybridConnectionKey.cs index 2a074d745a012..04b98a79e039e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HybridConnectionKey.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HybridConnectionKey.cs @@ -70,10 +70,13 @@ internal HybridConnectionKey(ResourceIdentifier id, string name, ResourceType re } /// The name of the send key. + [WirePath("properties.sendKeyName")] public string SendKeyName { get; } /// The value of the send key. + [WirePath("properties.sendKeyValue")] public string SendKeyValue { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InboundEnvironmentEndpoint.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InboundEnvironmentEndpoint.cs index 3569b48db8942..dc752c763ab51 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InboundEnvironmentEndpoint.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InboundEnvironmentEndpoint.cs @@ -67,10 +67,13 @@ internal InboundEnvironmentEndpoint(string description, IReadOnlyList en } /// Short text describing the purpose of the network traffic. + [WirePath("description")] public string Description { get; } /// The IP addresses that network traffic will originate from in cidr notation. + [WirePath("endpoints")] public IReadOnlyList Endpoints { get; } /// The ports that network traffic will arrive to the App Service Environment at. + [WirePath("ports")] public IReadOnlyList Ports { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/JwtClaimChecks.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/JwtClaimChecks.cs index 03734637077d6..8bf82dbb9b05b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/JwtClaimChecks.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/JwtClaimChecks.cs @@ -65,8 +65,10 @@ internal JwtClaimChecks(IList allowedGroups, IList allowedClient } /// The list of the allowed groups. + [WirePath("allowedGroups")] public IList AllowedGroups { get; } /// The list of the allowed client applications. + [WirePath("allowedClientApplications")] public IList AllowedClientApplications { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentData.Serialization.cs index b1aa510f896e4..9ceadaf491165 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentData.Serialization.cs @@ -376,7 +376,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentPatch.cs index 4cd636740c44d..0d97e15f9587d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentPatch.cs @@ -90,30 +90,39 @@ internal KubeEnvironmentPatch(ResourceIdentifier id, string name, ResourceType r } /// Provisioning state of the Kubernetes Environment. + [WirePath("properties.provisioningState")] public KubeEnvironmentProvisioningState? ProvisioningState { get; } /// Any errors that occurred during deployment or deployment validation. + [WirePath("properties.deploymentErrors")] public string DeploymentErrors { get; } /// Only visible within Vnet/Subnet. + [WirePath("properties.internalLoadBalancerEnabled")] public bool? IsInternalLoadBalancerEnabled { get; set; } /// Default Domain Name for the cluster. + [WirePath("properties.defaultDomain")] public string DefaultDomain { get; } /// Static IP of the KubeEnvironment. + [WirePath("properties.staticIp")] public string StaticIP { get; set; } /// /// Cluster configuration which determines the ARC cluster /// components types. Eg: Choosing between BuildService kind, /// FrontEnd Service ArtifactsStorageType etc. /// + [WirePath("properties.arcConfiguration")] public ArcConfiguration ArcConfiguration { get; set; } /// /// Cluster configuration which enables the log daemon to export /// app logs to a destination. Currently only "log-analytics" is /// supported /// + [WirePath("properties.appLogsConfiguration")] public AppLogsConfiguration AppLogsConfiguration { get; set; } /// Gets or sets the aks resource id. + [WirePath("properties.aksResourceID")] public ResourceIdentifier AksResourceId { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentProfile.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentProfile.cs index a9c846bd0d652..e22b1ff427a1a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentProfile.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentProfile.cs @@ -65,10 +65,13 @@ internal KubeEnvironmentProfile(ResourceIdentifier id, string name, ResourceType } /// Resource ID of the Kubernetes Environment. + [WirePath("id")] public ResourceIdentifier Id { get; set; } /// Name of the Kubernetes Environment. + [WirePath("name")] public string Name { get; } /// Resource type of the Kubernetes Environment. + [WirePath("type")] public ResourceType? ResourceType { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LegacyMicrosoftAccount.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LegacyMicrosoftAccount.cs index bac6574574ab2..7b312a277935c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LegacyMicrosoftAccount.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LegacyMicrosoftAccount.cs @@ -66,12 +66,15 @@ internal LegacyMicrosoftAccount(bool? isEnabled, ClientRegistration registration } /// <code>false</code> if the legacy Microsoft Account provider should not be enabled despite the set registration; otherwise, <code>true</code>. + [WirePath("enabled")] public bool? IsEnabled { get; set; } /// The configuration settings of the app registration for the legacy Microsoft Account provider. + [WirePath("registration")] public ClientRegistration Registration { get; set; } /// The configuration settings of the login flow. internal LoginScopes Login { get; set; } /// A list of the scopes that should be requested while authenticating. + [WirePath("login.scopes")] public IList LoginScopes { get @@ -85,6 +88,7 @@ public IList LoginScopes /// The configuration settings of the legacy Microsoft Account provider token validation flow. internal AllowedAudiencesValidation Validation { get; set; } /// The configuration settings of the allowed list of audiences from which to validate the JWT token. + [WirePath("validation.allowedAudiences")] public IList ValidationAllowedAudiences { get diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LinuxJavaContainerSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LinuxJavaContainerSettings.cs index 47b81d1aaeb1d..e946bcc31a982 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LinuxJavaContainerSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LinuxJavaContainerSettings.cs @@ -74,20 +74,28 @@ internal LinuxJavaContainerSettings(string java11Runtime, string java8Runtime, b } /// Java 11 version (runtime only). + [WirePath("java11Runtime")] public string Java11Runtime { get; } /// Java 8 version (runtime only). + [WirePath("java8Runtime")] public string Java8Runtime { get; } /// <code>true</code> if the stack is in preview; otherwise, <code>false</code>. + [WirePath("isPreview")] public bool? IsPreview { get; } /// <code>true</code> if the stack is deprecated; otherwise, <code>false</code>. + [WirePath("isDeprecated")] public bool? IsDeprecated { get; } /// <code>true</code> if the stack should be hidden; otherwise, <code>false</code>. + [WirePath("isHidden")] public bool? IsHidden { get; } /// End-of-life date for the minor version. + [WirePath("endOfLifeDate")] public DateTimeOffset? EndOfLifeOn { get; } /// <code>true</code> if the stack version is auto-updated; otherwise, <code>false</code>. + [WirePath("isAutoUpdate")] public bool? IsAutoUpdate { get; } /// <code>true</code> if the minor version is early-access; otherwise, <code>false</code>. + [WirePath("isEarlyAccess")] public bool? IsEarlyAccess { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LocalizableString.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LocalizableString.cs index 7a16647b6b972..e8270f411ddfb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LocalizableString.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LocalizableString.cs @@ -62,8 +62,10 @@ internal LocalizableString(string value, string localizedValue, IDictionary Non-localized name. + [WirePath("value")] public string Value { get; } /// Localized name. + [WirePath("localizedValue")] public string LocalizedValue { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogAnalyticsConfiguration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogAnalyticsConfiguration.cs index 9b2923922648c..7c3f97f9391fc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogAnalyticsConfiguration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogAnalyticsConfiguration.cs @@ -62,8 +62,10 @@ internal LogAnalyticsConfiguration(string customerId, string sharedKey, IDiction } /// Gets or sets the customer id. + [WirePath("customerId")] public string CustomerId { get; set; } /// Gets or sets the shared key. + [WirePath("sharedKey")] public string SharedKey { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogSpecification.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogSpecification.cs index 1d56e54cfb8d2..d553cdebf6f0f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogSpecification.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogSpecification.cs @@ -66,12 +66,16 @@ internal LogSpecification(string name, string displayName, TimeSpan? blobDuratio } /// Gets the name. + [WirePath("name")] public string Name { get; } /// Gets the display name. + [WirePath("displayName")] public string DisplayName { get; } /// Gets the blob duration. + [WirePath("blobDuration")] public TimeSpan? BlobDuration { get; } /// Gets the log filter pattern. + [WirePath("logFilterPattern")] public string LogFilterPattern { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginFlowNonceSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginFlowNonceSettings.cs index 80789c65c8311..47a71ae26f168 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginFlowNonceSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginFlowNonceSettings.cs @@ -62,8 +62,10 @@ internal LoginFlowNonceSettings(bool? validateNonce, string nonceExpirationInter } /// <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>. + [WirePath("validateNonce")] public bool? ValidateNonce { get; set; } /// The time after the request is made when the nonce should expire. + [WirePath("nonceExpirationInterval")] public string NonceExpirationInterval { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginRoutes.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginRoutes.cs index afe0fb18cb0d0..aa8b3b6e3c5ef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginRoutes.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginRoutes.cs @@ -60,6 +60,7 @@ internal LoginRoutes(string logoutEndpoint, IDictionary seri } /// The endpoint at which a logout request should be made. + [WirePath("logoutEndpoint")] public string LogoutEndpoint { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginScopes.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginScopes.cs index 65422c1704bb7..4ba94f4d7a3eb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginScopes.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginScopes.cs @@ -62,6 +62,7 @@ internal LoginScopes(IList scopes, IDictionary seria } /// A list of the scopes that should be requested while authenticating. + [WirePath("scopes")] public IList Scopes { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricAvailability.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricAvailability.cs index 6b8ee54689f84..5d09d299d1121 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricAvailability.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricAvailability.cs @@ -62,8 +62,10 @@ internal MetricAvailability(string timeGrain, TimeSpan? blobDuration, IDictionar } /// Gets the time grain. + [WirePath("timeGrain")] public string TimeGrain { get; } /// Gets the blob duration. + [WirePath("blobDuration")] public TimeSpan? BlobDuration { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricDimension.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricDimension.cs index 67f07eb54c958..54743522503be 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricDimension.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricDimension.cs @@ -69,12 +69,16 @@ internal MetricDimension(string name, string displayName, string internalName, b } /// Gets the name. + [WirePath("name")] public string Name { get; } /// Gets the display name. + [WirePath("displayName")] public string DisplayName { get; } /// Gets the internal name. + [WirePath("internalName")] public string InternalName { get; } /// Gets the is to be exported for shoebox. + [WirePath("toBeExportedForShoebox")] public bool? IsToBeExportedForShoebox { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricSpecification.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricSpecification.cs index bda36d008e0ee..415f81d655277 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricSpecification.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricSpecification.cs @@ -97,38 +97,55 @@ internal MetricSpecification(string name, string displayName, string displayDesc } /// Gets the name. + [WirePath("name")] public string Name { get; } /// Gets the display name. + [WirePath("displayName")] public string DisplayName { get; } /// Gets the display description. + [WirePath("displayDescription")] public string DisplayDescription { get; } /// Gets the unit. + [WirePath("unit")] public string Unit { get; } /// Gets the aggregation type. + [WirePath("aggregationType")] public string AggregationType { get; } /// Gets the is instance level aggregation supported. + [WirePath("supportsInstanceLevelAggregation")] public bool? IsInstanceLevelAggregationSupported { get; } /// Gets the is regional mdm account enabled. + [WirePath("enableRegionalMdmAccount")] public bool? IsRegionalMdmAccountEnabled { get; } /// Gets the source mdm account. + [WirePath("sourceMdmAccount")] public string SourceMdmAccount { get; } /// Gets the source mdm namespace. + [WirePath("sourceMdmNamespace")] public string SourceMdmNamespace { get; } /// Gets the metric filter pattern. + [WirePath("metricFilterPattern")] public string MetricFilterPattern { get; } /// Gets the fill gap with zero. + [WirePath("fillGapWithZero")] public bool? FillGapWithZero { get; } /// Gets the is internal. + [WirePath("isInternal")] public bool? IsInternal { get; } /// Gets the dimensions. + [WirePath("dimensions")] public IReadOnlyList Dimensions { get; } /// Gets the category. + [WirePath("category")] public string Category { get; } /// Gets the availabilities. + [WirePath("availabilities")] public IReadOnlyList Availabilities { get; } /// Gets the supported time grain types. + [WirePath("supportedTimeGrainTypes")] public IReadOnlyList SupportedTimeGrainTypes { get; } /// Gets the supported aggregation types. + [WirePath("supportedAggregationTypes")] public IReadOnlyList SupportedAggregationTypes { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MigrateMySqlContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MigrateMySqlContent.cs index 8b18e72e52c81..74e78fb778ace 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MigrateMySqlContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MigrateMySqlContent.cs @@ -70,10 +70,13 @@ internal MigrateMySqlContent(ResourceIdentifier id, string name, ResourceType re } /// Connection string to the remote MySQL database. + [WirePath("properties.connectionString")] public string ConnectionString { get; set; } /// The type of migration operation to be done. + [WirePath("properties.migrationType")] public MySqlMigrationType? MigrationType { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectClientCredential.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectClientCredential.cs index 54d52c31abe54..5dc6d2368337b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectClientCredential.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectClientCredential.cs @@ -62,8 +62,10 @@ internal OpenIdConnectClientCredential(ClientCredentialMethod? method, string cl } /// The method that should be used to authenticate the user. + [WirePath("method")] public ClientCredentialMethod? Method { get; set; } /// The app setting that contains the client secret for the custom Open ID Connect provider. + [WirePath("clientSecretSettingName")] public string ClientSecretSettingName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectConfig.cs index 9b934d3db31b6..3333702f6e253 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectConfig.cs @@ -68,14 +68,19 @@ internal OpenIdConnectConfig(string authorizationEndpoint, string tokenEndpoint, } /// The endpoint to be used to make an authorization request. + [WirePath("authorizationEndpoint")] public string AuthorizationEndpoint { get; set; } /// The endpoint to be used to request a token. + [WirePath("tokenEndpoint")] public string TokenEndpoint { get; set; } /// The endpoint that issues the token. + [WirePath("issuer")] public string Issuer { get; set; } /// The endpoint that provides the keys necessary to validate the token. + [WirePath("certificationUri")] public Uri CertificationUri { get; set; } /// The endpoint that contains all the configuration endpoints for the provider. + [WirePath("wellKnownOpenIdConfiguration")] public string WellKnownOpenIdConfiguration { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectLogin.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectLogin.cs index 54e2ce2db9680..a1fa4a7160efc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectLogin.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectLogin.cs @@ -64,8 +64,10 @@ internal OpenIdConnectLogin(string nameClaimType, IList scopes, IDiction } /// The name of the claim that contains the users name. + [WirePath("nameClaimType")] public string NameClaimType { get; set; } /// A list of the scopes that should be requested while authenticating. + [WirePath("scopes")] public IList Scopes { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectRegistration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectRegistration.cs index f1cde3460c3e8..2a7a87244e7ce 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectRegistration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectRegistration.cs @@ -64,10 +64,13 @@ internal OpenIdConnectRegistration(string clientId, OpenIdConnectClientCredentia } /// The client id of the custom Open ID Connect provider. + [WirePath("clientId")] public string ClientId { get; set; } /// The authentication credentials of the custom Open ID Connect provider. + [WirePath("clientCredential")] public OpenIdConnectClientCredential ClientCredential { get; set; } /// The configuration settings of the endpoints used for the custom Open ID Connect provider. + [WirePath("openIdConnectConfiguration")] public OpenIdConnectConfig OpenIdConnectConfiguration { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OutboundEnvironmentEndpoint.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OutboundEnvironmentEndpoint.cs index 0e9cedd511563..ea4accad1dc36 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OutboundEnvironmentEndpoint.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OutboundEnvironmentEndpoint.cs @@ -64,8 +64,10 @@ internal OutboundEnvironmentEndpoint(string category, IReadOnlyList The type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory. + [WirePath("category")] public string Category { get; } /// The endpoints that the App Service Environment reaches the service at. + [WirePath("endpoints")] public IReadOnlyList Endpoints { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonResponseInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonResponseInfo.cs index 74c179599e02d..33d753733f35c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonResponseInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonResponseInfo.cs @@ -64,10 +64,13 @@ internal PerfMonResponseInfo(string code, string message, PerfMonSet data, IDict } /// The response code. + [WirePath("code")] public string Code { get; } /// The message. + [WirePath("message")] public string Message { get; } /// The performance monitor counters. + [WirePath("data")] public PerfMonSet Data { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSample.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSample.cs index cc556f4204059..92bd71e457a86 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSample.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSample.cs @@ -64,10 +64,13 @@ internal PerfMonSample(DateTimeOffset? time, string instanceName, double? value, } /// Point in time for which counter was measured. + [WirePath("time")] public DateTimeOffset? Time { get; } /// Name of the server on which the measurement is made. + [WirePath("instanceName")] public string InstanceName { get; } /// Value of counter at a certain time. + [WirePath("value")] public double? Value { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSet.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSet.cs index 3ea8d9b54a5e4..f72ed6b3ebfab 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSet.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSet.cs @@ -70,14 +70,19 @@ internal PerfMonSet(string name, DateTimeOffset? startOn, DateTimeOffset? endOn, } /// Unique key name of the counter. + [WirePath("name")] public string Name { get; } /// Start time of the period. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; } /// End time of the period. + [WirePath("endTime")] public DateTimeOffset? EndOn { get; } /// Presented time grain. + [WirePath("timeGrain")] public string TimeGrain { get; } /// Collection of workers that are active during this time. + [WirePath("values")] public IReadOnlyList Values { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnData.Serialization.cs index da8a5cff80529..2a4251e32a761 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnData.Serialization.cs @@ -306,7 +306,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnOffer.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnOffer.cs index 305bd5ea3f588..59fddeafe00b4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnOffer.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnOffer.cs @@ -86,26 +86,37 @@ internal PremierAddOnOffer(ResourceIdentifier id, string name, ResourceType reso } /// Premier add on SKU. + [WirePath("properties.sku")] public string Sku { get; set; } /// Premier add on offer Product. + [WirePath("properties.product")] public string Product { get; set; } /// Premier add on offer Vendor. + [WirePath("properties.vendor")] public string Vendor { get; set; } /// <code>true</code> if promotion code is required; otherwise, <code>false</code>. + [WirePath("properties.promoCodeRequired")] public bool? IsPromoCodeRequired { get; set; } /// Premier add on offer Quota. + [WirePath("properties.quota")] public int? Quota { get; set; } /// App Service plans this offer is restricted to. + [WirePath("properties.webHostingPlanRestrictions")] public AppServicePlanRestriction? WebHostingPlanRestrictions { get; set; } /// Privacy policy URL. + [WirePath("properties.privacyPolicyUrl")] public Uri PrivacyPolicyUri { get; set; } /// Legal terms URL. + [WirePath("properties.legalTermsUrl")] public Uri LegalTermsUri { get; set; } /// Marketplace publisher. + [WirePath("properties.marketplacePublisher")] public string MarketplacePublisher { get; set; } /// Marketplace offer. + [WirePath("properties.marketplaceOffer")] public string MarketplaceOffer { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnPatchResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnPatchResource.cs index 8a8e4836497d9..00c2da35dd7bf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnPatchResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PremierAddOnPatchResource.cs @@ -76,16 +76,22 @@ internal PremierAddOnPatchResource(ResourceIdentifier id, string name, ResourceT } /// Premier add on SKU. + [WirePath("properties.sku")] public string Sku { get; set; } /// Premier add on Product. + [WirePath("properties.product")] public string Product { get; set; } /// Premier add on Vendor. + [WirePath("properties.vendor")] public string Vendor { get; set; } /// Premier add on Marketplace publisher. + [WirePath("properties.marketplacePublisher")] public string MarketplacePublisher { get; set; } /// Premier add on Marketplace offer. + [WirePath("properties.marketplaceOffer")] public string MarketplaceOffer { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessSubnet.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessSubnet.cs index c9d0d5ec15c10..c28cca846743d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessSubnet.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessSubnet.cs @@ -62,8 +62,10 @@ internal PrivateAccessSubnet(string name, int? key, IDictionary The name of the subnet. + [WirePath("name")] public string Name { get; set; } /// The key (ID) of the subnet. + [WirePath("key")] public int? Key { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs index adf51e5061ef2..332495c7edab6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs @@ -68,12 +68,16 @@ internal PrivateAccessVirtualNetwork(string name, int? key, ResourceIdentifier r } /// The name of the Virtual Network. + [WirePath("name")] public string Name { get; set; } /// The key (ID) of the Virtual Network. + [WirePath("key")] public int? Key { get; set; } /// The ARM uri of the Virtual Network. + [WirePath("resourceId")] public ResourceIdentifier ResourceId { get; set; } /// A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network. + [WirePath("subnets")] public IList Subnets { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkConnectionApprovalRequestInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkConnectionApprovalRequestInfo.cs index c8fd13642b6c7..0f288c0273859 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkConnectionApprovalRequestInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkConnectionApprovalRequestInfo.cs @@ -68,8 +68,10 @@ internal PrivateLinkConnectionApprovalRequestInfo(ResourceIdentifier id, string } /// The state of a private link connection. + [WirePath("properties.privateLinkServiceConnectionState")] public PrivateLinkConnectionState PrivateLinkServiceConnectionState { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkConnectionState.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkConnectionState.cs index a16969c629034..7d9324578d9e7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkConnectionState.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkConnectionState.cs @@ -64,10 +64,13 @@ internal PrivateLinkConnectionState(string status, string description, string ac } /// Status of a private link connection. + [WirePath("status")] public string Status { get; set; } /// Description of a private link connection. + [WirePath("description")] public string Description { get; set; } /// ActionsRequired for a private link connection. + [WirePath("actionsRequired")] public string ActionsRequired { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkResourcesWrapper.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkResourcesWrapper.cs index 2848126ae08c8..6eec561654e26 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkResourcesWrapper.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateLinkResourcesWrapper.cs @@ -72,6 +72,7 @@ internal PrivateLinkResourcesWrapper() } /// Gets the value. + [WirePath("value")] public IReadOnlyList Value { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProcessInfoData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProcessInfoData.Serialization.cs index 17e34b8d98ac4..330e03d773ae6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProcessInfoData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProcessInfoData.Serialization.cs @@ -1393,7 +1393,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in EnvironmentVariables) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProcessThreadInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProcessThreadInfo.cs index df727dd72b355..4ba49bfd0d23e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProcessThreadInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProcessThreadInfo.cs @@ -90,30 +90,43 @@ internal ProcessThreadInfo(ResourceIdentifier id, string name, ResourceType reso } /// Site extension ID. + [WirePath("properties.identifier")] public int? Identifier { get; } /// HRef URI. + [WirePath("properties.href")] public string Href { get; set; } /// Process URI. + [WirePath("properties.process")] public string Process { get; set; } /// Start address. + [WirePath("properties.start_address")] public string StartAddress { get; set; } /// Current thread priority. + [WirePath("properties.current_priority")] public int? CurrentPriority { get; set; } /// Thread priority level. + [WirePath("properties.priority_level")] public string PriorityLevel { get; set; } /// Base priority. + [WirePath("properties.base_priority")] public int? BasePriority { get; set; } /// Start time. + [WirePath("properties.start_time")] public DateTimeOffset? StartOn { get; set; } /// Total processor time. + [WirePath("properties.total_processor_time")] public string TotalProcessorTime { get; set; } /// User processor time. + [WirePath("properties.user_processor_time")] public string UserProcessorTime { get; set; } /// Thread state. + [WirePath("properties.state")] public string State { get; set; } /// Wait reason. + [WirePath("properties.wait_reason")] public string WaitReason { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResult.cs index 81df975b2fdcb..7af709ff13629 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResult.cs @@ -62,8 +62,10 @@ internal QueryUtterancesResult(SampleUtterance sampleUtterance, float? score, ID } /// A sample utterance. + [WirePath("sampleUtterance")] public SampleUtterance SampleUtterance { get; set; } /// Score of a sample utterance. + [WirePath("score")] public float? Score { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResults.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResults.cs index dcd654d59b8b3..62548439f95b6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResults.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResults.cs @@ -64,8 +64,10 @@ internal QueryUtterancesResults(string query, IList resul } /// Search Query. + [WirePath("query")] public string Query { get; set; } /// Array of utterance results for search query. + [WirePath("results")] public IList Results { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RampUpRule.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RampUpRule.cs index 937ebb2b0158c..b7e9457cc7c24 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RampUpRule.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RampUpRule.cs @@ -81,27 +81,35 @@ internal RampUpRule(string actionHostName, double? reroutePercentage, double? ch } /// Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. + [WirePath("actionHostName")] public string ActionHostName { get; set; } /// Percentage of the traffic which will be redirected to <code>ActionHostName</code>. + [WirePath("reroutePercentage")] public double? ReroutePercentage { get; set; } /// /// In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches \n<code>MinReroutePercentage</code> or /// <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>.\nCustom decision algorithm /// can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. /// + [WirePath("changeStep")] public double? ChangeStep { get; set; } /// Specifies interval in minutes to reevaluate ReroutePercentage. + [WirePath("changeIntervalInMinutes")] public int? ChangeIntervalInMinutes { get; set; } /// Specifies lower boundary above which ReroutePercentage will stay. + [WirePath("minReroutePercentage")] public double? MinReroutePercentage { get; set; } /// Specifies upper boundary below which ReroutePercentage will stay. + [WirePath("maxReroutePercentage")] public double? MaxReroutePercentage { get; set; } /// /// Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. /// https://www.siteextensions.net/packages/TiPCallback/ /// + [WirePath("changeDecisionCallbackUrl")] public Uri ChangeDecisionCallbackUri { get; set; } /// Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. + [WirePath("name")] public string Name { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.cs index 0d3b0feebc50e..4fa8cf40424d1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.cs @@ -93,16 +93,22 @@ internal RegistrationAddressInfo() } /// First line of an Address. + [WirePath("address1")] public string Address1 { get; set; } /// The second line of the Address. Optional. + [WirePath("address2")] public string Address2 { get; set; } /// The city for the address. + [WirePath("city")] public string City { get; set; } /// The country for the address. + [WirePath("country")] public string Country { get; set; } /// The postal code for the address. + [WirePath("postalCode")] public string PostalCode { get; set; } /// The state or province for the address. + [WirePath("state")] public string State { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.cs index c22869eacd029..4f08c99818c1a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.cs @@ -99,22 +99,31 @@ internal RegistrationContactInfo() } /// Mailing address. + [WirePath("addressMailing")] public RegistrationAddressInfo AddressMailing { get; set; } /// Email address. + [WirePath("email")] public string Email { get; set; } /// Fax number. + [WirePath("fax")] public string Fax { get; set; } /// Job title. + [WirePath("jobTitle")] public string JobTitle { get; set; } /// First name. + [WirePath("nameFirst")] public string NameFirst { get; set; } /// Last name. + [WirePath("nameLast")] public string NameLast { get; set; } /// Middle name. + [WirePath("nameMiddle")] public string NameMiddle { get; set; } /// Organization contact belongs to. + [WirePath("organization")] public string Organization { get; set; } /// Phone number. + [WirePath("phone")] public string Phone { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.cs index ba4993003d158..cbc83d6aaa7e0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.cs @@ -74,14 +74,19 @@ internal ReissueCertificateOrderContent(ResourceIdentifier id, string name, Reso } /// Certificate Key Size. + [WirePath("properties.keySize")] public int? KeySize { get; set; } /// Delay in hours to revoke existing certificate after the new certificate is issued. + [WirePath("properties.delayExistingRevokeInHours")] public int? DelayExistingRevokeInHours { get; set; } /// Csr to be used for re-key operation. + [WirePath("properties.csr")] public string Csr { get; set; } /// Should we change the ASC type (from managed private key to external private key and vice versa). + [WirePath("properties.isPrivateKeyExternal")] public bool? IsPrivateKeyExternal { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs index 6a39028fe8dd0..6e2666e583a40 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs @@ -77,20 +77,25 @@ internal RemotePrivateEndpointConnection(ResourceIdentifier id, string name, Res } /// Gets the provisioning state. + [WirePath("properties.provisioningState")] public string ProvisioningState { get; } /// PrivateEndpoint of a remote private endpoint connection. internal SubResource PrivateEndpoint { get; set; } /// Gets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; } /// The state of a private link connection. + [WirePath("properties.privateLinkServiceConnectionState")] public PrivateLinkConnectionState PrivateLinkServiceConnectionState { get; set; } /// Private IPAddresses mapped to the remote private endpoint. + [WirePath("properties.ipAddresses")] public IList IPAddresses { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.cs index a855751e9ee98..593f4d54ae4a9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.cs @@ -72,12 +72,16 @@ internal RenewCertificateOrderContent(ResourceIdentifier id, string name, Resour } /// Certificate Key Size. + [WirePath("properties.keySize")] public int? KeySize { get; set; } /// Csr to be used for re-key operation. + [WirePath("properties.csr")] public string Csr { get; set; } /// Should we change the ASC type (from managed private key to external private key and vice versa). + [WirePath("properties.isPrivateKeyExternal")] public bool? IsPrivateKeyExternal { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RequestsBasedTrigger.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RequestsBasedTrigger.cs index 308c8910e1f01..b9fc7e7568f6f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RequestsBasedTrigger.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RequestsBasedTrigger.cs @@ -62,8 +62,10 @@ internal RequestsBasedTrigger(int? count, string timeInterval, IDictionary Request Count. + [WirePath("count")] public int? Count { get; set; } /// Time interval. + [WirePath("timeInterval")] public string TimeInterval { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricAvailability.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricAvailability.cs index ee15b59e721be..3a7f67b028e65 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricAvailability.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricAvailability.cs @@ -62,8 +62,10 @@ internal ResourceMetricAvailability(string timeGrain, string retention, IDiction } /// Time grain . + [WirePath("timeGrain")] public string TimeGrain { get; } /// Retention period for the current time grain. + [WirePath("retention")] public string Retention { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.Serialization.cs index 4546f61b14954..69433bd18353b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.Serialization.cs @@ -423,7 +423,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Properties) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.cs index 5b9c5ad7a489d..86290ce8f1d8c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.cs @@ -78,16 +78,22 @@ internal ResourceMetricDefinition(ResourceIdentifier id, string name, ResourceTy } /// Unit of the metric. + [WirePath("properties.unit")] public string Unit { get; } /// Primary aggregation type. + [WirePath("properties.primaryAggregationType")] public string PrimaryAggregationType { get; } /// List of time grains supported for the metric together with retention period. + [WirePath("properties.metricAvailabilities")] public IReadOnlyList MetricAvailabilities { get; } /// Resource URI. + [WirePath("properties.resourceUri")] public Uri ResourceUri { get; } /// Resource metric definition properties. + [WirePath("properties.properties")] public IReadOnlyDictionary Properties { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceNameAvailability.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceNameAvailability.cs index 4997943826d2e..e691644cc3ad2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceNameAvailability.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceNameAvailability.cs @@ -64,10 +64,13 @@ internal ResourceNameAvailability(bool? isNameAvailable, InAvailabilityReasonTyp } /// <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. + [WirePath("nameAvailable")] public bool? IsNameAvailable { get; } /// <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. + [WirePath("reason")] public InAvailabilityReasonType? Reason { get; } /// If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceNameAvailabilityContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceNameAvailabilityContent.cs index 0ddcd3cc050a3..caec9ee735084 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceNameAvailabilityContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceNameAvailabilityContent.cs @@ -77,10 +77,13 @@ internal ResourceNameAvailabilityContent() } /// Resource name to verify. + [WirePath("name")] public string Name { get; } /// Resource type used for verification. + [WirePath("type")] public CheckNameResourceType ResourceType { get; } /// Is fully qualified domain name. + [WirePath("isFqdn")] public bool? IsFqdn { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.Serialization.cs index cbe0a3ffb9d77..ec31c185c5923 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.Serialization.cs @@ -344,7 +344,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs index 3d55f2a0a6f64..1f832c7e3a0bf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs @@ -85,22 +85,31 @@ internal ResponseMessageEnvelopeRemotePrivateEndpointConnection(ResourceIdentifi } /// Geographical region resource belongs to e.g. SouthCentralUS, SouthEastAsia. + [WirePath("location")] public AzureLocation? Location { get; } /// Tags associated with resource. + [WirePath("tags")] public IReadOnlyDictionary Tags { get; } /// Azure resource manager plan. + [WirePath("plan")] public AppServiceArmPlan Plan { get; } /// Resource specific properties. + [WirePath("properties")] public RemotePrivateEndpointConnection Properties { get; } /// SKU description of the resource. + [WirePath("sku")] public AppServiceSkuDescription Sku { get; } /// Azure-AsyncOperation Status info. + [WirePath("status")] public string Status { get; } /// Azure-AsyncOperation Error info. + [WirePath("error")] public ResponseError Error { get; } /// MSI resource. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; } /// Logical Availability Zones the service is hosted in. + [WirePath("zones")] public IReadOnlyList Zones { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RestoreRequestInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RestoreRequestInfo.cs index fb9423be28e9e..9c25b27ce65ef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RestoreRequestInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RestoreRequestInfo.cs @@ -92,31 +92,43 @@ internal RestoreRequestInfo(ResourceIdentifier id, string name, ResourceType res } /// SAS URL to the container. + [WirePath("properties.storageAccountUrl")] public Uri StorageAccountUri { get; set; } /// Name of a blob which contains the backup. + [WirePath("properties.blobName")] public string BlobName { get; set; } /// <code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>. <code>true</code> is needed if trying to restore over an existing app. + [WirePath("properties.overwrite")] public bool? CanOverwrite { get; set; } /// Name of an app. + [WirePath("properties.siteName")] public string SiteName { get; set; } /// Collection of databases which should be restored. This list has to match the list of databases included in the backup. + [WirePath("properties.databases")] public IList Databases { get; } /// /// Changes a logic when restoring an app with custom domains. <code>true</code> to remove custom domains automatically. If <code>false</code>, custom domains are added to /// the app's object when it is being restored, but that might fail due to conflicts during the operation. /// + [WirePath("properties.ignoreConflictingHostNames")] public bool? IgnoreConflictingHostNames { get; set; } /// Ignore the databases and only restore the site content. + [WirePath("properties.ignoreDatabases")] public bool? IgnoreDatabases { get; set; } /// Specify app service plan that will own restored site. + [WirePath("properties.appServicePlan")] public string AppServicePlan { get; set; } /// Operation type. + [WirePath("properties.operationType")] public BackupRestoreOperationType? OperationType { get; set; } /// <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>. + [WirePath("properties.adjustConnectionStrings")] public bool? AdjustConnectionStrings { get; set; } /// App Service Environment name, if needed (only when restoring an app to an App Service Environment). + [WirePath("properties.hostingEnvironment")] public string HostingEnvironment { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RoutingRuleExperiments.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RoutingRuleExperiments.cs index 5e6094c43d138..3f7526e0f8d75 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RoutingRuleExperiments.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RoutingRuleExperiments.cs @@ -62,6 +62,7 @@ internal RoutingRuleExperiments(IList rampUpRules, IDictionary List of ramp-up rules. + [WirePath("rampUpRules")] public IList RampUpRules { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SampleUtterance.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SampleUtterance.cs index f74a65abf18a2..b71ff3a03238d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SampleUtterance.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SampleUtterance.cs @@ -66,10 +66,13 @@ internal SampleUtterance(string text, IList links, string qid, IDictiona } /// Text attribute of sample utterance. + [WirePath("text")] public string Text { get; set; } /// Links attribute of sample utterance. + [WirePath("links")] public IList Links { get; } /// Question id of sample utterance (for stackoverflow questions titles). + [WirePath("qid")] public string Qid { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServiceSpecification.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServiceSpecification.cs index 1c43153e3299f..ecf8726b27b7a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServiceSpecification.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServiceSpecification.cs @@ -65,8 +65,10 @@ internal ServiceSpecification(IReadOnlyList metricSpecifica } /// Gets the metric specifications. + [WirePath("metricSpecifications")] public IReadOnlyList MetricSpecifications { get; } /// Gets the log specifications. + [WirePath("logSpecifications")] public IReadOnlyList LogSpecifications { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettings.cs index 80cf277751a40..6b5fbbbaddb01 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettings.cs @@ -265,35 +265,42 @@ internal SiteAuthSettings(ResourceIdentifier id, string name, ResourceType resou } /// <code>true</code> if the Authentication / Authorization feature is enabled for the current app; otherwise, <code>false</code>. + [WirePath("properties.enabled")] public bool? IsEnabled { get; set; } /// /// The RuntimeVersion of the Authentication / Authorization feature in use for the current app. /// The setting in this value can control the behavior of certain features in the Authentication / Authorization module. /// + [WirePath("properties.runtimeVersion")] public string RuntimeVersion { get; set; } /// The action to take when an unauthenticated client attempts to access the app. + [WirePath("properties.unauthenticatedClientAction")] public UnauthenticatedClientAction? UnauthenticatedClientAction { get; set; } /// /// <code>true</code> to durably store platform-specific security tokens that are obtained during login flows; otherwise, <code>false</code>. /// The default is <code>false</code>. /// + [WirePath("properties.tokenStoreEnabled")] public bool? IsTokenStoreEnabled { get; set; } /// /// External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored. /// This is an advanced setting typically only needed by Windows Store application backends. /// Note that URLs within the current domain are always implicitly allowed. /// + [WirePath("properties.allowedExternalRedirectUrls")] public IList AllowedExternalRedirectUrls { get; } /// /// The default authentication provider to use when multiple providers are configured. /// This setting is only needed if multiple providers are configured and the unauthenticated client /// action is set to "RedirectToLoginPage". /// + [WirePath("properties.defaultProvider")] public BuiltInAuthenticationProvider? DefaultProvider { get; set; } /// /// The number of hours after session token expiration that a session token can be used to /// call the token refresh API. The default is 72 hours. /// + [WirePath("properties.tokenRefreshExtensionHours")] public double? TokenRefreshExtensionHours { get; set; } /// /// The Client ID of this relying party application, known as the client_id. @@ -301,6 +308,7 @@ internal SiteAuthSettings(ResourceIdentifier id, string name, ResourceType resou /// other 3rd party OpenID Connect providers. /// More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html /// + [WirePath("properties.clientId")] public string ClientId { get; set; } /// /// The Client Secret of this relying party application (in Azure Active Directory, this is also referred to as the Key). @@ -308,13 +316,16 @@ internal SiteAuthSettings(ResourceIdentifier id, string name, ResourceType resou /// Otherwise, the OpenID Connect Authorization Code Flow is used to authenticate end users. /// More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html /// + [WirePath("properties.clientSecret")] public string ClientSecret { get; set; } /// The app setting name that contains the client secret of the relying party application. + [WirePath("properties.clientSecretSettingName")] public string ClientSecretSettingName { get; set; } /// /// An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as /// a replacement for the Client Secret. It is also optional. /// + [WirePath("properties.clientSecretCertificateThumbprint")] public string ClientSecretCertificateThumbprintString { get; set; } /// /// The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. @@ -322,141 +333,169 @@ internal SiteAuthSettings(ResourceIdentifier id, string name, ResourceType resou /// This URI is a case-sensitive identifier for the token issuer. /// More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html /// + [WirePath("properties.issuer")] public string Issuer { get; set; } /// Gets a value indicating whether the issuer should be a valid HTTPS url and be validated as such. + [WirePath("properties.validateIssuer")] public bool? ValidateIssuer { get; set; } /// /// Allowed audience values to consider when validating JWTs issued by /// Azure Active Directory. Note that the <code>ClientID</code> value is always considered an /// allowed audience, regardless of this setting. /// + [WirePath("properties.allowedAudiences")] public IList AllowedAudiences { get; } /// /// Login parameters to send to the OpenID Connect authorization endpoint when /// a user logs in. Each parameter must be in the form "key=value". /// + [WirePath("properties.additionalLoginParams")] public IList AdditionalLoginParams { get; } /// Gets a JSON string containing the Azure AD Acl settings. + [WirePath("properties.aadClaimsAuthorization")] public string AadClaimsAuthorization { get; set; } /// /// The OpenID Connect Client ID for the Google web application. /// This setting is required for enabling Google Sign-In. /// Google Sign-In documentation: https://developers.google.com/identity/sign-in/web/ /// + [WirePath("properties.googleClientId")] public string GoogleClientId { get; set; } /// /// The client secret associated with the Google web application. /// This setting is required for enabling Google Sign-In. /// Google Sign-In documentation: https://developers.google.com/identity/sign-in/web/ /// + [WirePath("properties.googleClientSecret")] public string GoogleClientSecret { get; set; } /// /// The app setting name that contains the client secret associated with /// the Google web application. /// + [WirePath("properties.googleClientSecretSettingName")] public string GoogleClientSecretSettingName { get; set; } /// /// The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. /// This setting is optional. If not specified, "openid", "profile", and "email" are used as default scopes. /// Google Sign-In documentation: https://developers.google.com/identity/sign-in/web/ /// + [WirePath("properties.googleOAuthScopes")] public IList GoogleOAuthScopes { get; } /// /// The App ID of the Facebook app used for login. /// This setting is required for enabling Facebook Login. /// Facebook Login documentation: https://developers.facebook.com/docs/facebook-login /// + [WirePath("properties.facebookAppId")] public string FacebookAppId { get; set; } /// /// The App Secret of the Facebook app used for Facebook Login. /// This setting is required for enabling Facebook Login. /// Facebook Login documentation: https://developers.facebook.com/docs/facebook-login /// + [WirePath("properties.facebookAppSecret")] public string FacebookAppSecret { get; set; } /// The app setting name that contains the app secret used for Facebook Login. + [WirePath("properties.facebookAppSecretSettingName")] public string FacebookAppSecretSettingName { get; set; } /// /// The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. /// This setting is optional. /// Facebook Login documentation: https://developers.facebook.com/docs/facebook-login /// + [WirePath("properties.facebookOAuthScopes")] public IList FacebookOAuthScopes { get; } /// /// The Client Id of the GitHub app used for login. /// This setting is required for enabling Github login /// + [WirePath("properties.gitHubClientId")] public string GitHubClientId { get; set; } /// /// The Client Secret of the GitHub app used for Github Login. /// This setting is required for enabling Github login. /// + [WirePath("properties.gitHubClientSecret")] public string GitHubClientSecret { get; set; } /// /// The app setting name that contains the client secret of the Github /// app used for GitHub Login. /// + [WirePath("properties.gitHubClientSecretSettingName")] public string GitHubClientSecretSettingName { get; set; } /// /// The OAuth 2.0 scopes that will be requested as part of GitHub Login authentication. /// This setting is optional /// + [WirePath("properties.gitHubOAuthScopes")] public IList GitHubOAuthScopes { get; } /// /// The OAuth 1.0a consumer key of the Twitter application used for sign-in. /// This setting is required for enabling Twitter Sign-In. /// Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in /// + [WirePath("properties.twitterConsumerKey")] public string TwitterConsumerKey { get; set; } /// /// The OAuth 1.0a consumer secret of the Twitter application used for sign-in. /// This setting is required for enabling Twitter Sign-In. /// Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in /// + [WirePath("properties.twitterConsumerSecret")] public string TwitterConsumerSecret { get; set; } /// /// The app setting name that contains the OAuth 1.0a consumer secret of the Twitter /// application used for sign-in. /// + [WirePath("properties.twitterConsumerSecretSettingName")] public string TwitterConsumerSecretSettingName { get; set; } /// /// The OAuth 2.0 client ID that was created for the app used for authentication. /// This setting is required for enabling Microsoft Account authentication. /// Microsoft Account OAuth documentation: https://dev.onedrive.com/auth/msa_oauth.htm /// + [WirePath("properties.microsoftAccountClientId")] public string MicrosoftAccountClientId { get; set; } /// /// The OAuth 2.0 client secret that was created for the app used for authentication. /// This setting is required for enabling Microsoft Account authentication. /// Microsoft Account OAuth documentation: https://dev.onedrive.com/auth/msa_oauth.htm /// + [WirePath("properties.microsoftAccountClientSecret")] public string MicrosoftAccountClientSecret { get; set; } /// /// The app setting name containing the OAuth 2.0 client secret that was created for the /// app used for authentication. /// + [WirePath("properties.microsoftAccountClientSecretSettingName")] public string MicrosoftAccountClientSecretSettingName { get; set; } /// /// The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. /// This setting is optional. If not specified, "wl.basic" is used as the default scope. /// Microsoft Account Scopes and permissions documentation: https://msdn.microsoft.com/en-us/library/dn631845.aspx /// + [WirePath("properties.microsoftAccountOAuthScopes")] public IList MicrosoftAccountOAuthScopes { get; } /// /// "true" if the auth config settings should be read from a file, /// "false" otherwise /// + [WirePath("properties.isAuthFromFile")] public string IsAuthFromFile { get; set; } /// /// The path of the config file containing auth settings. /// If the path is relative, base will the site's root directory. /// + [WirePath("properties.authFilePath")] public string AuthFilePath { get; set; } /// /// The ConfigVersion of the Authentication / Authorization feature in use for the current app. /// The setting in this value can control the behavior of the control plane for Authentication / Authorization. /// + [WirePath("properties.configVersion")] public string ConfigVersion { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettingsV2.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettingsV2.cs index e726c57245b90..a263a21c3d237 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettingsV2.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettingsV2.cs @@ -76,16 +76,22 @@ internal SiteAuthSettingsV2(ResourceIdentifier id, string name, ResourceType res } /// The configuration settings of the platform of App Service Authentication/Authorization. + [WirePath("properties.platform")] public AuthPlatform Platform { get; set; } /// The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + [WirePath("properties.globalValidation")] public GlobalValidation GlobalValidation { get; set; } /// The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + [WirePath("properties.identityProviders")] public AppServiceIdentityProviders IdentityProviders { get; set; } /// The configuration settings of the login flow of users using App Service Authentication/Authorization. + [WirePath("properties.login")] public WebAppLoginInfo Login { get; set; } /// The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + [WirePath("properties.httpSettings")] public AppServiceHttpSettings HttpSettings { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneability.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneability.cs index bedb45b9690fd..fa3e526f863b7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneability.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneability.cs @@ -73,15 +73,19 @@ internal SiteCloneability(CloneAbilityResult? result, IReadOnlyList Name of app. + [WirePath("result")] public CloneAbilityResult? Result { get; } /// List of features enabled on app that prevent cloning. + [WirePath("blockingFeatures")] public IReadOnlyList BlockingFeatures { get; } /// /// List of features enabled on app that are non-blocking but cannot be cloned. The app can still be cloned /// but the features in this list will not be set up on cloned app. /// + [WirePath("unsupportedFeatures")] public IReadOnlyList UnsupportedFeatures { get; } /// List of blocking application characteristics. + [WirePath("blockingCharacteristics")] public IReadOnlyList BlockingCharacteristics { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneabilityCriterion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneabilityCriterion.cs index faf4b10f137ad..62ec07854ac35 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneabilityCriterion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneabilityCriterion.cs @@ -62,8 +62,10 @@ internal SiteCloneabilityCriterion(string name, string description, IDictionary< } /// Name of criterion. + [WirePath("name")] public string Name { get; } /// Description of criterion. + [WirePath("description")] public string Description { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigData.Serialization.cs index 1f825486e0766..7805eaf3b36fb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigData.Serialization.cs @@ -3040,7 +3040,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in AzureStorageAccounts) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.Serialization.cs index 1acff8e0f6ad1..e659ca3abee69 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.Serialization.cs @@ -2890,7 +2890,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in AzureStorageAccounts) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 4, false); } builder.AppendLine(" }"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs index 1713511cbc73a..5eeaab587b962 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs @@ -214,78 +214,114 @@ internal SiteConfigProperties(int? numberOfWorkers, IList defaultDocumen } /// Number of workers. + [WirePath("numberOfWorkers")] public int? NumberOfWorkers { get; set; } /// Default documents. + [WirePath("defaultDocuments")] public IList DefaultDocuments { get; set; } /// .NET Framework version. + [WirePath("netFrameworkVersion")] public string NetFrameworkVersion { get; set; } /// Version of PHP. + [WirePath("phpVersion")] public string PhpVersion { get; set; } /// Version of Python. + [WirePath("pythonVersion")] public string PythonVersion { get; set; } /// Version of Node.js. + [WirePath("nodeVersion")] public string NodeVersion { get; set; } /// Version of PowerShell. + [WirePath("powerShellVersion")] public string PowerShellVersion { get; set; } /// Linux App Framework and version. + [WirePath("linuxFxVersion")] public string LinuxFxVersion { get; set; } /// Xenon App Framework and version. + [WirePath("windowsFxVersion")] public string WindowsFxVersion { get; set; } /// <code>true</code> if request tracing is enabled; otherwise, <code>false</code>. + [WirePath("requestTracingEnabled")] public bool? IsRequestTracingEnabled { get; set; } /// Request tracing expiration time. + [WirePath("requestTracingExpirationTime")] public DateTimeOffset? RequestTracingExpirationOn { get; set; } /// <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>. + [WirePath("remoteDebuggingEnabled")] public bool? IsRemoteDebuggingEnabled { get; set; } /// Remote debugging version. + [WirePath("remoteDebuggingVersion")] public string RemoteDebuggingVersion { get; set; } /// <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>. + [WirePath("httpLoggingEnabled")] public bool? IsHttpLoggingEnabled { get; set; } /// Flag to use Managed Identity Creds for ACR pull. + [WirePath("acrUseManagedIdentityCreds")] public bool? UseManagedIdentityCreds { get; set; } /// If using user managed identity, the user managed identity ClientId. + [WirePath("acrUserManagedIdentityID")] public string AcrUserManagedIdentityId { get; set; } /// HTTP logs directory size limit. + [WirePath("logsDirectorySizeLimit")] public int? LogsDirectorySizeLimit { get; set; } /// <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>. + [WirePath("detailedErrorLoggingEnabled")] public bool? IsDetailedErrorLoggingEnabled { get; set; } /// Publishing user name. + [WirePath("publishingUsername")] public string PublishingUsername { get; set; } /// Application settings. + [WirePath("appSettings")] public IList AppSettings { get; set; } /// Connection strings. + [WirePath("connectionStrings")] public IList ConnectionStrings { get; set; } /// Site MachineKey. + [WirePath("machineKey")] public SiteMachineKey MachineKey { get; } /// Handler mappings. + [WirePath("handlerMappings")] public IList HandlerMappings { get; set; } /// Document root. + [WirePath("documentRoot")] public string DocumentRoot { get; set; } /// SCM type. + [WirePath("scmType")] public ScmType? ScmType { get; set; } /// <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>. + [WirePath("use32BitWorkerProcess")] public bool? Use32BitWorkerProcess { get; set; } /// <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>. + [WirePath("webSocketsEnabled")] public bool? IsWebSocketsEnabled { get; set; } /// <code>true</code> if Always On is enabled; otherwise, <code>false</code>. + [WirePath("alwaysOn")] public bool? IsAlwaysOn { get; set; } /// Java version. + [WirePath("javaVersion")] public string JavaVersion { get; set; } /// Java container. + [WirePath("javaContainer")] public string JavaContainer { get; set; } /// Java container version. + [WirePath("javaContainerVersion")] public string JavaContainerVersion { get; set; } /// App command line to launch. + [WirePath("appCommandLine")] public string AppCommandLine { get; set; } /// Managed pipeline mode. + [WirePath("managedPipelineMode")] public ManagedPipelineMode? ManagedPipelineMode { get; set; } /// Virtual applications. + [WirePath("virtualApplications")] public IList VirtualApplications { get; set; } /// Site load balancing. + [WirePath("loadBalancing")] public SiteLoadBalancing? LoadBalancing { get; set; } /// This is work around for polymorphic types. internal RoutingRuleExperiments Experiments { get; set; } /// List of ramp-up rules. + [WirePath("experiments.rampUpRules")] public IList ExperimentsRampUpRules { get @@ -297,26 +333,36 @@ public IList ExperimentsRampUpRules } /// Site limits. + [WirePath("limits")] public SiteLimits Limits { get; set; } /// <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>. + [WirePath("autoHealEnabled")] public bool? IsAutoHealEnabled { get; set; } /// Auto Heal rules. + [WirePath("autoHealRules")] public AutoHealRules AutoHealRules { get; set; } /// Tracing options. + [WirePath("tracingOptions")] public string TracingOptions { get; set; } /// Virtual Network name. + [WirePath("vnetName")] public string VnetName { get; set; } /// Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. + [WirePath("vnetRouteAllEnabled")] public bool? IsVnetRouteAllEnabled { get; set; } /// The number of private ports assigned to this app. These will be assigned dynamically on runtime. + [WirePath("vnetPrivatePortsCount")] public int? VnetPrivatePortsCount { get; set; } /// Cross-Origin Resource Sharing (CORS) settings. + [WirePath("cors")] public AppServiceCorsSettings Cors { get; set; } /// Push endpoint settings. + [WirePath("push")] public WebAppPushSettings Push { get; set; } /// Information about the formal API definition for the app. internal AppServiceApiDefinitionInfo ApiDefinition { get; set; } /// The URL of the API definition. + [WirePath("apiDefinition.url")] public Uri ApiDefinitionUri { get => ApiDefinition is null ? default : ApiDefinition.Uri; @@ -331,6 +377,7 @@ public Uri ApiDefinitionUri /// Azure API management settings linked to the app. internal ApiManagementConfig ApiManagementConfig { get; set; } /// APIM-Api Identifier. + [WirePath("apiManagementConfig.id")] public string ApiManagementConfigId { get => ApiManagementConfig is null ? default : ApiManagementConfig.Id; @@ -343,57 +390,77 @@ public string ApiManagementConfigId } /// Auto-swap slot name. + [WirePath("autoSwapSlotName")] public string AutoSwapSlotName { get; set; } /// <code>true</code> to enable local MySQL; otherwise, <code>false</code>. + [WirePath("localMySqlEnabled")] public bool? IsLocalMySqlEnabled { get; set; } /// Managed Service Identity Id. + [WirePath("managedServiceIdentityId")] public int? ManagedServiceIdentityId { get; set; } /// Explicit Managed Service Identity Id. + [WirePath("xManagedServiceIdentityId")] public int? XManagedServiceIdentityId { get; set; } /// Identity to use for Key Vault Reference authentication. + [WirePath("keyVaultReferenceIdentity")] public string KeyVaultReferenceIdentity { get; set; } /// IP security restrictions for main. + [WirePath("ipSecurityRestrictions")] public IList IPSecurityRestrictions { get; set; } /// IP security restrictions for scm. + [WirePath("scmIpSecurityRestrictions")] public IList ScmIPSecurityRestrictions { get; set; } /// IP security restrictions for scm to use main. + [WirePath("scmIpSecurityRestrictionsUseMain")] public bool? AllowIPSecurityRestrictionsForScmToUseMain { get; set; } /// Http20Enabled: configures a web site to allow clients to connect over http2.0. + [WirePath("http20Enabled")] public bool? IsHttp20Enabled { get; set; } /// MinTlsVersion: configures the minimum version of TLS required for SSL requests. + [WirePath("minTlsVersion")] public AppServiceSupportedTlsVersion? MinTlsVersion { get; set; } /// ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site. + [WirePath("scmMinTlsVersion")] public AppServiceSupportedTlsVersion? ScmMinTlsVersion { get; set; } /// State of FTP / FTPS service. + [WirePath("ftpsState")] public AppServiceFtpsState? FtpsState { get; set; } /// /// Number of preWarmed instances. /// This setting only applies to the Consumption and Elastic Plans /// + [WirePath("preWarmedInstanceCount")] public int? PreWarmedInstanceCount { get; set; } /// /// Maximum number of workers that a site can scale out to. /// This setting only applies to the Consumption and Elastic Premium Plans /// + [WirePath("functionAppScaleLimit")] public int? FunctionAppScaleLimit { get; set; } /// Health check path. + [WirePath("healthCheckPath")] public string HealthCheckPath { get; set; } /// /// Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, /// the ScaleController will not monitor event sources directly, but will instead call to the /// runtime to get scale status. /// + [WirePath("functionsRuntimeScaleMonitoringEnabled")] public bool? IsFunctionsRuntimeScaleMonitoringEnabled { get; set; } /// Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + [WirePath("websiteTimeZone")] public string WebsiteTimeZone { get; set; } /// /// Number of minimum instance count for a site /// This setting only applies to the Elastic Plans /// + [WirePath("minimumElasticInstanceCount")] public int? MinimumElasticInstanceCount { get; set; } /// List of Azure Storage Accounts. + [WirePath("azureStorageAccounts")] public IDictionary AzureStorageAccounts { get; set; } /// Property to allow or block all public traffic. + [WirePath("publicNetworkAccess")] public string PublicNetworkAccess { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigPropertiesDictionary.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigPropertiesDictionary.cs index 806ceb01a7cd3..31b213f083745 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigPropertiesDictionary.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigPropertiesDictionary.cs @@ -66,12 +66,16 @@ internal SiteConfigPropertiesDictionary(bool? use32BitWorkerProcess, string linu } /// <code>true</code> if use32BitWorkerProcess should be set to true for the stack; otherwise, <code>false</code>. + [WirePath("use32BitWorkerProcess")] public bool? Use32BitWorkerProcess { get; } /// LinuxFxVersion configuration setting. + [WirePath("linuxFxVersion")] public string LinuxFxVersion { get; } /// JavaVersion configuration setting. + [WirePath("javaVersion")] public string JavaVersion { get; } /// PowerShellVersion configuration setting. + [WirePath("powerShellVersion")] public string PowerShellVersion { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigurationSnapshotInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigurationSnapshotInfo.cs index 3bb5a19f9d363..fc2c44d071198 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigurationSnapshotInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigurationSnapshotInfo.cs @@ -70,10 +70,13 @@ internal SiteConfigurationSnapshotInfo(ResourceIdentifier id, string name, Resou } /// The time the snapshot was taken. + [WirePath("properties.time")] public DateTimeOffset? SnapshotTakenOn { get; } /// The id of the snapshot. + [WirePath("properties.snapshotId")] public int? SnapshotId { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteLimits.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteLimits.cs index 0751acec35b0c..feece4be1e673 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteLimits.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteLimits.cs @@ -64,10 +64,13 @@ internal SiteLimits(double? maxPercentageCpu, long? maxMemoryInMb, long? maxDisk } /// Maximum allowed CPU usage percentage. + [WirePath("maxPercentageCpu")] public double? MaxPercentageCpu { get; set; } /// Maximum allowed memory usage in MB. + [WirePath("maxMemoryInMb")] public long? MaxMemoryInMb { get; set; } /// Maximum allowed disk size usage in MB. + [WirePath("maxDiskSizeInMb")] public long? MaxDiskSizeInMb { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteMachineKey.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteMachineKey.cs index 2a1eb9575b787..136d9142bd1dd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteMachineKey.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteMachineKey.cs @@ -66,12 +66,16 @@ internal SiteMachineKey(string validation, string validationKey, string decrypti } /// MachineKey validation. + [WirePath("validation")] public string Validation { get; } /// Validation key. + [WirePath("validationKey")] public string ValidationKey { get; } /// Algorithm used for decryption. + [WirePath("decryption")] public string Decryption { get; } /// Decryption key. + [WirePath("decryptionKey")] public string DecryptionKey { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePatchInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePatchInfo.cs index d9d7b5a01d314..1e83277912077 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePatchInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePatchInfo.cs @@ -174,49 +174,70 @@ internal SitePatchInfo(ResourceIdentifier id, string name, ResourceType resource } /// Managed service identity. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// Current state of the app. + [WirePath("properties.state")] public string State { get; } /// Hostnames associated with the app. + [WirePath("properties.hostNames")] public IReadOnlyList HostNames { get; } /// Name of the repository site. + [WirePath("properties.repositorySiteName")] public string RepositorySiteName { get; } /// State indicating whether the app has exceeded its quota usage. Read-only. + [WirePath("properties.usageState")] public AppServiceUsageState? UsageState { get; } /// <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline). + [WirePath("properties.enabled")] public bool? IsEnabled { get; set; } /// /// Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, /// the app is not served on those hostnames. /// + [WirePath("properties.enabledHostNames")] public IReadOnlyList EnabledHostNames { get; } /// Management information availability state for the app. + [WirePath("properties.availabilityState")] public WebSiteAvailabilityState? AvailabilityState { get; } /// Hostname SSL states are used to manage the SSL bindings for app's hostnames. + [WirePath("properties.hostNameSslStates")] public IList HostNameSslStates { get; } /// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + [WirePath("properties.serverFarmId")] public ResourceIdentifier ServerFarmId { get; set; } /// <code>true</code> if reserved; otherwise, <code>false</code>. + [WirePath("properties.reserved")] public bool? IsReserved { get; set; } /// Obsolete: Hyper-V sandbox. + [WirePath("properties.isXenon")] public bool? IsXenon { get; set; } /// Hyper-V sandbox. + [WirePath("properties.hyperV")] public bool? IsHyperV { get; set; } /// Last time the app was modified, in UTC. Read-only. + [WirePath("properties.lastModifiedTimeUtc")] public DateTimeOffset? LastModifiedOn { get; } /// Configuration of the app. + [WirePath("properties.siteConfig")] public SiteConfigProperties SiteConfig { get; set; } /// Azure Traffic Manager hostnames associated with the app. Read-only. + [WirePath("properties.trafficManagerHostNames")] public IReadOnlyList TrafficManagerHostNames { get; } /// <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>. + [WirePath("properties.scmSiteAlsoStopped")] public bool? IsScmSiteAlsoStopped { get; set; } /// Specifies which deployment slot this app will swap into. Read-only. + [WirePath("properties.targetSwapSlot")] public string TargetSwapSlot { get; } /// App Service Environment to use for the app. + [WirePath("properties.hostingEnvironmentProfile")] public HostingEnvironmentProfile HostingEnvironmentProfile { get; set; } /// <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>. + [WirePath("properties.clientAffinityEnabled")] public bool? IsClientAffinityEnabled { get; set; } /// <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>. + [WirePath("properties.clientCertEnabled")] public bool? IsClientCertEnabled { get; set; } /// /// This composes with ClientCertEnabled setting. @@ -224,60 +245,82 @@ internal SitePatchInfo(ResourceIdentifier id, string name, ResourceType resource /// - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. /// - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. /// + [WirePath("properties.clientCertMode")] public ClientCertMode? ClientCertMode { get; set; } /// client certificate authentication comma-separated exclusion paths. + [WirePath("properties.clientCertExclusionPaths")] public string ClientCertExclusionPaths { get; set; } /// /// <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. /// If <code>true</code>, the app is only accessible via API management process. /// + [WirePath("properties.hostNamesDisabled")] public bool? IsHostNameDisabled { get; set; } /// Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. + [WirePath("properties.customDomainVerificationId")] public string CustomDomainVerificationId { get; set; } /// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. + [WirePath("properties.outboundIpAddresses")] public string OutboundIPAddresses { get; } /// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only. + [WirePath("properties.possibleOutboundIpAddresses")] public string PossibleOutboundIPAddresses { get; } /// Size of the function container. + [WirePath("properties.containerSize")] public int? ContainerSize { get; set; } /// Maximum allowed daily memory-time quota (applicable on dynamic apps only). + [WirePath("properties.dailyMemoryTimeQuota")] public int? DailyMemoryTimeQuota { get; set; } /// App suspended till in case memory-time quota is exceeded. + [WirePath("properties.suspendedTill")] public DateTimeOffset? SuspendOn { get; } /// /// Maximum number of workers. /// This only applies to Functions container. /// + [WirePath("properties.maxNumberOfWorkers")] public int? MaxNumberOfWorkers { get; } /// If specified during app creation, the app is cloned from a source app. + [WirePath("properties.cloningInfo")] public CloningInfo CloningInfo { get; set; } /// Name of the resource group the app belongs to. Read-only. + [WirePath("properties.resourceGroup")] public string ResourceGroup { get; } /// <code>true</code> if the app is a default container; otherwise, <code>false</code>. + [WirePath("properties.isDefaultContainer")] public bool? IsDefaultContainer { get; } /// Default hostname of the app. Read-only. + [WirePath("properties.defaultHostName")] public string DefaultHostName { get; } /// Status of the last deployment slot swap operation. + [WirePath("properties.slotSwapStatus")] public SlotSwapStatus SlotSwapStatus { get; } /// /// HttpsOnly: configures a web site to accept only https requests. Issues redirect for /// http requests /// + [WirePath("properties.httpsOnly")] public bool? IsHttpsOnly { get; set; } /// Site redundancy mode. + [WirePath("properties.redundancyMode")] public RedundancyMode? RedundancyMode { get; set; } /// Specifies an operation id if this site has a pending operation. + [WirePath("properties.inProgressOperationId")] public Guid? InProgressOperationId { get; } /// Checks if Customer provided storage account is required. + [WirePath("properties.storageAccountRequired")] public bool? IsStorageAccountRequired { get; set; } /// Identity to use for Key Vault Reference authentication. + [WirePath("properties.keyVaultReferenceIdentity")] public string KeyVaultReferenceIdentity { get; set; } /// /// Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. /// This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} /// + [WirePath("properties.virtualNetworkSubnetId")] public ResourceIdentifier VirtualNetworkSubnetId { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePhpErrorLogFlag.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePhpErrorLogFlag.cs index faf616e6c58bd..fa3db817e0b51 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePhpErrorLogFlag.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePhpErrorLogFlag.cs @@ -74,14 +74,19 @@ internal SitePhpErrorLogFlag(ResourceIdentifier id, string name, ResourceType re } /// Local log_errors setting. + [WirePath("properties.localLogErrors")] public string LocalLogErrors { get; set; } /// Master log_errors setting. + [WirePath("properties.masterLogErrors")] public string MasterLogErrors { get; set; } /// Local log_errors_max_len setting. + [WirePath("properties.localLogErrorsMaxLength")] public string LocalLogErrorsMaxLength { get; set; } /// Master log_errors_max_len setting. + [WirePath("properties.masterLogErrorsMaxLength")] public string MasterLogErrorsMaxLength { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.cs index 337714906b3a9..46a54f8fdef9b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.cs @@ -71,6 +71,7 @@ internal SiteSeal() } /// HTML snippet. + [WirePath("html")] public string Html { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.cs index b189e4203f194..e05f903a12614 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.cs @@ -62,8 +62,10 @@ internal SiteSealContent(bool? isLightTheme, string locale, IDictionary If <code>true</code> use the light color theme for site seal; otherwise, use the default color theme. + [WirePath("lightTheme")] public bool? IsLightTheme { get; set; } /// Locale of site seal. + [WirePath("locale")] public string Locale { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotDifference.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotDifference.cs index d3ec5aae6a044..14ec6fde5b792 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotDifference.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotDifference.cs @@ -80,20 +80,28 @@ internal SlotDifference(ResourceIdentifier id, string name, ResourceType resourc } /// Level of the difference: Information, Warning or Error. + [WirePath("properties.level")] public string Level { get; } /// The type of the setting: General, AppSetting or ConnectionString. + [WirePath("properties.settingType")] public string SettingType { get; } /// Rule that describes how to process the setting difference during a slot swap. + [WirePath("properties.diffRule")] public string DiffRule { get; } /// Name of the setting. + [WirePath("properties.settingName")] public string SettingName { get; } /// Value of the setting in the current slot. + [WirePath("properties.valueInCurrentSlot")] public string ValueInCurrentSlot { get; } /// Value of the setting in the target slot. + [WirePath("properties.valueInTargetSlot")] public string ValueInTargetSlot { get; } /// Description of the setting difference. + [WirePath("properties.description")] public string Description { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotSwapStatus.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotSwapStatus.cs index cc784db6fa48a..91f6fa1b4d281 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotSwapStatus.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotSwapStatus.cs @@ -64,10 +64,13 @@ internal SlotSwapStatus(DateTimeOffset? timestampUtc, string sourceSlotName, str } /// The time the last successful slot swap completed. + [WirePath("timestampUtc")] public DateTimeOffset? TimestampUtc { get; } /// The source slot of the last swap operation. + [WirePath("sourceSlotName")] public string SourceSlotName { get; } /// The destination slot of the last swap operation. + [WirePath("destinationSlotName")] public string DestinationSlotName { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlowRequestsBasedTrigger.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlowRequestsBasedTrigger.cs index 236e402c74805..b920f1886fde3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlowRequestsBasedTrigger.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlowRequestsBasedTrigger.cs @@ -66,12 +66,16 @@ internal SlowRequestsBasedTrigger(string timeTaken, string path, int? count, str } /// Time taken. + [WirePath("timeTaken")] public string TimeTaken { get; set; } /// Request Path. + [WirePath("path")] public string Path { get; set; } /// Request Count. + [WirePath("count")] public int? Count { get; set; } /// Time interval. + [WirePath("timeInterval")] public string TimeInterval { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SnapshotRecoverySource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SnapshotRecoverySource.cs index 52c39494e84b7..8a2e18ce32ce1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SnapshotRecoverySource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SnapshotRecoverySource.cs @@ -67,12 +67,14 @@ internal SnapshotRecoverySource(AzureLocation? location, ResourceIdentifier id, } /// Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS. + [WirePath("location")] public AzureLocation? Location { get; set; } /// /// ARM resource ID of the source app. /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. /// + [WirePath("id")] public ResourceIdentifier Id { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SnapshotRestoreRequest.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SnapshotRestoreRequest.cs index 6efedaacd929a..2d72d567b3d34 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SnapshotRestoreRequest.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SnapshotRestoreRequest.cs @@ -84,24 +84,31 @@ internal SnapshotRestoreRequest(ResourceIdentifier id, string name, ResourceType } /// Point in time in which the app restore should be done, formatted as a DateTime string. + [WirePath("properties.snapshotTime")] public string SnapshotTime { get; set; } /// /// Optional. Specifies the web app that snapshot contents will be retrieved from. /// If empty, the targeted web app will be used as the source. /// + [WirePath("properties.recoverySource")] public SnapshotRecoverySource RecoverySource { get; set; } /// If <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>. + [WirePath("properties.overwrite")] public bool? CanOverwrite { get; set; } /// If true, site configuration, in addition to content, will be reverted. + [WirePath("properties.recoverConfiguration")] public bool? RecoverConfiguration { get; set; } /// /// If true, custom hostname conflicts will be ignored when recovering to a target web app. /// This setting is only necessary when RecoverConfiguration is enabled. /// + [WirePath("properties.ignoreConflictingHostNames")] public bool? IgnoreConflictingHostNames { get; set; } /// If true, the snapshot is retrieved from DRSecondary endpoint. + [WirePath("properties.useDRSecondary")] public bool? UseDRSecondary { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.Serialization.cs index 5c8265123b4c6..577c8a9a122fa 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.Serialization.cs @@ -459,7 +459,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in AppSettingsDictionary) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); @@ -487,7 +487,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in SiteConfigPropertiesDictionary) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.cs index 828fff7fe9fa7..77f9e3809635d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.cs @@ -92,20 +92,28 @@ internal StackMajorVersion(string displayVersion, string runtimeVersion, bool? i } /// Application stack major version (display only). + [WirePath("displayVersion")] public string DisplayVersion { get; set; } /// Application stack major version (runtime only). + [WirePath("runtimeVersion")] public string RuntimeVersion { get; set; } /// <code>true</code> if this is the default major version; otherwise, <code>false</code>. + [WirePath("isDefault")] public bool? IsDefault { get; set; } /// Minor versions associated with the major version. + [WirePath("minorVersions")] public IList MinorVersions { get; } /// <code>true</code> if this supports Application Insights; otherwise, <code>false</code>. + [WirePath("applicationInsights")] public bool? IsApplicationInsights { get; set; } /// <code>true</code> if this stack is in Preview, otherwise <code>false</code>. + [WirePath("isPreview")] public bool? IsPreview { get; set; } /// <code>true</code> if this stack has been deprecated, otherwise <code>false</code>. + [WirePath("isDeprecated")] public bool? IsDeprecated { get; set; } /// <code>true</code> if this stack should be hidden for new customers on portal, otherwise <code>false</code>. + [WirePath("isHidden")] public bool? IsHidden { get; set; } /// /// <appSettings> @@ -140,6 +148,7 @@ internal StackMajorVersion(string displayVersion, string runtimeVersion, bool? i /// /// /// + [WirePath("appSettingsDictionary")] public IDictionary AppSettingsDictionary { get; } /// /// <siteConfigProperties> @@ -174,6 +183,7 @@ internal StackMajorVersion(string displayVersion, string runtimeVersion, bool? i /// /// /// + [WirePath("siteConfigPropertiesDictionary")] public IDictionary SiteConfigPropertiesDictionary { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMinorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMinorVersion.cs index efd74a41f5abb..5c339d72fae82 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMinorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMinorVersion.cs @@ -66,12 +66,16 @@ internal StackMinorVersion(string displayVersion, string runtimeVersion, bool? i } /// Application stack minor version (display only). + [WirePath("displayVersion")] public string DisplayVersion { get; set; } /// Application stack minor version (runtime only). + [WirePath("runtimeVersion")] public string RuntimeVersion { get; set; } /// <code>true</code> if this is the default minor version; otherwise, <code>false</code>. + [WirePath("isDefault")] public bool? IsDefault { get; set; } /// <code>true</code> if this supports Remote Debugging, otherwise <code>false</code>. + [WirePath("isRemoteDebuggingEnabled")] public bool? IsRemoteDebuggingEnabled { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StampCapacity.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StampCapacity.cs index bfaa65dfa34c8..f6aa0afe31674 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StampCapacity.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StampCapacity.cs @@ -88,16 +88,22 @@ internal StampCapacity(string name, long? availableCapacity, long? totalCapacity } /// Name of the stamp. + [WirePath("name")] public string Name { get; } /// Available capacity (# of machines, bytes of storage etc...). + [WirePath("availableCapacity")] public long? AvailableCapacity { get; } /// Total capacity (# of machines, bytes of storage etc...). + [WirePath("totalCapacity")] public long? TotalCapacity { get; } /// Name of the unit. + [WirePath("unit")] public string Unit { get; } /// Shared/dedicated workers. + [WirePath("computeMode")] public ComputeModeOption? ComputeMode { get; } /// Size of the machines. + [WirePath("workerSize")] public WorkerSizeOption? WorkerSize { get; } /// /// Size ID of machines: @@ -105,17 +111,22 @@ internal StampCapacity(string name, long? availableCapacity, long? totalCapacity /// 1 - Medium /// 2 - Large /// + [WirePath("workerSizeId")] public int? WorkerSizeId { get; } /// /// If <code>true</code>, it includes basic apps. /// Basic apps are not used for capacity allocation. /// + [WirePath("excludeFromCapacityAllocation")] public bool? ExcludeFromCapacityAllocation { get; } /// <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>. + [WirePath("isApplicableForAllComputeModes")] public bool? IsApplicableForAllComputeModes { get; } /// Shared or Dedicated. + [WirePath("siteMode")] public string SiteMode { get; } /// Is this a linux stamp capacity. + [WirePath("isLinux")] public bool? IsLinux { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildProperties.cs index 7d81d97ace8e5..e40d41317e64e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildProperties.cs @@ -74,20 +74,28 @@ internal StaticSiteBuildProperties(string appLocation, string apiLocation, strin } /// The path to the app code within the repository. + [WirePath("appLocation")] public string AppLocation { get; set; } /// The path to the api code within the repository. + [WirePath("apiLocation")] public string ApiLocation { get; set; } /// Deprecated: The path of the app artifacts after building (deprecated in favor of OutputLocation). + [WirePath("appArtifactLocation")] public string AppArtifactLocation { get; set; } /// The output path of the app after building. + [WirePath("outputLocation")] public string OutputLocation { get; set; } /// A custom command to run during deployment of the static content application. + [WirePath("appBuildCommand")] public string AppBuildCommand { get; set; } /// A custom command to run during deployment of the Azure Functions API application. + [WirePath("apiBuildCommand")] public string ApiBuildCommand { get; set; } /// Skip Github Action workflow generation. + [WirePath("skipGithubActionWorkflowGeneration")] public bool? SkipGithubActionWorkflowGeneration { get; set; } /// Github Action secret name override. + [WirePath("githubActionSecretNameOverride")] public string GithubActionSecretNameOverride { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteCustomDomainContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteCustomDomainContent.cs index 2701afda4eaa6..581f001722450 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteCustomDomainContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteCustomDomainContent.cs @@ -68,8 +68,10 @@ internal StaticSiteCustomDomainContent(ResourceIdentifier id, string name, Resou } /// Validation method for adding a custom domain. + [WirePath("properties.validationMethod")] public string ValidationMethod { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteData.Serialization.cs index 6e069640c653e..0298d0b9f038d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteData.Serialization.cs @@ -498,7 +498,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteFunctionOverview.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteFunctionOverview.cs index 22fd52671912b..9d6c4f5283605 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteFunctionOverview.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteFunctionOverview.cs @@ -70,10 +70,13 @@ internal StaticSiteFunctionOverview(ResourceIdentifier id, string name, Resource } /// The name for the function. + [WirePath("properties.functionName")] public string FunctionName { get; } /// The trigger type of the function. + [WirePath("properties.triggerType")] public FunctionTriggerType? TriggerType { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitePatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitePatch.cs index 2466fdc7160fc..acee5f7e12075 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitePatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitePatch.cs @@ -98,34 +98,49 @@ internal StaticSitePatch(ResourceIdentifier id, string name, ResourceType resour } /// The default autogenerated hostname for the static site. + [WirePath("properties.defaultHostname")] public string DefaultHostname { get; } /// URL for the repository of the static site. + [WirePath("properties.repositoryUrl")] public Uri RepositoryUri { get; set; } /// The target branch in the repository. + [WirePath("properties.branch")] public string Branch { get; set; } /// The custom domains associated with this static site. + [WirePath("properties.customDomains")] public IReadOnlyList CustomDomains { get; } /// A user's github repository token. This is used to setup the Github Actions workflow file and API secrets. + [WirePath("properties.repositoryToken")] public string RepositoryToken { get; set; } /// Build properties to configure on the repository. + [WirePath("properties.buildProperties")] public StaticSiteBuildProperties BuildProperties { get; set; } /// Private endpoint connections. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// State indicating whether staging environments are allowed or not allowed for a static web app. + [WirePath("properties.stagingEnvironmentPolicy")] public StagingEnvironmentPolicy? StagingEnvironmentPolicy { get; set; } /// <code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>. + [WirePath("properties.allowConfigFileUpdates")] public bool? AllowConfigFileUpdates { get; set; } /// Template options for generating a new repository. + [WirePath("properties.templateProperties")] public StaticSiteTemplate TemplateProperties { get; set; } /// The content distribution endpoint for the static site. + [WirePath("properties.contentDistributionEndpoint")] public string ContentDistributionEndpoint { get; } /// Identity to use for Key Vault Reference authentication. + [WirePath("properties.keyVaultReferenceIdentity")] public string KeyVaultReferenceIdentity { get; } /// User provided function apps registered with the static site. + [WirePath("properties.userProvidedFunctionApps")] public IReadOnlyList UserProvidedFunctionApps { get; } /// The provider that submitted the last deployment to the primary environment of the static site. + [WirePath("properties.provider")] public string Provider { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteResetContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteResetContent.cs index 06b3e9ac6473e..277f05abcf57b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteResetContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteResetContent.cs @@ -70,10 +70,13 @@ internal StaticSiteResetContent(ResourceIdentifier id, string name, ResourceType } /// The token which proves admin privileges to the repository. + [WirePath("properties.repositoryToken")] public string RepositoryToken { get; set; } /// Determines whether the repository should be updated with the new properties. + [WirePath("properties.shouldUpdateRepository")] public bool? ShouldUpdateRepository { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteStringList.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteStringList.cs index 7a32871232287..26fc224897064 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteStringList.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteStringList.cs @@ -69,8 +69,10 @@ internal StaticSiteStringList(ResourceIdentifier id, string name, ResourceType r } /// List of string resources. + [WirePath("properties")] public IList Properties { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteTemplate.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteTemplate.cs index b19297e6c49c5..6bea306b66f7c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteTemplate.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteTemplate.cs @@ -68,14 +68,19 @@ internal StaticSiteTemplate(Uri templateRepositoryUri, string owner, string repo } /// URL of the template repository. The newly generated repository will be based on this one. + [WirePath("templateRepositoryUrl")] public Uri TemplateRepositoryUri { get; set; } /// Owner of the newly generated repository. + [WirePath("owner")] public string Owner { get; set; } /// Name of the newly generated repository. + [WirePath("repositoryName")] public string RepositoryName { get; set; } /// Description of the newly generated repository. + [WirePath("description")] public string Description { get; set; } /// Whether or not the newly generated repository is a private repository. Defaults to false (i.e. public). + [WirePath("isPrivate")] public bool? IsPrivate { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUser.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUser.cs index 60413666a9a5b..a1e0d1bf1046d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUser.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUser.cs @@ -74,14 +74,19 @@ internal StaticSiteUser(ResourceIdentifier id, string name, ResourceType resourc } /// The identity provider for the static site user. + [WirePath("properties.provider")] public string Provider { get; } /// The user id for the static site user. + [WirePath("properties.userId")] public string UserId { get; } /// The display name for the static site user. + [WirePath("properties.displayName")] public string DisplayName { get; } /// The roles for the static site user, in free-form string format. + [WirePath("properties.roles")] public string Roles { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserInvitationContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserInvitationContent.cs index 24f4c7fa9b5f5..62fd7f7d7163e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserInvitationContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserInvitationContent.cs @@ -76,16 +76,22 @@ internal StaticSiteUserInvitationContent(ResourceIdentifier id, string name, Res } /// The domain name for the static site custom domain. + [WirePath("properties.domain")] public string Domain { get; set; } /// The identity provider for the static site user. + [WirePath("properties.provider")] public string Provider { get; set; } /// The user id for the static site user. + [WirePath("properties.userDetails")] public string UserDetails { get; set; } /// The roles for the static site user, in free-form string format. + [WirePath("properties.roles")] public string Roles { get; set; } /// The number of hours the sas token stays valid. + [WirePath("properties.numHoursToExpiration")] public int? NumHoursToExpiration { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserInvitationResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserInvitationResult.cs index 4282ff0df9c1b..70d4d3f4fd7b0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserInvitationResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserInvitationResult.cs @@ -70,10 +70,13 @@ internal StaticSiteUserInvitationResult(ResourceIdentifier id, string name, Reso } /// The expiration time of the invitation. + [WirePath("properties.expiresOn")] public DateTimeOffset? ExpiresOn { get; } /// The url for the invitation link. + [WirePath("properties.invitationUrl")] public Uri InvitationUri { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteZipDeployment.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteZipDeployment.cs index 9ebd5150c1241..c0fbd4d7f6fcb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteZipDeployment.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteZipDeployment.cs @@ -76,16 +76,22 @@ internal StaticSiteZipDeployment(ResourceIdentifier id, string name, ResourceTyp } /// URL for the zipped app content. + [WirePath("properties.appZipUrl")] public Uri AppZipUri { get; set; } /// URL for the zipped api content. + [WirePath("properties.apiZipUrl")] public Uri ApiZipUri { get; set; } /// A title to label the deployment. + [WirePath("properties.deploymentTitle")] public string DeploymentTitle { get; set; } /// The provider submitting this deployment. + [WirePath("properties.provider")] public string Provider { get; set; } /// The language of the api content, if it exists. + [WirePath("properties.functionLanguage")] public string FunctionLanguage { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitesWorkflowPreview.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitesWorkflowPreview.cs index 4aab51d25e646..579ffa03ef3c2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitesWorkflowPreview.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitesWorkflowPreview.cs @@ -70,10 +70,13 @@ internal StaticSitesWorkflowPreview(ResourceIdentifier id, string name, Resource } /// The path for the workflow file to be generated. + [WirePath("properties.path")] public string Path { get; } /// The contents for the workflow file to be generated. + [WirePath("properties.contents")] public string Contents { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitesWorkflowPreviewContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitesWorkflowPreviewContent.cs index 258b8d3fef7da..eaa0aefd14330 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitesWorkflowPreviewContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitesWorkflowPreviewContent.cs @@ -72,12 +72,16 @@ internal StaticSitesWorkflowPreviewContent(ResourceIdentifier id, string name, R } /// URL for the repository of the static site. + [WirePath("properties.repositoryUrl")] public Uri RepositoryUri { get; set; } /// The target branch in the repository. + [WirePath("properties.branch")] public string Branch { get; set; } /// Build properties to configure on the repository. + [WirePath("properties.buildProperties")] public StaticSiteBuildProperties BuildProperties { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StatusCodesBasedTrigger.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StatusCodesBasedTrigger.cs index c194c384545a7..164dda38b070d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StatusCodesBasedTrigger.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StatusCodesBasedTrigger.cs @@ -70,16 +70,22 @@ internal StatusCodesBasedTrigger(int? status, int? subStatus, int? win32Status, } /// HTTP status code. + [WirePath("status")] public int? Status { get; set; } /// Request Sub Status. + [WirePath("subStatus")] public int? SubStatus { get; set; } /// Win32 error code. + [WirePath("win32Status")] public int? Win32Status { get; set; } /// Request Count. + [WirePath("count")] public int? Count { get; set; } /// Time interval. + [WirePath("timeInterval")] public string TimeInterval { get; set; } /// Request Path. + [WirePath("path")] public string Path { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StatusCodesRangeBasedTrigger.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StatusCodesRangeBasedTrigger.cs index cab5ab558028f..ac55e28643ef3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StatusCodesRangeBasedTrigger.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StatusCodesRangeBasedTrigger.cs @@ -66,12 +66,16 @@ internal StatusCodesRangeBasedTrigger(string statusCodes, string path, int? coun } /// HTTP status code. + [WirePath("statusCodes")] public string StatusCodes { get; set; } /// Gets or sets the path. + [WirePath("path")] public string Path { get; set; } /// Request Count. + [WirePath("count")] public int? Count { get; set; } /// Time interval. + [WirePath("timeInterval")] public string TimeInterval { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMigrationContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMigrationContent.cs index 55596e232c8bd..d5bd582526517 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMigrationContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMigrationContent.cs @@ -74,14 +74,19 @@ internal StorageMigrationContent(ResourceIdentifier id, string name, ResourceTyp } /// AzureFiles connection string. + [WirePath("properties.azurefilesConnectionString")] public string AzurefilesConnectionString { get; set; } /// AzureFiles share. + [WirePath("properties.azurefilesShare")] public string AzurefilesShare { get; set; } /// <code>true</code>if the app should be switched over; otherwise, <code>false</code>. + [WirePath("properties.switchSiteAfterMigration")] public bool? SwitchSiteAfterMigration { get; set; } /// <code>true</code> if the app should be read only during copy operation; otherwise, <code>false</code>. + [WirePath("properties.blockWriteAccessToSite")] public bool? BlockWriteAccessToSite { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMigrationResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMigrationResult.cs index 739e603ec6d5f..350e25493d774 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMigrationResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMigrationResult.cs @@ -68,8 +68,10 @@ internal StorageMigrationResult(ResourceIdentifier id, string name, ResourceType } /// When server starts the migration process, it will return an operation ID identifying that particular migration operation. + [WirePath("properties.operationId")] public string OperationId { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.cs index c7048354437f1..935040cda9798 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.cs @@ -83,12 +83,16 @@ internal TldLegalAgreement() } /// Unique identifier for the agreement. + [WirePath("agreementKey")] public string AgreementKey { get; } /// Agreement title. + [WirePath("title")] public string Title { get; } /// Agreement details. + [WirePath("content")] public string Content { get; } /// URL where a copy of the agreement details is hosted. + [WirePath("url")] public Uri Uri { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.cs index fdea55b9410d1..757fa9d030ca9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.cs @@ -62,8 +62,10 @@ internal TopLevelDomainAgreementOption(bool? includePrivacy, bool? isForTransfer } /// If <code>true</code>, then the list of agreements will include agreements for domain privacy as well; otherwise, <code>false</code>. + [WirePath("includePrivacy")] public bool? IncludePrivacy { get; set; } /// If <code>true</code>, then the list of agreements will include agreements for domain transfer as well; otherwise, <code>false</code>. + [WirePath("forTransfer")] public bool? IsForTransfer { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredJobRun.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredJobRun.cs index 233c5720ed4cd..bf2aa320dcce9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredJobRun.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredJobRun.cs @@ -80,26 +80,37 @@ internal TriggeredJobRun(string webJobId, string webJobName, TriggeredWebJobStat } /// Job ID. + [WirePath("web_job_id")] public string WebJobId { get; set; } /// Job name. + [WirePath("web_job_name")] public string WebJobName { get; set; } /// Job status. + [WirePath("status")] public TriggeredWebJobStatus? Status { get; set; } /// Start time. + [WirePath("start_time")] public DateTimeOffset? StartOn { get; set; } /// End time. + [WirePath("end_time")] public DateTimeOffset? EndOn { get; set; } /// Job duration. + [WirePath("duration")] public TimeSpan? Duration { get; set; } /// Output URL. + [WirePath("output_url")] public Uri OutputUri { get; set; } /// Error URL. + [WirePath("error_url")] public Uri ErrorUri { get; set; } /// Job URL. + [WirePath("url")] public Uri Uri { get; set; } /// Job name. + [WirePath("job_name")] public string JobName { get; set; } /// Job trigger. + [WirePath("trigger")] public string Trigger { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredWebJobData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredWebJobData.Serialization.cs index 055930a8191ef..1d4f9a390f015 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredWebJobData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TriggeredWebJobData.Serialization.cs @@ -571,7 +571,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Settings) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TwitterRegistration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TwitterRegistration.cs index 8886bfd0e7e4d..ddebc23b8b125 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TwitterRegistration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TwitterRegistration.cs @@ -73,11 +73,13 @@ internal TwitterRegistration(string consumerKey, string consumerSecretSettingNam /// This setting is required for enabling Twitter Sign-In. /// Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in /// + [WirePath("consumerKey")] public string ConsumerKey { get; set; } /// /// The app setting name that contains the OAuth 1.0a consumer secret of the Twitter /// application used for sign-in. /// + [WirePath("consumerSecretSettingName")] public string ConsumerSecretSettingName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ValidateResponseError.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ValidateResponseError.cs index 6f14a2db9401b..c1c4d8c818a60 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ValidateResponseError.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ValidateResponseError.cs @@ -62,8 +62,10 @@ internal ValidateResponseError(string code, string message, IDictionary Validation error code. + [WirePath("code")] public string Code { get; } /// Validation error message. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualApplication.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualApplication.cs index ead4e566534b1..6af4697bb56c6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualApplication.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualApplication.cs @@ -68,12 +68,16 @@ internal VirtualApplication(string virtualPath, string physicalPath, bool? isPre } /// Virtual path. + [WirePath("virtualPath")] public string VirtualPath { get; set; } /// Physical path. + [WirePath("physicalPath")] public string PhysicalPath { get; set; } /// <code>true</code> if preloading is enabled; otherwise, <code>false</code>. + [WirePath("preloadEnabled")] public bool? IsPreloadEnabled { get; set; } /// Virtual directories for virtual application. + [WirePath("virtualDirectories")] public IList VirtualDirectories { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualDirectory.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualDirectory.cs index 1e25261ee6fef..94a06f95b8d72 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualDirectory.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualDirectory.cs @@ -62,8 +62,10 @@ internal VirtualDirectory(string virtualPath, string physicalPath, IDictionary Path to virtual application. + [WirePath("virtualPath")] public string VirtualPath { get; set; } /// Physical path. + [WirePath("physicalPath")] public string PhysicalPath { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualIPMapping.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualIPMapping.cs index 092e4018ffefa..3ef5fc6ebfb09 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualIPMapping.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualIPMapping.cs @@ -68,14 +68,19 @@ internal VirtualIPMapping(string virtualIP, int? internalHttpPort, int? internal } /// Virtual IP address. + [WirePath("virtualIP")] public string VirtualIP { get; set; } /// Internal HTTP port. + [WirePath("internalHttpPort")] public int? InternalHttpPort { get; set; } /// Internal HTTPS port. + [WirePath("internalHttpsPort")] public int? InternalHttpsPort { get; set; } /// Is virtual IP mapping in use. + [WirePath("inUse")] public bool? IsInUse { get; set; } /// name of the service that virtual IP is assigned to. + [WirePath("serviceName")] public string ServiceName { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationFailureDetails.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationFailureDetails.cs index 8d099de27217f..c3c622c457bae 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationFailureDetails.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationFailureDetails.cs @@ -76,14 +76,19 @@ internal VirtualNetworkValidationFailureDetails(ResourceIdentifier id, string na } /// Text describing the validation outcome. + [WirePath("properties.message")] public string Message { get; set; } /// A flag describing whether or not validation failed. + [WirePath("properties.failed")] public bool? IsFailed { get; set; } /// A list of tests that failed in the validation. + [WirePath("properties.failedTests")] public IList FailedTests { get; } /// A list of warnings generated during validation. + [WirePath("properties.warnings")] public IList Warnings { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationTestFailure.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationTestFailure.cs index 049c07c3e0092..d01dfb622b1a3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationTestFailure.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationTestFailure.cs @@ -70,10 +70,13 @@ internal VirtualNetworkValidationTestFailure(ResourceIdentifier id, string name, } /// The name of the test that failed. + [WirePath("properties.testName")] public string TestName { get; set; } /// The details of what caused the failure, e.g. the blocking rule name, etc. + [WirePath("properties.details")] public string Details { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupInfo.cs index 1ceaeffac6dff..09d099039e670 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupInfo.cs @@ -77,16 +77,22 @@ internal WebAppBackupInfo(ResourceIdentifier id, string name, ResourceType resou } /// Name of the backup. + [WirePath("properties.backupName")] public string BackupName { get; set; } /// True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled. + [WirePath("properties.enabled")] public bool? IsEnabled { get; set; } /// SAS URL to the container. + [WirePath("properties.storageAccountUrl")] public Uri StorageAccountUri { get; set; } /// Schedule for the backup if it is executed periodically. + [WirePath("properties.backupSchedule")] public WebAppBackupSchedule BackupSchedule { get; set; } /// Databases included in the backup. + [WirePath("properties.databases")] public IList Databases { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupSchedule.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupSchedule.cs index 3de04649ee37b..51b248705cd55 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupSchedule.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupSchedule.cs @@ -83,16 +83,22 @@ internal WebAppBackupSchedule() } /// How often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day). + [WirePath("frequencyInterval")] public int FrequencyInterval { get; set; } /// The unit of time for how often the backup should be executed (e.g. for weekly backup, this should be set to Day and FrequencyInterval should be set to 7). + [WirePath("frequencyUnit")] public BackupFrequencyUnit FrequencyUnit { get; set; } /// True if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise. + [WirePath("keepAtLeastOneBackup")] public bool ShouldKeepAtLeastOneBackup { get; set; } /// After how many days backups should be deleted. + [WirePath("retentionPeriodInDays")] public int RetentionPeriodInDays { get; set; } /// When the schedule should start working. + [WirePath("startTime")] public DateTimeOffset? StartOn { get; set; } /// Last time when this schedule was triggered. + [WirePath("lastExecutionTime")] public DateTimeOffset? LastExecutedOn { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppCookieExpiration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppCookieExpiration.cs index 0cca394a4e81f..fb53563eb2035 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppCookieExpiration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppCookieExpiration.cs @@ -62,8 +62,10 @@ internal WebAppCookieExpiration(CookieExpirationConvention? convention, string t } /// The convention used when determining the session cookie's expiration. + [WirePath("convention")] public CookieExpirationConvention? Convention { get; set; } /// The time after the request is made when the session cookie should expire. + [WirePath("timeToExpiration")] public string TimeToExpiration { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppEnabledConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppEnabledConfig.cs index a79d142b9844e..92627841bdf40 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppEnabledConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppEnabledConfig.cs @@ -60,6 +60,7 @@ internal WebAppEnabledConfig(bool? enabled, IDictionary seri } /// True if configuration is enabled, false if it is disabled and null if configuration is not set. + [WirePath("enabled")] public bool? Enabled { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppKeyInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppKeyInfo.cs index dcf7a15615405..bc9216463cf14 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppKeyInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppKeyInfo.cs @@ -60,6 +60,7 @@ internal WebAppKeyInfo(WebAppKeyInfoProperties properties, IDictionary Properties of function key info. + [WirePath("properties")] public WebAppKeyInfoProperties Properties { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppKeyInfoProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppKeyInfoProperties.cs index a5372e75790a0..261b34bfa7fb1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppKeyInfoProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppKeyInfoProperties.cs @@ -62,8 +62,10 @@ internal WebAppKeyInfoProperties(string name, string value, IDictionary Key name. + [WirePath("name")] public string Name { get; set; } /// Key value. + [WirePath("value")] public string Value { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLoginInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLoginInfo.cs index f4f6f7fb80faf..6d0e180e8aac8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLoginInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLoginInfo.cs @@ -78,6 +78,7 @@ internal WebAppLoginInfo(LoginRoutes routes, AppServiceTokenStore tokenStore, bo /// The routes that specify the endpoints used for login and logout requests. internal LoginRoutes Routes { get; set; } /// The endpoint at which a logout request should be made. + [WirePath("routes.logoutEndpoint")] public string RoutesLogoutEndpoint { get => Routes is null ? default : Routes.LogoutEndpoint; @@ -90,18 +91,23 @@ public string RoutesLogoutEndpoint } /// The configuration settings of the token store. + [WirePath("tokenStore")] public AppServiceTokenStore TokenStore { get; set; } /// <code>true</code> if the fragments from the request are preserved after the login request is made; otherwise, <code>false</code>. + [WirePath("preserveUrlFragmentsForLogins")] public bool? PreserveUrlFragmentsForLogins { get; set; } /// /// External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored. /// This is an advanced setting typically only needed by Windows Store application backends. /// Note that URLs within the current domain are always implicitly allowed. /// + [WirePath("allowedExternalRedirectUrls")] public IList AllowedExternalRedirectUrls { get; } /// The configuration settings of the session cookie's expiration. + [WirePath("cookieExpiration")] public WebAppCookieExpiration CookieExpiration { get; set; } /// The configuration settings of the nonce used in the login flow. + [WirePath("nonce")] public LoginFlowNonceSettings Nonce { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeploy.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeploy.Serialization.cs index 39271bbb9988e..992abc347ecf0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeploy.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeploy.Serialization.cs @@ -435,7 +435,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in SetParameters) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeploy.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeploy.cs index 4fd5ec53db730..1a866ca042a4e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeploy.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeploy.cs @@ -89,14 +89,19 @@ internal WebAppMSDeploy(ResourceIdentifier id, string name, ResourceType resourc } /// Package URI. + [WirePath("properties.packageUri")] public Uri PackageUri { get; set; } /// SQL Connection String. + [WirePath("properties.connectionString")] public string ConnectionString { get; set; } /// Database Type. + [WirePath("properties.dbType")] public string DBType { get; set; } /// URI of MSDeploy Parameters file. Must not be set if SetParameters is used. + [WirePath("properties.setParametersXmlFileUri")] public Uri SetParametersXmlFileUri { get; set; } /// MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. + [WirePath("properties.setParameters")] public IDictionary SetParameters { get; } /// /// Controls whether the MSDeploy operation skips the App_Data directory. @@ -104,13 +109,16 @@ internal WebAppMSDeploy(ResourceIdentifier id, string name, ResourceType resourc /// will not be deleted, and any App_Data directory in the source will be ignored. /// Setting is <code>false</code> by default. /// + [WirePath("properties.skipAppData")] public bool? SkipAppData { get; set; } /// /// Sets the AppOffline rule while the MSDeploy operation executes. /// Setting is <code>false</code> by default. /// + [WirePath("properties.appOffline")] public bool? IsAppOffline { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLog.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLog.cs index 4dbf9d8d37754..fb8361f800655 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLog.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLog.cs @@ -69,8 +69,10 @@ internal WebAppMSDeployLog(ResourceIdentifier id, string name, ResourceType reso } /// List of log entry messages. + [WirePath("properties.entries")] public IReadOnlyList Entries { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLogEntry.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLogEntry.cs index 6ed0b0e2f9ac5..fab4b5a5eef37 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLogEntry.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLogEntry.cs @@ -64,10 +64,13 @@ internal WebAppMSDeployLogEntry(DateTimeOffset? time, WebAppMSDeployLogEntryType } /// Timestamp of log entry. + [WirePath("time")] public DateTimeOffset? Time { get; } /// Log entry type. + [WirePath("type")] public WebAppMSDeployLogEntryType? EntryType { get; } /// Log entry message. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMajorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMajorVersion.cs index 55ad8f1d4f970..2e2b412a336bc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMajorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMajorVersion.cs @@ -66,10 +66,13 @@ internal WebAppMajorVersion(string displayText, string value, IReadOnlyList Web App stack major version (display only). + [WirePath("displayText")] public string DisplayText { get; } /// Web App stack major version name. + [WirePath("value")] public string Value { get; } /// Minor versions associated with the major version. + [WirePath("minorVersions")] public IReadOnlyList MinorVersions { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMinorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMinorVersion.cs index d0f7b30ecd883..a4f8b1cc954f9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMinorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMinorVersion.cs @@ -64,10 +64,13 @@ internal WebAppMinorVersion(string displayText, string value, WebAppRuntimes sta } /// Web App stack minor version (display only). + [WirePath("displayText")] public string DisplayText { get; } /// Web App stack major version name. + [WirePath("value")] public string Value { get; } /// Settings associated with the minor version. + [WirePath("stackSettings")] public WebAppRuntimes StackSettings { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppNetworkTrace.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppNetworkTrace.cs index 6be6c82602d52..c1e480bc7233a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppNetworkTrace.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppNetworkTrace.cs @@ -64,10 +64,13 @@ internal WebAppNetworkTrace(string path, string status, string message, IDiction } /// Local file path for the captured network trace file. + [WirePath("path")] public string Path { get; } /// Current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed). + [WirePath("status")] public string Status { get; } /// Detailed message of a network trace operation, e.g. error message in case of failure. + [WirePath("message")] public string Message { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppPushSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppPushSettings.cs index 114eba22542df..cc999b5695760 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppPushSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppPushSettings.cs @@ -79,8 +79,10 @@ internal WebAppPushSettings(ResourceIdentifier id, string name, ResourceType res } /// Gets or sets a flag indicating whether the Push endpoint is enabled. + [WirePath("properties.isPushEnabled")] public bool? IsPushEnabled { get; set; } /// Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. + [WirePath("properties.tagWhitelistJson")] public string TagWhitelistJson { get; set; } /// /// Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint. @@ -88,10 +90,13 @@ internal WebAppPushSettings(ResourceIdentifier id, string name, ResourceType res /// '_', '@', '#', '.', ':', '-'. /// Validation should be performed at the PushRequestHandler. /// + [WirePath("properties.tagsRequiringAuth")] public string TagsRequiringAuth { get; set; } /// Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. + [WirePath("properties.dynamicTagsJson")] public string DynamicTagsJson { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppRuntimeSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppRuntimeSettings.cs index c02269cab86de..323dbfc631e37 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppRuntimeSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppRuntimeSettings.cs @@ -78,24 +78,34 @@ internal WebAppRuntimeSettings(string runtimeVersion, bool? isRemoteDebuggingSup } /// Web App stack minor version (runtime only). + [WirePath("runtimeVersion")] public string RuntimeVersion { get; } /// <code>true</code> if remote debugging is supported for the stack; otherwise, <code>false</code>. + [WirePath("remoteDebuggingSupported")] public bool? IsRemoteDebuggingSupported { get; } /// Application Insights settings associated with the minor version. + [WirePath("appInsightsSettings")] public AppInsightsWebAppStackSettings AppInsightsSettings { get; } /// GitHub Actions settings associated with the minor version. + [WirePath("gitHubActionSettings")] public GitHubActionWebAppStackSettings GitHubActionSettings { get; } /// <code>true</code> if the stack is in preview; otherwise, <code>false</code>. + [WirePath("isPreview")] public bool? IsPreview { get; } /// <code>true</code> if the stack is deprecated; otherwise, <code>false</code>. + [WirePath("isDeprecated")] public bool? IsDeprecated { get; } /// <code>true</code> if the stack should be hidden; otherwise, <code>false</code>. + [WirePath("isHidden")] public bool? IsHidden { get; } /// End-of-life date for the minor version. + [WirePath("endOfLifeDate")] public DateTimeOffset? EndOfLifeOn { get; } /// <code>true</code> if the stack version is auto-updated; otherwise, <code>false</code>. + [WirePath("isAutoUpdate")] public bool? IsAutoUpdate { get; } /// <code>true</code> if the minor version is early-access; otherwise, <code>false</code>. + [WirePath("isEarlyAccess")] public bool? IsEarlyAccess { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppRuntimes.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppRuntimes.cs index 4b15fe1aa4693..f3d6133ba9bb6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppRuntimes.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppRuntimes.cs @@ -66,12 +66,16 @@ internal WebAppRuntimes(WebAppRuntimeSettings linuxRuntimeSettings, WebAppRuntim } /// Linux-specific settings associated with the minor version. + [WirePath("linuxRuntimeSettings")] public WebAppRuntimeSettings LinuxRuntimeSettings { get; } /// Windows-specific settings associated with the minor version. + [WirePath("windowsRuntimeSettings")] public WebAppRuntimeSettings WindowsRuntimeSettings { get; } /// Linux-specific settings associated with the Java container minor version. + [WirePath("linuxContainerSettings")] public LinuxJavaContainerSettings LinuxContainerSettings { get; } /// Windows-specific settings associated with the Java container minor version. + [WirePath("windowsContainerSettings")] public WindowsJavaContainerSettings WindowsContainerSettings { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppStack.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppStack.cs index fefedca7b2bba..602f41fd5f28b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppStack.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppStack.cs @@ -77,16 +77,22 @@ internal WebAppStack(ResourceIdentifier id, string name, ResourceType resourceTy } /// Web App stack location. + [WirePath("location")] public AzureLocation? Location { get; } /// Web App stack (display only). + [WirePath("properties.displayText")] public string DisplayText { get; } /// Web App stack name. + [WirePath("properties.value")] public string Value { get; } /// List of major versions available. + [WirePath("properties.majorVersions")] public IReadOnlyList MajorVersions { get; } /// Web App stack preferred OS. + [WirePath("properties.preferredOs")] public StackPreferredOS? PreferredOS { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebJobData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebJobData.Serialization.cs index d0a45abeeb820..0c868e97bea94 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebJobData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebJobData.Serialization.cs @@ -484,7 +484,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Settings) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteData.Serialization.cs index 0ca43944ef8c3..ff1f40356fef3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteData.Serialization.cs @@ -954,7 +954,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Tags) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); if (item.Value == null) { builder.Append("null"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteInstanceStatusData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteInstanceStatusData.Serialization.cs index 103f523ce9300..ea65977e736fe 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteInstanceStatusData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteInstanceStatusData.Serialization.cs @@ -431,7 +431,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine(" {"); foreach (var item in Containers) { - builder.Append($" {item.Key}:"); + builder.Append($" '{item.Key}':"); AppendChildObject(builder, item.Value, options, 6, false); } builder.AppendLine(" }"); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WindowsJavaContainerSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WindowsJavaContainerSettings.cs index ff8e19dcaedfc..8ab073be3523e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WindowsJavaContainerSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WindowsJavaContainerSettings.cs @@ -74,20 +74,28 @@ internal WindowsJavaContainerSettings(string javaContainer, string javaContainer } /// Java container (runtime only). + [WirePath("javaContainer")] public string JavaContainer { get; } /// Java container version (runtime only). + [WirePath("javaContainerVersion")] public string JavaContainerVersion { get; } /// <code>true</code> if the stack is in preview; otherwise, <code>false</code>. + [WirePath("isPreview")] public bool? IsPreview { get; } /// <code>true</code> if the stack is deprecated; otherwise, <code>false</code>. + [WirePath("isDeprecated")] public bool? IsDeprecated { get; } /// <code>true</code> if the stack should be hidden; otherwise, <code>false</code>. + [WirePath("isHidden")] public bool? IsHidden { get; } /// End-of-life date for the minor version. + [WirePath("endOfLifeDate")] public DateTimeOffset? EndOfLifeOn { get; } /// <code>true</code> if the stack version is auto-updated; otherwise, <code>false</code>. + [WirePath("isAutoUpdate")] public bool? IsAutoUpdate { get; } /// <code>true</code> if the minor version is early-access; otherwise, <code>false</code>. + [WirePath("isEarlyAccess")] public bool? IsEarlyAccess { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureData.cs index 7e2a8508e78ce..e274101624e91 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureData.cs @@ -80,14 +80,19 @@ internal NetworkFeatureData(ResourceIdentifier id, string name, ResourceType res } /// The Virtual Network name. + [WirePath("properties.virtualNetworkName")] public string VirtualNetworkName { get; } /// The Virtual Network summary view. + [WirePath("properties.virtualNetworkConnection")] public AppServiceVirtualNetworkProperties VirtualNetworkConnection { get; } /// The Hybrid Connections summary view. + [WirePath("properties.hybridConnections")] public IReadOnlyList HybridConnections { get; } /// The Hybrid Connection V2 (Service Bus) view. + [WirePath("properties.hybridConnectionsV2")] public IReadOnlyList HybridConnectionsV2 { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PremierAddOnData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PremierAddOnData.cs index 0260e24053cf0..c7a132a844484 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PremierAddOnData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PremierAddOnData.cs @@ -87,16 +87,22 @@ internal PremierAddOnData() } /// Premier add on SKU. + [WirePath("properties.sku")] public string Sku { get; set; } /// Premier add on Product. + [WirePath("properties.product")] public string Product { get; set; } /// Premier add on Vendor. + [WirePath("properties.vendor")] public string Vendor { get; set; } /// Premier add on Marketplace publisher. + [WirePath("properties.marketplacePublisher")] public string MarketplacePublisher { get; set; } /// Premier add on Marketplace offer. + [WirePath("properties.marketplaceOffer")] public string MarketplaceOffer { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PrivateAccessData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PrivateAccessData.cs index e8544da75e6cc..72a5a756c8040 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PrivateAccessData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PrivateAccessData.cs @@ -75,10 +75,13 @@ internal PrivateAccessData(ResourceIdentifier id, string name, ResourceType reso } /// Whether private access is enabled or not. + [WirePath("properties.enabled")] public bool? IsEnabled { get; set; } /// The Virtual Networks (and subnets) allowed to access the site privately. + [WirePath("properties.virtualNetworks")] public IList VirtualNetworks { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ProcessInfoData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ProcessInfoData.cs index 33fee2e1a09b3..250268ba992d5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ProcessInfoData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ProcessInfoData.cs @@ -147,78 +147,115 @@ internal ProcessInfoData(ResourceIdentifier id, string name, ResourceType resour } /// ARM Identifier for deployment. + [WirePath("properties.identifier")] public int? Identifier { get; } /// Deployment name. + [WirePath("properties.deployment_name")] public string DeploymentName { get; set; } /// HRef URI. + [WirePath("properties.href")] public string Href { get; set; } /// Minidump URI. + [WirePath("properties.minidump")] public string Minidump { get; set; } /// Is profile running?. + [WirePath("properties.is_profile_running")] public bool? IsProfileRunning { get; set; } /// Is the IIS Profile running?. + [WirePath("properties.is_iis_profile_running")] public bool? IsIisProfileRunning { get; set; } /// IIS Profile timeout (seconds). + [WirePath("properties.iis_profile_timeout_in_seconds")] public double? IisProfileTimeoutInSeconds { get; set; } /// Parent process. + [WirePath("properties.parent")] public string Parent { get; set; } /// Child process list. + [WirePath("properties.children")] public IList Children { get; } /// Thread list. + [WirePath("properties.threads")] public IList Threads { get; } /// List of open files. + [WirePath("properties.open_file_handles")] public IList OpenFileHandles { get; } /// List of modules. + [WirePath("properties.modules")] public IList Modules { get; } /// File name of this process. + [WirePath("properties.file_name")] public string FileName { get; set; } /// Command line. + [WirePath("properties.command_line")] public string CommandLine { get; set; } /// User name. + [WirePath("properties.user_name")] public string UserName { get; set; } /// Handle count. + [WirePath("properties.handle_count")] public int? HandleCount { get; set; } /// Module count. + [WirePath("properties.module_count")] public int? ModuleCount { get; set; } /// Thread count. + [WirePath("properties.thread_count")] public int? ThreadCount { get; set; } /// Start time. + [WirePath("properties.start_time")] public DateTimeOffset? StartOn { get; set; } /// Total CPU time. + [WirePath("properties.total_cpu_time")] public string TotalCpuTime { get; set; } /// User CPU time. + [WirePath("properties.user_cpu_time")] public string UserCpuTime { get; set; } /// Privileged CPU time. + [WirePath("properties.privileged_cpu_time")] public string PrivilegedCpuTime { get; set; } /// Working set. + [WirePath("properties.working_set")] public long? WorkingSet { get; set; } /// Peak working set. + [WirePath("properties.peak_working_set")] public long? PeakWorkingSet { get; set; } /// Private memory size. + [WirePath("properties.private_memory")] public long? PrivateMemory { get; set; } /// Virtual memory size. + [WirePath("properties.virtual_memory")] public long? VirtualMemory { get; set; } /// Peak virtual memory usage. + [WirePath("properties.peak_virtual_memory")] public long? PeakVirtualMemory { get; set; } /// Paged system memory. + [WirePath("properties.paged_system_memory")] public long? PagedSystemMemory { get; set; } /// Non-paged system memory. + [WirePath("properties.non_paged_system_memory")] public long? NonPagedSystemMemory { get; set; } /// Paged memory. + [WirePath("properties.paged_memory")] public long? PagedMemory { get; set; } /// Peak paged memory. + [WirePath("properties.peak_paged_memory")] public long? PeakPagedMemory { get; set; } /// Time stamp. + [WirePath("properties.time_stamp")] public DateTimeOffset? TimeStamp { get; set; } /// List of environment variables. + [WirePath("properties.environment_variables")] public IDictionary EnvironmentVariables { get; } /// Is this the SCM site?. + [WirePath("properties.is_scm_site")] public bool? IsScmSite { get; set; } /// Is this a Web Job?. + [WirePath("properties.is_webjob")] public bool? IsWebjob { get; set; } /// Description of process. + [WirePath("properties.description")] public string Description { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ProcessModuleInfoData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ProcessModuleInfoData.cs index 01340a8d40985..ef54d047f5a8f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ProcessModuleInfoData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ProcessModuleInfoData.cs @@ -91,28 +91,40 @@ internal ProcessModuleInfoData(ResourceIdentifier id, string name, ResourceType } /// Base address. Used as module identifier in ARM resource URI. + [WirePath("properties.base_address")] public string BaseAddress { get; set; } /// File name. + [WirePath("properties.file_name")] public string FileName { get; set; } /// HRef URI. + [WirePath("properties.href")] public string Href { get; set; } /// File path. + [WirePath("properties.file_path")] public string FilePath { get; set; } /// Module memory size. + [WirePath("properties.module_memory_size")] public int? ModuleMemorySize { get; set; } /// File version. + [WirePath("properties.file_version")] public string FileVersion { get; set; } /// File description. + [WirePath("properties.file_description")] public string FileDescription { get; set; } /// Product name. + [WirePath("properties.product")] public string Product { get; set; } /// Product version. + [WirePath("properties.product_version")] public string ProductVersion { get; set; } /// Is debug?. + [WirePath("properties.is_debug")] public bool? IsDebug { get; set; } /// Module language (locale). + [WirePath("properties.language")] public string Language { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublicCertificateData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublicCertificateData.cs index 8655324c1e893..603f89280a48a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublicCertificateData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublicCertificateData.cs @@ -76,12 +76,16 @@ internal PublicCertificateData(ResourceIdentifier id, string name, ResourceType } /// Public Certificate byte array. + [WirePath("properties.blob")] public byte[] Blob { get; set; } /// Public Certificate Location. + [WirePath("properties.publicCertificateLocation")] public PublicCertificateLocation? PublicCertificateLocation { get; set; } /// Certificate Thumbprint. + [WirePath("properties.thumbprint")] public string ThumbprintString { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserData.cs index 4c9b7cd393197..7429ec62c85f8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserData.cs @@ -79,16 +79,22 @@ internal PublishingUserData(ResourceIdentifier id, string name, ResourceType res } /// Username used for publishing. + [WirePath("properties.publishingUserName")] public string PublishingUserName { get; set; } /// Password used for publishing. + [WirePath("properties.publishingPassword")] public string PublishingPassword { get; set; } /// Password hash used for publishing. + [WirePath("properties.publishingPasswordHash")] public string PublishingPasswordHash { get; set; } /// Password hash salt used for publishing. + [WirePath("properties.publishingPasswordHashSalt")] public string PublishingPasswordHashSalt { get; set; } /// Url of SCM site. + [WirePath("properties.scmUri")] public Uri ScmUri { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RecommendationRuleData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RecommendationRuleData.cs index ed88861f4608d..cb961673eafb0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RecommendationRuleData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RecommendationRuleData.cs @@ -100,35 +100,49 @@ internal RecommendationRuleData(ResourceIdentifier id, string name, ResourceType } /// Unique name of the rule. + [WirePath("properties.recommendationName")] public string RecommendationName { get; set; } /// UI friendly name of the rule. + [WirePath("properties.displayName")] public string DisplayName { get; set; } /// Localized name of the rule (Good for UI). + [WirePath("properties.message")] public string Message { get; set; } /// /// Recommendation ID of an associated recommendation object tied to the rule, if exists. /// If such an object doesn't exist, it is set to null. /// + [WirePath("properties.recommendationId")] public Guid? RecommendationId { get; set; } /// Localized detailed description of the rule. + [WirePath("properties.description")] public string Description { get; set; } /// Name of action that is recommended by this rule in string. + [WirePath("properties.actionName")] public string ActionName { get; set; } /// Level of impact indicating how critical this rule is. + [WirePath("properties.level")] public NotificationLevel? Level { get; set; } /// List of available channels that this rule applies. + [WirePath("properties.channels")] public RecommendationChannel? Channels { get; set; } /// The list of category tags that this recommendation rule belongs to. + [WirePath("properties.categoryTags")] public IReadOnlyList CategoryTags { get; } /// True if this is associated with a dynamically added rule. + [WirePath("properties.isDynamic")] public bool? IsDynamic { get; set; } /// Extension name of the portal if exists. Applicable to dynamic rule only. + [WirePath("properties.extensionName")] public string ExtensionName { get; set; } /// Deep link to a blade on the portal. Applicable to dynamic rule only. + [WirePath("properties.bladeName")] public string BladeName { get; set; } /// Forward link to an external document associated with the rule. Applicable to dynamic rule only. + [WirePath("properties.forwardLink")] public string ForwardLink { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RelayServiceConnectionEntityData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RelayServiceConnectionEntityData.cs index 2b9a1613d3928..077b973bdcd77 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RelayServiceConnectionEntityData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RelayServiceConnectionEntityData.cs @@ -81,18 +81,25 @@ internal RelayServiceConnectionEntityData(ResourceIdentifier id, string name, Re } /// Gets or sets the entity name. + [WirePath("properties.entityName")] public string EntityName { get; set; } /// Gets or sets the entity connection string. + [WirePath("properties.entityConnectionString")] public string EntityConnectionString { get; set; } /// Gets or sets the resource connection string. + [WirePath("properties.resourceConnectionString")] public string ResourceConnectionString { get; set; } /// Gets or sets the hostname. + [WirePath("properties.hostname")] public string Hostname { get; set; } /// Gets or sets the port. + [WirePath("properties.port")] public int? Port { get; set; } /// Gets or sets the biztalk uri. + [WirePath("properties.biztalkUri")] public Uri BiztalkUri { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RemotePrivateEndpointConnectionARMResourceData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RemotePrivateEndpointConnectionARMResourceData.cs index badfdc8bcd6c5..5a43bd6526587 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RemotePrivateEndpointConnectionARMResourceData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RemotePrivateEndpointConnectionARMResourceData.cs @@ -81,20 +81,25 @@ internal RemotePrivateEndpointConnectionARMResourceData(ResourceIdentifier id, s } /// Gets the provisioning state. + [WirePath("properties.provisioningState")] public string ProvisioningState { get; } /// PrivateEndpoint of a remote private endpoint connection. internal SubResource PrivateEndpoint { get; set; } /// Gets Id. + [WirePath("properties.privateEndpoint.id")] public ResourceIdentifier PrivateEndpointId { get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; } /// The state of a private link connection. + [WirePath("properties.privateLinkServiceConnectionState")] public PrivateLinkConnectionState PrivateLinkServiceConnectionState { get; set; } /// Private IPAddresses mapped to the remote private endpoint. + [WirePath("properties.ipAddresses")] public IList IPAddresses { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ResourceHealthMetadataData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ResourceHealthMetadataData.cs index fc88e3ef108ca..e28922feee4b4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ResourceHealthMetadataData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ResourceHealthMetadataData.cs @@ -73,10 +73,13 @@ internal ResourceHealthMetadataData(ResourceIdentifier id, string name, Resource } /// The category that the resource matches in the RHC Policy File. + [WirePath("properties.category")] public string Category { get; set; } /// Is there a health signal for the resource. + [WirePath("properties.signalAvailability")] public bool? IsSignalAvailable { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigData.cs index 36848181534ea..49ee7cc15effb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigData.cs @@ -225,78 +225,114 @@ internal SiteConfigData(ResourceIdentifier id, string name, ResourceType resourc } /// Number of workers. + [WirePath("properties.numberOfWorkers")] public int? NumberOfWorkers { get; set; } /// Default documents. + [WirePath("properties.defaultDocuments")] public IList DefaultDocuments { get; set; } /// .NET Framework version. + [WirePath("properties.netFrameworkVersion")] public string NetFrameworkVersion { get; set; } /// Version of PHP. + [WirePath("properties.phpVersion")] public string PhpVersion { get; set; } /// Version of Python. + [WirePath("properties.pythonVersion")] public string PythonVersion { get; set; } /// Version of Node.js. + [WirePath("properties.nodeVersion")] public string NodeVersion { get; set; } /// Version of PowerShell. + [WirePath("properties.powerShellVersion")] public string PowerShellVersion { get; set; } /// Linux App Framework and version. + [WirePath("properties.linuxFxVersion")] public string LinuxFxVersion { get; set; } /// Xenon App Framework and version. + [WirePath("properties.windowsFxVersion")] public string WindowsFxVersion { get; set; } /// <code>true</code> if request tracing is enabled; otherwise, <code>false</code>. + [WirePath("properties.requestTracingEnabled")] public bool? IsRequestTracingEnabled { get; set; } /// Request tracing expiration time. + [WirePath("properties.requestTracingExpirationTime")] public DateTimeOffset? RequestTracingExpirationOn { get; set; } /// <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>. + [WirePath("properties.remoteDebuggingEnabled")] public bool? IsRemoteDebuggingEnabled { get; set; } /// Remote debugging version. + [WirePath("properties.remoteDebuggingVersion")] public string RemoteDebuggingVersion { get; set; } /// <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>. + [WirePath("properties.httpLoggingEnabled")] public bool? IsHttpLoggingEnabled { get; set; } /// Flag to use Managed Identity Creds for ACR pull. + [WirePath("properties.acrUseManagedIdentityCreds")] public bool? UseManagedIdentityCreds { get; set; } /// If using user managed identity, the user managed identity ClientId. + [WirePath("properties.acrUserManagedIdentityID")] public string AcrUserManagedIdentityId { get; set; } /// HTTP logs directory size limit. + [WirePath("properties.logsDirectorySizeLimit")] public int? LogsDirectorySizeLimit { get; set; } /// <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>. + [WirePath("properties.detailedErrorLoggingEnabled")] public bool? IsDetailedErrorLoggingEnabled { get; set; } /// Publishing user name. + [WirePath("properties.publishingUsername")] public string PublishingUsername { get; set; } /// Application settings. + [WirePath("properties.appSettings")] public IList AppSettings { get; set; } /// Connection strings. + [WirePath("properties.connectionStrings")] public IList ConnectionStrings { get; set; } /// Site MachineKey. + [WirePath("properties.machineKey")] public SiteMachineKey MachineKey { get; } /// Handler mappings. + [WirePath("properties.handlerMappings")] public IList HandlerMappings { get; set; } /// Document root. + [WirePath("properties.documentRoot")] public string DocumentRoot { get; set; } /// SCM type. + [WirePath("properties.scmType")] public ScmType? ScmType { get; set; } /// <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>. + [WirePath("properties.use32BitWorkerProcess")] public bool? Use32BitWorkerProcess { get; set; } /// <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>. + [WirePath("properties.webSocketsEnabled")] public bool? IsWebSocketsEnabled { get; set; } /// <code>true</code> if Always On is enabled; otherwise, <code>false</code>. + [WirePath("properties.alwaysOn")] public bool? IsAlwaysOn { get; set; } /// Java version. + [WirePath("properties.javaVersion")] public string JavaVersion { get; set; } /// Java container. + [WirePath("properties.javaContainer")] public string JavaContainer { get; set; } /// Java container version. + [WirePath("properties.javaContainerVersion")] public string JavaContainerVersion { get; set; } /// App command line to launch. + [WirePath("properties.appCommandLine")] public string AppCommandLine { get; set; } /// Managed pipeline mode. + [WirePath("properties.managedPipelineMode")] public ManagedPipelineMode? ManagedPipelineMode { get; set; } /// Virtual applications. + [WirePath("properties.virtualApplications")] public IList VirtualApplications { get; set; } /// Site load balancing. + [WirePath("properties.loadBalancing")] public SiteLoadBalancing? LoadBalancing { get; set; } /// This is work around for polymorphic types. internal RoutingRuleExperiments Experiments { get; set; } /// List of ramp-up rules. + [WirePath("properties.experiments.rampUpRules")] public IList ExperimentsRampUpRules { get @@ -308,26 +344,36 @@ public IList ExperimentsRampUpRules } /// Site limits. + [WirePath("properties.limits")] public SiteLimits Limits { get; set; } /// <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>. + [WirePath("properties.autoHealEnabled")] public bool? IsAutoHealEnabled { get; set; } /// Auto Heal rules. + [WirePath("properties.autoHealRules")] public AutoHealRules AutoHealRules { get; set; } /// Tracing options. + [WirePath("properties.tracingOptions")] public string TracingOptions { get; set; } /// Virtual Network name. + [WirePath("properties.vnetName")] public string VnetName { get; set; } /// Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. + [WirePath("properties.vnetRouteAllEnabled")] public bool? IsVnetRouteAllEnabled { get; set; } /// The number of private ports assigned to this app. These will be assigned dynamically on runtime. + [WirePath("properties.vnetPrivatePortsCount")] public int? VnetPrivatePortsCount { get; set; } /// Cross-Origin Resource Sharing (CORS) settings. + [WirePath("properties.cors")] public AppServiceCorsSettings Cors { get; set; } /// Push endpoint settings. + [WirePath("properties.push")] public WebAppPushSettings Push { get; set; } /// Information about the formal API definition for the app. internal AppServiceApiDefinitionInfo ApiDefinition { get; set; } /// The URL of the API definition. + [WirePath("properties.apiDefinition.url")] public Uri ApiDefinitionUri { get => ApiDefinition is null ? default : ApiDefinition.Uri; @@ -342,6 +388,7 @@ public Uri ApiDefinitionUri /// Azure API management settings linked to the app. internal ApiManagementConfig ApiManagementConfig { get; set; } /// APIM-Api Identifier. + [WirePath("properties.apiManagementConfig.id")] public string ApiManagementConfigId { get => ApiManagementConfig is null ? default : ApiManagementConfig.Id; @@ -354,59 +401,80 @@ public string ApiManagementConfigId } /// Auto-swap slot name. + [WirePath("properties.autoSwapSlotName")] public string AutoSwapSlotName { get; set; } /// <code>true</code> to enable local MySQL; otherwise, <code>false</code>. + [WirePath("properties.localMySqlEnabled")] public bool? IsLocalMySqlEnabled { get; set; } /// Managed Service Identity Id. + [WirePath("properties.managedServiceIdentityId")] public int? ManagedServiceIdentityId { get; set; } /// Explicit Managed Service Identity Id. + [WirePath("properties.xManagedServiceIdentityId")] public int? XManagedServiceIdentityId { get; set; } /// Identity to use for Key Vault Reference authentication. + [WirePath("properties.keyVaultReferenceIdentity")] public string KeyVaultReferenceIdentity { get; set; } /// IP security restrictions for main. + [WirePath("properties.ipSecurityRestrictions")] public IList IPSecurityRestrictions { get; set; } /// IP security restrictions for scm. + [WirePath("properties.scmIpSecurityRestrictions")] public IList ScmIPSecurityRestrictions { get; set; } /// IP security restrictions for scm to use main. + [WirePath("properties.scmIpSecurityRestrictionsUseMain")] public bool? AllowIPSecurityRestrictionsForScmToUseMain { get; set; } /// Http20Enabled: configures a web site to allow clients to connect over http2.0. + [WirePath("properties.http20Enabled")] public bool? IsHttp20Enabled { get; set; } /// MinTlsVersion: configures the minimum version of TLS required for SSL requests. + [WirePath("properties.minTlsVersion")] public AppServiceSupportedTlsVersion? MinTlsVersion { get; set; } /// ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site. + [WirePath("properties.scmMinTlsVersion")] public AppServiceSupportedTlsVersion? ScmMinTlsVersion { get; set; } /// State of FTP / FTPS service. + [WirePath("properties.ftpsState")] public AppServiceFtpsState? FtpsState { get; set; } /// /// Number of preWarmed instances. /// This setting only applies to the Consumption and Elastic Plans /// + [WirePath("properties.preWarmedInstanceCount")] public int? PreWarmedInstanceCount { get; set; } /// /// Maximum number of workers that a site can scale out to. /// This setting only applies to the Consumption and Elastic Premium Plans /// + [WirePath("properties.functionAppScaleLimit")] public int? FunctionAppScaleLimit { get; set; } /// Health check path. + [WirePath("properties.healthCheckPath")] public string HealthCheckPath { get; set; } /// /// Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, /// the ScaleController will not monitor event sources directly, but will instead call to the /// runtime to get scale status. /// + [WirePath("properties.functionsRuntimeScaleMonitoringEnabled")] public bool? IsFunctionsRuntimeScaleMonitoringEnabled { get; set; } /// Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + [WirePath("properties.websiteTimeZone")] public string WebsiteTimeZone { get; set; } /// /// Number of minimum instance count for a site /// This setting only applies to the Elastic Plans /// + [WirePath("properties.minimumElasticInstanceCount")] public int? MinimumElasticInstanceCount { get; set; } /// List of Azure Storage Accounts. + [WirePath("properties.azureStorageAccounts")] public IDictionary AzureStorageAccounts { get; set; } /// Property to allow or block all public traffic. + [WirePath("properties.publicNetworkAccess")] public string PublicNetworkAccess { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtensionInfoData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtensionInfoData.cs index d7ae373bf5f42..ffd958e6ade19 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtensionInfoData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtensionInfoData.cs @@ -111,46 +111,67 @@ internal SiteExtensionInfoData(ResourceIdentifier id, string name, ResourceType } /// Site extension ID. + [WirePath("properties.extension_id")] public string ExtensionId { get; set; } /// Gets or sets the title. + [WirePath("properties.title")] public string Title { get; set; } /// Site extension type. + [WirePath("properties.extension_type")] public SiteExtensionType? ExtensionType { get; set; } /// Summary description. + [WirePath("properties.summary")] public string Summary { get; set; } /// Detailed description. + [WirePath("properties.description")] public string Description { get; set; } /// Version information. + [WirePath("properties.version")] public string Version { get; set; } /// Extension URL. + [WirePath("properties.extension_url")] public Uri ExtensionUri { get; set; } /// Project URL. + [WirePath("properties.project_url")] public Uri ProjectUri { get; set; } /// Icon URL. + [WirePath("properties.icon_url")] public Uri IconUri { get; set; } /// License URL. + [WirePath("properties.license_url")] public Uri LicenseUri { get; set; } /// Feed URL. + [WirePath("properties.feed_url")] public Uri FeedUri { get; set; } /// List of authors. + [WirePath("properties.authors")] public IList Authors { get; } /// Installer command line parameters. + [WirePath("properties.installer_command_line_params")] public string InstallerCommandLineParams { get; set; } /// Published timestamp. + [WirePath("properties.published_date_time")] public DateTimeOffset? PublishedOn { get; set; } /// Count of downloads. + [WirePath("properties.download_count")] public int? DownloadCount { get; set; } /// <code>true</code> if the local version is the latest version; <code>false</code> otherwise. + [WirePath("properties.local_is_latest_version")] public bool? LocalIsLatestVersion { get; set; } /// Local path. + [WirePath("properties.local_path")] public string LocalPath { get; set; } /// Installed timestamp. + [WirePath("properties.installed_date_time")] public DateTimeOffset? InstalledOn { get; set; } /// Provisioning state. + [WirePath("properties.provisioningState")] public string ProvisioningState { get; set; } /// Site Extension comment. + [WirePath("properties.comment")] public string Comment { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteLogsConfigData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteLogsConfigData.cs index 28067dd2b1f38..03f560c0adffd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteLogsConfigData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteLogsConfigData.cs @@ -78,12 +78,15 @@ internal SiteLogsConfigData(ResourceIdentifier id, string name, ResourceType res } /// Application logs configuration. + [WirePath("properties.applicationLogs")] public ApplicationLogsConfig ApplicationLogs { get; set; } /// HTTP logs configuration. + [WirePath("properties.httpLogs")] public AppServiceHttpLogsConfig HttpLogs { get; set; } /// Failed requests tracing configuration. internal WebAppEnabledConfig IsFailedRequestsTracing { get; set; } /// True if configuration is enabled, false if it is disabled and null if configuration is not set. + [WirePath("properties.failedRequestsTracing.enabled")] public bool? IsFailedRequestsTracingEnabled { get => IsFailedRequestsTracing is null ? default : IsFailedRequestsTracing.Enabled; @@ -98,6 +101,7 @@ public bool? IsFailedRequestsTracingEnabled /// Detailed error messages configuration. internal WebAppEnabledConfig IsDetailedErrorMessages { get; set; } /// True if configuration is enabled, false if it is disabled and null if configuration is not set. + [WirePath("properties.detailedErrorMessages.enabled")] public bool? IsDetailedErrorMessagesEnabled { get => IsDetailedErrorMessages is null ? default : IsDetailedErrorMessages.Enabled; @@ -110,6 +114,7 @@ public bool? IsDetailedErrorMessagesEnabled } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSourceControlData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSourceControlData.cs index de61a7b674b6d..19356cd77490f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSourceControlData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSourceControlData.cs @@ -84,20 +84,28 @@ internal SiteSourceControlData(ResourceIdentifier id, string name, ResourceType } /// Repository or source control URL. + [WirePath("properties.repoUrl")] public Uri RepoUri { get; set; } /// Name of branch to use for deployment. + [WirePath("properties.branch")] public string Branch { get; set; } /// <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub). + [WirePath("properties.isManualIntegration")] public bool? IsManualIntegration { get; set; } /// <code>true</code> if this is deployed via GitHub action. + [WirePath("properties.isGitHubAction")] public bool? IsGitHubAction { get; set; } /// <code>true</code> to enable deployment rollback; otherwise, <code>false</code>. + [WirePath("properties.deploymentRollbackEnabled")] public bool? IsDeploymentRollbackEnabled { get; set; } /// <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository. + [WirePath("properties.isMercurial")] public bool? IsMercurial { get; set; } /// If GitHub Action is selected, than the associated configuration. + [WirePath("properties.gitHubActionConfiguration")] public GitHubActionConfiguration GitHubActionConfiguration { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResourceData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResourceData.cs index 5903f02f3b853..6814e3490bd31 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResourceData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResourceData.cs @@ -78,12 +78,16 @@ internal SlotConfigNamesResourceData(ResourceIdentifier id, string name, Resourc } /// List of connection string names. + [WirePath("properties.connectionStringNames")] public IList ConnectionStringNames { get; } /// List of application settings names. + [WirePath("properties.appSettingNames")] public IList AppSettingNames { get; } /// List of external Azure storage account identifiers. + [WirePath("properties.azureStorageConfigNames")] public IList AzureStorageConfigNames { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildData.cs index b940a75614045..eb73b6cda5e75 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildData.cs @@ -87,22 +87,31 @@ internal StaticSiteBuildData(ResourceIdentifier id, string name, ResourceType re } /// An identifier for the static site build. + [WirePath("properties.buildId")] public string BuildId { get; } /// The source branch. + [WirePath("properties.sourceBranch")] public string SourceBranch { get; } /// The title of a pull request that a static site build is related to. + [WirePath("properties.pullRequestTitle")] public string PullRequestTitle { get; } /// The hostname for a static site build. + [WirePath("properties.hostname")] public string Hostname { get; } /// When this build was created. + [WirePath("properties.createdTimeUtc")] public DateTimeOffset? CreatedOn { get; } /// When this build was updated. + [WirePath("properties.lastUpdatedOn")] public DateTimeOffset? LastUpdatedOn { get; } /// The status of the static site build. + [WirePath("properties.status")] public StaticSiteBuildStatus? Status { get; } /// User provided function apps registered with the static site build. + [WirePath("properties.userProvidedFunctionApps")] public IReadOnlyList UserProvidedFunctionApps { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewData.cs index acdad03f55621..e26c6140097f3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewData.cs @@ -80,16 +80,22 @@ internal StaticSiteCustomDomainOverviewData(ResourceIdentifier id, string name, } /// The domain name for the static site custom domain. + [WirePath("properties.domainName")] public string DomainName { get; } /// The date and time on which the custom domain was created for the static site. + [WirePath("properties.createdOn")] public DateTimeOffset? CreatedOn { get; } /// The status of the custom domain. + [WirePath("properties.status")] public CustomDomainStatus? Status { get; } /// The TXT record validation token. + [WirePath("properties.validationToken")] public string ValidationToken { get; } /// Gets the error message. + [WirePath("properties.errorMessage")] public string ErrorMessage { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteData.cs index 1c50a994c664e..770aec2210130 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteData.cs @@ -113,38 +113,55 @@ internal StaticSiteData() } /// Description of a SKU for a scalable resource. + [WirePath("sku")] public AppServiceSkuDescription Sku { get; set; } /// Managed service identity. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// The default autogenerated hostname for the static site. + [WirePath("properties.defaultHostname")] public string DefaultHostname { get; } /// URL for the repository of the static site. + [WirePath("properties.repositoryUrl")] public Uri RepositoryUri { get; set; } /// The target branch in the repository. + [WirePath("properties.branch")] public string Branch { get; set; } /// The custom domains associated with this static site. + [WirePath("properties.customDomains")] public IReadOnlyList CustomDomains { get; } /// A user's github repository token. This is used to setup the Github Actions workflow file and API secrets. + [WirePath("properties.repositoryToken")] public string RepositoryToken { get; set; } /// Build properties to configure on the repository. + [WirePath("properties.buildProperties")] public StaticSiteBuildProperties BuildProperties { get; set; } /// Private endpoint connections. + [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } /// State indicating whether staging environments are allowed or not allowed for a static web app. + [WirePath("properties.stagingEnvironmentPolicy")] public StagingEnvironmentPolicy? StagingEnvironmentPolicy { get; set; } /// <code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>. + [WirePath("properties.allowConfigFileUpdates")] public bool? AllowConfigFileUpdates { get; set; } /// Template options for generating a new repository. + [WirePath("properties.templateProperties")] public StaticSiteTemplate TemplateProperties { get; set; } /// The content distribution endpoint for the static site. + [WirePath("properties.contentDistributionEndpoint")] public string ContentDistributionEndpoint { get; } /// Identity to use for Key Vault Reference authentication. + [WirePath("properties.keyVaultReferenceIdentity")] public string KeyVaultReferenceIdentity { get; } /// User provided function apps registered with the static site. + [WirePath("properties.userProvidedFunctionApps")] public IReadOnlyList UserProvidedFunctionApps { get; } /// The provider that submitted the last deployment to the primary environment of the static site. + [WirePath("properties.provider")] public string Provider { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppData.cs index 2e277ccf8f714..b9596b9821cc1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppData.cs @@ -75,12 +75,16 @@ internal StaticSiteUserProvidedFunctionAppData(ResourceIdentifier id, string nam } /// The resource id of the function app registered with the static site. + [WirePath("properties.functionAppResourceId")] public ResourceIdentifier FunctionAppResourceId { get; set; } /// The region of the function app registered with the static site. + [WirePath("properties.functionAppRegion")] public string FunctionAppRegion { get; set; } /// The date and time on which the function app was registered with the static site. + [WirePath("properties.createdOn")] public DateTimeOffset? CreatedOn { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SwiftVirtualNetworkData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SwiftVirtualNetworkData.cs index 68160f277fe20..2374bb8aafae9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SwiftVirtualNetworkData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SwiftVirtualNetworkData.cs @@ -73,10 +73,13 @@ internal SwiftVirtualNetworkData(ResourceIdentifier id, string name, ResourceTyp } /// The Virtual Network subnet's resource ID. This is the subnet that this Web App will join. This subnet must have a delegation to Microsoft.Web/serverFarms defined first. + [WirePath("properties.subnetResourceId")] public ResourceIdentifier SubnetResourceId { get; set; } /// A flag that specifies if the scale unit this Web App is on supports Swift integration. + [WirePath("properties.swiftSupported")] public bool? IsSwiftSupported { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.cs index b21fd05f530ce..9ad39dba93528 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.cs @@ -71,8 +71,10 @@ internal TopLevelDomainData(ResourceIdentifier id, string name, ResourceType res } /// If <code>true</code>, then the top level domain supports domain privacy; otherwise, <code>false</code>. + [WirePath("properties.privacy")] public bool? IsDomainPrivacySupported { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TriggeredJobHistoryData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TriggeredJobHistoryData.cs index 0ca6f4c45f6cc..7ac8cf4c15d49 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TriggeredJobHistoryData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TriggeredJobHistoryData.cs @@ -73,8 +73,10 @@ internal TriggeredJobHistoryData(ResourceIdentifier id, string name, ResourceTyp } /// List of triggered web job runs. + [WirePath("properties.runs")] public IList Runs { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TriggeredWebJobData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TriggeredWebJobData.cs index ca48b34c80a8f..03717229c71ff 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TriggeredWebJobData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TriggeredWebJobData.cs @@ -91,22 +91,31 @@ internal TriggeredWebJobData(ResourceIdentifier id, string name, ResourceType re } /// Latest job run information. + [WirePath("properties.latest_run")] public TriggeredJobRun LatestRun { get; set; } /// History URL. + [WirePath("properties.history_url")] public Uri HistoryUri { get; set; } /// Scheduler Logs URL. + [WirePath("properties.scheduler_logs_url")] public Uri SchedulerLogsUri { get; set; } /// Run command. + [WirePath("properties.run_command")] public string RunCommand { get; set; } /// Job URL. + [WirePath("properties.url")] public Uri Uri { get; set; } /// Extra Info URL. + [WirePath("properties.extra_info_url")] public Uri ExtraInfoUri { get; set; } /// Job type. + [WirePath("properties.web_job_type")] public WebJobType? WebJobType { get; set; } /// Error information. + [WirePath("properties.error")] public string Error { get; set; } /// Using SDK?. + [WirePath("properties.using_sdk")] public bool? IsUsingSdk { get; set; } /// /// Job settings. @@ -138,8 +147,10 @@ internal TriggeredWebJobData(ResourceIdentifier id, string name, ResourceType re /// /// /// + [WirePath("properties.settings")] public IDictionary Settings { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppBackupData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppBackupData.cs index 9ad8b1fb764a8..1c8407fc7c420 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppBackupData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppBackupData.cs @@ -99,34 +99,49 @@ internal WebAppBackupData(ResourceIdentifier id, string name, ResourceType resou } /// Id of the backup. + [WirePath("properties.id")] public int? BackupId { get; } /// SAS URL for the storage account container which contains this backup. + [WirePath("properties.storageAccountUrl")] public Uri StorageAccountUri { get; } /// Name of the blob which contains data for this backup. + [WirePath("properties.blobName")] public string BlobName { get; } /// Name of this backup. + [WirePath("properties.name")] public string BackupName { get; } /// Backup status. + [WirePath("properties.status")] public WebAppBackupStatus? Status { get; } /// Size of the backup in bytes. + [WirePath("properties.sizeInBytes")] public long? SizeInBytes { get; } /// Timestamp of the backup creation. + [WirePath("properties.created")] public DateTimeOffset? CreatedOn { get; } /// Details regarding this backup. Might contain an error message. + [WirePath("properties.log")] public string Log { get; } /// List of databases included in the backup. + [WirePath("properties.databases")] public IReadOnlyList Databases { get; } /// True if this backup has been created due to a schedule being triggered. + [WirePath("properties.scheduled")] public bool? IsScheduled { get; } /// Timestamp of a last restore operation which used this backup. + [WirePath("properties.lastRestoreTimeStamp")] public DateTimeOffset? LastRestoreOn { get; } /// Timestamp when this backup finished. + [WirePath("properties.finishedTimeStamp")] public DateTimeOffset? FinishedOn { get; } /// Unique correlation identifier. Please use this along with the timestamp while communicating with Azure support. + [WirePath("properties.correlationId")] public string CorrelationId { get; } /// Size of the original web app which has been backed up. + [WirePath("properties.websiteSizeInBytes")] public long? WebsiteSizeInBytes { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppDeploymentData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppDeploymentData.cs index 963c23a618eb6..480a21185a9ef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppDeploymentData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppDeploymentData.cs @@ -87,24 +87,34 @@ internal WebAppDeploymentData(ResourceIdentifier id, string name, ResourceType r } /// Deployment status. + [WirePath("properties.status")] public int? Status { get; set; } /// Details about deployment status. + [WirePath("properties.message")] public string Message { get; set; } /// Who authored the deployment. + [WirePath("properties.author")] public string Author { get; set; } /// Who performed the deployment. + [WirePath("properties.deployer")] public string Deployer { get; set; } /// Author email. + [WirePath("properties.author_email")] public string AuthorEmail { get; set; } /// Start time. + [WirePath("properties.start_time")] public DateTimeOffset? StartOn { get; set; } /// End time. + [WirePath("properties.end_time")] public DateTimeOffset? EndOn { get; set; } /// True if deployment is currently active, false if completed and null if not started. + [WirePath("properties.active")] public bool? IsActive { get; set; } /// Details on deployment. + [WirePath("properties.details")] public string Details { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebJobData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebJobData.cs index 0fa34ac9bae6d..0989d0c82bda3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebJobData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebJobData.cs @@ -85,16 +85,22 @@ internal WebJobData(ResourceIdentifier id, string name, ResourceType resourceTyp } /// Run command. + [WirePath("properties.run_command")] public string RunCommand { get; set; } /// Job URL. + [WirePath("properties.url")] public Uri Uri { get; set; } /// Extra Info URL. + [WirePath("properties.extra_info_url")] public Uri ExtraInfoUri { get; set; } /// Job type. + [WirePath("properties.web_job_type")] public WebJobType? WebJobType { get; set; } /// Error information. + [WirePath("properties.error")] public string Error { get; set; } /// Using SDK?. + [WirePath("properties.using_sdk")] public bool? IsUsingSdk { get; set; } /// /// Job settings. @@ -126,8 +132,10 @@ internal WebJobData(ResourceIdentifier id, string name, ResourceType resourceTyp /// /// /// + [WirePath("properties.settings")] public IDictionary Settings { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteAnalysisDefinitionData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteAnalysisDefinitionData.cs index 33b08be33f51c..95fc9a3902192 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteAnalysisDefinitionData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteAnalysisDefinitionData.cs @@ -71,8 +71,10 @@ internal WebSiteAnalysisDefinitionData(ResourceIdentifier id, string name, Resou } /// Description of the Analysis. + [WirePath("properties.description")] public string Description { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteData.cs index dab9fc52e660c..fb45542cca012 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteData.cs @@ -189,51 +189,73 @@ internal WebSiteData() } /// Managed service identity. + [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } /// Extended Location. + [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } /// Current state of the app. + [WirePath("properties.state")] public string State { get; } /// Hostnames associated with the app. + [WirePath("properties.hostNames")] public IReadOnlyList HostNames { get; } /// Name of the repository site. + [WirePath("properties.repositorySiteName")] public string RepositorySiteName { get; } /// State indicating whether the app has exceeded its quota usage. Read-only. + [WirePath("properties.usageState")] public AppServiceUsageState? UsageState { get; } /// <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline). + [WirePath("properties.enabled")] public bool? IsEnabled { get; set; } /// /// Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, /// the app is not served on those hostnames. /// + [WirePath("properties.enabledHostNames")] public IReadOnlyList EnabledHostNames { get; } /// Management information availability state for the app. + [WirePath("properties.availabilityState")] public WebSiteAvailabilityState? AvailabilityState { get; } /// Hostname SSL states are used to manage the SSL bindings for app's hostnames. + [WirePath("properties.hostNameSslStates")] public IList HostNameSslStates { get; } /// Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + [WirePath("properties.serverFarmId")] public ResourceIdentifier AppServicePlanId { get; set; } /// <code>true</code> if reserved; otherwise, <code>false</code>. + [WirePath("properties.reserved")] public bool? IsReserved { get; set; } /// Obsolete: Hyper-V sandbox. + [WirePath("properties.isXenon")] public bool? IsXenon { get; set; } /// Hyper-V sandbox. + [WirePath("properties.hyperV")] public bool? IsHyperV { get; set; } /// Last time the app was modified, in UTC. Read-only. + [WirePath("properties.lastModifiedTimeUtc")] public DateTimeOffset? LastModifiedTimeUtc { get; } /// Configuration of the app. + [WirePath("properties.siteConfig")] public SiteConfigProperties SiteConfig { get; set; } /// Azure Traffic Manager hostnames associated with the app. Read-only. + [WirePath("properties.trafficManagerHostNames")] public IReadOnlyList TrafficManagerHostNames { get; } /// <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>. + [WirePath("properties.scmSiteAlsoStopped")] public bool? IsScmSiteAlsoStopped { get; set; } /// Specifies which deployment slot this app will swap into. Read-only. + [WirePath("properties.targetSwapSlot")] public string TargetSwapSlot { get; } /// App Service Environment to use for the app. + [WirePath("properties.hostingEnvironmentProfile")] public HostingEnvironmentProfile HostingEnvironmentProfile { get; set; } /// <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>. + [WirePath("properties.clientAffinityEnabled")] public bool? IsClientAffinityEnabled { get; set; } /// <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>. + [WirePath("properties.clientCertEnabled")] public bool? IsClientCertEnabled { get; set; } /// /// This composes with ClientCertEnabled setting. @@ -241,60 +263,82 @@ internal WebSiteData() /// - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. /// - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. /// + [WirePath("properties.clientCertMode")] public ClientCertMode? ClientCertMode { get; set; } /// client certificate authentication comma-separated exclusion paths. + [WirePath("properties.clientCertExclusionPaths")] public string ClientCertExclusionPaths { get; set; } /// /// <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. /// If <code>true</code>, the app is only accessible via API management process. /// + [WirePath("properties.hostNamesDisabled")] public bool? IsHostNameDisabled { get; set; } /// Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. + [WirePath("properties.customDomainVerificationId")] public string CustomDomainVerificationId { get; set; } /// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. + [WirePath("properties.outboundIpAddresses")] public string OutboundIPAddresses { get; } /// List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only. + [WirePath("properties.possibleOutboundIpAddresses")] public string PossibleOutboundIPAddresses { get; } /// Size of the function container. + [WirePath("properties.containerSize")] public int? ContainerSize { get; set; } /// Maximum allowed daily memory-time quota (applicable on dynamic apps only). + [WirePath("properties.dailyMemoryTimeQuota")] public int? DailyMemoryTimeQuota { get; set; } /// App suspended till in case memory-time quota is exceeded. + [WirePath("properties.suspendedTill")] public DateTimeOffset? SuspendOn { get; } /// /// Maximum number of workers. /// This only applies to Functions container. /// + [WirePath("properties.maxNumberOfWorkers")] public int? MaxNumberOfWorkers { get; } /// If specified during app creation, the app is cloned from a source app. + [WirePath("properties.cloningInfo")] public CloningInfo CloningInfo { get; set; } /// Name of the resource group the app belongs to. Read-only. + [WirePath("properties.resourceGroup")] public string ResourceGroup { get; } /// <code>true</code> if the app is a default container; otherwise, <code>false</code>. + [WirePath("properties.isDefaultContainer")] public bool? IsDefaultContainer { get; } /// Default hostname of the app. Read-only. + [WirePath("properties.defaultHostName")] public string DefaultHostName { get; } /// Status of the last deployment slot swap operation. + [WirePath("properties.slotSwapStatus")] public SlotSwapStatus SlotSwapStatus { get; } /// /// HttpsOnly: configures a web site to accept only https requests. Issues redirect for /// http requests /// + [WirePath("properties.httpsOnly")] public bool? IsHttpsOnly { get; set; } /// Site redundancy mode. + [WirePath("properties.redundancyMode")] public RedundancyMode? RedundancyMode { get; set; } /// Specifies an operation id if this site has a pending operation. + [WirePath("properties.inProgressOperationId")] public Guid? InProgressOperationId { get; } /// Checks if Customer provided storage account is required. + [WirePath("properties.storageAccountRequired")] public bool? IsStorageAccountRequired { get; set; } /// Identity to use for Key Vault Reference authentication. + [WirePath("properties.keyVaultReferenceIdentity")] public string KeyVaultReferenceIdentity { get; set; } /// /// Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. /// This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} /// + [WirePath("properties.virtualNetworkSubnetId")] public ResourceIdentifier VirtualNetworkSubnetId { get; set; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteInstanceStatusData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteInstanceStatusData.cs index 265b621b1c4a5..d8cebfb73e084 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteInstanceStatusData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteInstanceStatusData.cs @@ -80,18 +80,25 @@ internal WebSiteInstanceStatusData(ResourceIdentifier id, string name, ResourceT } /// Gets or sets the state. + [WirePath("properties.state")] public SiteRuntimeState? State { get; set; } /// Link to the GetStatusApi in Kudu. + [WirePath("properties.statusUrl")] public Uri StatusUri { get; set; } /// Link to the Diagnose and Solve Portal. + [WirePath("properties.detectorUrl")] public Uri DetectorUri { get; set; } /// Link to the console to web app instance. + [WirePath("properties.consoleUrl")] public Uri ConsoleUri { get; set; } /// Link to the console to web app instance. + [WirePath("properties.healthCheckUrl")] public string HealthCheckUrlString { get; set; } /// Dictionary of <ContainerInfo>. + [WirePath("properties.containers")] public IDictionary Containers { get; } /// Kind of resource. + [WirePath("kind")] public string Kind { get; set; } } }