Skip to content

Commit b5625c3

Browse files
Certificate cmdlets
1 parent 972f6cf commit b5625c3

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
<Compile Include="UnitTests\NewAzureAutomationRunbookTest.cs" />
121121
<Compile Include="UnitTests\PublishAzureAutomationRunbookTest.cs" />
122122
<Compile Include="UnitTests\RemoveAzureAutomationAccountTest.cs" />
123-
<Compile Include="UnitTests\RegisterAzureAutomationScheduledRunbook.cs" />
124123
<Compile Include="UnitTests\RemoveAzureAutomationCertificateTest.cs" />
125124
<Compile Include="UnitTests\RegisterAzureAutomationScheduledRunbookTest.cs" />
126125
<Compile Include="UnitTests\RemoveAzureAutomationRunbookTest.cs" />

src/ServiceManagement/Automation/Commands.Automation/Common/AutomationClient.cs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public IEnumerable<Variable> ListVariables(string automationAccountName)
500500
skipToken =>
501501
{
502502
var response = this.automationManagementClient.Variables.List(
503-
automationAccountName, skipToken);
503+
automationAccountName);
504504
return new ResponseWithSkipToken<AutomationManagement.Models.Variable>(
505505
response, response.Variables);
506506
});
@@ -511,7 +511,7 @@ public IEnumerable<Variable> ListVariables(string automationAccountName)
511511
skipToken =>
512512
{
513513
var response = this.automationManagementClient.EncryptedVariables.List(
514-
automationAccountName, skipToken);
514+
automationAccountName);
515515
return new ResponseWithSkipToken<AutomationManagement.Models.EncryptedVariable>(
516516
response, response.EncryptedVariables);
517517
});
@@ -603,8 +603,7 @@ public IEnumerable<Credential> ListCredentials(string automationAccountName)
603603
.ContinuationTokenHandler(
604604
skipToken =>
605605
{
606-
var response = this.automationManagementClient.PsCredentials.List(automationAccountName,
607-
skipToken);
606+
var response = this.automationManagementClient.PsCredentials.List(automationAccountName);
608607
return new ResponseWithSkipToken<AutomationManagement.Models.Credential>(
609608
response, response.Credentials);
610609
});
@@ -671,7 +670,7 @@ public IEnumerable<Module> ListModules(string automationAccountName)
671670
.ContinuationTokenHandler(
672671
skipToken =>
673672
{
674-
var response = this.automationManagementClient.Modules.List(automationAccountName, skipToken);
673+
var response = this.automationManagementClient.Modules.List(automationAccountName);
675674
return new ResponseWithSkipToken<AutomationManagement.Models.Module>(
676675
response, response.Modules);
677676
});
@@ -781,7 +780,6 @@ public IEnumerable<Job> ListJobsByRunbookName(string automationAccountName, stri
781780
EndTime = FormatDateTime(endTime.Value),
782781
RunbookName = runbookName,
783782
Status = jobStatus,
784-
SkipToken = skipToken
785783
});
786784
return new ResponseWithSkipToken<AutomationManagement.Models.Job>(response, response.Jobs);
787785
});
@@ -799,7 +797,6 @@ public IEnumerable<Job> ListJobsByRunbookName(string automationAccountName, stri
799797
StartTime = FormatDateTime(startTime.Value),
800798
RunbookName = runbookName,
801799
Status = jobStatus,
802-
SkipToken = skipToken
803800
});
804801
return new ResponseWithSkipToken<AutomationManagement.Models.Job>(response, response.Jobs);
805802
});
@@ -817,7 +814,6 @@ public IEnumerable<Job> ListJobsByRunbookName(string automationAccountName, stri
817814
EndTime = FormatDateTime(endTime.Value),
818815
RunbookName = runbookName,
819816
Status = jobStatus,
820-
SkipToken = skipToken
821817
});
822818
return new ResponseWithSkipToken<AutomationManagement.Models.Job>(response, response.Jobs);
823819
});
@@ -831,7 +827,6 @@ public IEnumerable<Job> ListJobsByRunbookName(string automationAccountName, stri
831827
automationAccountName,
832828
new AutomationManagement.Models.JobListParameters
833829
{
834-
SkipToken = skipToken,
835830
Status = jobStatus,
836831
RunbookName = runbookName
837832
});
@@ -871,7 +866,6 @@ public IEnumerable<Job> ListJobs(string automationAccountName, DateTime? startTi
871866
StartTime = FormatDateTime(startTime.Value),
872867
EndTime = FormatDateTime(endTime.Value),
873868
Status = jobStatus,
874-
SkipToken = skipToken
875869
});
876870
return new ResponseWithSkipToken<AutomationManagement.Models.Job>(response, response.Jobs);
877871
});
@@ -888,7 +882,6 @@ public IEnumerable<Job> ListJobs(string automationAccountName, DateTime? startTi
888882
{
889883
StartTime = FormatDateTime(startTime.Value),
890884
Status = jobStatus,
891-
SkipToken = skipToken
892885
});
893886
return new ResponseWithSkipToken<AutomationManagement.Models.Job>(response, response.Jobs);
894887
});
@@ -905,7 +898,6 @@ public IEnumerable<Job> ListJobs(string automationAccountName, DateTime? startTi
905898
{
906899
EndTime = FormatDateTime(endTime.Value),
907900
Status = jobStatus,
908-
SkipToken = skipToken
909901
});
910902
return new ResponseWithSkipToken<AutomationManagement.Models.Job>(response, response.Jobs);
911903
});
@@ -917,7 +909,7 @@ public IEnumerable<Job> ListJobs(string automationAccountName, DateTime? startTi
917909
{
918910
var response = this.automationManagementClient.Jobs.List(
919911
automationAccountName,
920-
new AutomationManagement.Models.JobListParameters { Status = jobStatus, SkipToken = skipToken, });
912+
new AutomationManagement.Models.JobListParameters { Status = jobStatus });
921913
return new ResponseWithSkipToken<AutomationManagement.Models.Job>(response, response.Jobs);
922914
});
923915
}
@@ -1102,7 +1094,7 @@ public IEnumerable<Certificate> ListCertificates(string automationAccountName)
11021094
skipToken =>
11031095
{
11041096
var response = this.automationManagementClient.Certificates.List(
1105-
automationAccountName, skipToken);
1097+
automationAccountName);
11061098
return new ResponseWithSkipToken<AutomationManagement.Models.Certificate>(
11071099
response, response.Certificates);
11081100
}).Select(c => new Certificate(automationAccountName, c));

0 commit comments

Comments
 (0)