Skip to content

Commit 8cddb86

Browse files
MikePham0630MikePham1Anna Pankiewiczlinquanlyupriya shet
authored
Generate .NET SDK Base for 2025-02-01 API version (Azure#49320)
* Generate .NET SDK Base for 2025-02-01 API version * update all tests to use the 2025-02-01 API version * Updating Custom code * update tests * fixing ci test * fixing ci test * update API * fixing ci test * update Changelog.md * add back the missing APIs through customization * rerun Export-API.ps1 * fixing dotnet build * update csproj version to match with changelog.md * rerun dotnet build /t:GenerateCode * Add new cluster manager tests recording * L2 and L3 network Scenario test * Add cluster test recordings * CSN and trunked network Scenario test * RackSku and Racks tests updated for 2025-02-01 api version * updated recording for storageAppliance * updated bmm tests * update virtualmachine test * Update with redaction script * update asset for virtualMachines recording * update recording for volume tests * Add test for kubernetes cluster, kubernetes cluster feature, and agent pool * bmm key set tests * ClusterMetricsConfiguration tests recording updated for Api version 2025-02-01 * Restore updated AgentPool, KubernetesCluster, and KubernetesClusterFeature recordings * Restore Volumes recording * Restore bmm recording * Re-record k8s cluster feature tests * updated recordings for virtual machine console * Re-record bmmkeyset test * Fix sanitization + redaction * updated bmcKeySet test * rerecord bmcKeySet tests * rerecord bmcKeySet + update test --------- Co-authored-by: Mike Pham <[email protected]> Co-authored-by: Anna Pankiewicz <[email protected]> Co-authored-by: linquanlyu <[email protected]> Co-authored-by: priya shet <[email protected]> Co-authored-by: Jonathan Malcomb <[email protected]> Co-authored-by: vicky <[email protected]>
1 parent 713fe00 commit 8cddb86

File tree

193 files changed

+7231
-1565
lines changed

Some content is hidden

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

193 files changed

+7231
-1565
lines changed

sdk/networkcloud/Azure.ResourceManager.NetworkCloud/CHANGELOG.md

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

3-
## 1.2.0-beta.2 (Unreleased)
3+
## 1.2.0 (Unreleased)
44

55
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
6+
- Upgraded api-version tag from 'package-2024-07-01' to 'package-2025-02-01'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/08973141b0d31a7e75d4dc43a5224a1814a0994f/specification/networkcloud/resource-manager/readme.md.
127

138
## 1.2.0-beta.1 (2025-04-25)
149

sdk/networkcloud/Azure.ResourceManager.NetworkCloud/api/Azure.ResourceManager.NetworkCloud.net8.0.cs

Lines changed: 235 additions & 89 deletions
Large diffs are not rendered by default.

sdk/networkcloud/Azure.ResourceManager.NetworkCloud/api/Azure.ResourceManager.NetworkCloud.netstandard2.0.cs

Lines changed: 235 additions & 89 deletions
Large diffs are not rendered by default.

sdk/networkcloud/Azure.ResourceManager.NetworkCloud/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/networkcloud/Azure.ResourceManager.NetworkCloud",
5-
"Tag": "net/networkcloud/Azure.ResourceManager.NetworkCloud_9079956b9a"
5+
"Tag": "net/networkcloud/Azure.ResourceManager.NetworkCloud_4ca0a41d66"
66
}

sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Azure.ResourceManager.NetworkCloud.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.2</Version>
3+
<Version>1.2.0</Version>
44
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
55
<ApiCompatVersion>1.1.0</ApiCompatVersion>
66
<PackageId>Azure.ResourceManager.NetworkCloud</PackageId>

sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Custom/ArmNetworkCloudModelFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public static NetworkCloudAgentPoolData NetworkCloudAgentPoolData(ResourceIdenti
102102
systemData,
103103
tags,
104104
location,
105+
null,
105106
extendedLocation,
106107
administratorConfiguration,
107108
agentOptions,
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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;
8+
using System.Collections.Generic;
9+
using System.Globalization;
10+
using System.Threading;
11+
using System.Threading.Tasks;
12+
using Autorest.CSharp.Core;
13+
using Azure.Core;
14+
using Azure.Core.Pipeline;
15+
16+
namespace Azure.ResourceManager.NetworkCloud
17+
{
18+
/// <summary>
19+
/// A class representing a collection of <see cref="NetworkCloudAgentPoolResource"/> and their operations.
20+
/// Each <see cref="NetworkCloudAgentPoolResource"/> in the collection will belong to the same instance of <see cref="NetworkCloudKubernetesClusterResource"/>.
21+
/// To get a <see cref="NetworkCloudAgentPoolCollection"/> instance call the GetNetworkCloudAgentPools method from an instance of <see cref="NetworkCloudKubernetesClusterResource"/>.
22+
/// </summary>
23+
public partial class NetworkCloudAgentPoolCollection : ArmCollection, IEnumerable<NetworkCloudAgentPoolResource>, IAsyncEnumerable<NetworkCloudAgentPoolResource>
24+
{
25+
/// <summary>
26+
/// Create a new Kubernetes cluster agent pool or update the properties of the existing one.
27+
/// <list type="bullet">
28+
/// <item>
29+
/// <term>Request Path</term>
30+
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}</description>
31+
/// </item>
32+
/// <item>
33+
/// <term>Operation Id</term>
34+
/// <description>AgentPools_CreateOrUpdate</description>
35+
/// </item>
36+
/// <item>
37+
/// <term>Default Api Version</term>
38+
/// <description>2025-02-01</description>
39+
/// </item>
40+
/// <item>
41+
/// <term>Resource</term>
42+
/// <description><see cref="NetworkCloudAgentPoolResource"/></description>
43+
/// </item>
44+
/// </list>
45+
/// </summary>
46+
/// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param>
47+
/// <param name="agentPoolName"> The name of the Kubernetes cluster agent pool. </param>
48+
/// <param name="data"> The request body. </param>
49+
/// <param name="cancellationToken"> The cancellation token to use. </param>
50+
/// <exception cref="ArgumentException"> <paramref name="agentPoolName"/> is an empty string, and was expected to be non-empty. </exception>
51+
/// <exception cref="ArgumentNullException"> <paramref name="agentPoolName"/> or <paramref name="data"/> is null. </exception>
52+
public virtual ArmOperation<NetworkCloudAgentPoolResource> CreateOrUpdate(WaitUntil waitUntil, string agentPoolName, NetworkCloudAgentPoolData data, CancellationToken cancellationToken)
53+
{
54+
return CreateOrUpdate(waitUntil, agentPoolName, data, null, null, cancellationToken);
55+
}
56+
57+
/// <summary>
58+
/// Create a new Kubernetes cluster agent pool or update the properties of the existing one.
59+
/// <list type="bullet">
60+
/// <item>
61+
/// <term>Request Path</term>
62+
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}</description>
63+
/// </item>
64+
/// <item>
65+
/// <term>Operation Id</term>
66+
/// <description>AgentPools_CreateOrUpdate</description>
67+
/// </item>
68+
/// <item>
69+
/// <term>Default Api Version</term>
70+
/// <description>2025-02-01</description>
71+
/// </item>
72+
/// <item>
73+
/// <term>Resource</term>
74+
/// <description><see cref="NetworkCloudAgentPoolResource"/></description>
75+
/// </item>
76+
/// </list>
77+
/// </summary>
78+
/// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param>
79+
/// <param name="agentPoolName"> The name of the Kubernetes cluster agent pool. </param>
80+
/// <param name="data"> The request body. </param>
81+
/// <param name="cancellationToken"> The cancellation token to use. </param>
82+
/// <exception cref="ArgumentException"> <paramref name="agentPoolName"/> is an empty string, and was expected to be non-empty. </exception>
83+
/// <exception cref="ArgumentNullException"> <paramref name="agentPoolName"/> or <paramref name="data"/> is null. </exception>
84+
public virtual async Task<ArmOperation<NetworkCloudAgentPoolResource>> CreateOrUpdateAsync(WaitUntil waitUntil, string agentPoolName, NetworkCloudAgentPoolData data, CancellationToken cancellationToken) {
85+
return await CreateOrUpdateAsync(waitUntil, agentPoolName, data, null, null, cancellationToken).ConfigureAwait(false);
86+
}
87+
}
88+
}

0 commit comments

Comments
 (0)