Skip to content

Commit fa87086

Browse files
Update Azure.ResourceManager.Resources API version to latest (Azure#50033)
1 parent 6e8e6de commit fa87086

File tree

43 files changed

+2951
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2951
-190
lines changed

sdk/resources/Azure.ResourceManager.Resources/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Release History
22

3-
## 1.10.0-beta.1 (Unreleased)
3+
## 1.10.0-beta.1 (2025-06-06)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- Updated api-version to `2025-04-01`.
128

139
## 1.9.1 (2025-03-11)
1410

sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.net8.0.cs

Lines changed: 125 additions & 6 deletions
Large diffs are not rendered by default.

sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs

Lines changed: 125 additions & 6 deletions
Large diffs are not rendered by default.
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.Collections.Generic;
8+
using System.ComponentModel;
9+
using System.Linq;
10+
using Azure.Core;
11+
using Azure.ResourceManager.Models;
12+
13+
namespace Azure.ResourceManager.Resources.Models
14+
{
15+
/// <summary> Model factory for models. </summary>
16+
public static partial class ArmResourcesModelFactory
17+
{
18+
/// <summary> Initializes a new instance of <see cref="Models.ArmDeploymentPropertiesExtended"/>. </summary>
19+
/// <param name="provisioningState"> Denotes the state of provisioning. </param>
20+
/// <param name="correlationId"> The correlation ID of the deployment. </param>
21+
/// <param name="timestamp"> The timestamp of the template deployment. </param>
22+
/// <param name="duration"> The duration of the template deployment. </param>
23+
/// <param name="outputs"> Key/value pairs that represent deployment output. </param>
24+
/// <param name="providers"> The list of resource providers needed for the deployment. </param>
25+
/// <param name="dependencies"> The list of deployment dependencies. </param>
26+
/// <param name="templateLink"> The URI referencing the template. </param>
27+
/// <param name="parameters"> Deployment parameters. </param>
28+
/// <param name="parametersLink"> The URI referencing the parameters. </param>
29+
/// <param name="mode"> The deployment mode. Possible values are Incremental and Complete. </param>
30+
/// <param name="debugSettingDetailLevel"> The debug setting of the deployment. </param>
31+
/// <param name="errorDeployment"> The deployment on error behavior. </param>
32+
/// <param name="templateHash"> The hash produced for the template. </param>
33+
/// <param name="outputResources"> Array of provisioned resources. </param>
34+
/// <param name="validatedResources"> Array of validated resources. </param>
35+
/// <param name="error"> The deployment error. </param>
36+
/// <param name="diagnostics"> Contains diagnostic information collected during validation process. </param>
37+
/// <param name="validationLevel"> The validation level of the deployment. </param>
38+
/// <returns> A new <see cref="Models.ArmDeploymentPropertiesExtended"/> instance for mocking. </returns>
39+
[EditorBrowsable(EditorBrowsableState.Never)]
40+
public static ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisioningState, string correlationId, DateTimeOffset? timestamp, TimeSpan? duration, BinaryData outputs, IEnumerable<ResourceProviderData> providers, IEnumerable<ArmDependency> dependencies, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode? mode = default, string debugSettingDetailLevel = null, ErrorDeploymentExtended errorDeployment = null, string templateHash = null, IEnumerable<SubResource> outputResources = null, IEnumerable<SubResource> validatedResources = null, ResponseError error = null, IEnumerable<DeploymentDiagnosticsDefinition> diagnostics = null, ValidationLevel? validationLevel = default)
41+
{
42+
return ArmDeploymentPropertiesExtended(
43+
provisioningState: provisioningState,
44+
correlationId: correlationId,
45+
timestamp: timestamp,
46+
duration: duration,
47+
outputs: outputs,
48+
providers: providers,
49+
dependencies: dependencies,
50+
templateLink: templateLink,
51+
parameters: parameters,
52+
parametersLink: parametersLink,
53+
mode: mode,
54+
debugSettingDetailLevel: debugSettingDetailLevel,
55+
errorDeployment: errorDeployment,
56+
templateHash: templateHash,
57+
outputResourceDetails: outputResources != null ? outputResources.Select(r => ArmResourceReference(id: r.Id)) : null,
58+
validatedResourceDetails: validatedResources != null ? validatedResources.Select(r => ArmResourceReference(id: r.Id)) : null,
59+
error: error,
60+
diagnostics: diagnostics,
61+
validationLevel: validationLevel
62+
);
63+
}
64+
65+
/// <summary> Initializes a new instance of <see cref="Models.ArmDeploymentPropertiesExtended" />. </summary>
66+
/// <param name="provisioningState"> Denotes the state of provisioning. </param>
67+
/// <param name="correlationId"> The correlation ID of the deployment. </param>
68+
/// <param name="timestamp"> The timestamp of the template deployment. </param>
69+
/// <param name="duration"> The duration of the template deployment. </param>
70+
/// <param name="outputs"> Key/value pairs that represent deployment output. </param>
71+
/// <param name="providers"> The list of resource providers needed for the deployment. </param>
72+
/// <param name="dependencies"> The list of deployment dependencies. </param>
73+
/// <param name="templateLink"> The URI referencing the template. </param>
74+
/// <param name="parameters"> Deployment parameters. </param>
75+
/// <param name="parametersLink"> The URI referencing the parameters. </param>
76+
/// <param name="mode"> The deployment mode. Possible values are Incremental and Complete. </param>
77+
/// <param name="debugSettingDetailLevel"> The debug setting of the deployment. </param>
78+
/// <param name="errorDeployment"> The deployment on error behavior. </param>
79+
/// <param name="templateHash"> The hash produced for the template. </param>
80+
/// <param name="outputResources"> Array of provisioned resources. </param>
81+
/// <param name="validatedResources"> Array of validated resources. </param>
82+
/// <param name="error"> The deployment error. </param>
83+
/// <returns> A new <see cref="Models.ArmDeploymentPropertiesExtended" /> instance for mocking. </returns>
84+
[EditorBrowsable(EditorBrowsableState.Never)]
85+
public static ArmDeploymentPropertiesExtended ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisioningState, string correlationId, DateTimeOffset? timestamp, TimeSpan? duration, BinaryData outputs, IEnumerable<ResourceProviderData> providers, IEnumerable<ArmDependency> dependencies, ArmDeploymentTemplateLink templateLink, BinaryData parameters, ArmDeploymentParametersLink parametersLink, ArmDeploymentMode? mode, string debugSettingDetailLevel, ErrorDeploymentExtended errorDeployment, string templateHash, IEnumerable<SubResource> outputResources, IEnumerable<SubResource> validatedResources, ResponseError error)
86+
{
87+
return ArmDeploymentPropertiesExtended(
88+
provisioningState: provisioningState,
89+
correlationId: correlationId,
90+
timestamp: timestamp,
91+
duration: duration,
92+
outputs: outputs,
93+
providers: providers,
94+
dependencies: dependencies,
95+
templateLink: templateLink,
96+
parameters: parameters,
97+
parametersLink: parametersLink,
98+
mode: mode,
99+
debugSettingDetailLevel: debugSettingDetailLevel,
100+
errorDeployment: errorDeployment,
101+
templateHash: templateHash,
102+
outputResources: outputResources,
103+
validatedResources: validatedResources,
104+
error: error,
105+
diagnostics: default,
106+
validationLevel: default);
107+
}
108+
}
109+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using Azure.ResourceManager.Models;
7+
8+
namespace Azure.ResourceManager.Resources.Models
9+
{
10+
public partial class ArmDeploymentContent
11+
{
12+
/// <summary>
13+
/// The Managed Identity configuration for a deployment.
14+
/// The supported types are: None, UserAssigned
15+
/// </summary>
16+
[WirePath("identity")]
17+
public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get; set; }
18+
}
19+
}

sdk/resources/Azure.ResourceManager.Resources/src/Custom/Models/ArmDeploymentPropertiesExtended.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33

44
#nullable disable
55

6+
using System.Collections.Generic;
67
using System.ComponentModel;
8+
using System.Linq;
79
using Azure.Core;
10+
using Azure.ResourceManager.Models;
811

912
namespace Azure.ResourceManager.Resources.Models
1013
{
@@ -19,5 +22,21 @@ public string DebugSettingDetailLevel
1922
[EditorBrowsable(EditorBrowsableState.Never)]
2023
set => DebugSetting.DetailLevel = value;
2124
}
25+
26+
/// <summary>
27+
/// Array of provisioned resources.
28+
/// </summary>
29+
[EditorBrowsable(EditorBrowsableState.Never)]
30+
[WirePath("outputResources")]
31+
public IReadOnlyList<SubResource> OutputResources
32+
=> OutputResourceDetails.Select(d => ResourceManagerModelFactory.SubResource(d.Id != null ? new ResourceIdentifier(d.Id) : null)).ToArray();
33+
34+
/// <summary>
35+
/// Array of validated resources.
36+
/// </summary>
37+
[EditorBrowsable(EditorBrowsableState.Never)]
38+
[WirePath("validatedResources")]
39+
public IReadOnlyList<SubResource> ValidatedResources
40+
=> ValidatedResourceDetails.Select(d => ResourceManagerModelFactory.SubResource(d.Id != null ? new ResourceIdentifier(d.Id) : null)).ToArray();
2241
}
2342
}

sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentCollection.cs

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)