Skip to content

Commit b56c511

Browse files
committed
Update SDK version
1 parent 0122a51 commit b56c511

24 files changed

+62
-61
lines changed

src/LogicApp/LogicApp.Test/LogicApp.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.Logic" Version="3.0.1" />
14+
<PackageReference Include="Microsoft.Azure.Management.Logic" Version="4.1.0" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

src/LogicApp/LogicApp/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Update Logic App SDK to version 4.1.0
2122

2223
## Version 1.1.0
2324
* Get-AzLogicApp lists all without specified Name

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/NewAzureIntegrationAccountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public override void ExecuteCmdlet()
6969
Location = this.Location,
7070
Sku = new IntegrationAccountSku
7171
{
72-
Name = (IntegrationAccountSkuName) Enum.Parse(typeof(IntegrationAccountSkuName), this.Sku)
72+
Name = this.Sku
7373
},
7474
Properties = new JObject()
7575

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/NewAzureIntegrationAccountMapCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public override void ExecuteCmdlet()
118118
{
119119
ContentType = this.ContentType,
120120
Content = this.MapDefinition,
121-
MapType = (MapType) Enum.Parse(typeof(MapType), this.MapType),
121+
MapType = this.MapType,
122122
Metadata = this.Metadata
123123
}), true);
124124
}

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/NewAzureIntegrationAccountPartnerCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public override void ExecuteCmdlet()
9898
this.PartnerName,
9999
new IntegrationAccountPartner
100100
{
101-
PartnerType = (PartnerType) Enum.Parse(typeof(PartnerType), this.PartnerType),
101+
PartnerType = this.PartnerType,
102102
Content = new PartnerContent
103103
{
104104
B2b = new B2BPartnerContent

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/NewAzureIntegrationAccountSchemaCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public override void ExecuteCmdlet()
119119
new IntegrationAccountSchema
120120
{
121121
ContentType = this.contentType,
122-
SchemaType = (SchemaType) Enum.Parse(typeof(SchemaType), this.schemaType),
122+
SchemaType = this.schemaType,
123123
Content = this.SchemaDefinition,
124124
Metadata = this.Metadata
125125
}), true);

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/UpdateAzureIntegrationAccountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public override void ExecuteCmdlet()
7777
{
7878
integrationAccount.Sku = new IntegrationAccountSku
7979
{
80-
Name = (IntegrationAccountSkuName) Enum.Parse(typeof(IntegrationAccountSkuName), this.Sku),
80+
Name = this.Sku,
8181

8282
};
8383
}

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/UpdateAzureIntegrationAccountMapCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public override void ExecuteCmdlet()
142142

143143
if (!string.IsNullOrEmpty(this.MapType))
144144
{
145-
integrationAccountMapCopy.MapType = (MapType)Enum.Parse(typeof(MapType), this.MapType);
145+
integrationAccountMapCopy.MapType = this.MapType;
146146
}
147147

148148
if (this.Metadata != null)

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/UpdateAzureIntegrationAccountPartnerCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public override void ExecuteCmdlet()
9797

9898
if (!string.IsNullOrEmpty(this.PartnerType))
9999
{
100-
integrationAccountPartner.PartnerType = (PartnerType) Enum.Parse(typeof(PartnerType), this.PartnerType);
100+
integrationAccountPartner.PartnerType = this.PartnerType;
101101
}
102102

103103
if (this.BusinessIdentities != null)

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/UpdateAzureIntegrationAccountSchemaCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public override void ExecuteCmdlet()
140140

141141
if (!string.IsNullOrEmpty(this.schemaType))
142142
{
143-
integrationAccountSchemaCopy.SchemaType = (SchemaType)Enum.Parse(typeof(SchemaType), this.SchemaType);
143+
integrationAccountSchemaCopy.SchemaType = this.SchemaType;
144144
}
145145

146146
if (!string.IsNullOrEmpty(this.ContentType))

src/LogicApp/LogicApp/Cmdlets/LogicApp/NewAzureLogicAppCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public override void ExecuteCmdlet()
124124
IntegrationAccount = string.IsNullOrEmpty(this.IntegrationAccountId)
125125
? null
126126
: new ResourceReference(this.IntegrationAccountId),
127-
State = (WorkflowState)Enum.Parse(typeof(WorkflowState), this.State)
127+
State = this.State
128128
}), true);
129129
}
130130
}

src/LogicApp/LogicApp/Cmdlets/LogicApp/UpdateAzureLogicAppCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public override void ExecuteCmdlet()
153153

154154
if (!string.IsNullOrEmpty(this.State))
155155
{
156-
workflow.State = (WorkflowState) Enum.Parse(typeof(WorkflowState), this.State);
156+
workflow.State = this.State;
157157
}
158158

159159
if (UseConsumptionModel.IsPresent)
@@ -165,7 +165,7 @@ public override void ExecuteCmdlet()
165165
var servicePlan = WebsitesClient.GetAppServicePlan(this.ResourceGroupName, this.AppServicePlan);
166166
workflow.Sku = new Sku
167167
{
168-
Name = (SkuName) Enum.Parse(typeof(SkuName), servicePlan.Sku.Tier),
168+
Name = servicePlan.Sku.Tier,
169169
Plan = new ResourceReference(id: servicePlan.Id)
170170
};
171171
}

src/LogicApp/LogicApp/Cmdlets/LogicApp/ValidateAzureLogicAppCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public override void ExecuteCmdlet()
125125
IntegrationAccount = string.IsNullOrEmpty(this.IntegrationAccountId)
126126
? null
127127
: new ResourceReference(this.IntegrationAccountId),
128-
State = (WorkflowState)Enum.Parse(typeof(WorkflowState), this.State)
128+
State = this.State
129129
});
130130
}
131131
}

src/LogicApp/LogicApp/LogicApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.Logic" Version="3.0.1" />
14+
<PackageReference Include="Microsoft.Azure.Management.Logic" Version="4.1.0" />
1515
</ItemGroup>
1616

1717
</Project>

src/LogicApp/LogicApp/Utilities/CmdletHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ internal static JToken GetDefinitionFromFile(string definitionFilePath)
6060
/// <returns>String content</returns>
6161
internal static string GetContentFromFile(string filePath)
6262
{
63-
string content = string.Empty;
63+
var content = string.Empty;
6464

6565
if (!string.IsNullOrEmpty(filePath))
6666
{

src/LogicApp/LogicApp/Utilities/IntegrationAccountAgreementOperations.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public IntegrationAccountAgreement CreateIntegrationAccountAgreement(string reso
3838
{
3939
if (!this.DoesIntegrationAccountAgreementExist(resourceGroupName, integrationAccountName, integrationAccountAgreementName))
4040
{
41-
return this.LogicManagementClient.Agreements.CreateOrUpdate(resourceGroupName, integrationAccountName, integrationAccountAgreementName, integrationAccountAgreement);
41+
return this.LogicManagementClient.IntegrationAccountAgreements.CreateOrUpdate(resourceGroupName, integrationAccountName, integrationAccountAgreementName, integrationAccountAgreement);
4242
}
4343
else
4444
{
@@ -56,10 +56,10 @@ public IntegrationAccountAgreement CreateIntegrationAccountAgreement(string reso
5656
/// <returns>Boolean result indicating whether the integration account agreement exists or not.</returns>
5757
private bool DoesIntegrationAccountAgreementExist(string resourceGroupName, string integrationAccountName, string integrationAccountAgreementName)
5858
{
59-
bool result = false;
59+
var result = false;
6060
try
6161
{
62-
var agreement = this.LogicManagementClient.Agreements.Get(resourceGroupName, integrationAccountName, integrationAccountAgreementName);
62+
var agreement = this.LogicManagementClient.IntegrationAccountAgreements.Get(resourceGroupName, integrationAccountName, integrationAccountAgreementName);
6363
result = agreement != null;
6464
}
6565
catch
@@ -79,7 +79,7 @@ private bool DoesIntegrationAccountAgreementExist(string resourceGroupName, stri
7979
/// <returns>Updated integration account agreement</returns>
8080
public IntegrationAccountAgreement UpdateIntegrationAccountAgreement(string resourceGroupName, string integrationAccountName, string integrationAccountAgreementName, IntegrationAccountAgreement integrationAccountAgreement)
8181
{
82-
return this.LogicManagementClient.Agreements.CreateOrUpdate(resourceGroupName, integrationAccountName, integrationAccountAgreementName, integrationAccountAgreement);
82+
return this.LogicManagementClient.IntegrationAccountAgreements.CreateOrUpdate(resourceGroupName, integrationAccountName, integrationAccountAgreementName, integrationAccountAgreement);
8383
}
8484

8585
/// <summary>
@@ -91,7 +91,7 @@ public IntegrationAccountAgreement UpdateIntegrationAccountAgreement(string reso
9191
/// <returns>Integration account agreement object.</returns>
9292
public IntegrationAccountAgreement GetIntegrationAccountAgreement(string resourceGroupName, string integrationAccountName, string integrationAccountAgreementName)
9393
{
94-
return this.LogicManagementClient.Agreements.Get(resourceGroupName, integrationAccountName, integrationAccountAgreementName);
94+
return this.LogicManagementClient.IntegrationAccountAgreements.Get(resourceGroupName, integrationAccountName, integrationAccountAgreementName);
9595
}
9696

9797
/// <summary>
@@ -103,7 +103,7 @@ public IntegrationAccountAgreement GetIntegrationAccountAgreement(string resourc
103103
public IList<IntegrationAccountAgreement> ListIntegrationAccountAgreements(string resourceGroupName, string integrationAccountName)
104104
{
105105
var compositeList = new List<IntegrationAccountAgreement>();
106-
var firstPage = this.LogicManagementClient.Agreements.ListByIntegrationAccounts(resourceGroupName, integrationAccountName);
106+
var firstPage = this.LogicManagementClient.IntegrationAccountAgreements.List(resourceGroupName, integrationAccountName);
107107

108108
if (firstPage != null)
109109
{
@@ -115,7 +115,7 @@ public IList<IntegrationAccountAgreement> ListIntegrationAccountAgreements(strin
115115
var page = firstPage;
116116
while (!string.IsNullOrEmpty(page.NextPageLink))
117117
{
118-
page = this.LogicManagementClient.Agreements.ListByIntegrationAccountsNext(page.NextPageLink);
118+
page = this.LogicManagementClient.IntegrationAccountAgreements.ListNext(page.NextPageLink);
119119
compositeList.AddRange(page);
120120
}
121121
}
@@ -130,7 +130,7 @@ public IList<IntegrationAccountAgreement> ListIntegrationAccountAgreements(strin
130130
/// <param name="integrationAccountAgreementName">The integration account agreement name.</param>
131131
public void RemoveIntegrationAccountAgreement(string resourceGroupName, string integrationAccountName, string integrationAccountAgreementName)
132132
{
133-
this.LogicManagementClient.Agreements.Delete(resourceGroupName, integrationAccountName, integrationAccountAgreementName);
133+
this.LogicManagementClient.IntegrationAccountAgreements.Delete(resourceGroupName, integrationAccountName, integrationAccountAgreementName);
134134
}
135135
}
136136
}

src/LogicApp/LogicApp/Utilities/IntegrationAccountCertificateOperations.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public IntegrationAccountCertificate CreateIntegrationAccountCertificate(string
3737
{
3838
if (!this.DoesIntegrationAccountCertificateExist(resourceGroupName, integrationAccountName,integrationAccountCertificateName))
3939
{
40-
return this.LogicManagementClient.Certificates.CreateOrUpdate(resourceGroupName, integrationAccountName, integrationAccountCertificateName, integrationAccountCertificate);
40+
return this.LogicManagementClient.IntegrationAccountCertificates.CreateOrUpdate(resourceGroupName, integrationAccountName, integrationAccountCertificateName, integrationAccountCertificate);
4141
}
4242
else
4343
{
@@ -55,10 +55,10 @@ public IntegrationAccountCertificate CreateIntegrationAccountCertificate(string
5555
/// <returns>Boolean result indicating whether the integration account certificate exists or not.</returns>
5656
private bool DoesIntegrationAccountCertificateExist(string resourceGroupName, string integrationAccountName, string integrationAccountCertificateName)
5757
{
58-
bool result = false;
58+
var result = false;
5959
try
6060
{
61-
var certificate = this.LogicManagementClient.Certificates.Get(resourceGroupName, integrationAccountName, integrationAccountCertificateName);
61+
var certificate = this.LogicManagementClient.IntegrationAccountCertificates.Get(resourceGroupName, integrationAccountName, integrationAccountCertificateName);
6262
result = certificate != null;
6363
}
6464
catch
@@ -78,7 +78,7 @@ private bool DoesIntegrationAccountCertificateExist(string resourceGroupName, st
7878
/// <returns>Updated integration account certificate.</returns>
7979
public IntegrationAccountCertificate UpdateIntegrationAccountCertificate(string resourceGroupName, string integrationAccountName, string integrationAccountCertificateName, IntegrationAccountCertificate integrationAccountCertificate)
8080
{
81-
return this.LogicManagementClient.Certificates.CreateOrUpdate(resourceGroupName, integrationAccountName, integrationAccountCertificateName, integrationAccountCertificate);
81+
return this.LogicManagementClient.IntegrationAccountCertificates.CreateOrUpdate(resourceGroupName, integrationAccountName, integrationAccountCertificateName, integrationAccountCertificate);
8282
}
8383

8484
/// <summary>
@@ -90,7 +90,7 @@ public IntegrationAccountCertificate UpdateIntegrationAccountCertificate(string
9090
/// <returns>Integration account certificate object.</returns>
9191
public IntegrationAccountCertificate GetIntegrationAccountCertifcate(string resourceGroupName, string integrationAccountName, string integrationAccountCertificateName)
9292
{
93-
return this.LogicManagementClient.Certificates.Get(resourceGroupName, integrationAccountName, integrationAccountCertificateName);
93+
return this.LogicManagementClient.IntegrationAccountCertificates.Get(resourceGroupName, integrationAccountName, integrationAccountCertificateName);
9494
}
9595

9696
/// <summary>
@@ -101,7 +101,7 @@ public IntegrationAccountCertificate GetIntegrationAccountCertifcate(string reso
101101
/// <returns>List of integration account certificates.</returns>
102102
public IPage<IntegrationAccountCertificate> ListIntegrationAccountCertificates(string resourceGroupName, string integrationAccountName)
103103
{
104-
return this.LogicManagementClient.Certificates.ListByIntegrationAccounts(resourceGroupName, integrationAccountName, top: 1000);
104+
return this.LogicManagementClient.IntegrationAccountCertificates.List(resourceGroupName, integrationAccountName, top: 1000);
105105
}
106106

107107
/// <summary>
@@ -112,7 +112,7 @@ public IPage<IntegrationAccountCertificate> ListIntegrationAccountCertificates(s
112112
/// <param name="integrationAccountCertificateName">The integration account certificate name.</param>
113113
public void RemoveIntegrationAccountCertificate(string resourceGroupName, string integrationAccountName, string integrationAccountCertificateName)
114114
{
115-
this.LogicManagementClient.Certificates.Delete(resourceGroupName, integrationAccountName, integrationAccountCertificateName);
115+
this.LogicManagementClient.IntegrationAccountCertificates.Delete(resourceGroupName, integrationAccountName, integrationAccountCertificateName);
116116
}
117117
}
118118
}

src/LogicApp/LogicApp/Utilities/IntegrationAccountGeneratedControlNumberOperations.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public IntegrationAccountControlNumber UpdateIntegrationAccountGeneratedIcn(stri
4949
}
5050

5151
return IntegrationAccountClient.SessionContentToIntegrationAccountControlNumber(
52-
sessionContent: this.LogicManagementClient.Sessions
52+
sessionContent: this.LogicManagementClient.IntegrationAccountSessions
5353
.CreateOrUpdate(
5454
resourceGroupName: resourceGroupName,
5555
integrationAccountName: integrationAccountName,
@@ -72,7 +72,7 @@ public IntegrationAccountControlNumber UpdateIntegrationAccountGeneratedIcn(stri
7272
public IntegrationAccountControlNumber GetIntegrationAccountGeneratedIcn(string resourceGroupName, string integrationAccountName, string integrationAccountAgreementName)
7373
{
7474
return IntegrationAccountClient.SessionContentToIntegrationAccountControlNumber(
75-
sessionContent: this.LogicManagementClient.Sessions
75+
sessionContent: this.LogicManagementClient.IntegrationAccountSessions
7676
.Get(
7777
resourceGroupName: resourceGroupName,
7878
integrationAccountName: integrationAccountName,
@@ -94,7 +94,7 @@ public IntegrationAccountControlNumber TryGetIntegrationAccountGeneratedIcn(stri
9494
try
9595
{
9696
return IntegrationAccountClient.SessionContentToIntegrationAccountControlNumber(
97-
sessionContent: this.LogicManagementClient.Sessions
97+
sessionContent: this.LogicManagementClient.IntegrationAccountSessions
9898
.Get(
9999
resourceGroupName: resourceGroupName,
100100
integrationAccountName: integrationAccountName,

0 commit comments

Comments
 (0)