Skip to content

Commit

Permalink
platform required for cloud resources
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d12 committed Nov 22, 2024
1 parent 61941d6 commit 2235a73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/backend/CodeHub.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
policy => { policy.WithOrigins("http://localhost:5231").AllowAnyMethod().AllowAnyHeader(); });
});


var app = builder.Build();

// Configure the HTTP request pipeline.
Expand Down
2 changes: 1 addition & 1 deletion src/backend/CodeHub.Core/Models/Resource/CloudResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ public abstract record CloudResource
public required string Name { get; init; }
public required string Description { get; init; }
public required Uri Url { get; init; }
public CloudPlatform Platform { get; init; }
public required CloudPlatform Platform { get; init; }
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Azure.ResourceManager.Resources;
using CodeHub.Core.Models.Resource;
using CodeHub.Core.Platforms.Azure.Models;

namespace CodeHub.Core.Platforms.Azure.Extensions;
Expand All @@ -13,6 +14,7 @@ internal static AzureResource MapToAzureResource(
return new AzureResource
{
Id = genericResourceData.Id.Name,
Platform = CloudPlatform.Azure,
Name = genericResourceData.Name,
Description = string.Empty,
TenantName = tenantName,
Expand Down

0 comments on commit 2235a73

Please sign in to comment.