Skip to content

Commit 578d843

Browse files
committed
Remove PSResource
1 parent 5b509e5 commit 578d843

File tree

3 files changed

+0
-89
lines changed

3 files changed

+0
-89
lines changed

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Commands.Resources.Rest.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@
228228
<Compile Include="SdkModels\ResourceGroups\UpdatePSResourceGroupParameters.cs" />
229229
<Compile Include="SdkModels\ResourceProvider\PSResourceProvider.cs" />
230230
<Compile Include="SdkModels\ResourceProvider\PSResourceProviderResourceType.cs" />
231-
<Compile Include="SdkModels\Resources\PSResource.cs" />
232231
<Compile Include="SdkModels\Resources\ResourceIdentifier.cs" />
233232
<Compile Include="Utilities\FileUtility.cs" />
234233
<Compile Include="Utilities\HttpUtility.cs" />

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/SdkModels/Resources/PSResource.cs

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

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/SdkModels/Resources/ResourceIdentifier.cs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -145,47 +145,6 @@ public override string ToString()
145145
return resourceId.ToString();
146146
}
147147

148-
public AuthorizationResourceIdentity ToResourceIdentity()
149-
{
150-
AuthorizationResourceIdentity identity = null;
151-
152-
if (!string.IsNullOrEmpty(ResourceType) && ResourceType.IndexOf('/') > 0)
153-
{
154-
identity = new AuthorizationResourceIdentity
155-
{
156-
ResourceName = ResourceName,
157-
ParentResourcePath = ParentResource,
158-
ResourceProviderNamespace = ResourceIdentifier.GetProviderFromResourceType(ResourceType),
159-
ResourceType = ResourceIdentifier.GetTypeFromResourceType(ResourceType)
160-
};
161-
}
162-
163-
return identity;
164-
}
165-
166-
public ResourcesResourceIdentity ToResourceIdentity(string apiVersion)
167-
{
168-
if (string.IsNullOrEmpty(ResourceType))
169-
{
170-
throw new ArgumentNullException("ResourceType");
171-
}
172-
if (ResourceType.IndexOf('/') < 0)
173-
{
174-
throw new ArgumentException(ProjectResources.ResourceTypeFormat, "ResourceType");
175-
}
176-
177-
ResourcesResourceIdentity identity = new ResourcesResourceIdentity
178-
{
179-
ResourceName = ResourceName,
180-
ParentResourcePath = ParentResource,
181-
ResourceProviderNamespace = ResourceIdentifier.GetProviderFromResourceType(ResourceType),
182-
ResourceType = ResourceIdentifier.GetTypeFromResourceType(ResourceType),
183-
ResourceProviderApiVersion = apiVersion
184-
};
185-
186-
return identity;
187-
}
188-
189148
private void AppendIfNotNull(ref StringBuilder resourceId, string format, string value)
190149
{
191150
if (!string.IsNullOrEmpty(value))

0 commit comments

Comments
 (0)