-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
MockableSignalRArmClient.cs
97 lines (85 loc) · 5.43 KB
/
MockableSignalRArmClient.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using Azure.Core;
namespace Azure.ResourceManager.SignalR.Mocking
{
/// <summary> A class to add extension methods to ArmClient. </summary>
public partial class MockableSignalRArmClient : ArmResource
{
/// <summary> Initializes a new instance of the <see cref="MockableSignalRArmClient"/> class for mocking. </summary>
protected MockableSignalRArmClient()
{
}
/// <summary> Initializes a new instance of the <see cref="MockableSignalRArmClient"/> class. </summary>
/// <param name="client"> The client parameters to use in these operations. </param>
/// <param name="id"> The identifier of the resource that is the target of operations. </param>
internal MockableSignalRArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
{
}
internal MockableSignalRArmClient(ArmClient client) : this(client, ResourceIdentifier.Root)
{
}
private string GetApiVersionOrNull(ResourceType resourceType)
{
TryGetApiVersion(resourceType, out string apiVersion);
return apiVersion;
}
/// <summary>
/// Gets an object representing a <see cref="SignalRResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="SignalRResource.CreateResourceIdentifier" /> to create a <see cref="SignalRResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="SignalRResource"/> object. </returns>
public virtual SignalRResource GetSignalRResource(ResourceIdentifier id)
{
SignalRResource.ValidateResourceId(id);
return new SignalRResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="SignalRCustomCertificateResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="SignalRCustomCertificateResource.CreateResourceIdentifier" /> to create a <see cref="SignalRCustomCertificateResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="SignalRCustomCertificateResource"/> object. </returns>
public virtual SignalRCustomCertificateResource GetSignalRCustomCertificateResource(ResourceIdentifier id)
{
SignalRCustomCertificateResource.ValidateResourceId(id);
return new SignalRCustomCertificateResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="SignalRCustomDomainResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="SignalRCustomDomainResource.CreateResourceIdentifier" /> to create a <see cref="SignalRCustomDomainResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="SignalRCustomDomainResource"/> object. </returns>
public virtual SignalRCustomDomainResource GetSignalRCustomDomainResource(ResourceIdentifier id)
{
SignalRCustomDomainResource.ValidateResourceId(id);
return new SignalRCustomDomainResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="SignalRPrivateEndpointConnectionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="SignalRPrivateEndpointConnectionResource.CreateResourceIdentifier" /> to create a <see cref="SignalRPrivateEndpointConnectionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="SignalRPrivateEndpointConnectionResource"/> object. </returns>
public virtual SignalRPrivateEndpointConnectionResource GetSignalRPrivateEndpointConnectionResource(ResourceIdentifier id)
{
SignalRPrivateEndpointConnectionResource.ValidateResourceId(id);
return new SignalRPrivateEndpointConnectionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="SignalRSharedPrivateLinkResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="SignalRSharedPrivateLinkResource.CreateResourceIdentifier" /> to create a <see cref="SignalRSharedPrivateLinkResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="SignalRSharedPrivateLinkResource"/> object. </returns>
public virtual SignalRSharedPrivateLinkResource GetSignalRSharedPrivateLinkResource(ResourceIdentifier id)
{
SignalRSharedPrivateLinkResource.ValidateResourceId(id);
return new SignalRSharedPrivateLinkResource(Client, id);
}
}
}