mirror of
https://dev.azure.com/effectory/Survey%20Software/_git/Cloud%20Engineering
synced 2026-02-27 18:52:18 +01:00
- Added deployments
- Cleanup up code to generic responses and http methods - Added ansiconsole
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace AzureRestApi.Models.Api
|
||||
{
|
||||
public class ApiResponse<T>
|
||||
{
|
||||
public List<T>? value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using AzureRestApi.Models.Resources;
|
||||
|
||||
namespace AzureRestApi.Models.Api
|
||||
{
|
||||
public class ResourcesResponse
|
||||
{
|
||||
public List<Resource>? value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using AzureRestApi.Models.Resources;
|
||||
|
||||
namespace AzureRestApi.Models.Api
|
||||
{
|
||||
public class SubscriptionResponse
|
||||
{
|
||||
public List<Subscription>? value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace AzureRestApi.Models.Resources
|
||||
{
|
||||
public class Deployment
|
||||
{
|
||||
public string? id { get; set; }
|
||||
public string? name { get; set; }
|
||||
public string? type { get; set; }
|
||||
public string? location { get; set; }
|
||||
public DeploymentProperties? properties { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace AzureRestApi.Models.Resources
|
||||
{
|
||||
public class DeploymentProperties
|
||||
{
|
||||
public string? templateHash { get; set; }
|
||||
public string? mode { get; set; }
|
||||
//public string? parameters { get; set; }
|
||||
public string? provisioningState { get; set; }
|
||||
public DateTimeOffset? timestamp { get; set; }
|
||||
public string? duration { get; set; }
|
||||
public string? correlationId { get; set; }
|
||||
// public string? providers { get; set; }
|
||||
//public string? dependencies { get; set; }
|
||||
//public string? outputs { get; set; }
|
||||
public List<Resource>? outputResources { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace AzureRestApi.Models.Resources
|
||||
{
|
||||
public class ResourceGroup
|
||||
{
|
||||
public string? id { get; set; }
|
||||
public string? name { get; set; }
|
||||
public string? managedBy { get; set; }
|
||||
public string? location { get; set; }
|
||||
public Dictionary<string, string> tags { get; set; } = new Dictionary<string, string>();
|
||||
public DeploymentProperties? properties { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace AzureRestApi.Models.Resources
|
||||
{
|
||||
public class ResourceGroupProperties
|
||||
{
|
||||
public string? provisioningState { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public class Settings
|
||||
{
|
||||
public string KeyVaultName { get; set; }
|
||||
public string AzureTenantId { get; set; }
|
||||
public string KeyVaultName { get; set; } = string.Empty;
|
||||
public string AzureTenantId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user