Skip to content

Commit 6c21cd6

Browse files
committed
Remove PATCH on /tenant/access/git
PATCH on /tenant/access/git to enable disable Git Access is no longer required, after GIT went GA. Removing the unused cmdlet.
1 parent 80cde6c commit 6c21cd6

File tree

5 files changed

+111
-457
lines changed

5 files changed

+111
-457
lines changed

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/ApiManagementClient.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,19 +1657,6 @@ public PsApiManagementAccessInformation GetTenantGitAccessInformation(PsApiManag
16571657

16581658
return Mapper.Map<PsApiManagementAccessInformation>(response.Value);
16591659
}
1660-
1661-
public void TenantGitAccessSet(
1662-
PsApiManagementContext context,
1663-
bool enableGitAccess)
1664-
{
1665-
var tenantAccess = Client.TenantAccessGit.Get(context.ResourceGroupName, context.ServiceName);
1666-
1667-
var accessInformationParams = new AccessInformationUpdateParameters
1668-
{
1669-
Enabled = enableGitAccess
1670-
};
1671-
Client.TenantAccessGit.Update(context.ResourceGroupName, context.ServiceName, accessInformationParams, tenantAccess.ETag);
1672-
}
16731660
#endregion
16741661

16751662
#region TenantConfiguration

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@
206206
<Compile Include="Commands\SetAzureApiManagementSubscription.cs" />
207207
<Compile Include="Commands\SetAzureApiManagementUser.cs" />
208208
<Compile Include="Commands\SetAzureRmApiManagementTenantAccess.cs" />
209-
<Compile Include="Commands\SetAzureRmApiManagementTenantGitAccess.cs" />
210209
<Compile Include="Constants.cs" />
211210
<Compile Include="Models\ErrorBody.cs" />
212211
<Compile Include="Models\ErrorField.cs" />

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureRmApiManagementTenantGitAccess.cs

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.ps1

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,15 +1696,8 @@ Param($resourceGroupName, $serviceName)
16961696
$tenantGitAccess = Get-AzureRmApiManagementTenantGitAccess -Context $context
16971697

16981698
Assert-NotNull $tenantGitAccess
1699-
Assert-AreEqual $false $tenantGitAccess.Enabled
1699+
Assert-AreEqual $true $tenantGitAccess.Enabled
17001700

1701-
#enable Tenant Git Access
1702-
$tenantGitAccess = $null
1703-
$tenantGitAccess = Set-AzureRmApiManagementTenantGitAccess -Context $context -Enabled $true -PassThru
1704-
1705-
Assert-NotNull $tenantGitAccess
1706-
Assert-AreEqual $true $tenantGitAccess.Enabled
1707-
17081701
#get Tenant Sync state
17091702
$tenantSyncState = Get-AzureRmApiManagementTenantSyncState -Context $context
17101703
Assert-NotNull $tenantSyncState
@@ -1748,7 +1741,7 @@ Param($resourceGroupName, $serviceName)
17481741
}
17491742
finally
17501743
{
1751-
Set-AzureRmApiManagementTenantGitAccess -Context $context -Enabled $false -PassThru
1744+
17521745
}
17531746
}
17541747

0 commit comments

Comments
 (0)