/
MockableCosmosDBArmClient.cs
541 lines (492 loc) · 36.8 KB
/
MockableCosmosDBArmClient.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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using Azure.Core;
namespace Azure.ResourceManager.CosmosDB.Mocking
{
/// <summary> A class to add extension methods to ArmClient. </summary>
public partial class MockableCosmosDBArmClient : ArmResource
{
/// <summary> Initializes a new instance of the <see cref="MockableCosmosDBArmClient"/> class for mocking. </summary>
protected MockableCosmosDBArmClient()
{
}
/// <summary> Initializes a new instance of the <see cref="MockableCosmosDBArmClient"/> 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 MockableCosmosDBArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
{
}
internal MockableCosmosDBArmClient(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="CosmosDBAccountResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBAccountResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBAccountResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBAccountResource"/> object. </returns>
public virtual CosmosDBAccountResource GetCosmosDBAccountResource(ResourceIdentifier id)
{
CosmosDBAccountResource.ValidateResourceId(id);
return new CosmosDBAccountResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="GraphResourceGetResultResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="GraphResourceGetResultResource.CreateResourceIdentifier" /> to create a <see cref="GraphResourceGetResultResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="GraphResourceGetResultResource"/> object. </returns>
public virtual GraphResourceGetResultResource GetGraphResourceGetResultResource(ResourceIdentifier id)
{
GraphResourceGetResultResource.ValidateResourceId(id);
return new GraphResourceGetResultResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlDatabaseResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlDatabaseResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlDatabaseResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlDatabaseResource"/> object. </returns>
public virtual CosmosDBSqlDatabaseResource GetCosmosDBSqlDatabaseResource(ResourceIdentifier id)
{
CosmosDBSqlDatabaseResource.ValidateResourceId(id);
return new CosmosDBSqlDatabaseResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlDatabaseThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlDatabaseThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlDatabaseThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlDatabaseThroughputSettingResource"/> object. </returns>
public virtual CosmosDBSqlDatabaseThroughputSettingResource GetCosmosDBSqlDatabaseThroughputSettingResource(ResourceIdentifier id)
{
CosmosDBSqlDatabaseThroughputSettingResource.ValidateResourceId(id);
return new CosmosDBSqlDatabaseThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlContainerThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlContainerThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlContainerThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlContainerThroughputSettingResource"/> object. </returns>
public virtual CosmosDBSqlContainerThroughputSettingResource GetCosmosDBSqlContainerThroughputSettingResource(ResourceIdentifier id)
{
CosmosDBSqlContainerThroughputSettingResource.ValidateResourceId(id);
return new CosmosDBSqlContainerThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MongoDBDatabaseThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MongoDBDatabaseThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="MongoDBDatabaseThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MongoDBDatabaseThroughputSettingResource"/> object. </returns>
public virtual MongoDBDatabaseThroughputSettingResource GetMongoDBDatabaseThroughputSettingResource(ResourceIdentifier id)
{
MongoDBDatabaseThroughputSettingResource.ValidateResourceId(id);
return new MongoDBDatabaseThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MongoDBCollectionThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MongoDBCollectionThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="MongoDBCollectionThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MongoDBCollectionThroughputSettingResource"/> object. </returns>
public virtual MongoDBCollectionThroughputSettingResource GetMongoDBCollectionThroughputSettingResource(ResourceIdentifier id)
{
MongoDBCollectionThroughputSettingResource.ValidateResourceId(id);
return new MongoDBCollectionThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosTableThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosTableThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="CosmosTableThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosTableThroughputSettingResource"/> object. </returns>
public virtual CosmosTableThroughputSettingResource GetCosmosTableThroughputSettingResource(ResourceIdentifier id)
{
CosmosTableThroughputSettingResource.ValidateResourceId(id);
return new CosmosTableThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CassandraKeyspaceThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CassandraKeyspaceThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="CassandraKeyspaceThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CassandraKeyspaceThroughputSettingResource"/> object. </returns>
public virtual CassandraKeyspaceThroughputSettingResource GetCassandraKeyspaceThroughputSettingResource(ResourceIdentifier id)
{
CassandraKeyspaceThroughputSettingResource.ValidateResourceId(id);
return new CassandraKeyspaceThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CassandraTableThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CassandraTableThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="CassandraTableThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CassandraTableThroughputSettingResource"/> object. </returns>
public virtual CassandraTableThroughputSettingResource GetCassandraTableThroughputSettingResource(ResourceIdentifier id)
{
CassandraTableThroughputSettingResource.ValidateResourceId(id);
return new CassandraTableThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CassandraViewThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CassandraViewThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="CassandraViewThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CassandraViewThroughputSettingResource"/> object. </returns>
public virtual CassandraViewThroughputSettingResource GetCassandraViewThroughputSettingResource(ResourceIdentifier id)
{
CassandraViewThroughputSettingResource.ValidateResourceId(id);
return new CassandraViewThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="GremlinDatabaseThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="GremlinDatabaseThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="GremlinDatabaseThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="GremlinDatabaseThroughputSettingResource"/> object. </returns>
public virtual GremlinDatabaseThroughputSettingResource GetGremlinDatabaseThroughputSettingResource(ResourceIdentifier id)
{
GremlinDatabaseThroughputSettingResource.ValidateResourceId(id);
return new GremlinDatabaseThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="GremlinGraphThroughputSettingResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="GremlinGraphThroughputSettingResource.CreateResourceIdentifier" /> to create a <see cref="GremlinGraphThroughputSettingResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="GremlinGraphThroughputSettingResource"/> object. </returns>
public virtual GremlinGraphThroughputSettingResource GetGremlinGraphThroughputSettingResource(ResourceIdentifier id)
{
GremlinGraphThroughputSettingResource.ValidateResourceId(id);
return new GremlinGraphThroughputSettingResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlClientEncryptionKeyResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlClientEncryptionKeyResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlClientEncryptionKeyResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlClientEncryptionKeyResource"/> object. </returns>
public virtual CosmosDBSqlClientEncryptionKeyResource GetCosmosDBSqlClientEncryptionKeyResource(ResourceIdentifier id)
{
CosmosDBSqlClientEncryptionKeyResource.ValidateResourceId(id);
return new CosmosDBSqlClientEncryptionKeyResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlContainerResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlContainerResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlContainerResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlContainerResource"/> object. </returns>
public virtual CosmosDBSqlContainerResource GetCosmosDBSqlContainerResource(ResourceIdentifier id)
{
CosmosDBSqlContainerResource.ValidateResourceId(id);
return new CosmosDBSqlContainerResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlStoredProcedureResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlStoredProcedureResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlStoredProcedureResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlStoredProcedureResource"/> object. </returns>
public virtual CosmosDBSqlStoredProcedureResource GetCosmosDBSqlStoredProcedureResource(ResourceIdentifier id)
{
CosmosDBSqlStoredProcedureResource.ValidateResourceId(id);
return new CosmosDBSqlStoredProcedureResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlUserDefinedFunctionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlUserDefinedFunctionResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlUserDefinedFunctionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlUserDefinedFunctionResource"/> object. </returns>
public virtual CosmosDBSqlUserDefinedFunctionResource GetCosmosDBSqlUserDefinedFunctionResource(ResourceIdentifier id)
{
CosmosDBSqlUserDefinedFunctionResource.ValidateResourceId(id);
return new CosmosDBSqlUserDefinedFunctionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlTriggerResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlTriggerResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlTriggerResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlTriggerResource"/> object. </returns>
public virtual CosmosDBSqlTriggerResource GetCosmosDBSqlTriggerResource(ResourceIdentifier id)
{
CosmosDBSqlTriggerResource.ValidateResourceId(id);
return new CosmosDBSqlTriggerResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlRoleDefinitionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlRoleDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlRoleDefinitionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlRoleDefinitionResource"/> object. </returns>
public virtual CosmosDBSqlRoleDefinitionResource GetCosmosDBSqlRoleDefinitionResource(ResourceIdentifier id)
{
CosmosDBSqlRoleDefinitionResource.ValidateResourceId(id);
return new CosmosDBSqlRoleDefinitionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBSqlRoleAssignmentResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBSqlRoleAssignmentResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBSqlRoleAssignmentResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBSqlRoleAssignmentResource"/> object. </returns>
public virtual CosmosDBSqlRoleAssignmentResource GetCosmosDBSqlRoleAssignmentResource(ResourceIdentifier id)
{
CosmosDBSqlRoleAssignmentResource.ValidateResourceId(id);
return new CosmosDBSqlRoleAssignmentResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MongoDBDatabaseResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MongoDBDatabaseResource.CreateResourceIdentifier" /> to create a <see cref="MongoDBDatabaseResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MongoDBDatabaseResource"/> object. </returns>
public virtual MongoDBDatabaseResource GetMongoDBDatabaseResource(ResourceIdentifier id)
{
MongoDBDatabaseResource.ValidateResourceId(id);
return new MongoDBDatabaseResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MongoDBCollectionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MongoDBCollectionResource.CreateResourceIdentifier" /> to create a <see cref="MongoDBCollectionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MongoDBCollectionResource"/> object. </returns>
public virtual MongoDBCollectionResource GetMongoDBCollectionResource(ResourceIdentifier id)
{
MongoDBCollectionResource.ValidateResourceId(id);
return new MongoDBCollectionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MongoDBRoleDefinitionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MongoDBRoleDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="MongoDBRoleDefinitionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MongoDBRoleDefinitionResource"/> object. </returns>
public virtual MongoDBRoleDefinitionResource GetMongoDBRoleDefinitionResource(ResourceIdentifier id)
{
MongoDBRoleDefinitionResource.ValidateResourceId(id);
return new MongoDBRoleDefinitionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MongoDBUserDefinitionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MongoDBUserDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="MongoDBUserDefinitionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MongoDBUserDefinitionResource"/> object. </returns>
public virtual MongoDBUserDefinitionResource GetMongoDBUserDefinitionResource(ResourceIdentifier id)
{
MongoDBUserDefinitionResource.ValidateResourceId(id);
return new MongoDBUserDefinitionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBTableResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBTableResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBTableResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBTableResource"/> object. </returns>
public virtual CosmosDBTableResource GetCosmosDBTableResource(ResourceIdentifier id)
{
CosmosDBTableResource.ValidateResourceId(id);
return new CosmosDBTableResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CassandraKeyspaceResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CassandraKeyspaceResource.CreateResourceIdentifier" /> to create a <see cref="CassandraKeyspaceResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CassandraKeyspaceResource"/> object. </returns>
public virtual CassandraKeyspaceResource GetCassandraKeyspaceResource(ResourceIdentifier id)
{
CassandraKeyspaceResource.ValidateResourceId(id);
return new CassandraKeyspaceResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CassandraTableResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CassandraTableResource.CreateResourceIdentifier" /> to create a <see cref="CassandraTableResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CassandraTableResource"/> object. </returns>
public virtual CassandraTableResource GetCassandraTableResource(ResourceIdentifier id)
{
CassandraTableResource.ValidateResourceId(id);
return new CassandraTableResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CassandraViewGetResultResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CassandraViewGetResultResource.CreateResourceIdentifier" /> to create a <see cref="CassandraViewGetResultResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CassandraViewGetResultResource"/> object. </returns>
public virtual CassandraViewGetResultResource GetCassandraViewGetResultResource(ResourceIdentifier id)
{
CassandraViewGetResultResource.ValidateResourceId(id);
return new CassandraViewGetResultResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="GremlinDatabaseResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="GremlinDatabaseResource.CreateResourceIdentifier" /> to create a <see cref="GremlinDatabaseResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="GremlinDatabaseResource"/> object. </returns>
public virtual GremlinDatabaseResource GetGremlinDatabaseResource(ResourceIdentifier id)
{
GremlinDatabaseResource.ValidateResourceId(id);
return new GremlinDatabaseResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="GremlinGraphResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="GremlinGraphResource.CreateResourceIdentifier" /> to create a <see cref="GremlinGraphResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="GremlinGraphResource"/> object. </returns>
public virtual GremlinGraphResource GetGremlinGraphResource(ResourceIdentifier id)
{
GremlinGraphResource.ValidateResourceId(id);
return new GremlinGraphResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBLocationResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBLocationResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBLocationResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBLocationResource"/> object. </returns>
public virtual CosmosDBLocationResource GetCosmosDBLocationResource(ResourceIdentifier id)
{
CosmosDBLocationResource.ValidateResourceId(id);
return new CosmosDBLocationResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="DataTransferJobGetResultResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="DataTransferJobGetResultResource.CreateResourceIdentifier" /> to create a <see cref="DataTransferJobGetResultResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="DataTransferJobGetResultResource"/> object. </returns>
public virtual DataTransferJobGetResultResource GetDataTransferJobGetResultResource(ResourceIdentifier id)
{
DataTransferJobGetResultResource.ValidateResourceId(id);
return new DataTransferJobGetResultResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CassandraClusterResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CassandraClusterResource.CreateResourceIdentifier" /> to create a <see cref="CassandraClusterResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CassandraClusterResource"/> object. </returns>
public virtual CassandraClusterResource GetCassandraClusterResource(ResourceIdentifier id)
{
CassandraClusterResource.ValidateResourceId(id);
return new CassandraClusterResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CassandraDataCenterResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CassandraDataCenterResource.CreateResourceIdentifier" /> to create a <see cref="CassandraDataCenterResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CassandraDataCenterResource"/> object. </returns>
public virtual CassandraDataCenterResource GetCassandraDataCenterResource(ResourceIdentifier id)
{
CassandraDataCenterResource.ValidateResourceId(id);
return new CassandraDataCenterResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="MongoClusterResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="MongoClusterResource.CreateResourceIdentifier" /> to create a <see cref="MongoClusterResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="MongoClusterResource"/> object. </returns>
public virtual MongoClusterResource GetMongoClusterResource(ResourceIdentifier id)
{
MongoClusterResource.ValidateResourceId(id);
return new MongoClusterResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBFirewallRuleResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBFirewallRuleResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBFirewallRuleResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBFirewallRuleResource"/> object. </returns>
public virtual CosmosDBFirewallRuleResource GetCosmosDBFirewallRuleResource(ResourceIdentifier id)
{
CosmosDBFirewallRuleResource.ValidateResourceId(id);
return new CosmosDBFirewallRuleResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBPrivateEndpointConnectionResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBPrivateEndpointConnectionResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBPrivateEndpointConnectionResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBPrivateEndpointConnectionResource"/> object. </returns>
public virtual CosmosDBPrivateEndpointConnectionResource GetCosmosDBPrivateEndpointConnectionResource(ResourceIdentifier id)
{
CosmosDBPrivateEndpointConnectionResource.ValidateResourceId(id);
return new CosmosDBPrivateEndpointConnectionResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBPrivateLinkResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBPrivateLinkResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBPrivateLinkResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBPrivateLinkResource"/> object. </returns>
public virtual CosmosDBPrivateLinkResource GetCosmosDBPrivateLinkResource(ResourceIdentifier id)
{
CosmosDBPrivateLinkResource.ValidateResourceId(id);
return new CosmosDBPrivateLinkResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="RestorableCosmosDBAccountResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="RestorableCosmosDBAccountResource.CreateResourceIdentifier" /> to create a <see cref="RestorableCosmosDBAccountResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="RestorableCosmosDBAccountResource"/> object. </returns>
public virtual RestorableCosmosDBAccountResource GetRestorableCosmosDBAccountResource(ResourceIdentifier id)
{
RestorableCosmosDBAccountResource.ValidateResourceId(id);
return new RestorableCosmosDBAccountResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="CosmosDBServiceResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="CosmosDBServiceResource.CreateResourceIdentifier" /> to create a <see cref="CosmosDBServiceResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="CosmosDBServiceResource"/> object. </returns>
public virtual CosmosDBServiceResource GetCosmosDBServiceResource(ResourceIdentifier id)
{
CosmosDBServiceResource.ValidateResourceId(id);
return new CosmosDBServiceResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="ThroughputPoolResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ThroughputPoolResource.CreateResourceIdentifier" /> to create a <see cref="ThroughputPoolResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ThroughputPoolResource"/> object. </returns>
public virtual ThroughputPoolResource GetThroughputPoolResource(ResourceIdentifier id)
{
ThroughputPoolResource.ValidateResourceId(id);
return new ThroughputPoolResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="ThroughputPoolAccountResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ThroughputPoolAccountResource.CreateResourceIdentifier" /> to create a <see cref="ThroughputPoolAccountResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ThroughputPoolAccountResource"/> object. </returns>
public virtual ThroughputPoolAccountResource GetThroughputPoolAccountResource(ResourceIdentifier id)
{
ThroughputPoolAccountResource.ValidateResourceId(id);
return new ThroughputPoolAccountResource(Client, id);
}
}
}