/
AutomationAccountResource.cs
2699 lines (2562 loc) · 155 KB
/
AutomationAccountResource.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
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager;
using Azure.ResourceManager.Automation.Models;
using Azure.ResourceManager.Resources;
namespace Azure.ResourceManager.Automation
{
/// <summary>
/// A Class representing an AutomationAccount along with the instance operations that can be performed on it.
/// If you have a <see cref="ResourceIdentifier" /> you can construct an <see cref="AutomationAccountResource" />
/// from an instance of <see cref="ArmClient" /> using the GetAutomationAccountResource method.
/// Otherwise you can get one from its parent resource <see cref="ResourceGroupResource" /> using the GetAutomationAccount method.
/// </summary>
public partial class AutomationAccountResource : ArmResource
{
/// <summary> Generate the resource identifier of a <see cref="AutomationAccountResource"/> instance. </summary>
public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName)
{
var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}";
return new ResourceIdentifier(resourceId);
}
private readonly ClientDiagnostics _automationAccountClientDiagnostics;
private readonly AutomationAccountRestOperations _automationAccountRestClient;
private readonly ClientDiagnostics _privateLinkResourcesClientDiagnostics;
private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient;
private readonly ClientDiagnostics _agentRegistrationInformationClientDiagnostics;
private readonly AgentRegistrationInformationRestOperations _agentRegistrationInformationRestClient;
private readonly ClientDiagnostics _dscCompilationJobClientDiagnostics;
private readonly DscCompilationJobRestOperations _dscCompilationJobRestClient;
private readonly ClientDiagnostics _dscCompilationJobStreamClientDiagnostics;
private readonly DscCompilationJobStreamRestOperations _dscCompilationJobStreamRestClient;
private readonly ClientDiagnostics _nodeCountInformationClientDiagnostics;
private readonly NodeCountInformationRestOperations _nodeCountInformationRestClient;
private readonly ClientDiagnostics _statisticsClientDiagnostics;
private readonly StatisticsRestOperations _statisticsRestClient;
private readonly ClientDiagnostics _usagesClientDiagnostics;
private readonly UsagesRestOperations _usagesRestClient;
private readonly ClientDiagnostics _keysClientDiagnostics;
private readonly KeysRestOperations _keysRestClient;
private readonly ClientDiagnostics _linkedWorkspaceClientDiagnostics;
private readonly LinkedWorkspaceRestOperations _linkedWorkspaceRestClient;
private readonly ClientDiagnostics _objectDataTypesClientDiagnostics;
private readonly ObjectDataTypesRestOperations _objectDataTypesRestClient;
private readonly ClientDiagnostics _defaultClientDiagnostics;
private readonly AutomationRestOperations _defaultRestClient;
private readonly ClientDiagnostics _softwareUpdateConfigurationRunsClientDiagnostics;
private readonly SoftwareUpdateConfigurationRunsRestOperations _softwareUpdateConfigurationRunsRestClient;
private readonly ClientDiagnostics _softwareUpdateConfigurationMachineRunsClientDiagnostics;
private readonly SoftwareUpdateConfigurationMachineRunsRestOperations _softwareUpdateConfigurationMachineRunsRestClient;
private readonly ClientDiagnostics _automationWebhookWebhookClientDiagnostics;
private readonly WebhookRestOperations _automationWebhookWebhookRestClient;
private readonly AutomationAccountData _data;
/// <summary> Initializes a new instance of the <see cref="AutomationAccountResource"/> class for mocking. </summary>
protected AutomationAccountResource()
{
}
/// <summary> Initializes a new instance of the <see cref = "AutomationAccountResource"/> class. </summary>
/// <param name="client"> The client parameters to use in these operations. </param>
/// <param name="data"> The resource that is the target of operations. </param>
internal AutomationAccountResource(ArmClient client, AutomationAccountData data) : this(client, data.Id)
{
HasData = true;
_data = data;
}
/// <summary> Initializes a new instance of the <see cref="AutomationAccountResource"/> 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 AutomationAccountResource(ArmClient client, ResourceIdentifier id) : base(client, id)
{
_automationAccountClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics);
TryGetApiVersion(ResourceType, out string automationAccountApiVersion);
_automationAccountRestClient = new AutomationAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationAccountApiVersion);
_privateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_privateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_agentRegistrationInformationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_agentRegistrationInformationRestClient = new AgentRegistrationInformationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_dscCompilationJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", DscCompilationJobResource.ResourceType.Namespace, Diagnostics);
TryGetApiVersion(DscCompilationJobResource.ResourceType, out string dscCompilationJobApiVersion);
_dscCompilationJobRestClient = new DscCompilationJobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dscCompilationJobApiVersion);
_dscCompilationJobStreamClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_dscCompilationJobStreamRestClient = new DscCompilationJobStreamRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_nodeCountInformationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_nodeCountInformationRestClient = new NodeCountInformationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_statisticsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_statisticsRestClient = new StatisticsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_usagesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_usagesRestClient = new UsagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_keysClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_keysRestClient = new KeysRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_linkedWorkspaceClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_linkedWorkspaceRestClient = new LinkedWorkspaceRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_objectDataTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_objectDataTypesRestClient = new ObjectDataTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_defaultClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_defaultRestClient = new AutomationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_softwareUpdateConfigurationRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_softwareUpdateConfigurationRunsRestClient = new SoftwareUpdateConfigurationRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_softwareUpdateConfigurationMachineRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_softwareUpdateConfigurationMachineRunsRestClient = new SoftwareUpdateConfigurationMachineRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_automationWebhookWebhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationWebhookResource.ResourceType.Namespace, Diagnostics);
TryGetApiVersion(AutomationWebhookResource.ResourceType, out string automationWebhookWebhookApiVersion);
_automationWebhookWebhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWebhookWebhookApiVersion);
#if DEBUG
ValidateResourceId(Id);
#endif
}
/// <summary> Gets the resource type for the operations. </summary>
public static readonly ResourceType ResourceType = "Microsoft.Automation/automationAccounts";
/// <summary> Gets whether or not the current instance has data. </summary>
public virtual bool HasData { get; }
/// <summary> Gets the data representing this Feature. </summary>
/// <exception cref="InvalidOperationException"> Throws if there is no data loaded in the current instance. </exception>
public virtual AutomationAccountData Data
{
get
{
if (!HasData)
throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
return _data;
}
}
internal static void ValidateResourceId(ResourceIdentifier id)
{
if (id.ResourceType != ResourceType)
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
}
/// <summary> Gets a collection of AutomationPrivateEndpointConnectionResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationPrivateEndpointConnectionResources and their operations over a AutomationPrivateEndpointConnectionResource. </returns>
public virtual AutomationPrivateEndpointConnectionCollection GetAutomationPrivateEndpointConnections()
{
return GetCachedClient(Client => new AutomationPrivateEndpointConnectionCollection(Client, Id));
}
/// <summary>
/// Gets a private endpoint connection.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>PrivateEndpointConnections_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="privateEndpointConnectionName"> The name of the private endpoint connection. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="privateEndpointConnectionName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="privateEndpointConnectionName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationPrivateEndpointConnectionResource>> GetAutomationPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default)
{
return await GetAutomationPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Gets a private endpoint connection.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>PrivateEndpointConnections_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="privateEndpointConnectionName"> The name of the private endpoint connection. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="privateEndpointConnectionName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="privateEndpointConnectionName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationPrivateEndpointConnectionResource> GetAutomationPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default)
{
return GetAutomationPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken);
}
/// <summary> Gets a collection of AutomationAccountPython2PackageResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationAccountPython2PackageResources and their operations over a AutomationAccountPython2PackageResource. </returns>
public virtual AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages()
{
return GetCachedClient(Client => new AutomationAccountPython2PackageCollection(Client, Id));
}
/// <summary>
/// Retrieve the python 2 package identified by package name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Python2Package_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="packageName"> The python package name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="packageName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="packageName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationAccountPython2PackageResource>> GetAutomationAccountPython2PackageAsync(string packageName, CancellationToken cancellationToken = default)
{
return await GetAutomationAccountPython2Packages().GetAsync(packageName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the python 2 package identified by package name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Python2Package_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="packageName"> The python package name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="packageName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="packageName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationAccountPython2PackageResource> GetAutomationAccountPython2Package(string packageName, CancellationToken cancellationToken = default)
{
return GetAutomationAccountPython2Packages().Get(packageName, cancellationToken);
}
/// <summary> Gets a collection of AutomationAccountModuleResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationAccountModuleResources and their operations over a AutomationAccountModuleResource. </returns>
public virtual AutomationAccountModuleCollection GetAutomationAccountModules()
{
return GetCachedClient(Client => new AutomationAccountModuleCollection(Client, Id));
}
/// <summary>
/// Retrieve the module identified by module name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Module_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="moduleName"> The module name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="moduleName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="moduleName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationAccountModuleResource>> GetAutomationAccountModuleAsync(string moduleName, CancellationToken cancellationToken = default)
{
return await GetAutomationAccountModules().GetAsync(moduleName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the module identified by module name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Module_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="moduleName"> The module name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="moduleName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="moduleName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationAccountModuleResource> GetAutomationAccountModule(string moduleName, CancellationToken cancellationToken = default)
{
return GetAutomationAccountModules().Get(moduleName, cancellationToken);
}
/// <summary> Gets a collection of DscNodeResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of DscNodeResources and their operations over a DscNodeResource. </returns>
public virtual DscNodeCollection GetDscNodes()
{
return GetCachedClient(Client => new DscNodeCollection(Client, Id));
}
/// <summary>
/// Retrieve the dsc node identified by node id.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>DscNode_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="nodeId"> The node id. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="nodeId"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="nodeId"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<DscNodeResource>> GetDscNodeAsync(string nodeId, CancellationToken cancellationToken = default)
{
return await GetDscNodes().GetAsync(nodeId, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the dsc node identified by node id.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>DscNode_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="nodeId"> The node id. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="nodeId"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="nodeId"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<DscNodeResource> GetDscNode(string nodeId, CancellationToken cancellationToken = default)
{
return GetDscNodes().Get(nodeId, cancellationToken);
}
/// <summary> Gets a collection of DscNodeConfigurationResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of DscNodeConfigurationResources and their operations over a DscNodeConfigurationResource. </returns>
public virtual DscNodeConfigurationCollection GetDscNodeConfigurations()
{
return GetCachedClient(Client => new DscNodeConfigurationCollection(Client, Id));
}
/// <summary>
/// Retrieve the Dsc node configurations by node configuration.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>DscNodeConfiguration_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="nodeConfigurationName"> The Dsc node configuration name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="nodeConfigurationName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="nodeConfigurationName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<DscNodeConfigurationResource>> GetDscNodeConfigurationAsync(string nodeConfigurationName, CancellationToken cancellationToken = default)
{
return await GetDscNodeConfigurations().GetAsync(nodeConfigurationName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the Dsc node configurations by node configuration.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>DscNodeConfiguration_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="nodeConfigurationName"> The Dsc node configuration name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="nodeConfigurationName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="nodeConfigurationName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<DscNodeConfigurationResource> GetDscNodeConfiguration(string nodeConfigurationName, CancellationToken cancellationToken = default)
{
return GetDscNodeConfigurations().Get(nodeConfigurationName, cancellationToken);
}
/// <summary> Gets a collection of DscCompilationJobResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of DscCompilationJobResources and their operations over a DscCompilationJobResource. </returns>
public virtual DscCompilationJobCollection GetDscCompilationJobs()
{
return GetCachedClient(Client => new DscCompilationJobCollection(Client, Id));
}
/// <summary>
/// Retrieve the Dsc configuration compilation job identified by job id.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>DscCompilationJob_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="compilationJobName"> The DSC configuration Id. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="compilationJobName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="compilationJobName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<DscCompilationJobResource>> GetDscCompilationJobAsync(string compilationJobName, CancellationToken cancellationToken = default)
{
return await GetDscCompilationJobs().GetAsync(compilationJobName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the Dsc configuration compilation job identified by job id.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>DscCompilationJob_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="compilationJobName"> The DSC configuration Id. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="compilationJobName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="compilationJobName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<DscCompilationJobResource> GetDscCompilationJob(string compilationJobName, CancellationToken cancellationToken = default)
{
return GetDscCompilationJobs().Get(compilationJobName, cancellationToken);
}
/// <summary> Gets a collection of AutomationSourceControlResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationSourceControlResources and their operations over a AutomationSourceControlResource. </returns>
public virtual AutomationSourceControlCollection GetAutomationSourceControls()
{
return GetCachedClient(Client => new AutomationSourceControlCollection(Client, Id));
}
/// <summary>
/// Retrieve the source control identified by source control name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>SourceControl_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="sourceControlName"> The name of source control. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="sourceControlName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="sourceControlName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationSourceControlResource>> GetAutomationSourceControlAsync(string sourceControlName, CancellationToken cancellationToken = default)
{
return await GetAutomationSourceControls().GetAsync(sourceControlName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the source control identified by source control name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>SourceControl_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="sourceControlName"> The name of source control. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="sourceControlName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="sourceControlName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationSourceControlResource> GetAutomationSourceControl(string sourceControlName, CancellationToken cancellationToken = default)
{
return GetAutomationSourceControls().Get(sourceControlName, cancellationToken);
}
/// <summary> Gets a collection of AutomationCertificateResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationCertificateResources and their operations over a AutomationCertificateResource. </returns>
public virtual AutomationCertificateCollection GetAutomationCertificates()
{
return GetCachedClient(Client => new AutomationCertificateCollection(Client, Id));
}
/// <summary>
/// Retrieve the certificate identified by certificate name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Certificate_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="certificateName"> The name of certificate. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="certificateName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="certificateName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationCertificateResource>> GetAutomationCertificateAsync(string certificateName, CancellationToken cancellationToken = default)
{
return await GetAutomationCertificates().GetAsync(certificateName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the certificate identified by certificate name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Certificate_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="certificateName"> The name of certificate. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="certificateName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="certificateName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationCertificateResource> GetAutomationCertificate(string certificateName, CancellationToken cancellationToken = default)
{
return GetAutomationCertificates().Get(certificateName, cancellationToken);
}
/// <summary> Gets a collection of AutomationConnectionResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationConnectionResources and their operations over a AutomationConnectionResource. </returns>
public virtual AutomationConnectionCollection GetAutomationConnections()
{
return GetCachedClient(Client => new AutomationConnectionCollection(Client, Id));
}
/// <summary>
/// Retrieve the connection identified by connection name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Connection_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="connectionName"> The name of connection. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="connectionName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="connectionName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationConnectionResource>> GetAutomationConnectionAsync(string connectionName, CancellationToken cancellationToken = default)
{
return await GetAutomationConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the connection identified by connection name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Connection_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="connectionName"> The name of connection. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="connectionName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="connectionName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationConnectionResource> GetAutomationConnection(string connectionName, CancellationToken cancellationToken = default)
{
return GetAutomationConnections().Get(connectionName, cancellationToken);
}
/// <summary> Gets a collection of AutomationConnectionTypeResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationConnectionTypeResources and their operations over a AutomationConnectionTypeResource. </returns>
public virtual AutomationConnectionTypeCollection GetAutomationConnectionTypes()
{
return GetCachedClient(Client => new AutomationConnectionTypeCollection(Client, Id));
}
/// <summary>
/// Retrieve the connection type identified by connection type name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>ConnectionType_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="connectionTypeName"> The name of connection type. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="connectionTypeName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="connectionTypeName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationConnectionTypeResource>> GetAutomationConnectionTypeAsync(string connectionTypeName, CancellationToken cancellationToken = default)
{
return await GetAutomationConnectionTypes().GetAsync(connectionTypeName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the connection type identified by connection type name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>ConnectionType_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="connectionTypeName"> The name of connection type. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="connectionTypeName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="connectionTypeName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationConnectionTypeResource> GetAutomationConnectionType(string connectionTypeName, CancellationToken cancellationToken = default)
{
return GetAutomationConnectionTypes().Get(connectionTypeName, cancellationToken);
}
/// <summary> Gets a collection of AutomationCredentialResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationCredentialResources and their operations over a AutomationCredentialResource. </returns>
public virtual AutomationCredentialCollection GetAutomationCredentials()
{
return GetCachedClient(Client => new AutomationCredentialCollection(Client, Id));
}
/// <summary>
/// Retrieve the credential identified by credential name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Credential_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="credentialName"> The name of credential. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="credentialName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="credentialName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationCredentialResource>> GetAutomationCredentialAsync(string credentialName, CancellationToken cancellationToken = default)
{
return await GetAutomationCredentials().GetAsync(credentialName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the credential identified by credential name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Credential_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="credentialName"> The name of credential. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="credentialName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="credentialName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationCredentialResource> GetAutomationCredential(string credentialName, CancellationToken cancellationToken = default)
{
return GetAutomationCredentials().Get(credentialName, cancellationToken);
}
/// <summary> Gets a collection of AutomationJobScheduleResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationJobScheduleResources and their operations over a AutomationJobScheduleResource. </returns>
public virtual AutomationJobScheduleCollection GetAutomationJobSchedules()
{
return GetCachedClient(Client => new AutomationJobScheduleCollection(Client, Id));
}
/// <summary>
/// Retrieve the job schedule identified by job schedule name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>JobSchedule_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="jobScheduleId"> The job schedule name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationJobScheduleResource>> GetAutomationJobScheduleAsync(Guid jobScheduleId, CancellationToken cancellationToken = default)
{
return await GetAutomationJobSchedules().GetAsync(jobScheduleId, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the job schedule identified by job schedule name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>JobSchedule_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="jobScheduleId"> The job schedule name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
[ForwardsClientCalls]
public virtual Response<AutomationJobScheduleResource> GetAutomationJobSchedule(Guid jobScheduleId, CancellationToken cancellationToken = default)
{
return GetAutomationJobSchedules().Get(jobScheduleId, cancellationToken);
}
/// <summary> Gets a collection of AutomationScheduleResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationScheduleResources and their operations over a AutomationScheduleResource. </returns>
public virtual AutomationScheduleCollection GetAutomationSchedules()
{
return GetCachedClient(Client => new AutomationScheduleCollection(Client, Id));
}
/// <summary>
/// Retrieve the schedule identified by schedule name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Schedule_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="scheduleName"> The schedule name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="scheduleName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="scheduleName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationScheduleResource>> GetAutomationScheduleAsync(string scheduleName, CancellationToken cancellationToken = default)
{
return await GetAutomationSchedules().GetAsync(scheduleName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the schedule identified by schedule name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Schedule_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="scheduleName"> The schedule name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="scheduleName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="scheduleName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationScheduleResource> GetAutomationSchedule(string scheduleName, CancellationToken cancellationToken = default)
{
return GetAutomationSchedules().Get(scheduleName, cancellationToken);
}
/// <summary> Gets a collection of AutomationVariableResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationVariableResources and their operations over a AutomationVariableResource. </returns>
public virtual AutomationVariableCollection GetAutomationVariables()
{
return GetCachedClient(Client => new AutomationVariableCollection(Client, Id));
}
/// <summary>
/// Retrieve the variable identified by variable name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Variable_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="variableName"> The name of variable. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="variableName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="variableName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationVariableResource>> GetAutomationVariableAsync(string variableName, CancellationToken cancellationToken = default)
{
return await GetAutomationVariables().GetAsync(variableName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the variable identified by variable name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Variable_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="variableName"> The name of variable. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="variableName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="variableName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationVariableResource> GetAutomationVariable(string variableName, CancellationToken cancellationToken = default)
{
return GetAutomationVariables().Get(variableName, cancellationToken);
}
/// <summary> Gets a collection of AutomationWatcherResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationWatcherResources and their operations over a AutomationWatcherResource. </returns>
public virtual AutomationWatcherCollection GetAutomationWatchers()
{
return GetCachedClient(Client => new AutomationWatcherCollection(Client, Id));
}
/// <summary>
/// Retrieve the watcher identified by watcher name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Watcher_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="watcherName"> The watcher name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="watcherName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="watcherName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<AutomationWatcherResource>> GetAutomationWatcherAsync(string watcherName, CancellationToken cancellationToken = default)
{
return await GetAutomationWatchers().GetAsync(watcherName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the watcher identified by watcher name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Watcher_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="watcherName"> The watcher name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="watcherName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="watcherName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<AutomationWatcherResource> GetAutomationWatcher(string watcherName, CancellationToken cancellationToken = default)
{
return GetAutomationWatchers().Get(watcherName, cancellationToken);
}
/// <summary> Gets a collection of DscConfigurationResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of DscConfigurationResources and their operations over a DscConfigurationResource. </returns>
public virtual DscConfigurationCollection GetDscConfigurations()
{
return GetCachedClient(Client => new DscConfigurationCollection(Client, Id));
}
/// <summary>
/// Retrieve the configuration identified by configuration name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>DscConfiguration_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="configurationName"> The configuration name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="configurationName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="configurationName"/> is null. </exception>
[ForwardsClientCalls]
public virtual async Task<Response<DscConfigurationResource>> GetDscConfigurationAsync(string configurationName, CancellationToken cancellationToken = default)
{
return await GetDscConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Retrieve the configuration identified by configuration name.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>DscConfiguration_Get</description>
/// </item>
/// </list>
/// </summary>
/// <param name="configurationName"> The configuration name. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentException"> <paramref name="configurationName"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ArgumentNullException"> <paramref name="configurationName"/> is null. </exception>
[ForwardsClientCalls]
public virtual Response<DscConfigurationResource> GetDscConfiguration(string configurationName, CancellationToken cancellationToken = default)
{
return GetDscConfigurations().Get(configurationName, cancellationToken);
}
/// <summary> Gets a collection of AutomationJobResources in the AutomationAccount. </summary>
/// <returns> An object representing collection of AutomationJobResources and their operations over a AutomationJobResource. </returns>
public virtual AutomationJobCollection GetAutomationJobs()
{
return GetCachedClient(Client => new AutomationJobCollection(Client, Id));
}