-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MockableMySqlArmClient.cs
219 lines (197 loc) · 13.6 KB
/
MockableMySqlArmClient.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using Azure.Core;
using Azure.ResourceManager;
using Azure.ResourceManager.MySql;
namespace Azure.ResourceManager.MySql.Mocking
{
/// <summary> A class to add extension methods to ArmClient. </summary>
public partial class MockableMySqlArmClient : ArmResource
{
/// <summary> Initializes a new instance of the <see cref="MockableMySqlArmClient"/> class for mocking. </summary>
protected MockableMySqlArmClient()
{
}
/// <summary> Initializes a new instance of the <see cref="MockableMySqlArmClient"/> 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 MockableMySqlArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
{
}
internal MockableMySqlArmClient(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="MySqlServerResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlServerResource.CreateResourceIdentifier" /> to create a <see cref="MySqlServerResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlServerResource"/> object. </returns>
public virtual MySqlServerResource GetMySqlServerResource(ResourceIdentifier id)
{
MySqlServerResource.ValidateResourceId(id);
return new MySqlServerResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlFirewallRuleResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlFirewallRuleResource.CreateResourceIdentifier" /> to create a <see cref="MySqlFirewallRuleResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlFirewallRuleResource"/> object. </returns>
public virtual MySqlFirewallRuleResource GetMySqlFirewallRuleResource(ResourceIdentifier id)
{
MySqlFirewallRuleResource.ValidateResourceId(id);
return new MySqlFirewallRuleResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlVirtualNetworkRuleResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlVirtualNetworkRuleResource.CreateResourceIdentifier" /> to create a <see cref="MySqlVirtualNetworkRuleResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlVirtualNetworkRuleResource"/> object. </returns>
public virtual MySqlVirtualNetworkRuleResource GetMySqlVirtualNetworkRuleResource(ResourceIdentifier id)
{
MySqlVirtualNetworkRuleResource.ValidateResourceId(id);
return new MySqlVirtualNetworkRuleResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlDatabaseResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlDatabaseResource.CreateResourceIdentifier" /> to create a <see cref="MySqlDatabaseResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlDatabaseResource"/> object. </returns>
public virtual MySqlDatabaseResource GetMySqlDatabaseResource(ResourceIdentifier id)
{
MySqlDatabaseResource.ValidateResourceId(id);
return new MySqlDatabaseResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlConfigurationResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlConfigurationResource.CreateResourceIdentifier" /> to create a <see cref="MySqlConfigurationResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlConfigurationResource"/> object. </returns>
public virtual MySqlConfigurationResource GetMySqlConfigurationResource(ResourceIdentifier id)
{
MySqlConfigurationResource.ValidateResourceId(id);
return new MySqlConfigurationResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlServerAdministratorResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlServerAdministratorResource.CreateResourceIdentifier" /> to create a <see cref="MySqlServerAdministratorResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlServerAdministratorResource"/> object. </returns>
public virtual MySqlServerAdministratorResource GetMySqlServerAdministratorResource(ResourceIdentifier id)
{
MySqlServerAdministratorResource.ValidateResourceId(id);
return new MySqlServerAdministratorResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlServerSecurityAlertPolicyResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlServerSecurityAlertPolicyResource.CreateResourceIdentifier" /> to create a <see cref="MySqlServerSecurityAlertPolicyResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlServerSecurityAlertPolicyResource"/> object. </returns>
public virtual MySqlServerSecurityAlertPolicyResource GetMySqlServerSecurityAlertPolicyResource(ResourceIdentifier id)
{
MySqlServerSecurityAlertPolicyResource.ValidateResourceId(id);
return new MySqlServerSecurityAlertPolicyResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlQueryTextResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlQueryTextResource.CreateResourceIdentifier" /> to create a <see cref="MySqlQueryTextResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlQueryTextResource"/> object. </returns>
public virtual MySqlQueryTextResource GetMySqlQueryTextResource(ResourceIdentifier id)
{
MySqlQueryTextResource.ValidateResourceId(id);
return new MySqlQueryTextResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlQueryStatisticResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlQueryStatisticResource.CreateResourceIdentifier" /> to create a <see cref="MySqlQueryStatisticResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlQueryStatisticResource"/> object. </returns>
public virtual MySqlQueryStatisticResource GetMySqlQueryStatisticResource(ResourceIdentifier id)
{
MySqlQueryStatisticResource.ValidateResourceId(id);
return new MySqlQueryStatisticResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlWaitStatisticResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlWaitStatisticResource.CreateResourceIdentifier" /> to create a <see cref="MySqlWaitStatisticResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlWaitStatisticResource"/> object. </returns>
public virtual MySqlWaitStatisticResource GetMySqlWaitStatisticResource(ResourceIdentifier id)
{
MySqlWaitStatisticResource.ValidateResourceId(id);
return new MySqlWaitStatisticResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlAdvisorResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlAdvisorResource.CreateResourceIdentifier" /> to create a <see cref="MySqlAdvisorResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlAdvisorResource"/> object. </returns>
public virtual MySqlAdvisorResource GetMySqlAdvisorResource(ResourceIdentifier id)
{
MySqlAdvisorResource.ValidateResourceId(id);
return new MySqlAdvisorResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlRecommendationActionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlRecommendationActionResource.CreateResourceIdentifier" /> to create a <see cref="MySqlRecommendationActionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlRecommendationActionResource"/> object. </returns>
public virtual MySqlRecommendationActionResource GetMySqlRecommendationActionResource(ResourceIdentifier id)
{
MySqlRecommendationActionResource.ValidateResourceId(id);
return new MySqlRecommendationActionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlPrivateEndpointConnectionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlPrivateEndpointConnectionResource.CreateResourceIdentifier" /> to create a <see cref="MySqlPrivateEndpointConnectionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlPrivateEndpointConnectionResource"/> object. </returns>
public virtual MySqlPrivateEndpointConnectionResource GetMySqlPrivateEndpointConnectionResource(ResourceIdentifier id)
{
MySqlPrivateEndpointConnectionResource.ValidateResourceId(id);
return new MySqlPrivateEndpointConnectionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlPrivateLinkResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlPrivateLinkResource.CreateResourceIdentifier" /> to create a <see cref="MySqlPrivateLinkResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlPrivateLinkResource"/> object. </returns>
public virtual MySqlPrivateLinkResource GetMySqlPrivateLinkResource(ResourceIdentifier id)
{
MySqlPrivateLinkResource.ValidateResourceId(id);
return new MySqlPrivateLinkResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MySqlServerKeyResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MySqlServerKeyResource.CreateResourceIdentifier" /> to create a <see cref="MySqlServerKeyResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MySqlServerKeyResource"/> object. </returns>
public virtual MySqlServerKeyResource GetMySqlServerKeyResource(ResourceIdentifier id)
{
MySqlServerKeyResource.ValidateResourceId(id);
return new MySqlServerKeyResource(Client, id);
}
}
}