Skip to content

Commit bfaad78

Browse files
authored
ProviderHub 2024-09-01 API version (#51150)
1 parent 8c19cac commit bfaad78

File tree

393 files changed

+33142
-1500
lines changed

Some content is hidden

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

393 files changed

+33142
-1500
lines changed

.vscode/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,7 @@
12171217
"filename": "**/sdk/providerhub/**/*.cs",
12181218
"words": [
12191219
"checkin",
1220+
"dsts",
12201221
"regionality"
12211222
]
12221223
},

sdk/providerhub/Azure.ResourceManager.ProviderHub/CHANGELOG.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
# Release History
22

3-
## 1.2.0-beta.1 (Unreleased)
3+
## 1.2.0 (2025-10-21)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Upgraded api-version tag from 'package-2020-11-20' to 'package-2024-09-01'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/247a38a5fea02ac50132f591f3b53fec06e9377b/specification/providerhub/resource-manager/readme.md.
8+
- Make `Azure.ResourceManager.ProviderHub` AOT-compatible.
109

1110
### Other Changes
1211

12+
- Upgraded Azure.Core from 1.45.0 to 1.49.0
13+
- Upgraded Azure.ResourceManager from 1.13.0 to 1.13.2
14+
- Obsoleted property 'IList<BinaryData> ResourceAccessRoles' in type Azure.ResourceManager.ProviderHub.Models.ResourceProviderManagement
15+
1316
## 1.1.1 (2025-03-11)
1417

1518
### Features Added
1619

17-
- Enable the new model serialization by using the System.ClientModel, refer this [document](https://aka.ms/azsdk/net/mrw) for more details.
20+
- Enabled the new model serialization by using the System.ClientModel, refer this [document](https://aka.ms/azsdk/net/mrw) for more details.
1821
- Exposed `JsonModelWriteCore` for model serialization procedure.
1922

2023
## 1.1.0 (2023-11-29)
2124

2225
### Features Added
2326

24-
- Enable mocking for extension methods, refer this [document](https://aka.ms/azsdk/net/mocking) for more details.
27+
- Enabled mocking for extension methods, refer this [document](https://aka.ms/azsdk/net/mocking) for more details.
2528

2629
### Other Changes
2730

@@ -31,7 +34,7 @@
3134

3235
### Features Added
3336

34-
- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder).
37+
- Enabled the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder).
3538

3639
### Other Changes
3740

sdk/providerhub/Azure.ResourceManager.ProviderHub/api/Azure.ResourceManager.ProviderHub.net8.0.cs

Lines changed: 1726 additions & 36 deletions
Large diffs are not rendered by default.

sdk/providerhub/Azure.ResourceManager.ProviderHub/api/Azure.ResourceManager.ProviderHub.netstandard2.0.cs

Lines changed: 1726 additions & 36 deletions
Large diffs are not rendered by default.

sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Azure.ResourceManager.ProviderHub.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>1.2.0-beta.1</Version>
3+
<Version>1.2.0</Version>
44
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
55
<ApiCompatVersion>1.1.1</ApiCompatVersion>
66
<PackageId>Azure.ResourceManager.ProviderHub</PackageId>
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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+
12+
namespace Azure.ResourceManager.ProviderHub.Models
13+
{
14+
/// <summary> Model factory for models. </summary>
15+
public static partial class ArmProviderHubModelFactory
16+
{
17+
/// <summary> Initializes a new instance of <see cref="Models.CheckinManifestInfo"/>. </summary>
18+
/// <param name="isCheckedIn"></param>
19+
/// <param name="statusMessage"></param>
20+
/// <param name="pullRequest"></param>
21+
/// <param name="commitId"></param>
22+
/// <returns> A new <see cref="Models.CheckinManifestInfo"/> instance for mocking. </returns>
23+
[EditorBrowsable(EditorBrowsableState.Never)]
24+
public static CheckinManifestInfo CheckinManifestInfo(bool isCheckedIn = default, string statusMessage = null, string pullRequest = null, string commitId = null)
25+
=> new CheckinManifestInfo(isCheckedIn, statusMessage, pullRequest, commitId, null);
26+
27+
/// <summary> Initializes a new instance of <see cref="Models.LinkedOperationRule"/>. </summary>
28+
/// <param name="linkedOperation"></param>
29+
/// <param name="linkedAction"></param>
30+
/// <returns> A new <see cref="Models.LinkedOperationRule"/> instance for mocking. </returns>
31+
[EditorBrowsable(EditorBrowsableState.Never)]
32+
public static LinkedOperationRule LinkedOperationRule(LinkedOperation linkedOperation = default, LinkedAction linkedAction = default)
33+
=> new LinkedOperationRule(linkedOperation, linkedAction, new ChangeTrackingList<string>(), null);
34+
35+
/// <summary> Initializes a new instance of <see cref="Models.ProviderResourceType"/>. </summary>
36+
/// <param name="name"></param>
37+
/// <param name="routingType"></param>
38+
/// <param name="resourceValidation"></param>
39+
/// <param name="allowedUnauthorizedActions"></param>
40+
/// <param name="authorizationActionMappings"></param>
41+
/// <param name="linkedAccessChecks"></param>
42+
/// <param name="defaultApiVersion"></param>
43+
/// <param name="loggingRules"></param>
44+
/// <param name="throttlingRules"></param>
45+
/// <param name="endpoints"></param>
46+
/// <param name="marketplaceType"></param>
47+
/// <param name="managementType"></param>
48+
/// <param name="metadata"> Anything. </param>
49+
/// <param name="requiredFeatures"></param>
50+
/// <param name="requiredFeaturesPolicy"></param>
51+
/// <param name="subscriptionStateRules"></param>
52+
/// <param name="serviceTreeInfos"></param>
53+
/// <param name="optInHeaders"></param>
54+
/// <param name="skuLink"></param>
55+
/// <param name="disallowedActionVerbs"></param>
56+
/// <param name="templateDeploymentPolicy"></param>
57+
/// <param name="extendedLocations"></param>
58+
/// <param name="linkedOperationRules"></param>
59+
/// <param name="resourceDeletionPolicy"></param>
60+
/// <returns> A new <see cref="Models.ProviderResourceType"/> instance for mocking. </returns>
61+
[EditorBrowsable(EditorBrowsableState.Never)]
62+
public static ProviderResourceType ProviderResourceType(string name = null, ResourceRoutingType? routingType = null, ResourceValidation? resourceValidation = null, IEnumerable<string> allowedUnauthorizedActions = null, IEnumerable<AuthorizationActionMapping> authorizationActionMappings = null, IEnumerable<LinkedAccessCheck> linkedAccessChecks = null, string defaultApiVersion = null, IEnumerable<LoggingRule> loggingRules = null, IEnumerable<ThrottlingRule> throttlingRules = null, IEnumerable<ResourceProviderEndpoint> endpoints = null, MarketplaceType? marketplaceType = null, IdentityManagementType? managementType = null, BinaryData metadata = null, IEnumerable<string> requiredFeatures = null, FeaturesPolicy? requiredFeaturesPolicy = null, IEnumerable<ProviderSubscriptionStateRule> subscriptionStateRules = null, IEnumerable<ServiceTreeInfo> serviceTreeInfos = null, OptInHeaderType? optInHeaders = null, string skuLink = null, IEnumerable<string> disallowedActionVerbs = null, TemplateDeploymentPolicy templateDeploymentPolicy = null, IEnumerable<ProviderHubExtendedLocationOptions> extendedLocations = null, IEnumerable<LinkedOperationRule> linkedOperationRules = null, ManifestResourceDeletionPolicy? resourceDeletionPolicy = null)
63+
=> new ProviderResourceType(name, routingType, null, null, resourceValidation, allowedUnauthorizedActions.ToList(), null, authorizationActionMappings.ToList(), linkedAccessChecks.ToList(), defaultApiVersion, loggingRules.ToList(), throttlingRules.ToList(), endpoints.ToList(), marketplaceType, null, metadata, requiredFeatures.ToList(), null, subscriptionStateRules.ToList(), null, null, skuLink, disallowedActionVerbs.ToList(), templateDeploymentPolicy, extendedLocations.ToList(), linkedOperationRules.ToList(), resourceDeletionPolicy, null, null, null, null, null);
64+
65+
/// <summary> Initializes a new instance of <see cref="Models.ResourceProviderEndpoint"/>. </summary>
66+
/// <param name="isEnabled"></param>
67+
/// <param name="apiVersions"></param>
68+
/// <param name="endpointUri"></param>
69+
/// <param name="locations"></param>
70+
/// <param name="requiredFeatures"></param>
71+
/// <param name="requiredFeaturesPolicy"></param>
72+
/// <param name="timeout"></param>
73+
/// <returns> A new <see cref="Models.ResourceProviderEndpoint"/> instance for mocking. </returns>
74+
[EditorBrowsable(EditorBrowsableState.Never)]
75+
public static ResourceProviderEndpoint ResourceProviderEndpoint(bool? isEnabled = null, IEnumerable<string> apiVersions = null, Uri endpointUri = null, IEnumerable<AzureLocation> locations = null, IEnumerable<string> requiredFeatures = null, FeaturesPolicy? requiredFeaturesPolicy = null, TimeSpan? timeout = null)
76+
=> new ResourceProviderEndpoint(isEnabled, apiVersions.ToList(), endpointUri, locations.ToList(), requiredFeatures.ToList(), null, timeout, null, null, null);
77+
78+
/// <summary> Initializes a new instance of <see cref="Models.ResourceProviderManifest"/>. </summary>
79+
/// <param name="providerAuthenticationAllowedAudiences"></param>
80+
/// <param name="providerAuthorizations"></param>
81+
/// <param name="namespace"></param>
82+
/// <param name="providerVersion"></param>
83+
/// <param name="providerType"></param>
84+
/// <param name="requiredFeatures"></param>
85+
/// <param name="requiredFeaturesPolicy"></param>
86+
/// <param name="optInHeaders"></param>
87+
/// <param name="resourceTypes"></param>
88+
/// <param name="management"></param>
89+
/// <param name="capabilities"></param>
90+
/// <param name="metadata"> Anything. </param>
91+
/// <param name="globalNotificationEndpoints"></param>
92+
/// <param name="reRegisterSubscriptionMetadata"></param>
93+
/// <returns> A new <see cref="Models.ResourceProviderManifest"/> instance for mocking. </returns>
94+
[EditorBrowsable(EditorBrowsableState.Never)]
95+
public static ResourceProviderManifest ResourceProviderManifest(IEnumerable<string> providerAuthenticationAllowedAudiences = null, IEnumerable<ResourceProviderAuthorization> providerAuthorizations = null, string @namespace = null, string providerVersion = null, ResourceProviderType? providerType = null, IEnumerable<string> requiredFeatures = null, FeaturesPolicy? requiredFeaturesPolicy = null, OptInHeaderType? optInHeaders = null, IEnumerable<ProviderResourceType> resourceTypes = null, ResourceProviderManagement management = null, IEnumerable<ResourceProviderCapabilities> capabilities = null, BinaryData metadata = null, IEnumerable<ResourceProviderEndpoint> globalNotificationEndpoints = null, ReRegisterSubscriptionMetadata reRegisterSubscriptionMetadata = null)
96+
=> new ResourceProviderManifest(null, providerAuthorizations.ToList(), @namespace, null, null, providerVersion, providerType, requiredFeatures.ToList(), null, null, resourceTypes.ToList(), management, capabilities.ToList(), null, metadata, globalNotificationEndpoints.ToList(), reRegisterSubscriptionMetadata, null, null, null, null, null);
97+
98+
/// <summary> Initializes a new instance of <see cref="Models.TemplateDeploymentPolicy"/>. </summary>
99+
/// <param name="capabilities"></param>
100+
/// <param name="preflightOptions"></param>
101+
/// <returns> A new <see cref="Models.TemplateDeploymentPolicy"/> instance for mocking. </returns>
102+
[EditorBrowsable(EditorBrowsableState.Never)]
103+
public static TemplateDeploymentPolicy TemplateDeploymentPolicy(TemplateDeploymentCapability capabilities = default, TemplateDeploymentPreflightOption preflightOptions = default)
104+
=> new TemplateDeploymentPolicy(capabilities, preflightOptions, null, null);
105+
}
106+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
namespace Azure.ResourceManager.ProviderHub.Models
7+
{
8+
/// <summary> The CustomRolloutProperties. </summary>
9+
public partial class CustomRolloutProperties
10+
{
11+
/// <summary> Gets or sets the provisioning state. </summary>
12+
public ProviderHubProvisioningState? ProvisioningState { get; set; }
13+
}
14+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
8+
namespace Azure.ResourceManager.ProviderHub.Models
9+
{
10+
/// <summary> The CustomRolloutSpecification. </summary>
11+
public partial class CustomRolloutSpecification
12+
{
13+
/// <summary> Initializes a new instance of <see cref="CustomRolloutSpecification"/>. </summary>
14+
/// <param name="canary"></param>
15+
/// <exception cref="ArgumentNullException"> <paramref name="canary"/> is null. </exception>
16+
public CustomRolloutSpecification(TrafficRegions canary)
17+
{
18+
Argument.AssertNotNull(canary, nameof(canary));
19+
20+
Canary = canary;
21+
ReleaseScopes = new ChangeTrackingList<string>();
22+
ResourceTypeRegistrations = new ChangeTrackingList<ResourceTypeRegistrationData>();
23+
}
24+
}
25+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
namespace Azure.ResourceManager.ProviderHub.Models
7+
{
8+
/// <summary> The DefaultRolloutProperties. </summary>
9+
public partial class DefaultRolloutProperties
10+
{
11+
/// <summary> Gets or sets the provisioning state. </summary>
12+
public ProviderHubProvisioningState? ProvisioningState { get; set; }
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
namespace Azure.ResourceManager.ProviderHub.Models
7+
{
8+
/// <summary> The NotificationRegistrationProperties. </summary>
9+
public partial class NotificationRegistrationProperties
10+
{
11+
/// <summary> Gets or sets the provisioning state. </summary>
12+
public ProviderHubProvisioningState? ProvisioningState { get; set; }
13+
}
14+
}

0 commit comments

Comments
 (0)