diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/autorest.md b/sdk/resourcemanager/Azure.ResourceManager/src/autorest.md index 890262e0e366..66637f43fe25 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/autorest.md +++ b/sdk/resourcemanager/Azure.ResourceManager/src/autorest.md @@ -37,8 +37,8 @@ sample-gen: clear-output-folder: true namespace: Azure.ResourceManager input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/78eac0bd58633028293cb1ec1709baa200bed9e2/specification/common-types/resource-management/v3/types.json - - https://github.com/Azure/azure-rest-api-specs/blob/78eac0bd58633028293cb1ec1709baa200bed9e2/specification/common-types/resource-management/v4/managedidentity.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/common-types/resource-management/v3/types.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/common-types/resource-management/v4/managedidentity.json format-by-name-rules: 'tenantId': 'uuid' @@ -170,14 +170,14 @@ sample-gen: namespace: Azure.ResourceManager.Resources title: ResourceManagementClient input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/817861452040bf29d14b57ac7418560e4680e06e/specification/resources/resource-manager/Microsoft.Authorization/stable/2022-06-01/policyAssignments.json - - https://github.com/Azure/azure-rest-api-specs/blob/90a65cb3135d42438a381eb8bb5461a2b99b199f/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json - - https://github.com/Azure/azure-rest-api-specs/blob/90a65cb3135d42438a381eb8bb5461a2b99b199f/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json - - https://github.com/Azure/azure-rest-api-specs/blob/78eac0bd58633028293cb1ec1709baa200bed9e2/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json - - https://github.com/Azure/azure-rest-api-specs/blob/78eac0bd58633028293cb1ec1709baa200bed9e2/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json - - https://github.com/Azure/azure-rest-api-specs/blob/90a65cb3135d42438a381eb8bb5461a2b99b199f/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/resources.json - - https://github.com/Azure/azure-rest-api-specs/blob/78eac0bd58633028293cb1ec1709baa200bed9e2/specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/subscriptions.json - - https://github.com/Azure/azure-rest-api-specs/blob/78eac0bd58633028293cb1ec1709baa200bed9e2/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/features.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Authorization/stable/2022-06-01/policyAssignments.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/resources.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/subscriptions.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/features.json list-exception: - /{resourceId} @@ -684,7 +684,7 @@ sample-gen: namespace: Azure.ResourceManager.ManagementGroups title: ManagementClient input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/90a65cb3135d42438a381eb8bb5461a2b99b199f/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json request-path-to-parent: /providers/Microsoft.Management/checkNameAvailability: /providers/Microsoft.Management/managementGroups/{groupId} /providers/Microsoft.Management/getEntities: /providers/Microsoft.Management/managementGroups/{groupId} diff --git a/sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs b/sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs index 77e6f826a2c1..99c0e05e5c8d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs @@ -1081,6 +1081,7 @@ public ArmDeploymentProperties(Azure.ResourceManager.Resources.Models.ArmDeploym public Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink ParametersLink { get { throw null; } set { } } public System.BinaryData Template { get { throw null; } set { } } public Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink TemplateLink { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ValidationLevel? ValidationLevel { get { throw null; } set { } } Azure.ResourceManager.Resources.Models.ArmDeploymentProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Resources.Models.ArmDeploymentProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1107,6 +1108,7 @@ internal ArmDeploymentPropertiesExtended() { } public Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink TemplateLink { get { throw null; } } public System.DateTimeOffset? Timestamp { get { throw null; } } public System.Collections.Generic.IReadOnlyList ValidatedResources { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ValidationLevel? ValidationLevel { get { throw null; } } Azure.ResourceManager.Resources.Models.ArmDeploymentPropertiesExtended System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Resources.Models.ArmDeploymentPropertiesExtended System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1216,14 +1218,20 @@ public static partial class ArmResourcesModelFactory public static Azure.ResourceManager.Resources.Models.ArmDeploymentExportResult ArmDeploymentExportResult(System.BinaryData template = null) { throw null; } public static Azure.ResourceManager.Resources.Models.ArmDeploymentOperation ArmDeploymentOperation(string id = null, string operationId = null, Azure.ResourceManager.Resources.Models.ArmDeploymentOperationProperties properties = null) { throw null; } public static Azure.ResourceManager.Resources.Models.ArmDeploymentOperationProperties ArmDeploymentOperationProperties(Azure.ResourceManager.Resources.Models.ProvisioningOperationKind? provisioningOperation = default(Azure.ResourceManager.Resources.Models.ProvisioningOperationKind?), string provisioningState = null, System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), System.TimeSpan? duration = default(System.TimeSpan?), string serviceRequestId = null, string statusCode = null, Azure.ResourceManager.Resources.Models.StatusMessage statusMessage = null, Azure.ResourceManager.Resources.Models.TargetResource targetResource = null, System.BinaryData requestContent = null, System.BinaryData responseContent = null) { throw null; } - public static Azure.ResourceManager.Resources.Models.ArmDeploymentProperties ArmDeploymentProperties(System.BinaryData template = null, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink = null, System.BinaryData parameters = null, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink = null, Azure.ResourceManager.Resources.Models.ArmDeploymentMode mode = Azure.ResourceManager.Resources.Models.ArmDeploymentMode.Incremental, string debugSettingDetailLevel = null, Azure.ResourceManager.Resources.Models.ErrorDeployment errorDeployment = null, Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope? expressionEvaluationScope = default(Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope?)) { throw null; } - public static Azure.ResourceManager.Resources.Models.ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(Azure.ResourceManager.Resources.Models.ResourcesProvisioningState? provisioningState = default(Azure.ResourceManager.Resources.Models.ResourcesProvisioningState?), string correlationId = null, System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), System.TimeSpan? duration = default(System.TimeSpan?), System.BinaryData outputs = null, System.Collections.Generic.IEnumerable providers = null, System.Collections.Generic.IEnumerable dependencies = null, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink = null, System.BinaryData parameters = null, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink = null, Azure.ResourceManager.Resources.Models.ArmDeploymentMode? mode = default(Azure.ResourceManager.Resources.Models.ArmDeploymentMode?), string debugSettingDetailLevel = null, Azure.ResourceManager.Resources.Models.ErrorDeploymentExtended errorDeployment = null, string templateHash = null, System.Collections.Generic.IEnumerable outputResources = null, System.Collections.Generic.IEnumerable validatedResources = null, Azure.ResponseError error = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Resources.Models.ArmDeploymentProperties ArmDeploymentProperties(System.BinaryData template, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink, System.BinaryData parameters, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink, Azure.ResourceManager.Resources.Models.ArmDeploymentMode mode, string debugSettingDetailLevel, Azure.ResourceManager.Resources.Models.ErrorDeployment errorDeployment, Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope? expressionEvaluationScope) { throw null; } + public static Azure.ResourceManager.Resources.Models.ArmDeploymentProperties ArmDeploymentProperties(System.BinaryData template = null, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink = null, System.BinaryData parameters = null, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink = null, Azure.ResourceManager.Resources.Models.ArmDeploymentMode mode = Azure.ResourceManager.Resources.Models.ArmDeploymentMode.Incremental, string debugSettingDetailLevel = null, Azure.ResourceManager.Resources.Models.ErrorDeployment errorDeployment = null, Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope? expressionEvaluationScope = default(Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope?), Azure.ResourceManager.Resources.Models.ValidationLevel? validationLevel = default(Azure.ResourceManager.Resources.Models.ValidationLevel?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Resources.Models.ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(Azure.ResourceManager.Resources.Models.ResourcesProvisioningState? provisioningState, string correlationId, System.DateTimeOffset? timestamp, System.TimeSpan? duration, System.BinaryData outputs, System.Collections.Generic.IEnumerable providers, System.Collections.Generic.IEnumerable dependencies, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink, System.BinaryData parameters, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink, Azure.ResourceManager.Resources.Models.ArmDeploymentMode? mode, string debugSettingDetailLevel, Azure.ResourceManager.Resources.Models.ErrorDeploymentExtended errorDeployment, string templateHash, System.Collections.Generic.IEnumerable outputResources, System.Collections.Generic.IEnumerable validatedResources, Azure.ResponseError error) { throw null; } + public static Azure.ResourceManager.Resources.Models.ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(Azure.ResourceManager.Resources.Models.ResourcesProvisioningState? provisioningState = default(Azure.ResourceManager.Resources.Models.ResourcesProvisioningState?), string correlationId = null, System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), System.TimeSpan? duration = default(System.TimeSpan?), System.BinaryData outputs = null, System.Collections.Generic.IEnumerable providers = null, System.Collections.Generic.IEnumerable dependencies = null, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink = null, System.BinaryData parameters = null, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink = null, Azure.ResourceManager.Resources.Models.ArmDeploymentMode? mode = default(Azure.ResourceManager.Resources.Models.ArmDeploymentMode?), string debugSettingDetailLevel = null, Azure.ResourceManager.Resources.Models.ErrorDeploymentExtended errorDeployment = null, string templateHash = null, System.Collections.Generic.IEnumerable outputResources = null, System.Collections.Generic.IEnumerable validatedResources = null, Azure.ResponseError error = null, Azure.ResourceManager.Resources.Models.ValidationLevel? validationLevel = default(Azure.ResourceManager.Resources.Models.ValidationLevel?)) { throw null; } public static Azure.ResourceManager.Resources.ArmDeploymentScriptData ArmDeploymentScriptData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentity identity = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary tags = null, string kind = null) { throw null; } public static Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentity ArmDeploymentScriptManagedIdentity(Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType? identityType = default(Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType?), System.Guid? tenantId = default(System.Guid?), System.Collections.Generic.IDictionary userAssignedIdentities = null) { throw null; } public static Azure.ResourceManager.Resources.Models.ArmDeploymentScriptPatch ArmDeploymentScriptPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult ArmDeploymentValidateResult(Azure.ResponseError error = null, Azure.ResourceManager.Resources.Models.ArmDeploymentPropertiesExtended properties = null) { throw null; } public static Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfContent ArmDeploymentWhatIfContent(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfProperties properties = null) { throw null; } - public static Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfProperties ArmDeploymentWhatIfProperties(System.BinaryData template = null, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink = null, System.BinaryData parameters = null, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink = null, Azure.ResourceManager.Resources.Models.ArmDeploymentMode mode = Azure.ResourceManager.Resources.Models.ArmDeploymentMode.Incremental, string debugSettingDetailLevel = null, Azure.ResourceManager.Resources.Models.ErrorDeployment errorDeployment = null, Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope? expressionEvaluationScope = default(Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope?), Azure.ResourceManager.Resources.Models.WhatIfResultFormat? whatIfResultFormat = default(Azure.ResourceManager.Resources.Models.WhatIfResultFormat?)) { throw null; } + public static Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfProperties ArmDeploymentWhatIfProperties(System.BinaryData template = null, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink = null, System.BinaryData parameters = null, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink = null, Azure.ResourceManager.Resources.Models.ArmDeploymentMode mode = Azure.ResourceManager.Resources.Models.ArmDeploymentMode.Incremental, string debugSettingDetailLevel = null, Azure.ResourceManager.Resources.Models.ErrorDeployment errorDeployment = null, Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope? expressionEvaluationScope = default(Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope?), Azure.ResourceManager.Resources.Models.ValidationLevel? validationLevel = default(Azure.ResourceManager.Resources.Models.ValidationLevel?), Azure.ResourceManager.Resources.Models.WhatIfResultFormat? whatIfResultFormat = default(Azure.ResourceManager.Resources.Models.WhatIfResultFormat?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfProperties ArmDeploymentWhatIfProperties(System.BinaryData template, Azure.ResourceManager.Resources.Models.ArmDeploymentTemplateLink templateLink, System.BinaryData parameters, Azure.ResourceManager.Resources.Models.ArmDeploymentParametersLink parametersLink, Azure.ResourceManager.Resources.Models.ArmDeploymentMode mode, string debugSettingDetailLevel, Azure.ResourceManager.Resources.Models.ErrorDeployment errorDeployment, Azure.ResourceManager.Resources.Models.ExpressionEvaluationScope? expressionEvaluationScope, Azure.ResourceManager.Resources.Models.WhatIfResultFormat? whatIfResultFormat) { throw null; } public static Azure.ResourceManager.Resources.Models.AzureCliScript AzureCliScript(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentity identity = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary tags = null, string containerGroupName = null, Azure.ResourceManager.Resources.Models.ScriptStorageConfiguration storageAccountSettings = null, Azure.ResourceManager.Resources.Models.ScriptCleanupOptions? cleanupPreference = default(Azure.ResourceManager.Resources.Models.ScriptCleanupOptions?), Azure.ResourceManager.Resources.Models.ScriptProvisioningState? provisioningState = default(Azure.ResourceManager.Resources.Models.ScriptProvisioningState?), Azure.ResourceManager.Resources.Models.ScriptStatus status = null, System.BinaryData outputs = null, System.Uri primaryScriptUri = null, System.Collections.Generic.IEnumerable supportingScriptUris = null, string scriptContent = null, string arguments = null, System.Collections.Generic.IEnumerable environmentVariables = null, string forceUpdateTag = null, System.TimeSpan retentionInterval = default(System.TimeSpan), System.TimeSpan? timeout = default(System.TimeSpan?), string azCliVersion = null) { throw null; } public static Azure.ResourceManager.Resources.Models.AzurePowerShellScript AzurePowerShellScript(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentity identity = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary tags = null, string containerGroupName = null, Azure.ResourceManager.Resources.Models.ScriptStorageConfiguration storageAccountSettings = null, Azure.ResourceManager.Resources.Models.ScriptCleanupOptions? cleanupPreference = default(Azure.ResourceManager.Resources.Models.ScriptCleanupOptions?), Azure.ResourceManager.Resources.Models.ScriptProvisioningState? provisioningState = default(Azure.ResourceManager.Resources.Models.ScriptProvisioningState?), Azure.ResourceManager.Resources.Models.ScriptStatus status = null, System.BinaryData outputs = null, System.Uri primaryScriptUri = null, System.Collections.Generic.IEnumerable supportingScriptUris = null, string scriptContent = null, string arguments = null, System.Collections.Generic.IEnumerable environmentVariables = null, string forceUpdateTag = null, System.TimeSpan retentionInterval = default(System.TimeSpan), System.TimeSpan? timeout = default(System.TimeSpan?), string azPowerShellVersion = null) { throw null; } public static Azure.ResourceManager.Resources.Models.BasicArmDependency BasicArmDependency(string id = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string resourceName = null) { throw null; } @@ -2022,6 +2030,11 @@ public TemplateSpecVersionPatch() { } public static bool operator !=(Azure.ResourceManager.Resources.Models.UnmanageActionResourceMode left, Azure.ResourceManager.Resources.Models.UnmanageActionResourceMode right) { throw null; } public override string ToString() { throw null; } } + public enum ValidationLevel + { + Template = 0, + Provider = 1, + } public partial class WhatIfChange : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal WhatIfChange() { } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmResourcesModelFactory.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmResourcesModelFactory.cs index 67a07cb58049..230c6abc0efb 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmResourcesModelFactory.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmResourcesModelFactory.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -227,8 +228,9 @@ public static ArmDeploymentContent ArmDeploymentContent(AzureLocation? location /// The debug setting of the deployment. /// The deployment on error behavior. /// 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. + /// The validation level of the deployment. /// A new instance for mocking. - public static ArmDeploymentProperties ArmDeploymentProperties(BinaryData template = null, ArmDeploymentTemplateLink templateLink = null, BinaryData parameters = null, ArmDeploymentParametersLink parametersLink = null, ArmDeploymentMode mode = default, string debugSettingDetailLevel = null, ErrorDeployment errorDeployment = null, ExpressionEvaluationScope? expressionEvaluationScope = null) + public static ArmDeploymentProperties ArmDeploymentProperties(BinaryData template = null, ArmDeploymentTemplateLink templateLink = null, BinaryData parameters = null, ArmDeploymentParametersLink parametersLink = null, ArmDeploymentMode mode = default, string debugSettingDetailLevel = null, ErrorDeployment errorDeployment = null, ExpressionEvaluationScope? expressionEvaluationScope = null, ValidationLevel? validationLevel = null) { return new ArmDeploymentProperties( template, @@ -239,6 +241,7 @@ public static ArmDeploymentProperties ArmDeploymentProperties(BinaryData templat debugSettingDetailLevel != null ? new DebugSetting(debugSettingDetailLevel, serializedAdditionalRawData: null) : null, errorDeployment, expressionEvaluationScope != null ? new ExpressionEvaluationOptions(expressionEvaluationScope, serializedAdditionalRawData: null) : null, + validationLevel, serializedAdditionalRawData: null); } @@ -284,8 +287,9 @@ public static ArmDeploymentData ArmDeploymentData(ResourceIdentifier id = null, /// Array of provisioned resources. /// Array of validated resources. /// The deployment error. + /// The validation level of the deployment. /// A new instance for mocking. - public static ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisioningState = null, string correlationId = null, DateTimeOffset? timestamp = null, TimeSpan? duration = null, BinaryData outputs = null, IEnumerable providers = null, IEnumerable dependencies = null, ArmDeploymentTemplateLink templateLink = null, BinaryData parameters = null, ArmDeploymentParametersLink parametersLink = null, ArmDeploymentMode? mode = null, string debugSettingDetailLevel = null, ErrorDeploymentExtended errorDeployment = null, string templateHash = null, IEnumerable outputResources = null, IEnumerable validatedResources = null, ResponseError error = null) + public static ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisioningState = null, string correlationId = null, DateTimeOffset? timestamp = null, TimeSpan? duration = null, BinaryData outputs = null, IEnumerable providers = null, IEnumerable dependencies = null, ArmDeploymentTemplateLink templateLink = null, BinaryData parameters = null, ArmDeploymentParametersLink parametersLink = null, ArmDeploymentMode? mode = null, string debugSettingDetailLevel = null, ErrorDeploymentExtended errorDeployment = null, string templateHash = null, IEnumerable outputResources = null, IEnumerable validatedResources = null, ResponseError error = null, ValidationLevel? validationLevel = null) { providers ??= new List(); dependencies ??= new List(); @@ -310,6 +314,7 @@ public static ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(Re outputResources?.ToList(), validatedResources?.ToList(), error, + validationLevel, serializedAdditionalRawData: null); } @@ -381,9 +386,10 @@ public static ArmDeploymentWhatIfContent ArmDeploymentWhatIfContent(AzureLocatio /// The debug setting of the deployment. /// The deployment on error behavior. /// 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. + /// The validation level of the deployment. /// Optional What-If operation settings. /// A new instance for mocking. - public static ArmDeploymentWhatIfProperties ArmDeploymentWhatIfProperties(BinaryData template = null, ArmDeploymentTemplateLink templateLink = null, BinaryData parameters = null, ArmDeploymentParametersLink parametersLink = null, ArmDeploymentMode mode = default, string debugSettingDetailLevel = null, ErrorDeployment errorDeployment = null, ExpressionEvaluationScope? expressionEvaluationScope = null, WhatIfResultFormat? whatIfResultFormat = null) + public static ArmDeploymentWhatIfProperties ArmDeploymentWhatIfProperties(BinaryData template = null, ArmDeploymentTemplateLink templateLink = null, BinaryData parameters = null, ArmDeploymentParametersLink parametersLink = null, ArmDeploymentMode mode = default, string debugSettingDetailLevel = null, ErrorDeployment errorDeployment = null, ExpressionEvaluationScope? expressionEvaluationScope = null, ValidationLevel? validationLevel = null, WhatIfResultFormat? whatIfResultFormat = null) { return new ArmDeploymentWhatIfProperties( template, @@ -394,6 +400,7 @@ public static ArmDeploymentWhatIfProperties ArmDeploymentWhatIfProperties(Binary debugSettingDetailLevel != null ? new DebugSetting(debugSettingDetailLevel, serializedAdditionalRawData: null) : null, errorDeployment, expressionEvaluationScope != null ? new ExpressionEvaluationOptions(expressionEvaluationScope, serializedAdditionalRawData: null) : null, + validationLevel, serializedAdditionalRawData: null, whatIfResultFormat != null ? new ArmDeploymentWhatIfSettings(whatIfResultFormat, serializedAdditionalRawData: null) : null); } @@ -1106,5 +1113,63 @@ public static AzureCliScript AzureCliScript(ResourceIdentifier id = null, string timeout, azCliVersion); } + + /// Initializes a new instance of . + /// The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. + /// The URI of the template. Use either the templateLink property or the template property, but not both. + /// 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. + /// 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. + /// 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. + /// The debug setting of the deployment. + /// The deployment on error behavior. + /// 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. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ArmDeploymentProperties ArmDeploymentProperties(BinaryData template, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode mode, string debugSettingDetailLevel, ErrorDeployment errorDeployment, ExpressionEvaluationScope? expressionEvaluationScope) + { + return ArmDeploymentProperties(template: template, templateLink: templateLink, parameters: parameters, parametersLink: parametersLink, mode: mode, debugSettingDetailLevel: debugSettingDetailLevel, errorDeployment: errorDeployment, expressionEvaluationScope: expressionEvaluationScope, validationLevel: default); + } + + /// Initializes a new instance of . + /// Denotes the state of provisioning. + /// The correlation ID of the deployment. + /// The timestamp of the template deployment. + /// The duration of the template deployment. + /// Key/value pairs that represent deployment output. + /// The list of resource providers needed for the deployment. + /// The list of deployment dependencies. + /// The URI referencing the template. + /// Deployment parameters. + /// The URI referencing the parameters. + /// The deployment mode. Possible values are Incremental and Complete. + /// The debug setting of the deployment. + /// The deployment on error behavior. + /// The hash produced for the template. + /// Array of provisioned resources. + /// Array of validated resources. + /// The deployment error. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisioningState, string correlationId, DateTimeOffset? timestamp, TimeSpan? duration, BinaryData outputs, IEnumerable providers, IEnumerable dependencies, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode? mode, string debugSettingDetailLevel, ErrorDeploymentExtended errorDeployment, string templateHash, IEnumerable outputResources, IEnumerable validatedResources, ResponseError error) + { + return ArmDeploymentPropertiesExtended(provisioningState: provisioningState, correlationId: correlationId, timestamp: timestamp, duration: duration, outputs: outputs, providers: providers, dependencies: dependencies, templateLink: templateLink, parameters: parameters, parametersLink: parametersLink, mode: mode, debugSettingDetailLevel: debugSettingDetailLevel, errorDeployment: errorDeployment, templateHash: templateHash, outputResources: outputResources, validatedResources: validatedResources, error: error, validationLevel: default); + } + + /// Initializes a new instance of . + /// The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. + /// The URI of the template. Use either the templateLink property or the template property, but not both. + /// 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. + /// 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. + /// 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. + /// The debug setting of the deployment. + /// The deployment on error behavior. + /// 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. + /// Optional What-If operation settings. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ArmDeploymentWhatIfProperties ArmDeploymentWhatIfProperties(BinaryData template, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode mode, string debugSettingDetailLevel, ErrorDeployment errorDeployment, ExpressionEvaluationScope? expressionEvaluationScope, WhatIfResultFormat? whatIfResultFormat) + { + return ArmDeploymentWhatIfProperties(template: template, templateLink: templateLink, parameters: parameters, parametersLink: parametersLink, mode: mode, debugSettingDetailLevel: debugSettingDetailLevel, errorDeployment: errorDeployment, expressionEvaluationScope: expressionEvaluationScope, validationLevel: default, whatIfResultFormat: whatIfResultFormat); + } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.Serialization.cs index 9c7a5722e0cf..42cf9554675d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.Serialization.cs @@ -77,6 +77,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReade writer.WritePropertyName("expressionEvaluationOptions"u8); writer.WriteObjectValue(ExpressionEvaluation, options); } + if (Optional.IsDefined(ValidationLevel)) + { + writer.WritePropertyName("validationLevel"u8); + writer.WriteStringValue(ValidationLevel.Value.ToSerialString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -123,6 +128,7 @@ internal static ArmDeploymentProperties DeserializeArmDeploymentProperties(JsonE DebugSetting debugSetting = default; ErrorDeployment onErrorDeployment = default; ExpressionEvaluationOptions expressionEvaluationOptions = default; + ValidationLevel? validationLevel = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -195,6 +201,15 @@ internal static ArmDeploymentProperties DeserializeArmDeploymentProperties(JsonE expressionEvaluationOptions = ExpressionEvaluationOptions.DeserializeExpressionEvaluationOptions(property.Value, options); continue; } + if (property.NameEquals("validationLevel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + validationLevel = property.Value.GetString().ToValidationLevel(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -210,6 +225,7 @@ internal static ArmDeploymentProperties DeserializeArmDeploymentProperties(JsonE debugSetting, onErrorDeployment, expressionEvaluationOptions, + validationLevel, serializedAdditionalRawData); } 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 2a3851d4dca0..1be409440b2c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentProperties.cs @@ -61,8 +61,9 @@ public ArmDeploymentProperties(ArmDeploymentMode mode) /// The debug setting of the deployment. /// The deployment on error behavior. /// 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. + /// The validation level of the deployment. /// Keeps track of any properties unknown to the library. - internal ArmDeploymentProperties(BinaryData template, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode mode, DebugSetting debugSetting, ErrorDeployment errorDeployment, ExpressionEvaluationOptions expressionEvaluation, IDictionary serializedAdditionalRawData) + internal ArmDeploymentProperties(BinaryData template, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode mode, DebugSetting debugSetting, ErrorDeployment errorDeployment, ExpressionEvaluationOptions expressionEvaluation, ValidationLevel? validationLevel, IDictionary serializedAdditionalRawData) { Template = template; TemplateLink = templateLink; @@ -72,6 +73,7 @@ internal ArmDeploymentProperties(BinaryData template, ArmDeploymentTemplateLink DebugSetting = debugSetting; ErrorDeployment = errorDeployment; ExpressionEvaluation = expressionEvaluation; + ValidationLevel = validationLevel; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -185,5 +187,9 @@ public ExpressionEvaluationScope? ExpressionEvaluationScope ExpressionEvaluation.Scope = value; } } + + /// The validation level of the deployment. + [WirePath("validationLevel")] + public ValidationLevel? ValidationLevel { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.Serialization.cs index 2bdf9ec86992..e3120de0862e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.Serialization.cs @@ -147,6 +147,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mo writer.WritePropertyName("error"u8); JsonSerializer.Serialize(writer, Error); } + if (Optional.IsDefined(ValidationLevel)) + { + writer.WritePropertyName("validationLevel"u8); + writer.WriteStringValue(ValidationLevel.Value.ToSerialString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -202,6 +207,7 @@ internal static ArmDeploymentPropertiesExtended DeserializeArmDeploymentProperti IReadOnlyList outputResources = default; IReadOnlyList validatedResources = default; ResponseError error = default; + ValidationLevel? validationLevel = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -371,6 +377,15 @@ internal static ArmDeploymentPropertiesExtended DeserializeArmDeploymentProperti error = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } + if (property.NameEquals("validationLevel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + validationLevel = property.Value.GetString().ToValidationLevel(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -395,6 +410,7 @@ internal static ArmDeploymentPropertiesExtended DeserializeArmDeploymentProperti outputResources ?? new ChangeTrackingList(), validatedResources ?? new ChangeTrackingList(), error, + validationLevel, serializedAdditionalRawData); } @@ -717,6 +733,21 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ValidationLevel), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" validationLevel: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(ValidationLevel)) + { + builder.Append(" validationLevel: "); + builder.AppendLine($"'{ValidationLevel.Value.ToSerialString()}'"); + } + } + builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } 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 344946df24a2..a6f5211c92f2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs @@ -72,8 +72,9 @@ internal ArmDeploymentPropertiesExtended() /// Array of provisioned resources. /// Array of validated resources. /// The deployment error. + /// The validation level of the deployment. /// Keeps track of any properties unknown to the library. - internal ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisioningState, string correlationId, DateTimeOffset? timestamp, TimeSpan? duration, BinaryData outputs, IReadOnlyList providers, IReadOnlyList dependencies, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode? mode, DebugSetting debugSetting, ErrorDeploymentExtended errorDeployment, string templateHash, IReadOnlyList outputResources, IReadOnlyList validatedResources, ResponseError error, IDictionary serializedAdditionalRawData) + internal ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisioningState, string correlationId, DateTimeOffset? timestamp, TimeSpan? duration, BinaryData outputs, IReadOnlyList providers, IReadOnlyList dependencies, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode? mode, DebugSetting debugSetting, ErrorDeploymentExtended errorDeployment, string templateHash, IReadOnlyList outputResources, IReadOnlyList validatedResources, ResponseError error, ValidationLevel? validationLevel, IDictionary serializedAdditionalRawData) { ProvisioningState = provisioningState; CorrelationId = correlationId; @@ -92,6 +93,7 @@ internal ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisionin OutputResources = outputResources; ValidatedResources = validatedResources; Error = error; + ValidationLevel = validationLevel; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -204,5 +206,8 @@ internal ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisionin /// The deployment error. [WirePath("error")] public ResponseError Error { get; } + /// The validation level of the deployment. + [WirePath("validationLevel")] + public ValidationLevel? ValidationLevel { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.Serialization.cs index a5207314d1ed..b7a9e7f70215 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.Serialization.cs @@ -82,6 +82,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode writer.WritePropertyName("expressionEvaluationOptions"u8); writer.WriteObjectValue(ExpressionEvaluation, options); } + if (Optional.IsDefined(ValidationLevel)) + { + writer.WritePropertyName("validationLevel"u8); + writer.WriteStringValue(ValidationLevel.Value.ToSerialString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -129,6 +134,7 @@ internal static ArmDeploymentWhatIfProperties DeserializeArmDeploymentWhatIfProp DebugSetting debugSetting = default; ErrorDeployment onErrorDeployment = default; ExpressionEvaluationOptions expressionEvaluationOptions = default; + ValidationLevel? validationLevel = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -210,6 +216,15 @@ internal static ArmDeploymentWhatIfProperties DeserializeArmDeploymentWhatIfProp expressionEvaluationOptions = ExpressionEvaluationOptions.DeserializeExpressionEvaluationOptions(property.Value, options); continue; } + if (property.NameEquals("validationLevel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + validationLevel = property.Value.GetString().ToValidationLevel(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -225,6 +240,7 @@ internal static ArmDeploymentWhatIfProperties DeserializeArmDeploymentWhatIfProp debugSetting, onErrorDeployment, expressionEvaluationOptions, + validationLevel, serializedAdditionalRawData, whatIfSettings); } 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 9edb569f0ef7..c9b27a220ba3 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfProperties.cs @@ -28,9 +28,10 @@ public ArmDeploymentWhatIfProperties(ArmDeploymentMode mode) : base(mode) /// The debug setting of the deployment. /// The deployment on error behavior. /// 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. + /// The validation level of the deployment. /// Keeps track of any properties unknown to the library. /// Optional What-If operation settings. - internal ArmDeploymentWhatIfProperties(BinaryData template, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode mode, DebugSetting debugSetting, ErrorDeployment errorDeployment, ExpressionEvaluationOptions expressionEvaluation, IDictionary serializedAdditionalRawData, ArmDeploymentWhatIfSettings whatIfSettings) : base(template, templateLink, parameters, parametersLink, mode, debugSetting, errorDeployment, expressionEvaluation, serializedAdditionalRawData) + internal ArmDeploymentWhatIfProperties(BinaryData template, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode mode, DebugSetting debugSetting, ErrorDeployment errorDeployment, ExpressionEvaluationOptions expressionEvaluation, ValidationLevel? validationLevel, IDictionary serializedAdditionalRawData, ArmDeploymentWhatIfSettings whatIfSettings) : base(template, templateLink, parameters, parametersLink, mode, debugSetting, errorDeployment, expressionEvaluation, validationLevel, serializedAdditionalRawData) { WhatIfSettings = whatIfSettings; } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ValidationLevel.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ValidationLevel.Serialization.cs new file mode 100644 index 000000000000..8bf9a28cd3ba --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ValidationLevel.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Resources.Models +{ + internal static partial class ValidationLevelExtensions + { + public static string ToSerialString(this ValidationLevel value) => value switch + { + ValidationLevel.Template => "Template", + ValidationLevel.Provider => "Provider", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ValidationLevel value.") + }; + + public static ValidationLevel ToValidationLevel(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Template")) return ValidationLevel.Template; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Provider")) return ValidationLevel.Provider; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ValidationLevel value."); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ValidationLevel.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ValidationLevel.cs new file mode 100644 index 000000000000..a1824c57762d --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ValidationLevel.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Resources.Models +{ + /// The level of validation performed on the deployment. This value can be either Template or Provider. At Template level, static analysis and validation of the template is performed. At Provider level, static analysis of the template is performed and resource declarations are sent to resource providers for semantic validation. + public enum ValidationLevel + { + /// Template. + Template, + /// Provider. + Provider + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/autorest.md b/sdk/resources/Azure.ResourceManager.Resources/src/autorest.md index 5d5f89ab4ff6..5280cf19fea7 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/autorest.md +++ b/sdk/resources/Azure.ResourceManager.Resources/src/autorest.md @@ -670,11 +670,11 @@ These settings apply only when `--tag=package-resources-2022-04` is specified on ```yaml $(tag) == 'package-resources-2022-04' input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/a220053360f9700f81abcdb6142769c85c3bcb27/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/templateSpecs.json - - https://github.com/Azure/azure-rest-api-specs/blob/a220053360f9700f81abcdb6142769c85c3bcb27/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json - - https://github.com/Azure/azure-rest-api-specs/blob/a220053360f9700f81abcdb6142769c85c3bcb27/specification/resources/resource-manager/Microsoft.Resources/stable/2024-03-01/resources.json - - https://github.com/Azure/azure-rest-api-specs/blob/a220053360f9700f81abcdb6142769c85c3bcb27/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json - - https://github.com/Azure/azure-rest-api-specs/blob/a220053360f9700f81abcdb6142769c85c3bcb27/specification/resources/resource-manager/Microsoft.Resources/stable/2023-11-01/bicepClient.json# - - https://github.com/Azure/azure-rest-api-specs/blob/a220053360f9700f81abcdb6142769c85c3bcb27/specification/resources/resource-manager/Microsoft.Resources/stable/2024-03-01/deploymentStacks.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/templateSpecs.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-03-01/resources.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Resources/stable/2023-11-01/bicepClient.json# + - https://github.com/Azure/azure-rest-api-specs/blob/6a4338c817f038bf14ac46a63a5efc39250ef91a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-03-01/deploymentStacks.json ```