Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new resource types to ResourceType enum #1074

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
/// Enum representation of the different types of resources supported by the resource registry. The specific values represents their binary value.
/// </summary>
[Flags]
public enum ResourceType

Check warning on line 7 in backend/src/Altinn.AccessManagement.UI/Altinn.AccessManagement.UI.Core/Enums/ResourceType.cs

View workflow job for this annotation

GitHub Actions / Continous Integration / Analyze

Rename this enumeration to match the regular expression: '^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$'. (https://rules.sonarsource.com/csharp/RSPEC-2342)

Check warning on line 7 in backend/src/Altinn.AccessManagement.UI/Altinn.AccessManagement.UI.Core/Enums/ResourceType.cs

View workflow job for this annotation

GitHub Actions / Continous Integration / Analyze

Rename this enumeration to match the regular expression: '^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$'. (https://rules.sonarsource.com/csharp/RSPEC-2342)
{
/// <summary>
/// Default
/// </summary>
Default = 0,

Check warning on line 12 in backend/src/Altinn.AccessManagement.UI/Altinn.AccessManagement.UI.Core/Enums/ResourceType.cs

View workflow job for this annotation

GitHub Actions / Continous Integration / Analyze

Rename 'Default' to 'None'. (https://rules.sonarsource.com/csharp/RSPEC-2346)

Check warning on line 12 in backend/src/Altinn.AccessManagement.UI/Altinn.AccessManagement.UI.Core/Enums/ResourceType.cs

View workflow job for this annotation

GitHub Actions / Continous Integration / Analyze

Rename 'Default' to 'None'. (https://rules.sonarsource.com/csharp/RSPEC-2346)

/// <summary>
/// SystemResource
Expand All @@ -35,5 +35,15 @@
/// GenericAccessResource
/// </summary>
GenericAccessResource = 16,

/// <summary>
/// BrokerService
/// </summary>
BrokerService = 32,

/// <summary>
/// CorrespondenceService
/// </summary>
CorrespondenceService = 64
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
},
"ResourceRegistrySettings": {
"BaseApiUrl": "http://localhost:5101/"
},
"GeneralSettings": {
"Hostname": "localhost"
}
}
Loading