diff --git a/Meraki.Api.NewTest/MerakiClientUnitTest.cs b/Meraki.Api.NewTest/MerakiClientUnitTest.cs index c2d2a127..a195e013 100644 --- a/Meraki.Api.NewTest/MerakiClientUnitTest.cs +++ b/Meraki.Api.NewTest/MerakiClientUnitTest.cs @@ -40,13 +40,13 @@ protected static NetworkCreationRequest GetValidNetworkCreationRequest(string ne Name = networkName, Notes = "Test notes for unit test network.", TimeZone = "Europe/London", - ProductTypes = new() { + ProductTypes = [ ProductType.Appliance, ProductType.Camera, ProductType.CellularGateway, ProductType.Switch, - ProductType.Wireless }, - Tags = new() { "TestTag1", "TestTag2", "TestTag3" } + ProductType.Wireless ], + Tags = ["TestTag1", "TestTag2", "TestTag3"] }; protected async Task CreateValidNetworkAsync(string networkName) diff --git a/Meraki.Api.NewTest/WebHookTests.cs b/Meraki.Api.NewTest/WebHookTests.cs index 49a50043..3798a92d 100644 --- a/Meraki.Api.NewTest/WebHookTests.cs +++ b/Meraki.Api.NewTest/WebHookTests.cs @@ -142,7 +142,7 @@ await TestMerakiClient Body = """ {"event_type":"{{alertTypeId}}","client_payload":{"text":"{{alertData}}"}} """, - Headers = new(), + Headers = [], }; var testCreateWebhookPayloadTemplate = await TestMerakiClient @@ -302,7 +302,7 @@ await TestMerakiClient Body = """ {"event_type":"{{alertTypeId}}","client_payload":{"text":"{{alertData}}"}} """, - Headers = new(), + Headers = [], }; var testCreateWebhookPayloadTemplate = await TestMerakiClient diff --git a/Meraki.Api/Data/BulkDevicesUpdate.cs b/Meraki.Api/Data/BulkDevicesUpdate.cs index b70c8ff2..707cacd0 100644 --- a/Meraki.Api/Data/BulkDevicesUpdate.cs +++ b/Meraki.Api/Data/BulkDevicesUpdate.cs @@ -11,13 +11,13 @@ public class BulkDevicesUpdate /// [ApiAccess(ApiAccess.Update)] [DataMember(Name = "serials")] - public List Serials { get; set; } = new(); + public List Serials { get; set; } = []; /// /// An array of details /// [ApiAccess(ApiAccess.Update)] [DataMember(Name = "details")] - public List Details { get; set; } = new(); + public List Details { get; set; } = []; } diff --git a/Meraki.Api/Data/BulkUpdatedDevices.cs b/Meraki.Api/Data/BulkUpdatedDevices.cs index 70feb4bb..865ffc52 100644 --- a/Meraki.Api/Data/BulkUpdatedDevices.cs +++ b/Meraki.Api/Data/BulkUpdatedDevices.cs @@ -11,6 +11,6 @@ public class BulkUpdatedDevices /// [ApiAccess(ApiAccess.Update)] [DataMember(Name = "serials")] - public List Serials { get; set; } = new(); + public List Serials { get; set; } = []; } diff --git a/Meraki.Api/Data/CameraBoundariesAreasBoundaries.cs b/Meraki.Api/Data/CameraBoundariesAreasBoundaries.cs index 387029e6..b0731cce 100644 --- a/Meraki.Api/Data/CameraBoundariesAreasBoundaries.cs +++ b/Meraki.Api/Data/CameraBoundariesAreasBoundaries.cs @@ -33,5 +33,5 @@ public class CameraBoundariesAreasBoundaries /// [ApiAccess(ApiAccess.ReadWrite)] [DataMember(Name = "vertices")] - public List Vertices { get; set; } = new(); + public List Vertices { get; set; } = []; } diff --git a/Meraki.Api/Data/EsimsServiceProvidersAccountsCommunicationPlansItem.cs b/Meraki.Api/Data/EsimsServiceProvidersAccountsCommunicationPlansItem.cs index fae8e969..cbb8f003 100644 --- a/Meraki.Api/Data/EsimsServiceProvidersAccountsCommunicationPlansItem.cs +++ b/Meraki.Api/Data/EsimsServiceProvidersAccountsCommunicationPlansItem.cs @@ -25,5 +25,5 @@ public class EsimsServiceProvidersAccountsCommunicationPlansItem /// [ApiAccess(ApiAccess.ReadWrite)] [DataMember(Name = "apns")] - public List Apns { get; set; } = new(); + public List Apns { get; set; } = []; } diff --git a/Meraki.Api/Data/EsimsServiceProvidersAccountsRatePlans.cs b/Meraki.Api/Data/EsimsServiceProvidersAccountsRatePlans.cs index 07e4b183..99a4159c 100644 --- a/Meraki.Api/Data/EsimsServiceProvidersAccountsRatePlans.cs +++ b/Meraki.Api/Data/EsimsServiceProvidersAccountsRatePlans.cs @@ -11,5 +11,5 @@ public class EsimsServiceProvidersAccountsRatePlans /// List of ESIMs Service Provider Accounts Rate Plans /// [ApiAccess(ApiAccess.ReadWrite)] - public override List Items { get; set; } = new(); + public override List Items { get; set; } = []; } diff --git a/Meraki.Api/Data/LiveToolPingCableTestCreate.cs b/Meraki.Api/Data/LiveToolPingCableTestCreate.cs index 3f49cfff..7f140ee6 100644 --- a/Meraki.Api/Data/LiveToolPingCableTestCreate.cs +++ b/Meraki.Api/Data/LiveToolPingCableTestCreate.cs @@ -12,7 +12,7 @@ public class LiveToolsCableTestCreate /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "ports")] - public List Ports { get; set; } = new(); + public List Ports { get; set; } = []; /// /// Details for the callback. Please include either an httpServerId OR url and sharedSecret diff --git a/Meraki.Api/Data/LiveToolPingCableTestRequest.cs b/Meraki.Api/Data/LiveToolPingCableTestRequest.cs index e8efef12..1212521b 100644 --- a/Meraki.Api/Data/LiveToolPingCableTestRequest.cs +++ b/Meraki.Api/Data/LiveToolPingCableTestRequest.cs @@ -19,5 +19,5 @@ public class LiveToolsCableTestRequest /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "ports")] - public List Ports { get; set; } = new(); + public List Ports { get; set; } = []; } diff --git a/Meraki.Api/Data/LiveToolPingCableTestResult.cs b/Meraki.Api/Data/LiveToolPingCableTestResult.cs index c4122a7e..20b98a6d 100644 --- a/Meraki.Api/Data/LiveToolPingCableTestResult.cs +++ b/Meraki.Api/Data/LiveToolPingCableTestResult.cs @@ -46,5 +46,5 @@ public class LiveToolsCableTestResult /// Results of the cable test request, one for each requested port. /// [DataMember(Name = "results")] - public List Results { get; set; } = new(); + public List Results { get; set; } = []; } diff --git a/Meraki.Api/Data/LiveToolPingCableTestResultResult.cs b/Meraki.Api/Data/LiveToolPingCableTestResultResult.cs index e0213476..b2e0b465 100644 --- a/Meraki.Api/Data/LiveToolPingCableTestResultResult.cs +++ b/Meraki.Api/Data/LiveToolPingCableTestResultResult.cs @@ -40,5 +40,5 @@ public class LiveToolsCableTestResultResult /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "pairs")] - public List Pairs { get; set; } = new(); + public List Pairs { get; set; } = []; } diff --git a/Meraki.Api/Data/LiveToolsArpTableResult.cs b/Meraki.Api/Data/LiveToolsArpTableResult.cs index 57efa898..28c06da9 100644 --- a/Meraki.Api/Data/LiveToolsArpTableResult.cs +++ b/Meraki.Api/Data/LiveToolsArpTableResult.cs @@ -47,5 +47,5 @@ public class LiveToolsArpTableResult /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "entries")] - public List Entries { get; set; } = new(); + public List Entries { get; set; } = []; } diff --git a/Meraki.Api/Data/LldpCdp.cs b/Meraki.Api/Data/LldpCdp.cs index 1f2410c7..2239065a 100644 --- a/Meraki.Api/Data/LldpCdp.cs +++ b/Meraki.Api/Data/LldpCdp.cs @@ -18,5 +18,5 @@ public class LldpCdp /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "ports")] - public Dictionary Ports { get; set; } = new(); + public Dictionary Ports { get; set; } = []; } diff --git a/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewByNetwork.cs b/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewByNetwork.cs index dd19643c..86c47ad5 100644 --- a/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewByNetwork.cs +++ b/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewByNetwork.cs @@ -15,5 +15,5 @@ public class OrganizationAssuranceAlertsOverviewByNetwork /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "items")] - public List Items { get; set; } = new(); + public List Items { get; set; } = []; } diff --git a/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewByType.cs b/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewByType.cs index 76f37080..57933072 100644 --- a/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewByType.cs +++ b/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewByType.cs @@ -15,5 +15,5 @@ public class OrganizationAssuranceAlertsOverviewByType /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "items")] - public List Items { get; set; } = new(); + public List Items { get; set; } = []; } diff --git a/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewCounts.cs b/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewCounts.cs index f3292885..9d926d96 100644 --- a/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewCounts.cs +++ b/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewCounts.cs @@ -15,6 +15,6 @@ public class OrganizationAssuranceAlertsOverviewCounts /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "bySeverity")] - public List BySeverity { get; set; } = new(); + public List BySeverity { get; set; } = []; } diff --git a/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewHistorical.cs b/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewHistorical.cs index 146b7cb9..9ed8bb73 100644 --- a/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewHistorical.cs +++ b/Meraki.Api/Data/OrganizationAssuranceAlertsOverviewHistorical.cs @@ -15,5 +15,5 @@ public class OrganizationAssuranceAlertsOverviewHistorical /// [ApiAccess(ApiAccess.Read)] [DataMember(Name = "items")] - public List Items { get; set; } = new(); + public List Items { get; set; } = []; } diff --git a/Meraki.Api/Data/OrganizationCellularGatewayEsimSwapCreateRequest.cs b/Meraki.Api/Data/OrganizationCellularGatewayEsimSwapCreateRequest.cs index a1345e79..9fefebe5 100644 --- a/Meraki.Api/Data/OrganizationCellularGatewayEsimSwapCreateRequest.cs +++ b/Meraki.Api/Data/OrganizationCellularGatewayEsimSwapCreateRequest.cs @@ -11,5 +11,5 @@ public class OrganizationCellularGatewayEsimSwapCreateRequest /// [ApiAccess(ApiAccess.ReadWrite)] [DataMember(Name = "swaps")] - public List Swaps { get; set; } = new(); + public List Swaps { get; set; } = []; } diff --git a/Meraki.Api/Data/WanTrafficUplinkPreferencesUpdateRequest.cs b/Meraki.Api/Data/WanTrafficUplinkPreferencesUpdateRequest.cs index 45a67908..7b571e35 100644 --- a/Meraki.Api/Data/WanTrafficUplinkPreferencesUpdateRequest.cs +++ b/Meraki.Api/Data/WanTrafficUplinkPreferencesUpdateRequest.cs @@ -10,5 +10,5 @@ public class WanTrafficUplinkPreferencesUpdateRequest /// [ApiAccess(ApiAccess.ReadUpdate)] [DataMember(Name = "wanTrafficUplinkPreferences")] - public List WanTrafficUplinkPreferences { get; set; } = new(); + public List WanTrafficUplinkPreferences { get; set; } = []; }