From e2c0f1900ec89682c1bde55f22adbbd7ea385f1d Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Fri, 19 Aug 2022 07:15:20 +0000
Subject: [PATCH 1/2] Move NetworkFunction to main
---
.../Az.NetworkFunction.format.ps1xml | 162 ++--
src/NetworkFunction/Az.NetworkFunction.psd1 | 17 +-
src/NetworkFunction/NetworkFunction.sln | 156 ++--
src/NetworkFunction/README.md | 16 +-
.../New-AzNetworkFunctionCollectorPolicy.ps1 | 178 ++++
.../New-AzNetworkFunctionTrafficCollector.ps1 | 166 ++++
...pdate-AzNetworkFunctionCollectorPolicy.ps1 | 174 ++++
...date-AzNetworkFunctionTrafficCollector.ps1 | 163 ++++
...-AzNetworkFunctionAzureTrafficCollector.md | 22 -
...onAzureTrafficCollectorsByResourceGroup.md | 22 -
...ionAzureTrafficCollectorsBySubscription.md | 22 -
.../Get-AzNetworkFunctionCollectorPolicy.md | 45 +-
.../Get-AzNetworkFunctionOperation.md | 22 -
.../Get-AzNetworkFunctionTrafficCollector.md | 62 ++
...-AzNetworkFunctionAzureTrafficCollector.md | 22 -
.../New-AzNetworkFunctionCollectorPolicy.md | 45 +-
.../New-AzNetworkFunctionTrafficCollector.md | 17 +
...-AzNetworkFunctionAzureTrafficCollector.md | 22 -
...Remove-AzNetworkFunctionCollectorPolicy.md | 22 +-
...emove-AzNetworkFunctionTrafficCollector.md | 6 +
...NetworkFunctionAzureTrafficCollectorTag.md | 22 -
...Update-AzNetworkFunctionCollectorPolicy.md | 35 +
...pdate-AzNetworkFunctionTrafficCollector.md | 17 +
...te-AzNetworkFunctionTrafficCollectorTag.md | 22 +
...nAzureTrafficCollectorsByResourceGroup.ps1 | 172 ----
...onAzureTrafficCollectorsBySubscription.ps1 | 166 ----
.../Get-AzNetworkFunctionCollectorPolicy.ps1 | 8 +-
...Get-AzNetworkFunctionTrafficCollector.ps1} | 27 +-
.../New-AzNetworkFunctionCollectorPolicy.ps1 | 27 +-
...New-AzNetworkFunctionTrafficCollector.ps1} | 43 +-
.../exports/ProxyCmdletDefinitions.ps1 | 832 ++++++++---------
...emove-AzNetworkFunctionCollectorPolicy.ps1 | 4 +-
...ove-AzNetworkFunctionTrafficCollector.ps1} | 12 +-
...pdate-AzNetworkFunctionCollectorPolicy.ps1 | 244 +++++
...date-AzNetworkFunctionTrafficCollector.ps1 | 232 +++++
...-AzNetworkFunctionTrafficCollectorTag.ps1} | 18 +-
src/NetworkFunction/generate-info.json | 6 +-
.../CollectorPolicySystemData.PowerShell.cs | 198 ----
...CollectorPolicySystemData.TypeConverter.cs | 147 ---
.../Api20220501/CollectorPolicySystemData.cs | 73 --
.../CollectorPolicySystemData.json.cs | 108 ---
.../AzureTrafficCollector.PowerShell.cs | 88 +-
.../AzureTrafficCollector.TypeConverter.cs | 6 +-
.../AzureTrafficCollector.cs | 74 +-
.../AzureTrafficCollector.json.cs | 12 +-
...reTrafficCollectorListResult.PowerShell.cs | 28 +-
...rafficCollectorListResult.TypeConverter.cs | 6 +-
.../AzureTrafficCollectorListResult.cs | 18 +-
.../AzureTrafficCollectorListResult.json.cs | 10 +-
...ficCollectorPropertiesFormat.PowerShell.cs | 36 +-
...CollectorPropertiesFormat.TypeConverter.cs | 6 +-
.../AzureTrafficCollectorPropertiesFormat.cs | 30 +-
...reTrafficCollectorPropertiesFormat.json.cs | 12 +-
.../CloudError.PowerShell.cs | 40 +-
.../CloudError.TypeConverter.cs | 6 +-
.../CloudError.cs | 28 +-
.../CloudError.json.cs | 10 +-
.../CloudErrorBody.PowerShell.cs | 36 +-
.../CloudErrorBody.TypeConverter.cs | 6 +-
.../CloudErrorBody.cs | 16 +-
.../CloudErrorBody.json.cs | 10 +-
.../CollectorPolicy.PowerShell.cs | 156 ++--
.../CollectorPolicy.TypeConverter.cs | 6 +-
.../CollectorPolicy.cs | 165 ++--
.../CollectorPolicy.json.cs | 19 +-
.../CollectorPolicyListResult.PowerShell.cs | 28 +-
...CollectorPolicyListResult.TypeConverter.cs | 6 +-
.../CollectorPolicyListResult.cs | 18 +-
.../CollectorPolicyListResult.json.cs | 10 +-
...lectorPolicyPropertiesFormat.PowerShell.cs | 40 +-
...torPolicyPropertiesFormat.TypeConverter.cs | 6 +-
.../CollectorPolicyPropertiesFormat.cs | 36 +-
.../CollectorPolicyPropertiesFormat.json.cs | 12 +-
...sionPoliciesPropertiesFormat.PowerShell.cs | 28 +-
...nPoliciesPropertiesFormat.TypeConverter.cs | 6 +-
.../EmissionPoliciesPropertiesFormat.cs | 16 +-
.../EmissionPoliciesPropertiesFormat.json.cs | 10 +-
.../EmissionPolicyDestination.PowerShell.cs | 24 +-
...EmissionPolicyDestination.TypeConverter.cs | 6 +-
.../EmissionPolicyDestination.cs | 6 +-
.../EmissionPolicyDestination.json.cs | 8 +-
...estionPolicyPropertiesFormat.PowerShell.cs | 28 +-
...ionPolicyPropertiesFormat.TypeConverter.cs | 6 +-
.../IngestionPolicyPropertiesFormat.cs | 16 +-
.../IngestionPolicyPropertiesFormat.json.cs | 10 +-
...stionSourcesPropertiesFormat.PowerShell.cs | 28 +-
...onSourcesPropertiesFormat.TypeConverter.cs | 6 +-
.../IngestionSourcesPropertiesFormat.cs | 6 +-
.../IngestionSourcesPropertiesFormat.json.cs | 8 +-
.../Operation.PowerShell.cs | 52 +-
.../Operation.TypeConverter.cs | 6 +-
.../{Api20220501 => Api20220801}/Operation.cs | 22 +-
.../Operation.json.cs | 10 +-
.../OperationDisplay.PowerShell.cs | 36 +-
.../OperationDisplay.TypeConverter.cs | 6 +-
.../OperationDisplay.cs | 6 +-
.../OperationDisplay.json.cs | 8 +-
.../OperationListResult.PowerShell.cs | 28 +-
.../OperationListResult.TypeConverter.cs | 6 +-
.../OperationListResult.cs | 16 +-
.../OperationListResult.json.cs | 10 +-
.../ProxyResource.PowerShell.cs | 32 +-
.../ProxyResource.TypeConverter.cs | 6 +-
.../ProxyResource.cs | 12 +-
.../ProxyResource.json.cs | 8 +-
.../ResourceReference.PowerShell.cs | 24 +-
.../ResourceReference.TypeConverter.cs | 6 +-
.../ResourceReference.cs | 8 +-
.../ResourceReference.json.cs | 8 +-
.../SystemData.PowerShell.cs | 40 +-
.../SystemData.TypeConverter.cs | 6 +-
.../SystemData.cs | 6 +-
.../SystemData.json.cs | 8 +-
.../TagsObject.PowerShell.cs | 24 +-
.../TagsObject.TypeConverter.cs | 6 +-
.../TagsObject.cs | 16 +-
.../TagsObject.json.cs | 10 +-
.../TagsObjectTags.PowerShell.cs | 20 +-
.../TagsObjectTags.TypeConverter.cs | 6 +-
.../TagsObjectTags.cs | 6 +-
.../TagsObjectTags.dictionary.cs | 4 +-
.../TagsObjectTags.json.cs | 8 +-
.../TrackedResource.PowerShell.cs | 64 +-
.../TrackedResource.TypeConverter.cs | 6 +-
.../TrackedResource.cs | 40 +-
.../TrackedResource.json.cs | 12 +-
.../TrackedResourceSystemData.PowerShell.cs | 40 +-
...TrackedResourceSystemData.TypeConverter.cs | 6 +-
.../TrackedResourceSystemData.cs | 24 +-
.../TrackedResourceSystemData.json.cs | 10 +-
.../TrackedResourceTags.PowerShell.cs | 20 +-
.../TrackedResourceTags.TypeConverter.cs | 6 +-
.../TrackedResourceTags.cs | 6 +-
.../TrackedResourceTags.dictionary.cs | 4 +-
.../TrackedResourceTags.json.cs | 8 +-
.../generated/api/NetworkFunction.cs | 848 +++++++++---------
.../Support/ApiVersionParameter.Completer.cs | 39 +
.../ApiVersionParameter.TypeConverter.cs | 59 ++
.../api/Support/ApiVersionParameter.cs | 97 ++
...GetAzNetworkFunctionCollectorPolicy_Get.cs | 22 +-
...kFunctionCollectorPolicy_GetViaIdentity.cs | 22 +-
...etAzNetworkFunctionCollectorPolicy_List.cs | 20 +-
.../GetAzNetworkFunctionOperation_List.cs | 21 +-
...tAzNetworkFunctionTrafficCollector_Get.cs} | 30 +-
...unctionTrafficCollector_GetViaIdentity.cs} | 30 +-
...AzNetworkFunctionTrafficCollector_List.cs} | 34 +-
...zNetworkFunctionTrafficCollector_List1.cs} | 35 +-
...AzNetworkFunctionCollectorPolicy_Create.cs | 28 +-
...kFunctionCollectorPolicy_CreateExpanded.cs | 56 +-
...nctionCollectorPolicy_CreateViaIdentity.cs | 28 +-
...llectorPolicy_CreateViaIdentityExpanded.cs | 55 +-
...NetworkFunctionTrafficCollector_Create.cs} | 42 +-
...unctionTrafficCollector_CreateExpanded.cs} | 49 +-
...tionTrafficCollector_CreateViaIdentity.cs} | 44 +-
...ficCollector_CreateViaIdentityExpanded.cs} | 46 +-
...AzNetworkFunctionCollectorPolicy_Delete.cs | 10 +-
...nctionCollectorPolicy_DeleteViaIdentity.cs | 10 +-
...NetworkFunctionTrafficCollector_Delete.cs} | 24 +-
...tionTrafficCollector_DeleteViaIdentity.cs} | 25 +-
...AzNetworkFunctionCollectorPolicy_Update.cs | 28 +-
...kFunctionCollectorPolicy_UpdateExpanded.cs | 55 +-
...NetworkFunctionTrafficCollector_Update.cs} | 42 +-
...unctionTrafficCollector_UpdateExpanded.cs} | 48 +-
...workFunctionTrafficCollectorTag_Update.cs} | 36 +-
...tionTrafficCollectorTag_UpdateExpanded.cs} | 37 +-
...nTrafficCollectorTag_UpdateViaIdentity.cs} | 37 +-
...CollectorTag_UpdateViaIdentityExpanded.cs} | 38 +-
.../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 2 +-
.../BuildTime/Models/PsProxyOutputs.cs | 2 +-
.../help/Az.NetworkFunction.md | 31 +-
...-AzNetworkFunctionAzureTrafficCollector.md | 160 ----
...onAzureTrafficCollectorsByResourceGroup.md | 108 ---
...ionAzureTrafficCollectorsBySubscription.md | 93 --
.../Get-AzNetworkFunctionCollectorPolicy.md | 52 +-
.../help/Get-AzNetworkFunctionOperation.md | 77 --
.../Get-AzNetworkFunctionTrafficCollector.md | 213 +++++
.../New-AzNetworkFunctionCollectorPolicy.md | 90 +-
... New-AzNetworkFunctionTrafficCollector.md} | 55 +-
...Remove-AzNetworkFunctionCollectorPolicy.md | 23 +-
...move-AzNetworkFunctionTrafficCollector.md} | 36 +-
...Update-AzNetworkFunctionCollectorPolicy.md | 308 +++++++
...pdate-AzNetworkFunctionTrafficCollector.md | 250 ++++++
...e-AzNetworkFunctionTrafficCollectorTag.md} | 51 +-
.../Get-AzNetworkFunctionOperation.ps1 | 44 +-
.../New-AzNetworkFunctionCollectorPolicy.ps1 | 56 +-
...New-AzNetworkFunctionTrafficCollector.ps1} | 62 +-
.../internal/ProxyCmdletDefinitions.ps1 | 564 +++++++-----
.../Set-AzNetworkFunctionCollectorPolicy.ps1 | 38 +-
...Set-AzNetworkFunctionTrafficCollector.ps1} | 45 +-
...-AzNetworkFunctionTrafficCollectorTag.ps1} | 20 +-
...orkFunctionAzureTrafficCollector.Tests.ps1 | 25 -
...TrafficCollectorsByResourceGroup.Tests.ps1 | 21 -
...eTrafficCollectorsBySubscription.Tests.ps1 | 21 -
...rkFunctionTrafficCollectorPolicy.Tests.ps1 | 29 -
...orkFunctionAzureTrafficCollector.Tests.ps1 | 21 -
...AzNetworkFunctionCollectorPolicy.Tests.ps1 | 12 +
...rkFunctionTrafficCollectorPolicy.Tests.ps1 | 33 -
...orkFunctionAzureTrafficCollector.Tests.ps1 | 25 -
...rkFunctionTrafficCollectorPolicy.Tests.ps1 | 25 -
...zNetworkFunctionTrafficCollector.Tests.ps1 | 33 -
...rkFunctionTrafficCollectorPolicy.Tests.ps1 | 33 -
...zNetworkFunctionCollectorPolicy.Tests.ps1} | 10 +-
...NetworkFunctionTrafficCollector.Tests.ps1} | 8 +-
203 files changed, 5591 insertions(+), 4762 deletions(-)
create mode 100644 src/NetworkFunction/custom/New-AzNetworkFunctionCollectorPolicy.ps1
create mode 100644 src/NetworkFunction/custom/New-AzNetworkFunctionTrafficCollector.ps1
create mode 100644 src/NetworkFunction/custom/Update-AzNetworkFunctionCollectorPolicy.ps1
create mode 100644 src/NetworkFunction/custom/Update-AzNetworkFunctionTrafficCollector.ps1
delete mode 100644 src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollector.md
delete mode 100644 src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md
delete mode 100644 src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md
delete mode 100644 src/NetworkFunction/examples/Get-AzNetworkFunctionOperation.md
create mode 100644 src/NetworkFunction/examples/Get-AzNetworkFunctionTrafficCollector.md
delete mode 100644 src/NetworkFunction/examples/New-AzNetworkFunctionAzureTrafficCollector.md
create mode 100644 src/NetworkFunction/examples/New-AzNetworkFunctionTrafficCollector.md
delete mode 100644 src/NetworkFunction/examples/Remove-AzNetworkFunctionAzureTrafficCollector.md
create mode 100644 src/NetworkFunction/examples/Remove-AzNetworkFunctionTrafficCollector.md
delete mode 100644 src/NetworkFunction/examples/Update-AzNetworkFunctionAzureTrafficCollectorTag.md
create mode 100644 src/NetworkFunction/examples/Update-AzNetworkFunctionCollectorPolicy.md
create mode 100644 src/NetworkFunction/examples/Update-AzNetworkFunctionTrafficCollector.md
create mode 100644 src/NetworkFunction/examples/Update-AzNetworkFunctionTrafficCollectorTag.md
delete mode 100644 src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.ps1
delete mode 100644 src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.ps1
rename src/NetworkFunction/exports/{Get-AzNetworkFunctionAzureTrafficCollector.ps1 => Get-AzNetworkFunctionTrafficCollector.ps1} (89%)
rename src/NetworkFunction/exports/{New-AzNetworkFunctionAzureTrafficCollector.ps1 => New-AzNetworkFunctionTrafficCollector.ps1} (93%)
rename src/NetworkFunction/exports/{Remove-AzNetworkFunctionAzureTrafficCollector.ps1 => Remove-AzNetworkFunctionTrafficCollector.ps1} (97%)
create mode 100644 src/NetworkFunction/exports/Update-AzNetworkFunctionCollectorPolicy.ps1
create mode 100644 src/NetworkFunction/exports/Update-AzNetworkFunctionTrafficCollector.ps1
rename src/NetworkFunction/exports/{Update-AzNetworkFunctionAzureTrafficCollectorTag.ps1 => Update-AzNetworkFunctionTrafficCollectorTag.ps1} (95%)
delete mode 100644 src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.PowerShell.cs
delete mode 100644 src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.TypeConverter.cs
delete mode 100644 src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.cs
delete mode 100644 src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.json.cs
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollector.PowerShell.cs (75%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollector.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollector.cs (78%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollector.json.cs (96%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollectorListResult.PowerShell.cs (86%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollectorListResult.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollectorListResult.cs (87%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollectorListResult.json.cs (95%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollectorPropertiesFormat.PowerShell.cs (83%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollectorPropertiesFormat.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollectorPropertiesFormat.cs (83%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/AzureTrafficCollectorPropertiesFormat.json.cs (95%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CloudError.PowerShell.cs (80%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CloudError.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CloudError.cs (83%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CloudError.json.cs (96%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CloudErrorBody.PowerShell.cs (83%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CloudErrorBody.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CloudErrorBody.cs (93%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CloudErrorBody.json.cs (96%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicy.PowerShell.cs (68%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicy.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicy.cs (58%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicy.json.cs (87%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicyListResult.PowerShell.cs (86%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicyListResult.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicyListResult.cs (87%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicyListResult.json.cs (95%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicyPropertiesFormat.PowerShell.cs (81%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicyPropertiesFormat.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicyPropertiesFormat.cs (83%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/CollectorPolicyPropertiesFormat.json.cs (95%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/EmissionPoliciesPropertiesFormat.PowerShell.cs (87%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/EmissionPoliciesPropertiesFormat.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/EmissionPoliciesPropertiesFormat.cs (88%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/EmissionPoliciesPropertiesFormat.json.cs (95%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/EmissionPolicyDestination.PowerShell.cs (91%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/EmissionPolicyDestination.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/EmissionPolicyDestination.cs (95%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/EmissionPolicyDestination.json.cs (97%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/IngestionPolicyPropertiesFormat.PowerShell.cs (87%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/IngestionPolicyPropertiesFormat.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/IngestionPolicyPropertiesFormat.cs (88%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/IngestionPolicyPropertiesFormat.json.cs (95%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/IngestionSourcesPropertiesFormat.PowerShell.cs (89%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/IngestionSourcesPropertiesFormat.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/IngestionSourcesPropertiesFormat.cs (96%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/IngestionSourcesPropertiesFormat.json.cs (97%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/Operation.PowerShell.cs (81%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/Operation.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/Operation.cs (89%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/Operation.json.cs (97%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/OperationDisplay.PowerShell.cs (86%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/OperationDisplay.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/OperationDisplay.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/OperationDisplay.json.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/OperationListResult.PowerShell.cs (86%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/OperationListResult.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/OperationListResult.cs (91%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/OperationListResult.json.cs (95%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/ProxyResource.PowerShell.cs (87%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/ProxyResource.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/ProxyResource.cs (93%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/ProxyResource.json.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/ResourceReference.PowerShell.cs (90%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/ResourceReference.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/ResourceReference.cs (92%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/ResourceReference.json.cs (97%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/SystemData.PowerShell.cs (85%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/SystemData.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/SystemData.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/SystemData.json.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObject.PowerShell.cs (88%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObject.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObject.cs (83%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObject.json.cs (96%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObjectTags.PowerShell.cs (93%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObjectTags.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObjectTags.cs (93%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObjectTags.dictionary.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TagsObjectTags.json.cs (97%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResource.PowerShell.cs (79%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResource.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResource.cs (87%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResource.json.cs (97%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceSystemData.PowerShell.cs (86%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceSystemData.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceSystemData.cs (82%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceSystemData.json.cs (96%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceTags.PowerShell.cs (93%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceTags.TypeConverter.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceTags.cs (92%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceTags.dictionary.cs (98%)
rename src/NetworkFunction/generated/api/Models/{Api20220501 => Api20220801}/TrackedResourceTags.json.cs (97%)
create mode 100644 src/NetworkFunction/generated/api/Support/ApiVersionParameter.Completer.cs
create mode 100644 src/NetworkFunction/generated/api/Support/ApiVersionParameter.TypeConverter.cs
create mode 100644 src/NetworkFunction/generated/api/Support/ApiVersionParameter.cs
rename src/NetworkFunction/generated/cmdlets/{GetAzNetworkFunctionAzureTrafficCollector_Get.cs => GetAzNetworkFunctionTrafficCollector_Get.cs} (95%)
rename src/NetworkFunction/generated/cmdlets/{GetAzNetworkFunctionAzureTrafficCollector_GetViaIdentity.cs => GetAzNetworkFunctionTrafficCollector_GetViaIdentity.cs} (95%)
rename src/NetworkFunction/generated/cmdlets/{GetAzNetworkFunctionAzureTrafficCollectorsBySubscription_List.cs => GetAzNetworkFunctionTrafficCollector_List.cs} (94%)
rename src/NetworkFunction/generated/cmdlets/{GetAzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List.cs => GetAzNetworkFunctionTrafficCollector_List1.cs} (94%)
rename src/NetworkFunction/generated/cmdlets/{NewAzNetworkFunctionAzureTrafficCollector_Create.cs => NewAzNetworkFunctionTrafficCollector_Create.cs} (95%)
rename src/NetworkFunction/generated/cmdlets/{NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded.cs => NewAzNetworkFunctionTrafficCollector_CreateExpanded.cs} (94%)
rename src/NetworkFunction/generated/cmdlets/{NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity.cs => NewAzNetworkFunctionTrafficCollector_CreateViaIdentity.cs} (94%)
rename src/NetworkFunction/generated/cmdlets/{NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded.cs => NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded.cs} (94%)
rename src/NetworkFunction/generated/cmdlets/{RemoveAzNetworkFunctionAzureTrafficCollector_Delete.cs => RemoveAzNetworkFunctionTrafficCollector_Delete.cs} (97%)
rename src/NetworkFunction/generated/cmdlets/{RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity.cs => RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity.cs} (96%)
rename src/NetworkFunction/generated/cmdlets/{SetAzNetworkFunctionAzureTrafficCollector_Update.cs => SetAzNetworkFunctionTrafficCollector_Update.cs} (95%)
rename src/NetworkFunction/generated/cmdlets/{SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded.cs => SetAzNetworkFunctionTrafficCollector_UpdateExpanded.cs} (94%)
rename src/NetworkFunction/generated/cmdlets/{UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update.cs => UpdateAzNetworkFunctionTrafficCollectorTag_Update.cs} (95%)
rename src/NetworkFunction/generated/cmdlets/{UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded.cs => UpdateAzNetworkFunctionTrafficCollectorTag_UpdateExpanded.cs} (94%)
rename src/NetworkFunction/generated/cmdlets/{UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity.cs => UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity.cs} (94%)
rename src/NetworkFunction/generated/cmdlets/{UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded.cs => UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded.cs} (94%)
delete mode 100644 src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollector.md
delete mode 100644 src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md
delete mode 100644 src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md
delete mode 100644 src/NetworkFunction/help/Get-AzNetworkFunctionOperation.md
create mode 100644 src/NetworkFunction/help/Get-AzNetworkFunctionTrafficCollector.md
rename src/NetworkFunction/help/{New-AzNetworkFunctionAzureTrafficCollector.md => New-AzNetworkFunctionTrafficCollector.md} (80%)
rename src/NetworkFunction/help/{Remove-AzNetworkFunctionAzureTrafficCollector.md => Remove-AzNetworkFunctionTrafficCollector.md} (85%)
create mode 100644 src/NetworkFunction/help/Update-AzNetworkFunctionCollectorPolicy.md
create mode 100644 src/NetworkFunction/help/Update-AzNetworkFunctionTrafficCollector.md
rename src/NetworkFunction/help/{Update-AzNetworkFunctionAzureTrafficCollectorTag.md => Update-AzNetworkFunctionTrafficCollectorTag.md} (74%)
rename src/NetworkFunction/{exports => internal}/Get-AzNetworkFunctionOperation.ps1 (61%)
rename src/NetworkFunction/internal/{New-AzNetworkFunctionAzureTrafficCollector.ps1 => New-AzNetworkFunctionTrafficCollector.ps1} (87%)
rename src/NetworkFunction/internal/{Set-AzNetworkFunctionAzureTrafficCollector.ps1 => Set-AzNetworkFunctionTrafficCollector.ps1} (93%)
rename src/NetworkFunction/internal/{Update-AzNetworkFunctionAzureTrafficCollectorTag.ps1 => Update-AzNetworkFunctionTrafficCollectorTag.ps1} (94%)
delete mode 100644 src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollector.Tests.ps1
delete mode 100644 src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.Tests.ps1
delete mode 100644 src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.Tests.ps1
delete mode 100644 src/NetworkFunction/test/Get-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1
delete mode 100644 src/NetworkFunction/test/New-AzNetworkFunctionAzureTrafficCollector.Tests.ps1
delete mode 100644 src/NetworkFunction/test/New-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1
delete mode 100644 src/NetworkFunction/test/Remove-AzNetworkFunctionAzureTrafficCollector.Tests.ps1
delete mode 100644 src/NetworkFunction/test/Remove-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1
delete mode 100644 src/NetworkFunction/test/Set-AzNetworkFunctionTrafficCollector.Tests.ps1
delete mode 100644 src/NetworkFunction/test/Set-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1
rename src/NetworkFunction/test/{Update-AzNetworkFunctionAzureTrafficCollectorTag.Tests.ps1 => Update-AzNetworkFunctionCollectorPolicy.Tests.ps1} (72%)
rename src/NetworkFunction/test/{Get-AzNetworkFunctionOperation.Tests.ps1 => Update-AzNetworkFunctionTrafficCollector.Tests.ps1} (65%)
diff --git a/src/NetworkFunction/Az.NetworkFunction.format.ps1xml b/src/NetworkFunction/Az.NetworkFunction.format.ps1xml
index aa62c8f2ad00..9105c6c8a381 100644
--- a/src/NetworkFunction/Az.NetworkFunction.format.ps1xml
+++ b/src/NetworkFunction/Az.NetworkFunction.format.ps1xml
@@ -42,9 +42,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector
@@ -112,9 +112,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorListResult
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorListResult
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorListResult
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorListResult
@@ -134,9 +134,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorPropertiesFormat
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorPropertiesFormat
@@ -156,9 +156,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBody
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBody
@@ -190,15 +190,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -209,9 +227,27 @@
+
+ Location
+
Name
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
Etag
@@ -224,9 +260,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyListResult
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyListResult
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyListResult
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyListResult
@@ -246,9 +282,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyPropertiesFormat
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyPropertiesFormat
@@ -268,55 +304,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicySystemData
-
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicySystemData
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CreatedAt
-
-
- CreatedBy
-
-
- CreatedByType
-
-
- LastModifiedBy
-
-
- LastModifiedByType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPoliciesPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPoliciesPropertiesFormat
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPoliciesPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPoliciesPropertiesFormat
@@ -336,9 +326,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPolicyDestination
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPolicyDestination
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPolicyDestination
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPolicyDestination
@@ -358,9 +348,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionPolicyPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionPolicyPropertiesFormat
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionPolicyPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionPolicyPropertiesFormat
@@ -380,9 +370,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionSourcesPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionSourcesPropertiesFormat
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionSourcesPropertiesFormat
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionSourcesPropertiesFormat
@@ -408,9 +398,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.Operation
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.Operation
@@ -442,9 +432,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationDisplay
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationDisplay
@@ -482,9 +472,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationListResult
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationListResult
@@ -504,9 +494,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ProxyResource
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ProxyResource
@@ -526,9 +516,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemData
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemData
@@ -572,9 +562,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObjectTags
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObjectTags
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObjectTags
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObjectTags
@@ -594,9 +584,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResource
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResource
@@ -622,9 +612,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceSystemData
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceSystemData
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceSystemData
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceSystemData
@@ -668,9 +658,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceTags
diff --git a/src/NetworkFunction/Az.NetworkFunction.psd1 b/src/NetworkFunction/Az.NetworkFunction.psd1
index 25981da2ea6b..c7fb1b40752e 100644
--- a/src/NetworkFunction/Az.NetworkFunction.psd1
+++ b/src/NetworkFunction/Az.NetworkFunction.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 6/24/2022
+# Generated on: 8/19/2022
#
@{
@@ -69,16 +69,15 @@ FormatsToProcess = './Az.NetworkFunction.format.ps1xml'
# NestedModules = @()
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
-FunctionsToExport = 'Get-AzNetworkFunctionAzureTrafficCollector',
- 'Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup',
- 'Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription',
- 'Get-AzNetworkFunctionCollectorPolicy',
- 'Get-AzNetworkFunctionOperation',
- 'New-AzNetworkFunctionAzureTrafficCollector',
+FunctionsToExport = 'Get-AzNetworkFunctionCollectorPolicy',
+ 'Get-AzNetworkFunctionTrafficCollector',
'New-AzNetworkFunctionCollectorPolicy',
- 'Remove-AzNetworkFunctionAzureTrafficCollector',
+ 'New-AzNetworkFunctionTrafficCollector',
'Remove-AzNetworkFunctionCollectorPolicy',
- 'Update-AzNetworkFunctionAzureTrafficCollectorTag'
+ 'Remove-AzNetworkFunctionTrafficCollector',
+ 'Update-AzNetworkFunctionCollectorPolicy',
+ 'Update-AzNetworkFunctionTrafficCollector',
+ 'Update-AzNetworkFunctionTrafficCollectorTag'
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
diff --git a/src/NetworkFunction/NetworkFunction.sln b/src/NetworkFunction/NetworkFunction.sln
index 324e2c40c657..994b9a97796e 100644
--- a/src/NetworkFunction/NetworkFunction.sln
+++ b/src/NetworkFunction/NetworkFunction.sln
@@ -3,17 +3,17 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{7F9C508A-6677-40A8-A626-45D50CE1CFEE}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{9F66BAC3-4094-4880-8C81-4C7B22EF2845}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{25B3822F-EEF3-43BE-B9EF-229B211B5FF3}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{3C0924D4-327F-4DDE-B5F8-F8340E1CD750}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{E6491B36-6B21-457A-A696-D7487F3D958C}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{03163694-F73A-43DF-859E-DB3677BF0CD7}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{C2810178-A88C-448E-8CAA-E8330965AE63}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.NetworkFunction", "Az.NetworkFunction.csproj", "{231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.NetworkFunction", "Az.NetworkFunction.csproj", "{3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -28,77 +28,77 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Debug|x64.ActiveCfg = Debug|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Debug|x64.Build.0 = Debug|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Debug|x86.ActiveCfg = Debug|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Debug|x86.Build.0 = Debug|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Release|Any CPU.Build.0 = Release|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Release|x64.ActiveCfg = Release|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Release|x64.Build.0 = Release|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Release|x86.ActiveCfg = Release|Any CPU
- {E2E2DBCE-B78C-4D0B-95C4-9EA67D96309C}.Release|x86.Build.0 = Release|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Debug|x64.ActiveCfg = Debug|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Debug|x64.Build.0 = Debug|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Debug|x86.ActiveCfg = Debug|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Debug|x86.Build.0 = Debug|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Release|Any CPU.Build.0 = Release|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Release|x64.ActiveCfg = Release|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Release|x64.Build.0 = Release|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Release|x86.ActiveCfg = Release|Any CPU
- {B1802359-6D04-4EF7-8BC6-4859FBDA3CCD}.Release|x86.Build.0 = Release|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Debug|x64.ActiveCfg = Debug|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Debug|x64.Build.0 = Debug|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Debug|x86.ActiveCfg = Debug|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Debug|x86.Build.0 = Debug|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Release|Any CPU.Build.0 = Release|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Release|x64.ActiveCfg = Release|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Release|x64.Build.0 = Release|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Release|x86.ActiveCfg = Release|Any CPU
- {9F66BAC3-4094-4880-8C81-4C7B22EF2845}.Release|x86.Build.0 = Release|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Debug|x64.ActiveCfg = Debug|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Debug|x64.Build.0 = Debug|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Debug|x86.ActiveCfg = Debug|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Debug|x86.Build.0 = Debug|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Release|Any CPU.Build.0 = Release|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Release|x64.ActiveCfg = Release|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Release|x64.Build.0 = Release|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Release|x86.ActiveCfg = Release|Any CPU
- {3C0924D4-327F-4DDE-B5F8-F8340E1CD750}.Release|x86.Build.0 = Release|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Debug|x64.ActiveCfg = Debug|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Debug|x64.Build.0 = Debug|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Debug|x86.ActiveCfg = Debug|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Debug|x86.Build.0 = Debug|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Release|Any CPU.Build.0 = Release|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Release|x64.ActiveCfg = Release|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Release|x64.Build.0 = Release|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Release|x86.ActiveCfg = Release|Any CPU
- {03163694-F73A-43DF-859E-DB3677BF0CD7}.Release|x86.Build.0 = Release|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Debug|x64.ActiveCfg = Debug|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Debug|x64.Build.0 = Debug|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Debug|x86.ActiveCfg = Debug|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Debug|x86.Build.0 = Debug|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Release|Any CPU.Build.0 = Release|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Release|x64.ActiveCfg = Release|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Release|x64.Build.0 = Release|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Release|x86.ActiveCfg = Release|Any CPU
- {231FD0D8-7E70-4B6E-8B11-3FE2278A9FFB}.Release|x86.Build.0 = Release|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Debug|x64.Build.0 = Debug|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Debug|x86.Build.0 = Debug|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Release|x64.ActiveCfg = Release|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Release|x64.Build.0 = Release|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Release|x86.ActiveCfg = Release|Any CPU
+ {B1EB56C0-97F4-49DE-8645-B3ADDC8BE57F}.Release|x86.Build.0 = Release|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Debug|x64.Build.0 = Debug|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Debug|x86.Build.0 = Debug|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Release|x64.ActiveCfg = Release|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Release|x64.Build.0 = Release|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Release|x86.ActiveCfg = Release|Any CPU
+ {7F9C508A-6677-40A8-A626-45D50CE1CFEE}.Release|x86.Build.0 = Release|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Debug|x64.Build.0 = Debug|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Debug|x86.Build.0 = Debug|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Release|x64.ActiveCfg = Release|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Release|x64.Build.0 = Release|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Release|x86.ActiveCfg = Release|Any CPU
+ {25B3822F-EEF3-43BE-B9EF-229B211B5FF3}.Release|x86.Build.0 = Release|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Debug|x64.Build.0 = Debug|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Debug|x86.Build.0 = Debug|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Release|x64.ActiveCfg = Release|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Release|x64.Build.0 = Release|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Release|x86.ActiveCfg = Release|Any CPU
+ {E6491B36-6B21-457A-A696-D7487F3D958C}.Release|x86.Build.0 = Release|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Debug|x64.Build.0 = Debug|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Debug|x86.Build.0 = Debug|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Release|x64.ActiveCfg = Release|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Release|x64.Build.0 = Release|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Release|x86.ActiveCfg = Release|Any CPU
+ {C2810178-A88C-448E-8CAA-E8330965AE63}.Release|x86.Build.0 = Release|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Debug|x64.Build.0 = Debug|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Debug|x86.Build.0 = Debug|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Release|x64.ActiveCfg = Release|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Release|x64.Build.0 = Release|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Release|x86.ActiveCfg = Release|Any CPU
+ {3E5CAA90-F1AC-414E-B5E2-DBA76382EB0D}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
diff --git a/src/NetworkFunction/README.md b/src/NetworkFunction/README.md
index 31fa5cdf9c35..2557263fda11 100644
--- a/src/NetworkFunction/README.md
+++ b/src/NetworkFunction/README.md
@@ -30,11 +30,11 @@ For information on how to develop for `Az.NetworkFunction`, see [how-to.md](how-
> see https://aka.ms/autorest
``` yaml
-branch: 2f47130d8fb333f55596ca9d149fbdceaff6f4be
+branch: 1cefdabe75c75323c6d3def3f6c80850c624bdea
require:
- $(this-folder)/../readme.azure.noprofile.md
input-file:
- - $(repo)/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json
+ - $(repo)/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/AzureTrafficCollector.json
module-version: 0.1.0
title: NetworkFunction
subject-prefix: $(service-name)
@@ -43,10 +43,20 @@ resourcegroup-append: true
nested-object-to-string: true
directive:
+ - where:
+ subject: ^AzureTrafficCollector(.*)
+ set:
+ subject: TrafficCollector$1
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
hide: true
+ - from: swagger-document
+ where: $.paths..operationId
+ transform: return $.replace(/^(AzureTrafficCollectors)(.+)(_List)$/, "$1$3$2")
+ - where:
+ subject: (.)*(Operation)$
+ hide: true
- where:
- verb: Set
+ verb: New|Set
hide: true
```
diff --git a/src/NetworkFunction/custom/New-AzNetworkFunctionCollectorPolicy.ps1 b/src/NetworkFunction/custom/New-AzNetworkFunctionCollectorPolicy.ps1
new file mode 100644
index 000000000000..148bbf160da6
--- /dev/null
+++ b/src/NetworkFunction/custom/New-AzNetworkFunctionCollectorPolicy.ps1
@@ -0,0 +1,178 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a Collector Policy resource
+.Description
+Creates or updates a Collector Policy resource
+.Example
+{{ Add code here }}
+.Example
+{{ Add code here }}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+EMISSIONPOLICY : Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+
+INGESTIONPOLICYINGESTIONSOURCE : Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
+.Link
+https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctioncollectorpolicy
+#>
+function New-AzNetworkFunctionCollectorPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${AzureTrafficCollectorName},
+
+ [Parameter(Mandatory)]
+ [Alias('CollectorPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Collector Policy Name
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]]
+ # Emission policies.
+ # To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table.
+ ${EmissionPolicy},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]]
+ # Ingestion Sources.
+ # To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table.
+ ${IngestionPolicyIngestionSource},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType]
+ # The ingestion type.
+ ${IngestionPolicyIngestionType},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+process {
+ try {
+ Az.NetworkFunction.internal\New-AzNetworkFunctionCollectorPolicy @PSBoundParameters
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/NetworkFunction/custom/New-AzNetworkFunctionTrafficCollector.ps1 b/src/NetworkFunction/custom/New-AzNetworkFunctionTrafficCollector.ps1
new file mode 100644
index 000000000000..17137be71a3c
--- /dev/null
+++ b/src/NetworkFunction/custom/New-AzNetworkFunctionTrafficCollector.ps1
@@ -0,0 +1,166 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a Azure Traffic Collector resource
+.Description
+Creates or updates a Azure Traffic Collector resource
+.Example
+{{ Add code here }}
+.Example
+{{ Add code here }}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+COLLECTORPOLICY : Collector Policies for Azure Traffic Collector.
+ [Location ]: Resource location.
+ [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
+ [SystemDataCreatedBy ]: The identity that created the resource.
+ [SystemDataCreatedByType ]: The type of identity that created the resource.
+ [SystemDataLastModifiedBy ]: The identity that last modified the resource.
+ [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [EmissionPolicy ]: Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+ [IngestionPolicyIngestionSource ]: Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
+ [IngestionPolicyIngestionType ]: The ingestion type.
+.Link
+https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctiontrafficcollector
+#>
+function New-AzNetworkFunctionTrafficCollector {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('AzureTrafficCollectorName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]]
+ # Collector Policies for Azure Traffic Collector.
+ # To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table.
+ ${CollectorPolicy},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+process {
+ try {
+ Az.NetworkFunction.internal\New-AzNetworkFunctionTrafficCollector @PSBoundParameters
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/NetworkFunction/custom/Update-AzNetworkFunctionCollectorPolicy.ps1 b/src/NetworkFunction/custom/Update-AzNetworkFunctionCollectorPolicy.ps1
new file mode 100644
index 000000000000..56ffbb44aa46
--- /dev/null
+++ b/src/NetworkFunction/custom/Update-AzNetworkFunctionCollectorPolicy.ps1
@@ -0,0 +1,174 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a Collector Policy resource
+.Description
+Creates or updates a Collector Policy resource
+.Example
+{{ Add code here }}
+.Example
+{{ Add code here }}
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy
+.Notes
+COMPLEX PARAMETER PROPERTIES
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+EMISSIONPOLICY : Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+INGESTIONPOLICYINGESTIONSOURCE : Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
+.Link
+https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctioncollectorpolicy
+#>
+function Update-AzNetworkFunctionCollectorPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${AzureTrafficCollectorName},
+
+ [Parameter(Mandatory)]
+ [Alias('CollectorPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Collector Policy Name
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]]
+ # Emission policies.
+ # To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table.
+ ${EmissionPolicy},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]]
+ # Ingestion Sources.
+ # To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table.
+ ${IngestionPolicyIngestionSource},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType]
+ # The ingestion type.
+ ${IngestionPolicyIngestionType},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+process {
+ try {
+ Az.NetworkFunction.internal\Set-AzNetworkFunctionCollectorPolicy @PSBoundParameters
+ } catch {
+ throw
+ }
+}
+}
\ No newline at end of file
diff --git a/src/NetworkFunction/custom/Update-AzNetworkFunctionTrafficCollector.ps1 b/src/NetworkFunction/custom/Update-AzNetworkFunctionTrafficCollector.ps1
new file mode 100644
index 000000000000..1c826060f80e
--- /dev/null
+++ b/src/NetworkFunction/custom/Update-AzNetworkFunctionTrafficCollector.ps1
@@ -0,0 +1,163 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a Azure Traffic Collector resource
+.Description
+Creates or updates a Azure Traffic Collector resource
+.Example
+{{ Add code here }}
+.Example
+{{ Add code here }}
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
+.Notes
+COMPLEX PARAMETER PROPERTIES
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+COLLECTORPOLICY : Collector Policies for Azure Traffic Collector.
+ [Location ]: Resource location.
+ [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
+ [SystemDataCreatedBy ]: The identity that created the resource.
+ [SystemDataCreatedByType ]: The type of identity that created the resource.
+ [SystemDataLastModifiedBy ]: The identity that last modified the resource.
+ [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [EmissionPolicy ]: Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+ [IngestionPolicyIngestionSource ]: Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
+ [IngestionPolicyIngestionType ]: The ingestion type.
+.Link
+https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctiontrafficcollector
+#>
+function Update-AzNetworkFunctionTrafficCollector {
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
+ [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ param(
+ [Parameter(Mandatory)]
+ [Alias('AzureTrafficCollectorName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]]
+ # Collector Policies for Azure Traffic Collector.
+ # To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table.
+ ${CollectorPolicy},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+ )
+
+ process {
+ try {
+ Az.NetworkFunction.internal\Set-AzNetworkFunctionTrafficCollector @PSBoundParameters
+ } catch {
+ throw
+ }
+ }
+ }
\ No newline at end of file
diff --git a/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollector.md b/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollector.md
deleted file mode 100644
index 6ee1a83db970..000000000000
--- a/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollector.md
+++ /dev/null
@@ -1,22 +0,0 @@
-### Example 1: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
diff --git a/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md b/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md
deleted file mode 100644
index 6ee1a83db970..000000000000
--- a/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md
+++ /dev/null
@@ -1,22 +0,0 @@
-### Example 1: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
diff --git a/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md b/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md
deleted file mode 100644
index 6ee1a83db970..000000000000
--- a/src/NetworkFunction/examples/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md
+++ /dev/null
@@ -1,22 +0,0 @@
-### Example 1: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
diff --git a/src/NetworkFunction/examples/Get-AzNetworkFunctionCollectorPolicy.md b/src/NetworkFunction/examples/Get-AzNetworkFunctionCollectorPolicy.md
index 6ee1a83db970..74239e4019a6 100644
--- a/src/NetworkFunction/examples/Get-AzNetworkFunctionCollectorPolicy.md
+++ b/src/NetworkFunction/examples/Get-AzNetworkFunctionCollectorPolicy.md
@@ -1,22 +1,35 @@
-### Example 1: {{ Add title here }}
+### Example 1: Get list of collector policies by atc name and resource group
```powershell
-{{ Add code here }}
+Get-AzNetworkFunctionCollectorPolicy -AzureTrafficCollectorName test -resourcegroupname test | Format-List
```
```output
-{{ Add output here }}
+Name : cp1
+Etag : cf0336a2-7454-4aa4-add9-1de3e2291143
+Id : /subscriptions/subid/resourceGroups/test/providers/Microsoft.NetworkFunction/azureTrafficCollectors/test/collectorPolicies/cp1
+Type : Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies
+Properties : {
+ "ingestionPolicy": {
+ "ingestionType": "IPFIX",
+ "ingestionSources": [
+ {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName",
+ "sourceType": "Resource"
+ }
+ ]
+ },
+ "emissionPolicies": [
+ {
+ "emissionType": "IPFIX",
+ "emissionDestinations": [
+ {
+ "destinationType": "AzureMonitor"
+ }
+ ]
+ }
+ ],
+ "provisioningState": "Succeeded"
+ }
```
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
+This cmdlet gets list of traffic collector policies by atc name and resource group.
diff --git a/src/NetworkFunction/examples/Get-AzNetworkFunctionOperation.md b/src/NetworkFunction/examples/Get-AzNetworkFunctionOperation.md
deleted file mode 100644
index 6ee1a83db970..000000000000
--- a/src/NetworkFunction/examples/Get-AzNetworkFunctionOperation.md
+++ /dev/null
@@ -1,22 +0,0 @@
-### Example 1: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
diff --git a/src/NetworkFunction/examples/Get-AzNetworkFunctionTrafficCollector.md b/src/NetworkFunction/examples/Get-AzNetworkFunctionTrafficCollector.md
new file mode 100644
index 000000000000..494de1606134
--- /dev/null
+++ b/src/NetworkFunction/examples/Get-AzNetworkFunctionTrafficCollector.md
@@ -0,0 +1,62 @@
+### Example 1: Get list of traffic collectors in selected subscription
+```powershell
+Get-AzNetworkFunctionTrafficCollector | Format-List
+```
+
+```output
+CollectorPolicies : {}
+Etag : cf0336a2-7454-4aa4-add9-1de3e2291143
+Id : /subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/atcTest/providers/Microsoft.NetworkFunction/azureTrafficCollectors/pstestjuly18
+Location : eastus
+Name : pstestjuly18
+ProvisioningState : Failed
+Tags : Microsoft.Azure.PowerShell.Cmdlets.AzureTrafficCollector.Models.ResourceTags
+Type : Microsoft.NetworkFunction/AzureTrafficCollectors
+
+CollectorPolicies : {}
+Etag : cedea0e9-e9e4-4b2e-816f-dad184d6b424
+Id : /subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/atcTest/providers/Microsoft.NetworkFunction/azureTrafficCollectors/newpsatc
+Location : eastus
+Name : newpsatc
+ProvisioningState : Succeeded
+Tags : Microsoft.Azure.PowerShell.Cmdlets.AzureTrafficCollector.Models.ResourceTags
+Type : Microsoft.NetworkFunction/AzureTrafficCollectors
+```
+
+This cmdlet gets list of traffic collectors in selected subscription.
+
+### Example 2: Get list of traffic collectors by resource group
+```powershell
+Get-AzNetworkFunctionTrafficCollector -ResourceGroupName test | Format-List
+```
+
+```output
+CollectorPolicies : {}
+Etag : cedea0e9-e9e4-4b2e-816f-dad184d6b424
+Id : /subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/test/providers/Microsoft.NetworkFunction/azureTrafficCollectors/newpsatc
+Location : eastus
+Name : newpsatc
+ProvisioningState : Succeeded
+Tags : Microsoft.Azure.PowerShell.Cmdlets.AzureTrafficCollector.Models.ResourceTags
+Type : Microsoft.NetworkFunction/AzureTrafficCollectors
+```
+
+This cmdlet gets list of traffic collectors by resource group.
+
+### Example 3: Get list of traffic collectors by name
+```powershell
+Get-AzNetworkFunctionTrafficCollector -ResourceGroupName test -name test | Format-List
+```
+
+```output
+CollectorPolicies : {}
+Etag : cedea0e9-e9e4-4b2e-816f-dad184d6b424
+Id : /subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/test/providers/Microsoft.NetworkFunction/azureTrafficCollectors/test
+Location : eastus
+Name : newpsatc
+ProvisioningState : Succeeded
+Tags : Microsoft.Azure.PowerShell.Cmdlets.AzureTrafficCollector.Models.ResourceTags
+Type : Microsoft.NetworkFunction/AzureTrafficCollectors
+```
+
+This cmdlet gets list of traffic collectors by name.
diff --git a/src/NetworkFunction/examples/New-AzNetworkFunctionAzureTrafficCollector.md b/src/NetworkFunction/examples/New-AzNetworkFunctionAzureTrafficCollector.md
deleted file mode 100644
index 6ee1a83db970..000000000000
--- a/src/NetworkFunction/examples/New-AzNetworkFunctionAzureTrafficCollector.md
+++ /dev/null
@@ -1,22 +0,0 @@
-### Example 1: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
diff --git a/src/NetworkFunction/examples/New-AzNetworkFunctionCollectorPolicy.md b/src/NetworkFunction/examples/New-AzNetworkFunctionCollectorPolicy.md
index 6ee1a83db970..5a224622b7f7 100644
--- a/src/NetworkFunction/examples/New-AzNetworkFunctionCollectorPolicy.md
+++ b/src/NetworkFunction/examples/New-AzNetworkFunctionCollectorPolicy.md
@@ -1,22 +1,35 @@
-### Example 1: {{ Add title here }}
+### Example 1: Create a new traffic collector policy
```powershell
-{{ Add code here }}
+New-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List
```
```output
-{{ Add output here }}
+Name : cp1
+Etag : cf0336a2-7454-4aa4-add9-1de3e2291143
+Id : /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc/collectorPolicies/cp1
+Type : Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies
+Properties : {
+ "ingestionPolicy": {
+ "ingestionType": "IPFIX",
+ "ingestionSources": [
+ {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName",
+ "sourceType": "Resource"
+ }
+ ]
+ },
+ "emissionPolicies": [
+ {
+ "emissionType": "IPFIX",
+ "emissionDestinations": [
+ {
+ "destinationType": "AzureMonitor"
+ }
+ ]
+ }
+ ],
+ "provisioningState": "Succeeded"
+ }
```
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
+This cmdlet creates a new traffic collector policy.
\ No newline at end of file
diff --git a/src/NetworkFunction/examples/New-AzNetworkFunctionTrafficCollector.md b/src/NetworkFunction/examples/New-AzNetworkFunctionTrafficCollector.md
new file mode 100644
index 000000000000..6cc1ec2b9a41
--- /dev/null
+++ b/src/NetworkFunction/examples/New-AzNetworkFunctionTrafficCollector.md
@@ -0,0 +1,17 @@
+### Example 1: Create a new traffic collector
+```powershell
+New-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List
+```
+
+```output
+CollectorPolicies : {}
+Etag : cf0336a2-7454-4aa4-add9-1de3e2291143
+Id : /subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/test/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atctestps
+Location : eastus
+Name : atctestps
+ProvisioningState : Succeeded
+Tags : Microsoft.Azure.PowerShell.Cmdlets.AzureTrafficCollector.Models.ResourceTags
+Type : Microsoft.NetworkFunction/AzureTrafficCollectors
+```
+
+This cmdlet creates a new traffic collector.
\ No newline at end of file
diff --git a/src/NetworkFunction/examples/Remove-AzNetworkFunctionAzureTrafficCollector.md b/src/NetworkFunction/examples/Remove-AzNetworkFunctionAzureTrafficCollector.md
deleted file mode 100644
index 6ee1a83db970..000000000000
--- a/src/NetworkFunction/examples/Remove-AzNetworkFunctionAzureTrafficCollector.md
+++ /dev/null
@@ -1,22 +0,0 @@
-### Example 1: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
diff --git a/src/NetworkFunction/examples/Remove-AzNetworkFunctionCollectorPolicy.md b/src/NetworkFunction/examples/Remove-AzNetworkFunctionCollectorPolicy.md
index 6ee1a83db970..cd862f7607da 100644
--- a/src/NetworkFunction/examples/Remove-AzNetworkFunctionCollectorPolicy.md
+++ b/src/NetworkFunction/examples/Remove-AzNetworkFunctionCollectorPolicy.md
@@ -1,22 +1,6 @@
-### Example 1: {{ Add title here }}
+### Example 1: Delete a new traffic collector policy
```powershell
-{{ Add code here }}
+Remove-AzNetworkFunctionCollectorPolicy -azuretrafficcollectorname atctestps -collectorpolicyname cp1 -resourcegroupname test
```
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
+This cmdlet deletes a traffic collector policy.
\ No newline at end of file
diff --git a/src/NetworkFunction/examples/Remove-AzNetworkFunctionTrafficCollector.md b/src/NetworkFunction/examples/Remove-AzNetworkFunctionTrafficCollector.md
new file mode 100644
index 000000000000..ebcd7e0775dd
--- /dev/null
+++ b/src/NetworkFunction/examples/Remove-AzNetworkFunctionTrafficCollector.md
@@ -0,0 +1,6 @@
+### Example 1: Delete a new traffic collector
+```powershell
+Remove-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname SEA-Cust10
+```
+
+This cmdlet deletes a traffic collector.
diff --git a/src/NetworkFunction/examples/Update-AzNetworkFunctionAzureTrafficCollectorTag.md b/src/NetworkFunction/examples/Update-AzNetworkFunctionAzureTrafficCollectorTag.md
deleted file mode 100644
index 6ee1a83db970..000000000000
--- a/src/NetworkFunction/examples/Update-AzNetworkFunctionAzureTrafficCollectorTag.md
+++ /dev/null
@@ -1,22 +0,0 @@
-### Example 1: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
-### Example 2: {{ Add title here }}
-```powershell
-{{ Add code here }}
-```
-
-```output
-{{ Add output here }}
-```
-
-{{ Add description here }}
-
diff --git a/src/NetworkFunction/examples/Update-AzNetworkFunctionCollectorPolicy.md b/src/NetworkFunction/examples/Update-AzNetworkFunctionCollectorPolicy.md
new file mode 100644
index 000000000000..c301ce80d6a5
--- /dev/null
+++ b/src/NetworkFunction/examples/Update-AzNetworkFunctionCollectorPolicy.md
@@ -0,0 +1,35 @@
+### Example 1: Update a traffic collector policy
+```powershell
+Update-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List
+```
+
+```output
+Name : cp1
+Etag : cf0336a2-7454-4aa4-add9-1de3e2291143
+Id : /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc/collectorPolicies/cp1
+Type : Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies
+Properties : {
+ "ingestionPolicy": {
+ "ingestionType": "IPFIX",
+ "ingestionSources": [
+ {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName",
+ "sourceType": "Resource"
+ }
+ ]
+ },
+ "emissionPolicies": [
+ {
+ "emissionType": "IPFIX",
+ "emissionDestinations": [
+ {
+ "destinationType": "AzureMonitor"
+ }
+ ]
+ }
+ ],
+ "provisioningState": "Succeeded"
+ }
+```
+
+This cmdlet updates a traffic collector policy.
\ No newline at end of file
diff --git a/src/NetworkFunction/examples/Update-AzNetworkFunctionTrafficCollector.md b/src/NetworkFunction/examples/Update-AzNetworkFunctionTrafficCollector.md
new file mode 100644
index 000000000000..49caf2308707
--- /dev/null
+++ b/src/NetworkFunction/examples/Update-AzNetworkFunctionTrafficCollector.md
@@ -0,0 +1,17 @@
+### Example 1: Updates a traffic collector
+```powershell
+Update-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List
+```
+
+```output
+CollectorPolicies : {}
+Etag : cf0336a2-7454-4aa4-add9-1de3e2291143
+Id : /subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/test/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atctestps
+Location : eastus
+Name : atctestps
+ProvisioningState : Succeeded
+Tags : Microsoft.Azure.PowerShell.Cmdlets.AzureTrafficCollector.Models.ResourceTags
+Type : Microsoft.NetworkFunction/AzureTrafficCollectors
+```
+
+This cmdlet updates a traffic collector.
\ No newline at end of file
diff --git a/src/NetworkFunction/examples/Update-AzNetworkFunctionTrafficCollectorTag.md b/src/NetworkFunction/examples/Update-AzNetworkFunctionTrafficCollectorTag.md
new file mode 100644
index 000000000000..902ece7d6533
--- /dev/null
+++ b/src/NetworkFunction/examples/Update-AzNetworkFunctionTrafficCollectorTag.md
@@ -0,0 +1,22 @@
+### Example 1: Updates a traffic collector tag
+```powershell
+Update-AzNetworkFunctionTrafficCollectorTag -azuretrafficcollectorname atc -resourcegroupname rg1 | Format-List
+```
+
+```output
+Name : atc
+Etag : cf0336a2-7454-4aa4-add9-1de3e2291143
+Id : /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc
+Type : Microsoft.NetworkFunction/azureTrafficCollectors
+Location : West US
+Tags : {
+ "key1": "value1",
+ "key2": "value2"
+ }
+Properties : {
+ "collectorPolicies": [],
+ "provisioningState": "Succeeded"
+ }
+```
+
+This cmdlet updates a traffic collector tag.
\ No newline at end of file
diff --git a/src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.ps1 b/src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.ps1
deleted file mode 100644
index b462ff4ddf7c..000000000000
--- a/src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.ps1
+++ /dev/null
@@ -1,172 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
-# is regenerated.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Return list of Azure Traffic Collectors in a Resource Group
-.Description
-Return list of Azure Traffic Collectors in a Resource Group
-.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
-.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollectorsbyresourcegroup
-#>
-function Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
-param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [System.String]
- # The name of the resource group.
- ${ResourceGroupName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
- # Azure Subscription ID.
- ${SubscriptionId},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List';
- }
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.ps1 b/src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.ps1
deleted file mode 100644
index 826a8e1f757d..000000000000
--- a/src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.ps1
+++ /dev/null
@@ -1,166 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
-# is regenerated.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Return list of Azure Traffic Collectors in a subscription
-.Description
-Return list of Azure Traffic Collectors in a subscription
-.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
-.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollectorsbysubscription
-#>
-function Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
-param(
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
- # Azure Subscription ID.
- ${SubscriptionId},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription_List';
- }
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/src/NetworkFunction/exports/Get-AzNetworkFunctionCollectorPolicy.ps1 b/src/NetworkFunction/exports/Get-AzNetworkFunctionCollectorPolicy.ps1
index 5f9674b7c80a..2a0e4ce628d6 100644
--- a/src/NetworkFunction/exports/Get-AzNetworkFunctionCollectorPolicy.ps1
+++ b/src/NetworkFunction/exports/Get-AzNetworkFunctionCollectorPolicy.ps1
@@ -20,14 +20,12 @@ Gets the collector policy in a specified Traffic Collector
.Description
Gets the collector policy in a specified Traffic Collector
.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
+Get-AzNetworkFunctionCollectorPolicy -AzureTrafficCollectorName test -resourcegroupname test | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -43,7 +41,7 @@ INPUTOBJECT : Identity Parameter
https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctioncollectorpolicy
#>
function Get-AzNetworkFunctionCollectorPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollector.ps1 b/src/NetworkFunction/exports/Get-AzNetworkFunctionTrafficCollector.ps1
similarity index 89%
rename from src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollector.ps1
rename to src/NetworkFunction/exports/Get-AzNetworkFunctionTrafficCollector.ps1
index ef20ea1179d6..deb2d688e68b 100644
--- a/src/NetworkFunction/exports/Get-AzNetworkFunctionAzureTrafficCollector.ps1
+++ b/src/NetworkFunction/exports/Get-AzNetworkFunctionTrafficCollector.ps1
@@ -20,14 +20,16 @@ Gets the specified Azure Traffic Collector in a specified resource group
.Description
Gets the specified Azure Traffic Collector in a specified resource group
.Example
-{{ Add code here }}
+Get-AzNetworkFunctionTrafficCollector | Format-List
.Example
-{{ Add code here }}
+Get-AzNetworkFunctionTrafficCollector -ResourceGroupName test | Format-List
+.Example
+Get-AzNetworkFunctionTrafficCollector -ResourceGroupName test -name test | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -40,11 +42,11 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group.
[SubscriptionId ]: Azure Subscription ID.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollector
+https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctiontrafficcollector
#>
-function Get-AzNetworkFunctionAzureTrafficCollector {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
-[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+function Get-AzNetworkFunctionTrafficCollector {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Alias('AzureTrafficCollectorName')]
@@ -54,12 +56,15 @@ param(
${Name},
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# The name of the resource group.
${ResourceGroupName},
[Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
@@ -147,10 +152,12 @@ begin {
}
$mapping = @{
- Get = 'Az.NetworkFunction.private\Get-AzNetworkFunctionAzureTrafficCollector_Get';
- GetViaIdentity = 'Az.NetworkFunction.private\Get-AzNetworkFunctionAzureTrafficCollector_GetViaIdentity';
+ Get = 'Az.NetworkFunction.private\Get-AzNetworkFunctionTrafficCollector_Get';
+ GetViaIdentity = 'Az.NetworkFunction.private\Get-AzNetworkFunctionTrafficCollector_GetViaIdentity';
+ List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionTrafficCollector_List';
+ List1 = 'Az.NetworkFunction.private\Get-AzNetworkFunctionTrafficCollector_List1';
}
- if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
diff --git a/src/NetworkFunction/exports/New-AzNetworkFunctionCollectorPolicy.ps1 b/src/NetworkFunction/exports/New-AzNetworkFunctionCollectorPolicy.ps1
index c192dae0e21d..591e87ad3651 100644
--- a/src/NetworkFunction/exports/New-AzNetworkFunctionCollectorPolicy.ps1
+++ b/src/NetworkFunction/exports/New-AzNetworkFunctionCollectorPolicy.ps1
@@ -20,12 +20,10 @@ Creates or updates a Collector Policy resource
.Description
Creates or updates a Collector Policy resource
.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
+New-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -43,7 +41,7 @@ INGESTIONPOLICYINGESTIONSOURCE : Ingestion
https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctioncollectorpolicy
#>
function New-AzNetworkFunctionCollectorPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -72,10 +70,16 @@ param(
# Azure Subscription ID.
${SubscriptionId},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]]
# Emission policies.
# To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table.
${EmissionPolicy},
@@ -83,7 +87,7 @@ param(
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]]
# Ingestion Sources.
# To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table.
${IngestionPolicyIngestionSource},
@@ -95,6 +99,13 @@ param(
# The ingestion type.
${IngestionPolicyIngestionType},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -181,7 +192,7 @@ begin {
}
$mapping = @{
- CreateExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateExpanded';
+ CreateExpanded = 'Az.NetworkFunction.custom\New-AzNetworkFunctionCollectorPolicy';
}
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
diff --git a/src/NetworkFunction/exports/New-AzNetworkFunctionAzureTrafficCollector.ps1 b/src/NetworkFunction/exports/New-AzNetworkFunctionTrafficCollector.ps1
similarity index 93%
rename from src/NetworkFunction/exports/New-AzNetworkFunctionAzureTrafficCollector.ps1
rename to src/NetworkFunction/exports/New-AzNetworkFunctionTrafficCollector.ps1
index 473434ea1de4..220e9b7743ef 100644
--- a/src/NetworkFunction/exports/New-AzNetworkFunctionAzureTrafficCollector.ps1
+++ b/src/NetworkFunction/exports/New-AzNetworkFunctionTrafficCollector.ps1
@@ -20,18 +20,24 @@ Creates or updates a Azure Traffic Collector resource
.Description
Creates or updates a Azure Traffic Collector resource
.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
+New-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
COLLECTORPOLICY : Collector Policies for Azure Traffic Collector.
+ [Location ]: Resource location.
+ [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
+ [SystemDataCreatedBy ]: The identity that created the resource.
+ [SystemDataCreatedByType ]: The type of identity that created the resource.
+ [SystemDataLastModifiedBy ]: The identity that last modified the resource.
+ [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
[EmissionPolicy ]: Emission policies.
[EmissionDestination ]: Emission policy destinations.
[DestinationType ]: Emission destination type.
@@ -40,16 +46,11 @@ COLLECTORPOLICY : Collector Policies for Azure Traffic Colle
[ResourceId ]: Resource ID.
[SourceType ]: Ingestion source type.
[IngestionPolicyIngestionType ]: The ingestion type.
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedBy ]: The identity that last modified the resource.
- [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctionazuretrafficcollector
+https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctiontrafficcollector
#>
-function New-AzNetworkFunctionAzureTrafficCollector {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
+function New-AzNetworkFunctionTrafficCollector {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -72,23 +73,23 @@ param(
# Azure Subscription ID.
${SubscriptionId},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]]
# Collector Policies for Azure Traffic Collector.
# To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table.
${CollectorPolicy},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [System.String]
- # Resource location.
- ${Location},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -179,7 +180,7 @@ begin {
}
$mapping = @{
- CreateExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionAzureTrafficCollector_CreateExpanded';
+ CreateExpanded = 'Az.NetworkFunction.custom\New-AzNetworkFunctionTrafficCollector';
}
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
diff --git a/src/NetworkFunction/exports/ProxyCmdletDefinitions.ps1 b/src/NetworkFunction/exports/ProxyCmdletDefinitions.ps1
index 0686762cdc25..301c8a5cae62 100644
--- a/src/NetworkFunction/exports/ProxyCmdletDefinitions.ps1
+++ b/src/NetworkFunction/exports/ProxyCmdletDefinitions.ps1
@@ -16,36 +16,70 @@
<#
.Synopsis
-Return list of Azure Traffic Collectors in a Resource Group
+Gets the collector policy in a specified Traffic Collector
.Description
-Return list of Azure Traffic Collectors in a Resource Group
-.Example
-{{ Add code here }}
+Gets the collector policy in a specified Traffic Collector
.Example
-{{ Add code here }}
+Get-AzNetworkFunctionCollectorPolicy -AzureTrafficCollectorName test -resourcegroupname test | Format-List
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AzureTrafficCollectorName ]: Azure Traffic Collector name
+ [CollectorPolicyName ]: Collector Policy Name
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: Azure Subscription ID.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollectorsbyresourcegroup
+https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctioncollectorpolicy
#>
-function Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
+function Get-AzNetworkFunctionCollectorPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${AzureTrafficCollectorName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('CollectorPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Collector Policy Name
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# The name of the resource group.
${ResourceGroupName},
- [Parameter()]
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# Azure Subscription ID.
${SubscriptionId},
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -120,9 +154,11 @@ begin {
}
$mapping = @{
- List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List';
+ Get = 'Az.NetworkFunction.private\Get-AzNetworkFunctionCollectorPolicy_Get';
+ GetViaIdentity = 'Az.NetworkFunction.private\Get-AzNetworkFunctionCollectorPolicy_GetViaIdentity';
+ List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionCollectorPolicy_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -173,30 +209,68 @@ end {
<#
.Synopsis
-Return list of Azure Traffic Collectors in a subscription
+Gets the specified Azure Traffic Collector in a specified resource group
.Description
-Return list of Azure Traffic Collectors in a subscription
+Gets the specified Azure Traffic Collector in a specified resource group
+.Example
+Get-AzNetworkFunctionTrafficCollector | Format-List
.Example
-{{ Add code here }}
+Get-AzNetworkFunctionTrafficCollector -ResourceGroupName test | Format-List
.Example
-{{ Add code here }}
+Get-AzNetworkFunctionTrafficCollector -ResourceGroupName test -name test | Format-List
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AzureTrafficCollectorName ]: Azure Traffic Collector name
+ [CollectorPolicyName ]: Collector Policy Name
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: Azure Subscription ID.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollectorsbysubscription
+https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctiontrafficcollector
#>
-function Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
+function Get-AzNetworkFunctionTrafficCollector {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter()]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('AzureTrafficCollectorName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# Azure Subscription ID.
${SubscriptionId},
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -271,9 +345,12 @@ begin {
}
$mapping = @{
- List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription_List';
+ Get = 'Az.NetworkFunction.private\Get-AzNetworkFunctionTrafficCollector_Get';
+ GetViaIdentity = 'Az.NetworkFunction.private\Get-AzNetworkFunctionTrafficCollector_GetViaIdentity';
+ List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionTrafficCollector_List';
+ List1 = 'Az.NetworkFunction.private\Get-AzNetworkFunctionTrafficCollector_List1';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -324,18 +401,16 @@ end {
<#
.Synopsis
-Gets the specified Azure Traffic Collector in a specified resource group
+Deletes a specified Collector Policy resource.
.Description
-Gets the specified Azure Traffic Collector in a specified resource group
-.Example
-{{ Add code here }}
+Deletes a specified Collector Policy resource.
.Example
-{{ Add code here }}
+Remove-AzNetworkFunctionCollectorPolicy -azuretrafficcollectorname atctestps -collectorpolicyname cp1 -resourcegroupname test
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
+System.Boolean
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -348,33 +423,39 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group.
[SubscriptionId ]: Azure Subscription ID.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollector
+https://docs.microsoft.com/powershell/module/az.networkfunction/remove-aznetworkfunctioncollectorpolicy
#>
-function Get-AzNetworkFunctionAzureTrafficCollector {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
-[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+function Remove-AzNetworkFunctionCollectorPolicy {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('AzureTrafficCollectorName')]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# Azure Traffic Collector name
+ ${AzureTrafficCollectorName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('CollectorPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Collector Policy Name
${Name},
- [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# The name of the resource group.
${ResourceGroupName},
- [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='Delete')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
+ [System.String]
# Azure Subscription ID.
${SubscriptionId},
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity]
# Identity Parameter
@@ -389,6 +470,12 @@ param(
# The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -409,6 +496,18 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
[System.Uri]
@@ -455,10 +554,10 @@ begin {
}
$mapping = @{
- Get = 'Az.NetworkFunction.private\Get-AzNetworkFunctionAzureTrafficCollector_Get';
- GetViaIdentity = 'Az.NetworkFunction.private\Get-AzNetworkFunctionAzureTrafficCollector_GetViaIdentity';
+ Delete = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionCollectorPolicy_Delete';
+ DeleteViaIdentity = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionCollectorPolicy_DeleteViaIdentity';
}
- if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -509,18 +608,16 @@ end {
<#
.Synopsis
-Gets the collector policy in a specified Traffic Collector
+Deletes a specified Azure Traffic Collector resource.
.Description
-Gets the collector policy in a specified Traffic Collector
-.Example
-{{ Add code here }}
+Deletes a specified Azure Traffic Collector resource.
.Example
-{{ Add code here }}
+Remove-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname SEA-Cust10
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy
+System.Boolean
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -533,42 +630,33 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group.
[SubscriptionId ]: Azure Subscription ID.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctioncollectorpolicy
+https://docs.microsoft.com/powershell/module/az.networkfunction/remove-aznetworkfunctiontrafficcollector
#>
-function Get-AzNetworkFunctionCollectorPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+function Remove-AzNetworkFunctionTrafficCollector {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('AzureTrafficCollectorName')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# Azure Traffic Collector name
- ${AzureTrafficCollectorName},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('CollectorPolicyName')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [System.String]
- # Collector Policy Name
${Name},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# The name of the resource group.
${ResourceGroupName},
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='Delete')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
+ [System.String]
# Azure Subscription ID.
${SubscriptionId},
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity]
# Identity Parameter
@@ -583,6 +671,12 @@ param(
# The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -603,6 +697,18 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
[System.Uri]
@@ -649,11 +755,10 @@ begin {
}
$mapping = @{
- Get = 'Az.NetworkFunction.private\Get-AzNetworkFunctionCollectorPolicy_Get';
- GetViaIdentity = 'Az.NetworkFunction.private\Get-AzNetworkFunctionCollectorPolicy_GetViaIdentity';
- List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionCollectorPolicy_List';
+ Delete = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionTrafficCollector_Delete';
+ DeleteViaIdentity = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionTrafficCollector_DeleteViaIdentity';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -704,23 +809,67 @@ end {
<#
.Synopsis
-Lists all of the available NetworkFunction Rest API operations.
+Updates the specified Azure Traffic Collector tags.
.Description
-Lists all of the available NetworkFunction Rest API operations.
-.Example
-{{ Add code here }}
+Updates the specified Azure Traffic Collector tags.
.Example
-{{ Add code here }}
+Update-AzNetworkFunctionTrafficCollectorTag -azuretrafficcollectorname atc -resourcegroupname rg1 | Format-List
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AzureTrafficCollectorName ]: Azure Traffic Collector name
+ [CollectorPolicyName ]: Collector Policy Name
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: Azure Subscription ID.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionoperation
+https://docs.microsoft.com/powershell/module/az.networkfunction/update-aznetworkfunctiontrafficcollectortag
#>
-function Get-AzNetworkFunctionOperation {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+function Update-AzNetworkFunctionTrafficCollectorTag {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${AzureTrafficCollectorName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -795,7 +944,11 @@ begin {
}
$mapping = @{
- List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionOperation_List';
+ UpdateExpanded = 'Az.NetworkFunction.private\Update-AzNetworkFunctionTrafficCollectorTag_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.NetworkFunction.private\Update-AzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded';
+ }
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -845,232 +998,14 @@ end {
<#
.Synopsis
-Creates or updates a Azure Traffic Collector resource
+Creates or updates a Collector Policy resource
.Description
-Creates or updates a Azure Traffic Collector resource
-.Example
-{{ Add code here }}
+Creates or updates a Collector Policy resource
.Example
-{{ Add code here }}
+New-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-COLLECTORPOLICY : Collector Policies for Azure Traffic Collector.
- [EmissionPolicy ]: Emission policies.
- [EmissionDestination ]: Emission policy destinations.
- [DestinationType ]: Emission destination type.
- [EmissionType ]: Emission format type.
- [IngestionPolicyIngestionSource ]: Ingestion Sources.
- [ResourceId ]: Resource ID.
- [SourceType ]: Ingestion source type.
- [IngestionPolicyIngestionType ]: The ingestion type.
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedBy ]: The identity that last modified the resource.
- [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
-.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctionazuretrafficcollector
-#>
-function New-AzNetworkFunctionAzureTrafficCollector {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(Mandatory)]
- [Alias('AzureTrafficCollectorName')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [System.String]
- # Azure Traffic Collector name
- ${Name},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [System.String]
- # The name of the resource group.
- ${ResourceGroupName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # Azure Subscription ID.
- ${SubscriptionId},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[]]
- # Collector Policies for Azure Traffic Collector.
- # To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table.
- ${CollectorPolicy},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [System.String]
- # Resource location.
- ${Location},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- CreateExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionAzureTrafficCollector_CreateExpanded';
- }
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
-
-<#
-.Synopsis
-Creates or updates a Collector Policy resource
-.Description
-Creates or updates a Collector Policy resource
-.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1088,7 +1023,7 @@ INGESTIONPOLICYINGESTIONSOURCE : Ingestion
https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctioncollectorpolicy
#>
function New-AzNetworkFunctionCollectorPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -1117,10 +1052,16 @@ param(
# Azure Subscription ID.
${SubscriptionId},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]]
# Emission policies.
# To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table.
${EmissionPolicy},
@@ -1128,7 +1069,7 @@ param(
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]]
# Ingestion Sources.
# To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table.
${IngestionPolicyIngestionSource},
@@ -1140,6 +1081,13 @@ param(
# The ingestion type.
${IngestionPolicyIngestionType},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1226,7 +1174,7 @@ begin {
}
$mapping = @{
- CreateExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateExpanded';
+ CreateExpanded = 'Az.NetworkFunction.custom\New-AzNetworkFunctionCollectorPolicy';
}
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
@@ -1279,62 +1227,83 @@ end {
<#
.Synopsis
-Deletes a specified Azure Traffic Collector resource.
+Creates or updates a Azure Traffic Collector resource
.Description
-Deletes a specified Azure Traffic Collector resource.
-.Example
-{{ Add code here }}
+Creates or updates a Azure Traffic Collector resource
.Example
-{{ Add code here }}
+New-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-System.Boolean
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
- [AzureTrafficCollectorName ]: Azure Traffic Collector name
- [CollectorPolicyName ]: Collector Policy Name
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group.
- [SubscriptionId ]: Azure Subscription ID.
+COLLECTORPOLICY : Collector Policies for Azure Traffic Collector.
+ [Location ]: Resource location.
+ [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
+ [SystemDataCreatedBy ]: The identity that created the resource.
+ [SystemDataCreatedByType ]: The type of identity that created the resource.
+ [SystemDataLastModifiedBy ]: The identity that last modified the resource.
+ [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [EmissionPolicy ]: Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+ [IngestionPolicyIngestionSource ]: Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
+ [IngestionPolicyIngestionType ]: The ingestion type.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/remove-aznetworkfunctionazuretrafficcollector
+https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctiontrafficcollector
#>
-function Remove-AzNetworkFunctionAzureTrafficCollector {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function New-AzNetworkFunctionTrafficCollector {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(Mandatory)]
[Alias('AzureTrafficCollectorName')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# Azure Traffic Collector name
${Name},
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# The name of the resource group.
${ResourceGroupName},
- [Parameter(ParameterSetName='Delete')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# Azure Subscription ID.
${SubscriptionId},
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]]
+ # Collector Policies for Azure Traffic Collector.
+ # To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table.
+ ${CollectorPolicy},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -1376,12 +1345,6 @@ param(
# Run the command asynchronously
${NoWait},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
[System.Uri]
@@ -1428,10 +1391,9 @@ begin {
}
$mapping = @{
- Delete = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionAzureTrafficCollector_Delete';
- DeleteViaIdentity = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity';
+ CreateExpanded = 'Az.NetworkFunction.custom\New-AzNetworkFunctionTrafficCollector';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -1482,68 +1444,95 @@ end {
<#
.Synopsis
-Deletes a specified Collector Policy resource.
+Creates or updates a Collector Policy resource
.Description
-Deletes a specified Collector Policy resource.
-.Example
-{{ Add code here }}
+Creates or updates a Collector Policy resource
.Example
-{{ Add code here }}
+Update-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-System.Boolean
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
- [AzureTrafficCollectorName ]: Azure Traffic Collector name
- [CollectorPolicyName ]: Collector Policy Name
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group.
- [SubscriptionId ]: Azure Subscription ID.
+EMISSIONPOLICY : Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+
+INGESTIONPOLICYINGESTIONSOURCE : Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/remove-aznetworkfunctioncollectorpolicy
+https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctioncollectorpolicy
#>
-function Remove-AzNetworkFunctionCollectorPolicy {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Update-AzNetworkFunctionCollectorPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# Azure Traffic Collector name
${AzureTrafficCollectorName},
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(Mandatory)]
[Alias('CollectorPolicyName')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# Collector Policy Name
${Name},
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# The name of the resource group.
${ResourceGroupName},
- [Parameter(ParameterSetName='Delete')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# Azure Subscription ID.
${SubscriptionId},
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]]
+ # Emission policies.
+ # To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table.
+ ${EmissionPolicy},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]]
+ # Ingestion Sources.
+ # To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table.
+ ${IngestionPolicyIngestionSource},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType]
+ # The ingestion type.
+ ${IngestionPolicyIngestionType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -1585,12 +1574,6 @@ param(
# Run the command asynchronously
${NoWait},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
[System.Uri]
@@ -1637,10 +1620,9 @@ begin {
}
$mapping = @{
- Delete = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionCollectorPolicy_Delete';
- DeleteViaIdentity = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionCollectorPolicy_DeleteViaIdentity';
+ UpdateExpanded = 'Az.NetworkFunction.custom\Update-AzNetworkFunctionCollectorPolicy';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -1691,65 +1673,80 @@ end {
<#
.Synopsis
-Updates the specified Azure Traffic Collector tags.
+Creates or updates a Azure Traffic Collector resource
.Description
-Updates the specified Azure Traffic Collector tags.
-.Example
-{{ Add code here }}
+Creates or updates a Azure Traffic Collector resource
.Example
-{{ Add code here }}
+Update-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
- [AzureTrafficCollectorName ]: Azure Traffic Collector name
- [CollectorPolicyName ]: Collector Policy Name
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group.
- [SubscriptionId ]: Azure Subscription ID.
+COLLECTORPOLICY : Collector Policies for Azure Traffic Collector.
+ [Location ]: Resource location.
+ [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
+ [SystemDataCreatedBy ]: The identity that created the resource.
+ [SystemDataCreatedByType ]: The type of identity that created the resource.
+ [SystemDataLastModifiedBy ]: The identity that last modified the resource.
+ [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [EmissionPolicy ]: Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+ [IngestionPolicyIngestionSource ]: Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
+ [IngestionPolicyIngestionType ]: The ingestion type.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/update-aznetworkfunctionazuretrafficcollectortag
+https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctiontrafficcollector
#>
-function Update-AzNetworkFunctionAzureTrafficCollectorTag {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
+function Update-AzNetworkFunctionTrafficCollector {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(Mandatory)]
+ [Alias('AzureTrafficCollectorName')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# Azure Traffic Collector name
- ${AzureTrafficCollectorName},
+ ${Name},
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[System.String]
# The name of the resource group.
${ResourceGroupName},
- [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# Azure Subscription ID.
${SubscriptionId},
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]]
+ # Collector Policies for Azure Traffic Collector.
+ # To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table.
+ ${CollectorPolicy},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -1762,6 +1759,12 @@ param(
# The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -1782,6 +1785,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
[System.Uri]
@@ -1828,8 +1837,7 @@ begin {
}
$mapping = @{
- UpdateExpanded = 'Az.NetworkFunction.private\Update-AzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded';
- UpdateViaIdentityExpanded = 'Az.NetworkFunction.private\Update-AzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded';
+ UpdateExpanded = 'Az.NetworkFunction.custom\Update-AzNetworkFunctionTrafficCollector';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
diff --git a/src/NetworkFunction/exports/Remove-AzNetworkFunctionCollectorPolicy.ps1 b/src/NetworkFunction/exports/Remove-AzNetworkFunctionCollectorPolicy.ps1
index ad7421f66691..1f5f3fd6b603 100644
--- a/src/NetworkFunction/exports/Remove-AzNetworkFunctionCollectorPolicy.ps1
+++ b/src/NetworkFunction/exports/Remove-AzNetworkFunctionCollectorPolicy.ps1
@@ -20,9 +20,7 @@ Deletes a specified Collector Policy resource.
.Description
Deletes a specified Collector Policy resource.
.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
+Remove-AzNetworkFunctionCollectorPolicy -azuretrafficcollectorname atctestps -collectorpolicyname cp1 -resourcegroupname test
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
diff --git a/src/NetworkFunction/exports/Remove-AzNetworkFunctionAzureTrafficCollector.ps1 b/src/NetworkFunction/exports/Remove-AzNetworkFunctionTrafficCollector.ps1
similarity index 97%
rename from src/NetworkFunction/exports/Remove-AzNetworkFunctionAzureTrafficCollector.ps1
rename to src/NetworkFunction/exports/Remove-AzNetworkFunctionTrafficCollector.ps1
index 6fbd0746fb94..6e9477049b46 100644
--- a/src/NetworkFunction/exports/Remove-AzNetworkFunctionAzureTrafficCollector.ps1
+++ b/src/NetworkFunction/exports/Remove-AzNetworkFunctionTrafficCollector.ps1
@@ -20,9 +20,7 @@ Deletes a specified Azure Traffic Collector resource.
.Description
Deletes a specified Azure Traffic Collector resource.
.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
+Remove-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname SEA-Cust10
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
@@ -40,9 +38,9 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group.
[SubscriptionId ]: Azure Subscription ID.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/remove-aznetworkfunctionazuretrafficcollector
+https://docs.microsoft.com/powershell/module/az.networkfunction/remove-aznetworkfunctiontrafficcollector
#>
-function Remove-AzNetworkFunctionAzureTrafficCollector {
+function Remove-AzNetworkFunctionTrafficCollector {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
@@ -165,8 +163,8 @@ begin {
}
$mapping = @{
- Delete = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionAzureTrafficCollector_Delete';
- DeleteViaIdentity = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity';
+ Delete = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionTrafficCollector_Delete';
+ DeleteViaIdentity = 'Az.NetworkFunction.private\Remove-AzNetworkFunctionTrafficCollector_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
diff --git a/src/NetworkFunction/exports/Update-AzNetworkFunctionCollectorPolicy.ps1 b/src/NetworkFunction/exports/Update-AzNetworkFunctionCollectorPolicy.ps1
new file mode 100644
index 000000000000..9976ef6d7a9d
--- /dev/null
+++ b/src/NetworkFunction/exports/Update-AzNetworkFunctionCollectorPolicy.ps1
@@ -0,0 +1,244 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a Collector Policy resource
+.Description
+Creates or updates a Collector Policy resource
+.Example
+Update-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+EMISSIONPOLICY : Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+
+INGESTIONPOLICYINGESTIONSOURCE : Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
+.Link
+https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctioncollectorpolicy
+#>
+function Update-AzNetworkFunctionCollectorPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${AzureTrafficCollectorName},
+
+ [Parameter(Mandatory)]
+ [Alias('CollectorPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Collector Policy Name
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]]
+ # Emission policies.
+ # To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table.
+ ${EmissionPolicy},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]]
+ # Ingestion Sources.
+ # To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table.
+ ${IngestionPolicyIngestionSource},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType]
+ # The ingestion type.
+ ${IngestionPolicyIngestionType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ UpdateExpanded = 'Az.NetworkFunction.custom\Update-AzNetworkFunctionCollectorPolicy';
+ }
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/NetworkFunction/exports/Update-AzNetworkFunctionTrafficCollector.ps1 b/src/NetworkFunction/exports/Update-AzNetworkFunctionTrafficCollector.ps1
new file mode 100644
index 000000000000..22ae09e169dd
--- /dev/null
+++ b/src/NetworkFunction/exports/Update-AzNetworkFunctionTrafficCollector.ps1
@@ -0,0 +1,232 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a Azure Traffic Collector resource
+.Description
+Creates or updates a Azure Traffic Collector resource
+.Example
+Update-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+COLLECTORPOLICY : Collector Policies for Azure Traffic Collector.
+ [Location ]: Resource location.
+ [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
+ [SystemDataCreatedBy ]: The identity that created the resource.
+ [SystemDataCreatedByType ]: The type of identity that created the resource.
+ [SystemDataLastModifiedBy ]: The identity that last modified the resource.
+ [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [EmissionPolicy ]: Emission policies.
+ [EmissionDestination ]: Emission policy destinations.
+ [DestinationType ]: Emission destination type.
+ [EmissionType ]: Emission format type.
+ [IngestionPolicyIngestionSource ]: Ingestion Sources.
+ [ResourceId ]: Resource ID.
+ [SourceType ]: Ingestion source type.
+ [IngestionPolicyIngestionType ]: The ingestion type.
+.Link
+https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctiontrafficcollector
+#>
+function Update-AzNetworkFunctionTrafficCollector {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('AzureTrafficCollectorName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # Azure Traffic Collector name
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [System.String]
+ # Resource location.
+ ${Location},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]]
+ # Collector Policies for Azure Traffic Collector.
+ # To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table.
+ ${CollectorPolicy},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ UpdateExpanded = 'Az.NetworkFunction.custom\Update-AzNetworkFunctionTrafficCollector';
+ }
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/NetworkFunction/exports/Update-AzNetworkFunctionAzureTrafficCollectorTag.ps1 b/src/NetworkFunction/exports/Update-AzNetworkFunctionTrafficCollectorTag.ps1
similarity index 95%
rename from src/NetworkFunction/exports/Update-AzNetworkFunctionAzureTrafficCollectorTag.ps1
rename to src/NetworkFunction/exports/Update-AzNetworkFunctionTrafficCollectorTag.ps1
index 3e9d7ec0ac27..2e28f73962d7 100644
--- a/src/NetworkFunction/exports/Update-AzNetworkFunctionAzureTrafficCollectorTag.ps1
+++ b/src/NetworkFunction/exports/Update-AzNetworkFunctionTrafficCollectorTag.ps1
@@ -20,14 +20,12 @@ Updates the specified Azure Traffic Collector tags.
.Description
Updates the specified Azure Traffic Collector tags.
.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
+Update-AzNetworkFunctionTrafficCollectorTag -azuretrafficcollectorname atc -resourcegroupname rg1 | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector
+Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -40,10 +38,10 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group.
[SubscriptionId ]: Azure Subscription ID.
.Link
-https://docs.microsoft.com/powershell/module/az.networkfunction/update-aznetworkfunctionazuretrafficcollectortag
+https://docs.microsoft.com/powershell/module/az.networkfunction/update-aznetworkfunctiontrafficcollectortag
#>
-function Update-AzNetworkFunctionAzureTrafficCollectorTag {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])]
+function Update-AzNetworkFunctionTrafficCollectorTag {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -74,7 +72,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -153,8 +151,8 @@ begin {
}
$mapping = @{
- UpdateExpanded = 'Az.NetworkFunction.private\Update-AzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded';
- UpdateViaIdentityExpanded = 'Az.NetworkFunction.private\Update-AzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded';
+ UpdateExpanded = 'Az.NetworkFunction.private\Update-AzNetworkFunctionTrafficCollectorTag_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.NetworkFunction.private\Update-AzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
diff --git a/src/NetworkFunction/generate-info.json b/src/NetworkFunction/generate-info.json
index f46372d7da29..bc295f73865a 100644
--- a/src/NetworkFunction/generate-info.json
+++ b/src/NetworkFunction/generate-info.json
@@ -1,8 +1,8 @@
{
- "swagger_commit": "51a3c36ac6076ac7be40423187f962b22ef01a54",
+ "swagger_commit": "a436672b07fb1fe276c203b086b3f0e0d0c4aa24",
"node": "v14.15.5",
"autorest": "`-- (empty)",
- "autorest_core": "3.8.4",
+ "autorest_core": "3.9.1",
"autorest_modelerfour": "4.15.414",
- "autorest_powershell": "3.0.490"
+ "autorest_powershell": "3.0.494"
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.PowerShell.cs
deleted file mode 100644
index ec5f1e0fa68c..000000000000
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.PowerShell.cs
+++ /dev/null
@@ -1,198 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
-{
- using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
-
- /// Metadata pertaining to creation and last modification of the resource.
- [System.ComponentModel.TypeConverter(typeof(CollectorPolicySystemDataTypeConverter))]
- public partial class CollectorPolicySystemData
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
- ///
- /// /// instance serialized to a string, normally it is a Json
- /// /// set returnNow to true if you provide a customized OverrideToString function
-
- partial void OverrideToString(ref string stringResult, ref bool returnNow);
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal CollectorPolicySystemData(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("CreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("CreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("CreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("LastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("LastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal CollectorPolicySystemData(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("CreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("CreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("CreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("LastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("LastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
- }
- AfterDeserializePSObject(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new CollectorPolicySystemData(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new CollectorPolicySystemData(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SerializationMode.IncludeAll)?.ToString();
-
- public override string ToString()
- {
- var returnNow = false;
- var result = global::System.String.Empty;
- OverrideToString(ref result, ref returnNow);
- if (returnNow)
- {
- return result;
- }
- return ToJsonString();
- }
- }
- /// Metadata pertaining to creation and last modification of the resource.
- [System.ComponentModel.TypeConverter(typeof(CollectorPolicySystemDataTypeConverter))]
- public partial interface ICollectorPolicySystemData
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.TypeConverter.cs
deleted file mode 100644
index 077f4e303202..000000000000
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.TypeConverter.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
-{
- using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
-
- ///
- /// A PowerShell PSTypeConverter to support converting to an instance of
- ///
- public partial class CollectorPolicySystemDataTypeConverter : global::System.Management.Automation.PSTypeConverter
- {
-
- ///
- /// Determines if the converter can convert the parameter to the parameter.
- ///
- /// the to convert from
- /// the to convert to
- ///
- /// true if the converter can convert the parameter to the parameter, otherwise false.
- ///
- public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
-
- ///
- /// Determines if the converter can convert the parameter to the
- /// type.
- ///
- /// the instance to check if it can be converted to the type.
- ///
- /// true if the instance could be converted to a type, otherwise false
- ///
- public static bool CanConvertFrom(dynamic sourceValue)
- {
- if (null == sourceValue)
- {
- return true;
- }
- global::System.Type type = sourceValue.GetType();
- if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
- {
- // we say yest to PSObjects
- return true;
- }
- if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
- {
- // we say yest to Hashtables/dictionaries
- return true;
- }
- try
- {
- if (null != sourceValue.ToJsonString())
- {
- return true;
- }
- }
- catch
- {
- // Not one of our objects
- }
- try
- {
- string text = sourceValue.ToString()?.Trim();
- return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonType.Object;
- }
- catch
- {
- // Doesn't look like it can be treated as JSON
- }
- return false;
- }
-
- ///
- /// Determines if the parameter can be converted to the
- /// parameter
- ///
- /// the to convert from
- /// the to convert to
- ///
- /// true if the converter can convert the parameter to the parameter, otherwise false
- ///
- public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
-
- ///
- /// Converts the parameter to the parameter using and
- ///
- /// the to convert from
- /// the to convert to
- /// not used by this TypeConverter.
- /// when set to true, will ignore the case when converting.
- ///
- /// an instance of , or null if there is no suitable conversion.
- ///
- public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
-
- ///
- /// Converts the parameter into an instance of
- ///
- /// the value to convert into an instance of .
- ///
- /// an instance of , or null if there is no suitable conversion.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData ConvertFrom(dynamic sourceValue)
- {
- if (null == sourceValue)
- {
- return null;
- }
- global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData).IsAssignableFrom(type))
- {
- return sourceValue;
- }
- try
- {
- return CollectorPolicySystemData.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
- }
- catch
- {
- // Unable to use JSON pattern
- }
- if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
- {
- return CollectorPolicySystemData.DeserializeFromPSObject(sourceValue);
- }
- if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
- {
- return CollectorPolicySystemData.DeserializeFromDictionary(sourceValue);
- }
- return null;
- }
-
- /// NotImplemented -- this will return null
- /// the to convert from
- /// the to convert to
- /// not used by this TypeConverter.
- /// when set to true, will ignore the case when converting.
- /// will always return null.
- public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null;
- }
-}
\ No newline at end of file
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.cs b/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.cs
deleted file mode 100644
index f7dc6c13c3a9..000000000000
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
-
- /// Metadata pertaining to creation and last modification of the resource.
- public partial class CollectorPolicySystemData :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemDataInternal,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IValidates
- {
- ///
- /// Backing field for Inherited model
- ///
- private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData __systemData = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData();
-
- /// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public global::System.DateTime? CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).CreatedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public string CreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).CreatedBy = value ?? null; }
-
- /// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? CreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); }
-
- /// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public string LastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).LastModifiedBy = value ?? null; }
-
- /// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? LastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)__systemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); }
-
- /// Creates an new instance.
- public CollectorPolicySystemData()
- {
-
- }
-
- /// Validates that this object meets the validation criteria.
- /// an instance that will receive validation
- /// events.
- ///
- /// A that will be complete when validation is completed.
- ///
- public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener)
- {
- await eventListener.AssertNotNull(nameof(__systemData), __systemData);
- await eventListener.AssertObjectIsValid(nameof(__systemData), __systemData);
- }
- }
- /// Metadata pertaining to creation and last modification of the resource.
- public partial interface ICollectorPolicySystemData :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData
- {
-
- }
- /// Metadata pertaining to creation and last modification of the resource.
- internal partial interface ICollectorPolicySystemDataInternal :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.json.cs b/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.json.cs
deleted file mode 100644
index ab77695dffc8..000000000000
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicySystemData.json.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
-
- /// Metadata pertaining to creation and last modification of the resource.
- public partial class CollectorPolicySystemData
- {
-
- ///
- /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The JsonNode that should be deserialized into this object.
-
- partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json);
-
- ///
- /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The JSON container that the serialization result will be placed in.
-
- partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container);
-
- ///
- /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of
- /// the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the
- /// output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The JsonNode that should be deserialized into this object.
- /// Determines if the rest of the deserialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json, ref bool returnNow);
-
- ///
- /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
- /// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The JSON container that the serialization result will be placed in.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow);
-
- ///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject into a new instance of .
- ///
- /// A Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject instance to deserialize from.
- internal CollectorPolicySystemData(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json)
- {
- bool returnNow = false;
- BeforeFromJson(json, ref returnNow);
- if (returnNow)
- {
- return;
- }
- __systemData = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData(json);
- AfterFromJson(json);
- }
-
- ///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData.
- ///
- /// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicySystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
- {
- return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new CollectorPolicySystemData(json) : null;
- }
-
- ///
- /// Serializes this instance of into a .
- ///
- /// The container to serialize this object into. If the caller
- /// passes in null, a new instance will be created and returned to the caller.
- /// Allows the caller to choose the depth of the serialization. See .
- ///
- /// a serialized instance of as a .
- ///
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SerializationMode serializationMode)
- {
- container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject();
-
- bool returnNow = false;
- BeforeToJson(ref container, ref returnNow);
- if (returnNow)
- {
- return container;
- }
- __systemData?.ToJson(container, serializationMode);
- AfterToJson(ref container);
- return container;
- }
- }
-}
\ No newline at end of file
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.PowerShell.cs
similarity index 75%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.PowerShell.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.PowerShell.cs
index 8c8688e53267..139a4c82bce0 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.PowerShell.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureTrafficCollector
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,77 +78,77 @@ internal AzureTrafficCollector(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Property"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorPropertiesFormatTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorPropertiesFormatTypeConverter.ConvertFrom);
}
if (content.Contains("Etag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).Etag, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).Etag, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
}
if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
}
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("Location"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
}
if (content.Contains("Tag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceTagsTypeConverter.ConvertFrom);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
}
if (content.Contains("VirtualHub"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).VirtualHub = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference) content.GetValueForProperty("VirtualHub",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).VirtualHub, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ResourceReferenceTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).VirtualHub = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference) content.GetValueForProperty("VirtualHub",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).VirtualHub, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ResourceReferenceTypeConverter.ConvertFrom);
}
if (content.Contains("CollectorPolicy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).CollectorPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[]) content.GetValueForProperty("CollectorPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).CollectorPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).CollectorPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]) content.GetValueForProperty("CollectorPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).CollectorPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyTypeConverter.ConvertFrom));
}
if (content.Contains("VirtualHubId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).VirtualHubId = (string) content.GetValueForProperty("VirtualHubId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).VirtualHubId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).VirtualHubId = (string) content.GetValueForProperty("VirtualHubId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).VirtualHubId, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -163,99 +163,99 @@ internal AzureTrafficCollector(global::System.Management.Automation.PSObject con
// actually deserialize
if (content.Contains("Property"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorPropertiesFormatTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorPropertiesFormatTypeConverter.ConvertFrom);
}
if (content.Contains("Etag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).Etag, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).Etag, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
}
if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
}
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("Location"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
}
if (content.Contains("Tag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceTagsTypeConverter.ConvertFrom);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
}
if (content.Contains("VirtualHub"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).VirtualHub = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference) content.GetValueForProperty("VirtualHub",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).VirtualHub, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ResourceReferenceTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).VirtualHub = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference) content.GetValueForProperty("VirtualHub",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).VirtualHub, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ResourceReferenceTypeConverter.ConvertFrom);
}
if (content.Contains("CollectorPolicy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).CollectorPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[]) content.GetValueForProperty("CollectorPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).CollectorPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).CollectorPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]) content.GetValueForProperty("CollectorPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).CollectorPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyTypeConverter.ConvertFrom));
}
if (content.Contains("VirtualHubId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).VirtualHubId = (string) content.GetValueForProperty("VirtualHubId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal)this).VirtualHubId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).VirtualHubId = (string) content.GetValueForProperty("VirtualHubId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal)this).VirtualHubId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureTrafficCollector(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureTrafficCollector(content);
}
@@ -265,7 +265,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.TypeConverter.cs
similarity index 98%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.TypeConverter.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.TypeConverter.cs
index c8ac6c55eccb..29a9c01cf808 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.TypeConverter.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.cs
similarity index 78%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.cs
index 8b3032f5f460..c6c093340dbb 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.cs
@@ -3,25 +3,25 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
/// Azure Traffic Collector resource.
public partial class AzureTrafficCollector :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector,
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal,
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResource();
/// Collector Policies for Azure Traffic Collector.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).CollectorPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).CollectorPolicy = value ?? null /* arrayOf */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).CollectorPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).CollectorPolicy = value ?? null /* arrayOf */; }
/// Backing field for property.
private string _etag;
@@ -32,53 +32,53 @@ public partial class AzureTrafficCollector :
/// Resource ID.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Id; }
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Id; }
/// Resource location.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Location = value ?? null; }
+ public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Location = value ?? null; }
/// Internal Acessors for Etag
- string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal.Etag { get => this._etag; set { {_etag = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal.Etag { get => this._etag; set { {_etag = value;} } }
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorPropertiesFormat()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorPropertiesFormat()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).ProvisioningState = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).ProvisioningState = value; }
/// Internal Acessors for VirtualHub
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal.VirtualHub { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHub; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHub = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal.VirtualHub { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHub; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHub = value; }
/// Internal Acessors for VirtualHubId
- string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorInternal.VirtualHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHubId; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHubId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorInternal.VirtualHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHubId; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHubId = value; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Id = value; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Name = value; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemData = value; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Type = value; }
/// Resource name.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Name; }
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat _property;
/// Properties of the Azure Traffic Collector.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorPropertiesFormat()); set => this._property = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorPropertiesFormat()); set => this._property = value; }
/// The provisioning state of the application rule collection resource.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).ProvisioningState; }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).ProvisioningState; }
/// Gets the resource group name
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)]
@@ -86,39 +86,39 @@ public partial class AzureTrafficCollector :
/// Metadata pertaining to creation and last modification of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemData; }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemData; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); }
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
/// Resource type.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal)__trackedResource).Type; }
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Type; }
/// Resource ID.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)]
- public string VirtualHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHubId; }
+ public string VirtualHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)Property).VirtualHubId; }
/// Creates an new instance.
public AzureTrafficCollector()
@@ -141,7 +141,7 @@ public AzureTrafficCollector()
/// Azure Traffic Collector resource.
public partial interface IAzureTrafficCollector :
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource
{
/// Collector Policies for Azure Traffic Collector.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(
@@ -149,8 +149,8 @@ public partial interface IAzureTrafficCollector :
ReadOnly = false,
Description = @"Collector Policies for Azure Traffic Collector.",
SerializedName = @"collectorPolicies",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })]
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })]
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get; set; }
/// A unique read-only string that changes whenever the resource is updated.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(
Required = false,
@@ -179,18 +179,18 @@ public partial interface IAzureTrafficCollector :
}
/// Azure Traffic Collector resource.
internal partial interface IAzureTrafficCollectorInternal :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal
{
/// Collector Policies for Azure Traffic Collector.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get; set; }
/// A unique read-only string that changes whenever the resource is updated.
string Etag { get; set; }
/// Properties of the Azure Traffic Collector.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat Property { get; set; }
/// The provisioning state of the application rule collection resource.
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? ProvisioningState { get; set; }
/// The virtualHub to which the Azure Traffic Collector belongs.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference VirtualHub { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference VirtualHub { get; set; }
/// Resource ID.
string VirtualHubId { get; set; }
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.json.cs
similarity index 96%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.json.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.json.cs
index 777f55005ed9..b8dff982da51 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollector.json.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollector.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal AzureTrafficCollector(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunctio
{
return;
}
- __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResource(json);
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorPropertiesFormat.FromJson(__jsonProperties) : Property;}
+ __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResource(json);
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorPropertiesFormat.FromJson(__jsonProperties) : Property;}
{_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new AzureTrafficCollector(json) : null;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.PowerShell.cs
similarity index 86%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.PowerShell.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.PowerShell.cs
index 1f0225b6718c..b757ec008e26 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.PowerShell.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureTrafficCollectorListResult
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,17 +78,17 @@ internal AzureTrafficCollectorListResult(global::System.Collections.IDictionary
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -103,39 +103,39 @@ internal AzureTrafficCollectorListResult(global::System.Management.Automation.PS
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureTrafficCollectorListResult(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureTrafficCollectorListResult(content);
}
@@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.TypeConverter.cs
similarity index 98%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.TypeConverter.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.TypeConverter.cs
index cf0f5c17a2e9..a75f1b7e42cb 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.TypeConverter.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.cs
similarity index 87%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.cs
index d6f2659d8745..1862c6a9a1a8 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.cs
@@ -3,18 +3,18 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
/// Response for the ListTrafficCollectors API service call.
public partial class AzureTrafficCollectorListResult :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal
{
/// Internal Acessors for NextLink
- string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } }
/// Backing field for property.
private string _nextLink;
@@ -24,11 +24,11 @@ public partial class AzureTrafficCollectorListResult :
public string NextLink { get => this._nextLink; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector[] _value;
+ private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector[] _value;
/// A list of Traffic Collector resources.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector[] Value { get => this._value; set => this._value = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector[] Value { get => this._value; set => this._value = value; }
/// Creates an new instance.
public AzureTrafficCollectorListResult()
@@ -54,8 +54,8 @@ public partial interface IAzureTrafficCollectorListResult :
ReadOnly = false,
Description = @"A list of Traffic Collector resources.",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector) })]
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector[] Value { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector) })]
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector[] Value { get; set; }
}
/// Response for the ListTrafficCollectors API service call.
@@ -65,7 +65,7 @@ internal partial interface IAzureTrafficCollectorListResultInternal
/// The URL to get the next set of results.
string NextLink { get; set; }
/// A list of Traffic Collector resources.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector[] Value { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector[] Value { get; set; }
}
}
\ No newline at end of file
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.json.cs
similarity index 95%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.json.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.json.cs
index 0f6209828390..4d206b47db66 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorListResult.json.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorListResult.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
@@ -65,19 +65,19 @@ internal AzureTrafficCollectorListResult(Microsoft.Azure.PowerShell.Cmdlets.Netw
{
return;
}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector.FromJson(__u) )) ))() : null : Value;}
+ {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector.FromJson(__u) )) ))() : null : Value;}
{_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new AzureTrafficCollectorListResult(json) : null;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.PowerShell.cs
similarity index 83%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.PowerShell.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.PowerShell.cs
index 860f863adddd..5cd922a4c2f2 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.PowerShell.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureTrafficCollectorPropertiesFormat
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,25 +78,25 @@ internal AzureTrafficCollectorPropertiesFormat(global::System.Collections.IDicti
// actually deserialize
if (content.Contains("VirtualHub"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHub = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference) content.GetValueForProperty("VirtualHub",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHub, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ResourceReferenceTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHub = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference) content.GetValueForProperty("VirtualHub",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHub, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ResourceReferenceTypeConverter.ConvertFrom);
}
if (content.Contains("CollectorPolicy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).CollectorPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[]) content.GetValueForProperty("CollectorPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).CollectorPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).CollectorPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]) content.GetValueForProperty("CollectorPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).CollectorPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyTypeConverter.ConvertFrom));
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
}
if (content.Contains("VirtualHubId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHubId = (string) content.GetValueForProperty("VirtualHubId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHubId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHubId = (string) content.GetValueForProperty("VirtualHubId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHubId, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -111,47 +111,47 @@ internal AzureTrafficCollectorPropertiesFormat(global::System.Management.Automat
// actually deserialize
if (content.Contains("VirtualHub"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHub = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference) content.GetValueForProperty("VirtualHub",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHub, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ResourceReferenceTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHub = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference) content.GetValueForProperty("VirtualHub",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHub, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ResourceReferenceTypeConverter.ConvertFrom);
}
if (content.Contains("CollectorPolicy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).CollectorPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[]) content.GetValueForProperty("CollectorPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).CollectorPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).CollectorPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]) content.GetValueForProperty("CollectorPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).CollectorPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyTypeConverter.ConvertFrom));
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
}
if (content.Contains("VirtualHubId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHubId = (string) content.GetValueForProperty("VirtualHubId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHubId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHubId = (string) content.GetValueForProperty("VirtualHubId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal)this).VirtualHubId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureTrafficCollectorPropertiesFormat(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureTrafficCollectorPropertiesFormat(content);
}
@@ -164,7 +164,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.TypeConverter.cs
similarity index 98%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.TypeConverter.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.TypeConverter.cs
index 72d720bae4fa..9a0c4b9076d7 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.TypeConverter.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.cs
similarity index 83%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.cs
index f857a65f6dd0..f1f511eb84c1 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.cs
@@ -3,31 +3,31 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
/// Azure Traffic Collector resource properties.
public partial class AzureTrafficCollectorPropertiesFormat :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat,
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] _collectorPolicy;
+ private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] _collectorPolicy;
/// Collector Policies for Azure Traffic Collector.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get => this._collectorPolicy; set => this._collectorPolicy = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get => this._collectorPolicy; set => this._collectorPolicy = value; }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Internal Acessors for VirtualHub
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal.VirtualHub { get => (this._virtualHub = this._virtualHub ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ResourceReference()); set { {_virtualHub = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal.VirtualHub { get => (this._virtualHub = this._virtualHub ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ResourceReference()); set { {_virtualHub = value;} } }
/// Internal Acessors for VirtualHubId
- string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormatInternal.VirtualHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal)VirtualHub).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal)VirtualHub).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormatInternal.VirtualHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal)VirtualHub).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal)VirtualHub).Id = value; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? _provisioningState;
@@ -37,15 +37,15 @@ public partial class AzureTrafficCollectorPropertiesFormat :
public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference _virtualHub;
+ private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference _virtualHub;
/// The virtualHub to which the Azure Traffic Collector belongs.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference VirtualHub { get => (this._virtualHub = this._virtualHub ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ResourceReference()); set => this._virtualHub = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference VirtualHub { get => (this._virtualHub = this._virtualHub ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ResourceReference()); set => this._virtualHub = value; }
/// Resource ID.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)]
- public string VirtualHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal)VirtualHub).Id; }
+ public string VirtualHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal)VirtualHub).Id; }
/// Creates an new instance.
public AzureTrafficCollectorPropertiesFormat()
@@ -63,8 +63,8 @@ public partial interface IAzureTrafficCollectorPropertiesFormat :
ReadOnly = false,
Description = @"Collector Policies for Azure Traffic Collector.",
SerializedName = @"collectorPolicies",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })]
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })]
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get; set; }
/// The provisioning state of the application rule collection resource.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info(
Required = false,
@@ -88,11 +88,11 @@ internal partial interface IAzureTrafficCollectorPropertiesFormatInternal
{
/// Collector Policies for Azure Traffic Collector.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get; set; }
/// The provisioning state of the application rule collection resource.
Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? ProvisioningState { get; set; }
/// The virtualHub to which the Azure Traffic Collector belongs.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference VirtualHub { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference VirtualHub { get; set; }
/// Resource ID.
string VirtualHubId { get; set; }
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.json.cs
similarity index 95%
rename from src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.json.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.json.cs
index 9f5e07dae771..84f8fcd60157 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/AzureTrafficCollectorPropertiesFormat.json.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/AzureTrafficCollectorPropertiesFormat.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal AzureTrafficCollectorPropertiesFormat(Microsoft.Azure.PowerShell.Cmdlet
{
return;
}
- {_virtualHub = If( json?.PropertyT("virtualHub"), out var __jsonVirtualHub) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ResourceReference.FromJson(__jsonVirtualHub) : VirtualHub;}
- {_collectorPolicy = If( json?.PropertyT("collectorPolicies"), out var __jsonCollectorPolicies) ? If( __jsonCollectorPolicies as Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy.FromJson(__u) )) ))() : null : CollectorPolicy;}
+ {_virtualHub = If( json?.PropertyT("virtualHub"), out var __jsonVirtualHub) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ResourceReference.FromJson(__jsonVirtualHub) : VirtualHub;}
+ {_collectorPolicy = If( json?.PropertyT("collectorPolicies"), out var __jsonCollectorPolicies) ? If( __jsonCollectorPolicies as Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy.FromJson(__u) )) ))() : null : CollectorPolicy;}
{_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new AzureTrafficCollectorPropertiesFormat(json) : null;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CloudError.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CloudError.PowerShell.cs
similarity index 80%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CloudError.PowerShell.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CloudError.PowerShell.cs
index 30ca498e90b3..3c15bbca0993 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CloudError.PowerShell.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CloudError.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class CloudError
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,29 +78,29 @@ internal CloudError(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBodyTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBodyTypeConverter.ConvertFrom));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -115,49 +115,49 @@ internal CloudError(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBodyTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBodyTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new CloudError(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new CloudError(content);
}
@@ -167,7 +167,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CloudError.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CloudError.TypeConverter.cs
similarity index 98%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CloudError.TypeConverter.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CloudError.TypeConverter.cs
index 247d433d57c7..7e91c599dc93 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CloudError.TypeConverter.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CloudError.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CloudError.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CloudError.cs
similarity index 83%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CloudError.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CloudError.cs
index ab66c8fe9380..abc97e8da8d9 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CloudError.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CloudError.cs
@@ -3,47 +3,47 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
/// An error response from the service.
public partial class CloudError :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError,
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal
{
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)Error).Code = value ?? null; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)Error).Code = value ?? null; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody _error;
/// An error response from the service.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBody()); set => this._error = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBody()); set => this._error = value; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)Error).Message = value ?? null; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)Error).Message = value ?? null; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBody()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBody()); set { {_error = value;} } }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)Error).Target = value ?? null; }
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)Error).Target = value ?? null; }
/// Creates an new instance.
public CloudError()
@@ -71,8 +71,8 @@ public partial interface ICloudError :
ReadOnly = false,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[] Detail { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[] Detail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
@@ -104,9 +104,9 @@ internal partial interface ICloudErrorInternal
///
string Code { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[] Detail { get; set; }
/// An error response from the service.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody Error { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CloudError.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CloudError.json.cs
similarity index 96%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CloudError.json.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CloudError.json.cs
index 31f41fa637d7..d52e03d2f5d4 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CloudError.json.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CloudError.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
@@ -65,18 +65,18 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.J
{
return;
}
- {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBody.FromJson(__jsonError) : Error;}
+ {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBody.FromJson(__jsonError) : Error;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new CloudError(json) : null;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.PowerShell.cs
similarity index 83%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.PowerShell.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.PowerShell.cs
index edca6526e27c..6fe5fa710056 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.PowerShell.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class CloudErrorBody
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,25 +78,25 @@ internal CloudErrorBody(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBodyTypeConverter.ConvertFrom));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -111,45 +111,45 @@ internal CloudErrorBody(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBodyTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new CloudErrorBody(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new CloudErrorBody(content);
}
@@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.TypeConverter.cs
similarity index 98%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.TypeConverter.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.TypeConverter.cs
index d55ea14df13b..690186ca1857 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.TypeConverter.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.cs
similarity index 93%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.cs
index c227bec85384..74b79b99bfaa 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
/// An error response from the service.
public partial class CloudErrorBody :
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody,
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBodyInternal
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody,
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBodyInternal
{
/// Backing field for property.
@@ -23,11 +23,11 @@ public partial class CloudErrorBody :
public string Code { get => this._code; set => this._code = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[] _detail;
+ private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[] _detail;
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; }
/// Backing field for property.
private string _message;
@@ -73,8 +73,8 @@ public partial interface ICloudErrorBody :
ReadOnly = false,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[] Detail { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[] Detail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
@@ -106,7 +106,7 @@ internal partial interface ICloudErrorBodyInternal
///
string Code { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody[] Detail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.json.cs
similarity index 96%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.json.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.json.cs
index 539f12c97cf4..b92fb1733da3 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CloudErrorBody.json.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CloudErrorBody.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Extensions;
@@ -68,18 +68,18 @@ internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runti
{_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;}
{_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;}
{_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;}
- {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;}
+ {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new CloudErrorBody(json) : null;
}
diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.PowerShell.cs
similarity index 68%
rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.PowerShell.cs
rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.PowerShell.cs
index f5d7c0e6a136..e5147dd7a768 100644
--- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.PowerShell.cs
+++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501
+namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801
{
using Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class CollectorPolicy
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,73 +78,81 @@ internal CollectorPolicy(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Property"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyPropertiesFormatTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyPropertiesFormatTypeConverter.ConvertFrom);
}
- if (content.Contains("SystemData"))
+ if (content.Contains("Etag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).Etag, global::System.Convert.ToString);
}
- if (content.Contains("Etag"))
+ if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).Etag, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
- if (content.Contains("Id"))
+ if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
- if (content.Contains("Type"))
+ if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
}
- if (content.Contains("Name"))
+ if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
- if (content.Contains("ProvisioningState"))
+ if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
}
- if (content.Contains("SystemDataCreatedBy"))
+ if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemDataTypeConverter.ConvertFrom);
}
- if (content.Contains("SystemDataCreatedAt"))
+ if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Id, global::System.Convert.ToString);
}
- if (content.Contains("IngestionPolicy"))
+ if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).IngestionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat) content.GetValueForProperty("IngestionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).IngestionPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionPolicyPropertiesFormatTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Name, global::System.Convert.ToString);
}
- if (content.Contains("EmissionPolicy"))
+ if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).EmissionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[]) content.GetValueForProperty("EmissionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).EmissionPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPoliciesPropertiesFormatTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Type, global::System.Convert.ToString);
}
- if (content.Contains("IngestionPolicyIngestionType"))
+ if (content.Contains("Location"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).IngestionPolicyIngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionPolicyIngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).IngestionPolicyIngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
}
- if (content.Contains("SystemDataCreatedByType"))
+ if (content.Contains("Tag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceTagsTypeConverter.ConvertFrom);
}
- if (content.Contains("SystemDataLastModifiedBy"))
+ if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom);
}
- if (content.Contains("SystemDataLastModifiedByType"))
+ if (content.Contains("IngestionPolicy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).IngestionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat) content.GetValueForProperty("IngestionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).IngestionPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionPolicyPropertiesFormatTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("EmissionPolicy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).EmissionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]) content.GetValueForProperty("EmissionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).EmissionPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPoliciesPropertiesFormatTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("IngestionPolicyIngestionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).IngestionPolicyIngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionPolicyIngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).IngestionPolicyIngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom);
}
if (content.Contains("IngestionPolicyIngestionSource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).IngestionPolicyIngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionPolicyIngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal)this).IngestionPolicyIngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionSourcesPropertiesFormatTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).IngestionPolicyIngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionPolicyIngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal)this).IngestionPolicyIngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionSourcesPropertiesFormatTypeConverter.ConvertFrom));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a