Skip to content

Commit 3981d9d

Browse files
sushil490023Sushil UpadhyayNoriZC
authored
Update Automation Module cmdlets to support Powershell7.2 (#23482)
* Update Automation Module cmdlets to support Powershell7.2 * Fixed Errors * Fix Test Cases * Updated Help files * Updated Help files * Update UpdateManagementTests.cs * Update UpdateDynamicGroupPrePostTests.cs --------- Co-authored-by: Sushil Upadhyay <[email protected]> Co-authored-by: NoriZC <[email protected]>
1 parent ab4e298 commit 3981d9d

File tree

172 files changed

+10045
-4101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+10045
-4101
lines changed

src/Automation/Automation.Sdk/Generated/ActivityOperations.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ internal ActivityOperations (AutomationClient client)
3939
public AutomationClient Client { get; private set; }
4040

4141
/// <summary>
42-
/// Retrieve the activity in the module identified by module name and activity name.
42+
/// Retrieve the activity in the module identified by module name and activity
43+
/// name.
4344
/// </summary>
4445
/// <param name='resourceGroupName'>
4546
/// Name of an Azure Resource group.
@@ -119,7 +120,7 @@ internal ActivityOperations (AutomationClient client)
119120
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
120121
}
121122

122-
string apiVersion = "2022-08-08";
123+
string apiVersion = "2023-11-01";
123124
// Tracing
124125
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
125126
string _invocationId = null;
@@ -350,7 +351,7 @@ internal ActivityOperations (AutomationClient client)
350351
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
351352
}
352353

353-
string apiVersion = "2022-08-08";
354+
string apiVersion = "2023-11-01";
354355
// Tracing
355356
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
356357
string _invocationId = null;

src/Automation/Automation.Sdk/Generated/ActivityOperationsExtensions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ namespace Microsoft.Azure.Management.Automation
1313
public static partial class ActivityOperationsExtensions
1414
{
1515
/// <summary>
16-
/// Retrieve the activity in the module identified by module name and activity name.
16+
/// Retrieve the activity in the module identified by module name and activity
17+
/// name.
1718
/// </summary>
1819
/// <param name='operations'>
1920
/// The operations group for this extension method.
@@ -36,7 +37,8 @@ public static Activity Get(this IActivityOperations operations, string resourceG
3637
}
3738

3839
/// <summary>
39-
/// Retrieve the activity in the module identified by module name and activity name.
40+
/// Retrieve the activity in the module identified by module name and activity
41+
/// name.
4042
/// </summary>
4143
/// <param name='operations'>
4244
/// The operations group for this extension method.

src/Automation/Automation.Sdk/Generated/AutomationAccountOperations.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ internal AutomationAccountOperations (AutomationClient client)
110110
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
111111
}
112112

113-
string apiVersion = "2022-08-08";
113+
string apiVersion = "2023-11-01";
114114
// Tracing
115115
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
116116
string _invocationId = null;
@@ -347,7 +347,7 @@ internal AutomationAccountOperations (AutomationClient client)
347347
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
348348
}
349349

350-
string apiVersion = "2022-08-08";
350+
string apiVersion = "2023-11-01";
351351
// Tracing
352352
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
353353
string _invocationId = null;
@@ -588,7 +588,7 @@ internal AutomationAccountOperations (AutomationClient client)
588588
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
589589
}
590590

591-
string apiVersion = "2022-08-08";
591+
string apiVersion = "2023-11-01";
592592
// Tracing
593593
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
594594
string _invocationId = null;
@@ -789,7 +789,7 @@ internal AutomationAccountOperations (AutomationClient client)
789789
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
790790
}
791791

792-
string apiVersion = "2022-08-08";
792+
string apiVersion = "2023-11-01";
793793
// Tracing
794794
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
795795
string _invocationId = null;
@@ -1000,7 +1000,7 @@ internal AutomationAccountOperations (AutomationClient client)
10001000
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
10011001
}
10021002

1003-
string apiVersion = "2022-08-08";
1003+
string apiVersion = "2023-11-01";
10041004
// Tracing
10051005
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
10061006
string _invocationId = null;
@@ -1187,7 +1187,7 @@ internal AutomationAccountOperations (AutomationClient client)
11871187
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
11881188
}
11891189

1190-
string apiVersion = "2022-08-08";
1190+
string apiVersion = "2023-11-01";
11911191
// Tracing
11921192
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
11931193
string _invocationId = null;

src/Automation/Automation.Sdk/Generated/AutomationClient.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public partial class AutomationClient : Microsoft.Rest.ServiceClient<AutomationC
3333
public Microsoft.Rest.ServiceClientCredentials Credentials { get; private set; }
3434

3535
/// <summary>
36-
/// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
36+
/// Gets subscription credentials which uniquely identify Microsoft Azure
37+
/// subscription. The subscription ID forms part of the URI for every service
38+
/// call.
3739
/// </summary>
3840
public string SubscriptionId { get; set;}
3941

@@ -44,14 +46,14 @@ public partial class AutomationClient : Microsoft.Rest.ServiceClient<AutomationC
4446

4547
/// <summary>
4648
/// The retry timeout in seconds for Long Running Operations. Default
47-
/// value is 30.
49+
/// /// value is 30.
4850
/// </summary>
4951
public int? LongRunningOperationRetryTimeout { get; set;}
5052

5153
/// <summary>
52-
/// Whether a unique x-ms-client-request-id should be generated. When
53-
/// set to true a unique x-ms-client-request-id value is generated and
54-
/// included in each request. Default is true.
54+
/// Whether a unique x-ms-client-request-id should be generated. When
55+
/// /// set to true a unique x-ms-client-request-id value is generated and
56+
/// /// included in each request. Default is true.
5557
/// </summary>
5658
public bool? GenerateClientRequestId { get; set;}
5759

@@ -196,6 +198,10 @@ public partial class AutomationClient : Microsoft.Rest.ServiceClient<AutomationC
196198
/// </summary>
197199
public virtual ITestJobOperations TestJob { get; private set; }
198200
/// <summary>
201+
/// Gets the IPowerShell72ModuleOperations
202+
/// </summary>
203+
public virtual IPowerShell72ModuleOperations PowerShell72Module { get; private set; }
204+
/// <summary>
199205
/// Gets the IHybridRunbookWorkersOperations
200206
/// </summary>
201207
public virtual IHybridRunbookWorkersOperations HybridRunbookWorkers { get; private set; }
@@ -477,6 +483,7 @@ private void Initialize()
477483
this.Runbook = new RunbookOperations(this);
478484
this.TestJobStreams = new TestJobStreamsOperations(this);
479485
this.TestJob = new TestJobOperations(this);
486+
this.PowerShell72Module = new PowerShell72ModuleOperations(this);
480487
this.HybridRunbookWorkers = new HybridRunbookWorkersOperations(this);
481488
this.HybridRunbookWorkerGroup = new HybridRunbookWorkerGroupOperations(this);
482489
this.Python3Package = new Python3PackageOperations(this);

src/Automation/Automation.Sdk/Generated/CertificateOperations.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ internal CertificateOperations (AutomationClient client)
108108
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
109109
}
110110

111-
string apiVersion = "2022-08-08";
111+
string apiVersion = "2023-11-01";
112112
// Tracing
113113
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
114114
string _invocationId = null;
@@ -319,7 +319,7 @@ internal CertificateOperations (AutomationClient client)
319319
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
320320
}
321321

322-
string apiVersion = "2022-08-08";
322+
string apiVersion = "2023-11-01";
323323
// Tracing
324324
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
325325
string _invocationId = null;
@@ -559,7 +559,7 @@ internal CertificateOperations (AutomationClient client)
559559
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
560560
}
561561

562-
string apiVersion = "2022-08-08";
562+
string apiVersion = "2023-11-01";
563563
// Tracing
564564
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
565565
string _invocationId = null;
@@ -820,7 +820,7 @@ internal CertificateOperations (AutomationClient client)
820820
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
821821
}
822822

823-
string apiVersion = "2022-08-08";
823+
string apiVersion = "2023-11-01";
824824
// Tracing
825825
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
826826
string _invocationId = null;
@@ -1048,7 +1048,7 @@ internal CertificateOperations (AutomationClient client)
10481048
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
10491049
}
10501050

1051-
string apiVersion = "2022-08-08";
1051+
string apiVersion = "2023-11-01";
10521052
// Tracing
10531053
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
10541054
string _invocationId = null;

src/Automation/Automation.Sdk/Generated/ConnectionOperations.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ internal ConnectionOperations (AutomationClient client)
108108
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
109109
}
110110

111-
string apiVersion = "2022-08-08";
111+
string apiVersion = "2023-11-01";
112112
// Tracing
113113
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
114114
string _invocationId = null;
@@ -319,7 +319,7 @@ internal ConnectionOperations (AutomationClient client)
319319
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
320320
}
321321

322-
string apiVersion = "2022-08-08";
322+
string apiVersion = "2023-11-01";
323323
// Tracing
324324
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
325325
string _invocationId = null;
@@ -559,7 +559,7 @@ internal ConnectionOperations (AutomationClient client)
559559
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
560560
}
561561

562-
string apiVersion = "2022-08-08";
562+
string apiVersion = "2023-11-01";
563563
// Tracing
564564
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
565565
string _invocationId = null;
@@ -820,7 +820,7 @@ internal ConnectionOperations (AutomationClient client)
820820
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
821821
}
822822

823-
string apiVersion = "2022-08-08";
823+
string apiVersion = "2023-11-01";
824824
// Tracing
825825
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
826826
string _invocationId = null;
@@ -1048,7 +1048,7 @@ internal ConnectionOperations (AutomationClient client)
10481048
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
10491049
}
10501050

1051-
string apiVersion = "2022-08-08";
1051+
string apiVersion = "2023-11-01";
10521052
// Tracing
10531053
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
10541054
string _invocationId = null;

src/Automation/Automation.Sdk/Generated/ConnectionTypeOperations.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ internal ConnectionTypeOperations (AutomationClient client)
108108
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
109109
}
110110

111-
string apiVersion = "2022-08-08";
111+
string apiVersion = "2023-11-01";
112112
// Tracing
113113
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
114114
string _invocationId = null;
@@ -319,7 +319,7 @@ internal ConnectionTypeOperations (AutomationClient client)
319319
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
320320
}
321321

322-
string apiVersion = "2022-08-08";
322+
string apiVersion = "2023-11-01";
323323
// Tracing
324324
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
325325
string _invocationId = null;
@@ -559,7 +559,7 @@ internal ConnectionTypeOperations (AutomationClient client)
559559
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
560560
}
561561

562-
string apiVersion = "2022-08-08";
562+
string apiVersion = "2023-11-01";
563563
// Tracing
564564
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
565565
string _invocationId = null;
@@ -787,7 +787,7 @@ internal ConnectionTypeOperations (AutomationClient client)
787787
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
788788
}
789789

790-
string apiVersion = "2022-08-08";
790+
string apiVersion = "2023-11-01";
791791
// Tracing
792792
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
793793
string _invocationId = null;

src/Automation/Automation.Sdk/Generated/CredentialOperations.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ internal CredentialOperations (AutomationClient client)
108108
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
109109
}
110110

111-
string apiVersion = "2022-08-08";
111+
string apiVersion = "2023-11-01";
112112
// Tracing
113113
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
114114
string _invocationId = null;
@@ -319,7 +319,7 @@ internal CredentialOperations (AutomationClient client)
319319
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
320320
}
321321

322-
string apiVersion = "2022-08-08";
322+
string apiVersion = "2023-11-01";
323323
// Tracing
324324
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
325325
string _invocationId = null;
@@ -559,7 +559,7 @@ internal CredentialOperations (AutomationClient client)
559559
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
560560
}
561561

562-
string apiVersion = "2022-08-08";
562+
string apiVersion = "2023-11-01";
563563
// Tracing
564564
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
565565
string _invocationId = null;
@@ -820,7 +820,7 @@ internal CredentialOperations (AutomationClient client)
820820
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
821821
}
822822

823-
string apiVersion = "2022-08-08";
823+
string apiVersion = "2023-11-01";
824824
// Tracing
825825
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
826826
string _invocationId = null;
@@ -1048,7 +1048,7 @@ internal CredentialOperations (AutomationClient client)
10481048
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
10491049
}
10501050

1051-
string apiVersion = "2022-08-08";
1051+
string apiVersion = "2023-11-01";
10521052
// Tracing
10531053
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
10541054
string _invocationId = null;

src/Automation/Automation.Sdk/Generated/DscConfigurationOperations.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ internal DscConfigurationOperations (AutomationClient client)
108108
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
109109
}
110110

111-
string apiVersion = "2022-08-08";
111+
string apiVersion = "2023-11-01";
112112
// Tracing
113113
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
114114
string _invocationId = null;
@@ -319,7 +319,7 @@ internal DscConfigurationOperations (AutomationClient client)
319319
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
320320
}
321321

322-
string apiVersion = "2022-08-08";
322+
string apiVersion = "2023-11-01";
323323
// Tracing
324324
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
325325
string _invocationId = null;
@@ -559,7 +559,7 @@ internal DscConfigurationOperations (AutomationClient client)
559559
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
560560
}
561561

562-
string apiVersion = "2022-08-08";
562+
string apiVersion = "2023-11-01";
563563
// Tracing
564564
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
565565
string _invocationId = null;
@@ -816,7 +816,7 @@ internal DscConfigurationOperations (AutomationClient client)
816816
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
817817
}
818818

819-
string apiVersion = "2022-08-08";
819+
string apiVersion = "2023-11-01";
820820
// Tracing
821821
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
822822
string _invocationId = null;
@@ -1052,7 +1052,7 @@ internal DscConfigurationOperations (AutomationClient client)
10521052
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
10531053
}
10541054

1055-
string apiVersion = "2022-08-08";
1055+
string apiVersion = "2023-11-01";
10561056
// Tracing
10571057
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
10581058
string _invocationId = null;
@@ -1273,7 +1273,7 @@ internal DscConfigurationOperations (AutomationClient client)
12731273
}
12741274

12751275

1276-
string apiVersion = "2022-08-08";
1276+
string apiVersion = "2023-11-01";
12771277
// Tracing
12781278
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
12791279
string _invocationId = null;

0 commit comments

Comments
 (0)