-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
NetAppExtensions.cs
48 lines (43 loc) · 2.48 KB
/
NetAppExtensions.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#nullable disable
using System;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.ResourceManager;
using Azure.ResourceManager.NetApp.Models;
using Azure.ResourceManager.Resources;
namespace Azure.ResourceManager.NetApp
{
/// <summary> A class to add extension methods to Azure.ResourceManager.NetApp. </summary>
public static partial class NetAppExtensions
{
/// <summary>
/// Gets an object representing a <see cref="NetAppAccountBackupResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="NetAppAccountBackupResource.CreateResourceIdentifier" /> to create a <see cref="NetAppAccountBackupResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="client"> The <see cref="ArmClient" /> instance the method will execute against. </param>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="NetAppAccountBackupResource" /> object. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static NetAppAccountBackupResource GetNetAppAccountBackupResource(this ArmClient client, ResourceIdentifier id)
{
return GetMockableNetAppArmClient(client).GetNetAppAccountBackupResource(id);
}
/// <summary>
/// Gets an object representing a <see cref="NetAppVolumeBackupResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="NetAppVolumeBackupResource.CreateResourceIdentifier" /> to create a <see cref="NetAppVolumeBackupResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="client"> The <see cref="ArmClient" /> instance the method will execute against. </param>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="NetAppVolumeBackupResource" /> object. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static NetAppVolumeBackupResource GetNetAppVolumeBackupResource(this ArmClient client, ResourceIdentifier id)
{
return GetMockableNetAppArmClient(client).GetNetAppVolumeBackupResource(id);
}
}
}