/
ContainerServiceExtensions.cs
24 lines (21 loc) · 1.2 KB
/
ContainerServiceExtensions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#nullable disable
using Azure.Core;
using Azure.ResourceManager.Resources;
namespace Azure.ResourceManager.ContainerService
{
/// <summary> A class to add extension methods to Azure.ResourceManager.ContainerService. </summary>
[CodeGenSuppress("GetOSOptionProfile", typeof(SubscriptionResource))]
public static partial class ContainerServiceExtensions
{
/// <summary> Gets an object representing a OSOptionProfileResource along with the instance operations that can be performed on it in the SubscriptionResource. </summary>
/// <param name="subscriptionResource"> The <see cref="SubscriptionResource" /> instance the method will execute against. </param>
/// <param name="location"> The name of Azure region. </param>
/// <returns> Returns a <see cref="OSOptionProfileResource" /> object. </returns>
public static OSOptionProfileResource GetOSOptionProfile(this SubscriptionResource subscriptionResource, AzureLocation location)
{
return GetMockableContainerServiceSubscriptionResource(subscriptionResource).GetOSOptionProfile(location);
}
}
}