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 into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -159,93 +167,101 @@ internal CollectorPolicy(global::System.Management.Automation.PSObject 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)); } 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.ICollectorPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CollectorPolicy(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.ICollectorPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CollectorPolicy(content); } @@ -255,7 +271,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.ICollectorPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy 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/CollectorPolicy.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.TypeConverter.cs index de2220e41dbb..e82b17cdb914 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.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.ICollectorPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.cs similarity index 58% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.cs index 7c6abbd83900..892bbc4f4bb3 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.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; /// Collector policy resource. public partial class CollectorPolicy : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResource(); /// Emission policies. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).EmissionPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).EmissionPolicy = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).EmissionPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).EmissionPolicy = value ?? null /* arrayOf */; } /// Backing field for property. private string _etag; @@ -30,91 +30,96 @@ public partial class CollectorPolicy : [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] public string Etag { get => this._etag; } - /// Azure resource Id + /// 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.IProxyResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).Id; } /// Ingestion Sources. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicyIngestionSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicyIngestionSource = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicyIngestionSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicyIngestionSource = value ?? null /* arrayOf */; } /// The ingestion type. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType? IngestionPolicyIngestionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicyIngestionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicyIngestionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType? IngestionPolicyIngestionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicyIngestionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicyIngestionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType)""); } + + /// 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.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.ICollectorPolicyInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for IngestionPolicy - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal.IngestionPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicy = value; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal.IngestionPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).IngestionPolicy = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyPropertiesFormat()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyPropertiesFormat()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)__proxyResource).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.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)__proxyResource).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.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.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)__proxyResource).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; } - /// Azure resource name + /// 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.IProxyResourceInternal)__proxyResource).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.ICollectorPolicyPropertiesFormat _property; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat _property; /// Properties of the Collector Policy. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyPropertiesFormat()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyPropertiesFormat()); set => this._property = value; } /// The provisioning state. [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.ICollectorPolicyPropertiesFormatInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)Property).ProvisioningState; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData _systemData; - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData()); } + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)] + 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.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { 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); } + [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.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.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)] + 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.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataCreatedByType { 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)""); } + [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.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.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)] + 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.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataLastModifiedByType { 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)""); } + [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.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); } - /// Azure resource type + /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal)__proxyResource).Type; } + 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.Api20220801.ITrackedResourceInternal)__trackedResource).Type; } /// Creates an new instance. public CollectorPolicy() @@ -130,14 +135,14 @@ public CollectorPolicy() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); } } /// Collector policy resource. public partial interface ICollectorPolicy : Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource { /// Emission policies. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( @@ -145,8 +150,8 @@ public partial interface ICollectorPolicy : ReadOnly = false, Description = @"Emission policies.", SerializedName = @"emissionPolicies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get; set; } /// A unique read-only string that changes whenever the resource is updated. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( Required = false, @@ -161,8 +166,8 @@ public partial interface ICollectorPolicy : ReadOnly = false, Description = @"Ingestion Sources.", SerializedName = @"ingestionSources", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get; set; } /// The ingestion type. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( Required = false, @@ -179,78 +184,26 @@ public partial interface ICollectorPolicy : SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState) })] Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? ProvisioningState { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// Collector policy resource. internal partial interface ICollectorPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal { /// Emission policies. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get; set; } /// A unique read-only string that changes whenever the resource is updated. string Etag { get; set; } /// Ingestion policies. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat IngestionPolicy { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat IngestionPolicy { get; set; } /// Ingestion Sources. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get; set; } /// The ingestion type. Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType? IngestionPolicyIngestionType { get; set; } /// Properties of the Collector Policy. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat Property { get; set; } /// The provisioning state. Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? ProvisioningState { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.json.cs similarity index 87% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.json.cs index 51f76916c4dc..b467f5ed8ba6 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicy.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicy.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,21 +65,20 @@ internal CollectorPolicy(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runt { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ProxyResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyPropertiesFormat.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData.FromJson(__jsonSystemData) : SystemData;} + __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.CollectorPolicyPropertiesFormat.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.ICollectorPolicy. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new CollectorPolicy(json) : null; } @@ -103,13 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode { return container; } - __proxyResource?.ToJson(container, serializationMode); + __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.PowerShell.cs similarity index 86% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.PowerShell.cs index c52cdca71f00..072bf43ce524 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.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 CollectorPolicyListResult 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 CollectorPolicyListResult(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal)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 CollectorPolicyListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal)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.ICollectorPolicyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CollectorPolicyListResult(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.ICollectorPolicyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CollectorPolicyListResult(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.ICollectorPolicyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult 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/CollectorPolicyListResult.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.TypeConverter.cs index a17c53329731..094cfff765a2 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.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.ICollectorPolicyListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.cs similarity index 87% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.cs index 9f7368e75a3a..69c81578e94c 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.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 ListCollectorPolicies API service call. public partial class CollectorPolicyListResult : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResult, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class CollectorPolicyListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] _value; /// A list of collection policies. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public CollectorPolicyListResult() @@ -54,8 +54,8 @@ public partial interface ICollectorPolicyListResult : ReadOnly = false, Description = @"A list of collection policies.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] Value { get; set; } } /// Response for the ListCollectorPolicies API service call. @@ -65,7 +65,7 @@ internal partial interface ICollectorPolicyListResultInternal /// The URL to get the next set of results. string NextLink { get; set; } /// A list of collection policies. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] Value { get; set; } } } \ No newline at end of file diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.json.cs similarity index 95% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.json.cs index 2cdebc464557..a98fb7fa4981 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyListResult.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyListResult.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 CollectorPolicyListResult(Microsoft.Azure.PowerShell.Cmdlets.NetworkFun { 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.ICollectorPolicy) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy.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.ICollectorPolicy) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy.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.ICollectorPolicyListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new CollectorPolicyListResult(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.PowerShell.cs similarity index 81% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.PowerShell.cs index a9131e71f6ba..f474e6b1a999 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.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 CollectorPolicyPropertiesFormat 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 CollectorPolicyPropertiesFormat(global::System.Collections.IDictionary // actually deserialize if (content.Contains("IngestionPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat) content.GetValueForProperty("IngestionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionPolicyPropertiesFormatTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat) content.GetValueForProperty("IngestionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionPolicyPropertiesFormatTypeConverter.ConvertFrom); } if (content.Contains("EmissionPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).EmissionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[]) content.GetValueForProperty("EmissionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).EmissionPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPoliciesPropertiesFormatTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).EmissionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]) content.GetValueForProperty("EmissionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).EmissionPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPoliciesPropertiesFormatTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom); } if (content.Contains("IngestionPolicyIngestionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionPolicyIngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionPolicyIngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom); } if (content.Contains("IngestionPolicyIngestionSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionPolicyIngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionSourcesPropertiesFormatTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionPolicyIngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionSourcesPropertiesFormatTypeConverter.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,51 +115,51 @@ internal CollectorPolicyPropertiesFormat(global::System.Management.Automation.PS // actually deserialize if (content.Contains("IngestionPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat) content.GetValueForProperty("IngestionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionPolicyPropertiesFormatTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat) content.GetValueForProperty("IngestionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionPolicyPropertiesFormatTypeConverter.ConvertFrom); } if (content.Contains("EmissionPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).EmissionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[]) content.GetValueForProperty("EmissionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).EmissionPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPoliciesPropertiesFormatTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).EmissionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[]) content.GetValueForProperty("EmissionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).EmissionPolicy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPoliciesPropertiesFormatTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState.CreateFrom); } if (content.Contains("IngestionPolicyIngestionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionPolicyIngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionPolicyIngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom); } if (content.Contains("IngestionPolicyIngestionSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionPolicyIngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionSourcesPropertiesFormatTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionPolicyIngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal)this).IngestionPolicyIngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionSourcesPropertiesFormatTypeConverter.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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CollectorPolicyPropertiesFormat(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.ICollectorPolicyPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CollectorPolicyPropertiesFormat(content); } @@ -169,7 +169,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.ICollectorPolicyPropertiesFormat FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat 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/CollectorPolicyPropertiesFormat.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.TypeConverter.cs index 593f12d2ebfa..4d2a0481a407 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.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.ICollectorPolicyPropertiesFormat ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.cs similarity index 83% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.cs index 9b325623b1e9..1d80cc3ccd69 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.cs @@ -3,43 +3,43 @@ // 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; /// Collection policy properties. public partial class CollectorPolicyPropertiesFormat : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] _emissionPolicy; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] _emissionPolicy; /// Emission policies. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => this._emissionPolicy; set => this._emissionPolicy = value; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => this._emissionPolicy; set => this._emissionPolicy = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat _ingestionPolicy; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat _ingestionPolicy; /// Ingestion policies. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat IngestionPolicy { get => (this._ingestionPolicy = this._ingestionPolicy ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionPolicyPropertiesFormat()); set => this._ingestionPolicy = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat IngestionPolicy { get => (this._ingestionPolicy = this._ingestionPolicy ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionPolicyPropertiesFormat()); set => this._ingestionPolicy = value; } /// Ingestion Sources. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)IngestionPolicy).IngestionSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)IngestionPolicy).IngestionSource = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)IngestionPolicy).IngestionSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)IngestionPolicy).IngestionSource = value ?? null /* arrayOf */; } /// The ingestion type. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType? IngestionPolicyIngestionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)IngestionPolicy).IngestionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)IngestionPolicy).IngestionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType? IngestionPolicyIngestionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)IngestionPolicy).IngestionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)IngestionPolicy).IngestionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType)""); } /// Internal Acessors for IngestionPolicy - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal.IngestionPolicy { get => (this._ingestionPolicy = this._ingestionPolicy ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionPolicyPropertiesFormat()); set { {_ingestionPolicy = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal.IngestionPolicy { get => (this._ingestionPolicy = this._ingestionPolicy ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionPolicyPropertiesFormat()); set { {_ingestionPolicy = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormatInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormatInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ProvisioningState? _provisioningState; @@ -64,16 +64,16 @@ public partial interface ICollectorPolicyPropertiesFormat : ReadOnly = false, Description = @"Emission policies.", SerializedName = @"emissionPolicies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get; set; } /// Ingestion Sources. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( Required = false, ReadOnly = false, Description = @"Ingestion Sources.", SerializedName = @"ingestionSources", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get; set; } /// The ingestion type. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( Required = false, @@ -97,11 +97,11 @@ internal partial interface ICollectorPolicyPropertiesFormatInternal { /// Emission policies. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get; set; } /// Ingestion policies. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat IngestionPolicy { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat IngestionPolicy { get; set; } /// Ingestion Sources. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get; set; } /// The ingestion type. Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType? IngestionPolicyIngestionType { get; set; } /// The provisioning state. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.json.cs similarity index 95% rename from src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.json.cs index b1c630717049..aa321c52b587 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/CollectorPolicyPropertiesFormat.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/CollectorPolicyPropertiesFormat.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 CollectorPolicyPropertiesFormat(Microsoft.Azure.PowerShell.Cmdlets.Netw { return; } - {_ingestionPolicy = If( json?.PropertyT("ingestionPolicy"), out var __jsonIngestionPolicy) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionPolicyPropertiesFormat.FromJson(__jsonIngestionPolicy) : IngestionPolicy;} - {_emissionPolicy = If( json?.PropertyT("emissionPolicies"), out var __jsonEmissionPolicies) ? If( __jsonEmissionPolicies 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.IEmissionPoliciesPropertiesFormat) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPoliciesPropertiesFormat.FromJson(__u) )) ))() : null : EmissionPolicy;} + {_ingestionPolicy = If( json?.PropertyT("ingestionPolicy"), out var __jsonIngestionPolicy) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionPolicyPropertiesFormat.FromJson(__jsonIngestionPolicy) : IngestionPolicy;} + {_emissionPolicy = If( json?.PropertyT("emissionPolicies"), out var __jsonEmissionPolicies) ? If( __jsonEmissionPolicies 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.IEmissionPoliciesPropertiesFormat) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPoliciesPropertiesFormat.FromJson(__u) )) ))() : null : EmissionPolicy;} {_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.ICollectorPolicyPropertiesFormat. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new CollectorPolicyPropertiesFormat(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.PowerShell.cs similarity index 87% rename from src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.PowerShell.cs index 43ace3a35f6e..78746d570e4d 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.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,35 +63,35 @@ public partial class EmissionPoliciesPropertiesFormat partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IEmissionPoliciesPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EmissionPoliciesPropertiesFormat(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.IEmissionPoliciesPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EmissionPoliciesPropertiesFormat(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,17 +106,17 @@ internal EmissionPoliciesPropertiesFormat(global::System.Collections.IDictionary // actually deserialize if (content.Contains("EmissionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal)this).EmissionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType?) content.GetValueForProperty("EmissionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal)this).EmissionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal)this).EmissionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType?) content.GetValueForProperty("EmissionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal)this).EmissionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType.CreateFrom); } if (content.Contains("EmissionDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal)this).EmissionDestination = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination[]) content.GetValueForProperty("EmissionDestination",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal)this).EmissionDestination, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPolicyDestinationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal)this).EmissionDestination = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination[]) content.GetValueForProperty("EmissionDestination",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal)this).EmissionDestination, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPolicyDestinationTypeConverter.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. @@ -131,11 +131,11 @@ internal EmissionPoliciesPropertiesFormat(global::System.Management.Automation.P // actually deserialize if (content.Contains("EmissionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal)this).EmissionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType?) content.GetValueForProperty("EmissionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal)this).EmissionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal)this).EmissionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType?) content.GetValueForProperty("EmissionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal)this).EmissionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType.CreateFrom); } if (content.Contains("EmissionDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal)this).EmissionDestination = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination[]) content.GetValueForProperty("EmissionDestination",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal)this).EmissionDestination, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPolicyDestinationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal)this).EmissionDestination = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination[]) content.GetValueForProperty("EmissionDestination",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal)this).EmissionDestination, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPolicyDestinationTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -145,7 +145,7 @@ internal EmissionPoliciesPropertiesFormat(global::System.Management.Automation.P /// /// 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.IEmissionPoliciesPropertiesFormat FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat 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/EmissionPoliciesPropertiesFormat.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.TypeConverter.cs index 24b65af990e4..574a3c889bf6 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.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.IEmissionPoliciesPropertiesFormat ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.cs b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.cs similarity index 88% rename from src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.cs index ded541944c50..17fd9c9caa3b 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.cs @@ -3,22 +3,22 @@ // 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; /// Emission policy properties. public partial class EmissionPoliciesPropertiesFormat : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormatInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormatInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination[] _emissionDestination; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination[] _emissionDestination; /// Emission policy destinations. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination[] EmissionDestination { get => this._emissionDestination; set => this._emissionDestination = value; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination[] EmissionDestination { get => this._emissionDestination; set => this._emissionDestination = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType? _emissionType; @@ -43,8 +43,8 @@ public partial interface IEmissionPoliciesPropertiesFormat : ReadOnly = false, Description = @"Emission policy destinations.", SerializedName = @"emissionDestinations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination[] EmissionDestination { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination[] EmissionDestination { get; set; } /// Emission format type. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( Required = false, @@ -60,7 +60,7 @@ internal partial interface IEmissionPoliciesPropertiesFormatInternal { /// Emission policy destinations. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination[] EmissionDestination { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination[] EmissionDestination { get; set; } /// Emission format type. Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.EmissionType? EmissionType { get; set; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.json.cs similarity index 95% rename from src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.json.cs index f1ea98d29d7d..35fb40c50ce0 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPoliciesPropertiesFormat.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPoliciesPropertiesFormat.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; @@ -66,18 +66,18 @@ internal EmissionPoliciesPropertiesFormat(Microsoft.Azure.PowerShell.Cmdlets.Net return; } {_emissionType = If( json?.PropertyT("emissionType"), out var __jsonEmissionType) ? (string)__jsonEmissionType : (string)EmissionType;} - {_emissionDestination = If( json?.PropertyT("emissionDestinations"), out var __jsonEmissionDestinations) ? If( __jsonEmissionDestinations 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.IEmissionPolicyDestination) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.EmissionPolicyDestination.FromJson(__u) )) ))() : null : EmissionDestination;} + {_emissionDestination = If( json?.PropertyT("emissionDestinations"), out var __jsonEmissionDestinations) ? If( __jsonEmissionDestinations 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.IEmissionPolicyDestination) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.EmissionPolicyDestination.FromJson(__u) )) ))() : null : EmissionDestination;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new EmissionPoliciesPropertiesFormat(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.PowerShell.cs similarity index 91% rename from src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.PowerShell.cs index b9521698540e..cec84c109a1c 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.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,35 +63,35 @@ public partial class EmissionPolicyDestination partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IEmissionPolicyDestination DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EmissionPolicyDestination(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.IEmissionPolicyDestination DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EmissionPolicyDestination(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,13 +106,13 @@ internal EmissionPolicyDestination(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("DestinationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestinationInternal)this).DestinationType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.DestinationType?) content.GetValueForProperty("DestinationType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestinationInternal)this).DestinationType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.DestinationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestinationInternal)this).DestinationType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.DestinationType?) content.GetValueForProperty("DestinationType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestinationInternal)this).DestinationType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.DestinationType.CreateFrom); } 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. @@ -127,7 +127,7 @@ internal EmissionPolicyDestination(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DestinationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestinationInternal)this).DestinationType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.DestinationType?) content.GetValueForProperty("DestinationType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestinationInternal)this).DestinationType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.DestinationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestinationInternal)this).DestinationType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.DestinationType?) content.GetValueForProperty("DestinationType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestinationInternal)this).DestinationType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.DestinationType.CreateFrom); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal EmissionPolicyDestination(global::System.Management.Automation.PSObject /// /// 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.IEmissionPolicyDestination FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination 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/EmissionPolicyDestination.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.TypeConverter.cs index 2254f79dc4d1..ab1a4d0cd23d 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.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.IEmissionPolicyDestination ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.cs b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.cs similarity index 95% rename from src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.cs index fb84a4e13d55..656d6d30ead2 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.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; /// Emission policy destination properties. public partial class EmissionPolicyDestination : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestinationInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestinationInternal { /// Backing field for property. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.json.cs similarity index 97% rename from src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.json.cs index cb008a7dd06d..2e963d5df27a 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/EmissionPolicyDestination.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/EmissionPolicyDestination.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; @@ -70,13 +70,13 @@ internal EmissionPolicyDestination(Microsoft.Azure.PowerShell.Cmdlets.NetworkFun } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPolicyDestination FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPolicyDestination FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new EmissionPolicyDestination(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.PowerShell.cs similarity index 87% rename from src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.PowerShell.cs index 881f35378dfb..c27d554eac49 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.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,29 +63,29 @@ public partial class IngestionPolicyPropertiesFormat partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IIngestionPolicyPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new IngestionPolicyPropertiesFormat(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.IIngestionPolicyPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IngestionPolicyPropertiesFormat(content); } @@ -95,10 +95,10 @@ 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.IIngestionPolicyPropertiesFormat FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,17 +113,17 @@ internal IngestionPolicyPropertiesFormat(global::System.Collections.IDictionary // actually deserialize if (content.Contains("IngestionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)this).IngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)this).IngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)this).IngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)this).IngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom); } if (content.Contains("IngestionSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)this).IngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)this).IngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionSourcesPropertiesFormatTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)this).IngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)this).IngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionSourcesPropertiesFormatTypeConverter.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. @@ -138,11 +138,11 @@ internal IngestionPolicyPropertiesFormat(global::System.Management.Automation.PS // actually deserialize if (content.Contains("IngestionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)this).IngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)this).IngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)this).IngestionType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType?) content.GetValueForProperty("IngestionType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)this).IngestionType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType.CreateFrom); } if (content.Contains("IngestionSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)this).IngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal)this).IngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionSourcesPropertiesFormatTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)this).IngestionSource = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[]) content.GetValueForProperty("IngestionSource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal)this).IngestionSource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionSourcesPropertiesFormatTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.TypeConverter.cs index 197fc55fa29a..95f4f863d291 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.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.IIngestionPolicyPropertiesFormat ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.cs b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.cs similarity index 88% rename from src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.cs index d891bbbeb9d0..67f59768220b 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.cs @@ -3,22 +3,22 @@ // 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; /// Ingestion Policy properties. public partial class IngestionPolicyPropertiesFormat : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormatInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormatInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] _ingestionSource; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] _ingestionSource; /// Ingestion Sources. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionSource { get => this._ingestionSource; set => this._ingestionSource = value; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionSource { get => this._ingestionSource; set => this._ingestionSource = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType? _ingestionType; @@ -43,8 +43,8 @@ public partial interface IIngestionPolicyPropertiesFormat : ReadOnly = false, Description = @"Ingestion Sources.", SerializedName = @"ingestionSources", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionSource { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionSource { get; set; } /// The ingestion type. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( Required = false, @@ -60,7 +60,7 @@ internal partial interface IIngestionPolicyPropertiesFormatInternal { /// Ingestion Sources. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionSource { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionSource { get; set; } /// The ingestion type. Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType? IngestionType { get; set; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.json.cs similarity index 95% rename from src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.json.cs index 77e24d337397..da757ec6dc3c 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionPolicyPropertiesFormat.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionPolicyPropertiesFormat.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; @@ -54,13 +54,13 @@ public partial class IngestionPolicyPropertiesFormat partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionPolicyPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionPolicyPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new IngestionPolicyPropertiesFormat(json) : null; } @@ -78,7 +78,7 @@ internal IngestionPolicyPropertiesFormat(Microsoft.Azure.PowerShell.Cmdlets.Netw return; } {_ingestionType = If( json?.PropertyT("ingestionType"), out var __jsonIngestionType) ? (string)__jsonIngestionType : (string)IngestionType;} - {_ingestionSource = If( json?.PropertyT("ingestionSources"), out var __jsonIngestionSources) ? If( __jsonIngestionSources 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.IIngestionSourcesPropertiesFormat) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IngestionSourcesPropertiesFormat.FromJson(__u) )) ))() : null : IngestionSource;} + {_ingestionSource = If( json?.PropertyT("ingestionSources"), out var __jsonIngestionSources) ? If( __jsonIngestionSources 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.IIngestionSourcesPropertiesFormat) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IngestionSourcesPropertiesFormat.FromJson(__u) )) ))() : null : IngestionSource;} AfterFromJson(json); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.PowerShell.cs similarity index 89% rename from src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.PowerShell.cs index b210d4034a1c..67f677e6ac9b 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.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,29 +63,29 @@ public partial class IngestionSourcesPropertiesFormat partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IIngestionSourcesPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new IngestionSourcesPropertiesFormat(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.IIngestionSourcesPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IngestionSourcesPropertiesFormat(content); } @@ -95,10 +95,10 @@ 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.IIngestionSourcesPropertiesFormat FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,17 +113,17 @@ internal IngestionSourcesPropertiesFormat(global::System.Collections.IDictionary // actually deserialize if (content.Contains("SourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal)this).SourceType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.SourceType?) content.GetValueForProperty("SourceType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal)this).SourceType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.SourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal)this).SourceType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.SourceType?) content.GetValueForProperty("SourceType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal)this).SourceType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.SourceType.CreateFrom); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal)this).ResourceId, 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. @@ -138,11 +138,11 @@ internal IngestionSourcesPropertiesFormat(global::System.Management.Automation.P // actually deserialize if (content.Contains("SourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal)this).SourceType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.SourceType?) content.GetValueForProperty("SourceType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal)this).SourceType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.SourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal)this).SourceType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.SourceType?) content.GetValueForProperty("SourceType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal)this).SourceType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.SourceType.CreateFrom); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal)this).ResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.TypeConverter.cs index 731778ccbad0..73891195988f 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.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.IIngestionSourcesPropertiesFormat ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.cs b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.cs similarity index 96% rename from src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.cs index 607dacb06e75..c01f1ed1167f 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.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; /// Ingestion policy properties. public partial class IngestionSourcesPropertiesFormat : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormatInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormatInternal { /// Backing field for property. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.json.cs similarity index 97% rename from src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.json.cs index 81d202ba1f75..125e01859e64 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/IngestionSourcesPropertiesFormat.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/IngestionSourcesPropertiesFormat.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; @@ -54,13 +54,13 @@ public partial class IngestionSourcesPropertiesFormat partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new IngestionSourcesPropertiesFormat(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/Operation.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/Operation.PowerShell.cs similarity index 81% rename from src/NetworkFunction/generated/api/Models/Api20220501/Operation.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/Operation.PowerShell.cs index 923c971e4607..a5e4d014deed 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/Operation.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/Operation.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,27 +63,27 @@ public partial class Operation partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Operation(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.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Operation(content); } @@ -93,10 +93,10 @@ 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.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,41 +111,41 @@ internal Operation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Origin, global::System.Convert.ToString); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayDescription, 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. @@ -160,35 +160,35 @@ internal Operation(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).Origin, global::System.Convert.ToString); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/Operation.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/Operation.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/Operation.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/Operation.TypeConverter.cs index 4ddc7728f7b0..c25b86a047d5 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/Operation.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/Operation.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.IOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/Operation.cs b/src/NetworkFunction/generated/api/Models/Api20220801/Operation.cs similarity index 89% rename from src/NetworkFunction/generated/api/Models/Api20220501/Operation.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/Operation.cs index dc0d8d73f379..be62325e27fe 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/Operation.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/Operation.cs @@ -3,38 +3,38 @@ // 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 REST API operation definition. public partial class Operation : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay _display; /// Display metadata associated with the operation. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationDisplay()); set => this._display = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationDisplay()); set => this._display = value; } /// Description of the operation. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)Display).Description = value ?? null; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)Display).Description = value ?? null; } /// Type of operation: get, read, delete, etc. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)Display).Operation = value ?? null; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Service provider: Microsoft NetworkFunction. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)Display).Provider = value ?? null; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Resource on which the operation is performed etc. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)Display).Resource = value ?? null; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Backing field for property. private bool? _isDataAction; @@ -44,7 +44,7 @@ public partial class Operation : public bool? IsDataAction { get => this._isDataAction; set => this._isDataAction = value; } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationDisplay()); set { {_display = value;} } } /// Backing field for property. private string _name; @@ -133,7 +133,7 @@ internal partial interface IOperationInternal { /// Display metadata associated with the operation. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay Display { get; set; } /// Description of the operation. string DisplayDescription { get; set; } /// Type of operation: get, read, delete, etc. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/Operation.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/Operation.json.cs similarity index 97% rename from src/NetworkFunction/generated/api/Models/Api20220501/Operation.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/Operation.json.cs index 0d4e922b5566..d96e122c9edb 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/Operation.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/Operation.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; @@ -54,13 +54,13 @@ public partial class Operation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new Operation(json) : null; } @@ -77,7 +77,7 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Js { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationDisplay.FromJson(__jsonDisplay) : Display;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationDisplay.FromJson(__jsonDisplay) : Display;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.PowerShell.cs similarity index 86% rename from src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.PowerShell.cs index 5666c3f573c4..1448fb1a647c 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.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,27 +63,27 @@ public partial class OperationDisplay partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationDisplay(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.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationDisplay(content); } @@ -93,10 +93,10 @@ 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.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,25 +111,25 @@ internal OperationDisplay(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Description, 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. @@ -144,19 +144,19 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.TypeConverter.cs index 7334cc7016b6..17702527a176 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.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.IOperationDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.cs b/src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.cs index 123b492a1678..6e5da70319f2 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.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; /// Display metadata associated with the operation. public partial class OperationDisplay : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplayInternal { /// Backing field for property. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.json.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.json.cs index 57f2ef49d1c8..e8695aedd5bc 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/OperationDisplay.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/OperationDisplay.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; @@ -54,13 +54,13 @@ public partial class OperationDisplay partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.PowerShell.cs similarity index 86% rename from src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.PowerShell.cs index a87ffbda925b..202536f92dd3 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.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; @@ -66,29 +66,29 @@ public partial class OperationListResult partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationListResult(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.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationListResult(content); } @@ -98,10 +98,10 @@ 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.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -116,17 +116,17 @@ internal OperationListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal)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. @@ -141,11 +141,11 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.TypeConverter.cs index 4ae61a42cf89..68d8bcdc5a42 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.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.IOperationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.cs b/src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.cs similarity index 91% rename from src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.cs index 34ef34005b17..7c5869e7de98 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.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; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501 /// the next set of results. /// public partial class OperationListResult : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResult, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResultInternal { /// Backing field for property. @@ -24,11 +24,11 @@ public partial class OperationListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation[] _value; /// List of operations supported by the Azure Traffic Collector resource provider. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public OperationListResult() @@ -55,8 +55,8 @@ public partial interface IOperationListResult : ReadOnly = false, Description = @"List of operations supported by the Azure Traffic Collector resource provider.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation[] Value { get; set; } } /// Result of the request to list Azure Traffic Collector operations. It contains a list of operations and a URL link to get @@ -67,7 +67,7 @@ internal partial interface IOperationListResultInternal /// URL to get the next set of operation list results if there are any. string NextLink { get; set; } /// List of operations supported by the Azure Traffic Collector resource provider. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation[] Value { get; set; } } } \ No newline at end of file diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.json.cs similarity index 95% rename from src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.json.cs index 2feec3484b36..953d2f3b13e4 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/OperationListResult.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/OperationListResult.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; @@ -57,13 +57,13 @@ public partial class OperationListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; } @@ -80,7 +80,7 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction. { 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.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.Operation.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.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.Operation.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.PowerShell.cs similarity index 87% rename from src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.PowerShell.cs index 6b0148c89306..d2c2ced22218 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.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,27 +63,27 @@ public partial class ProxyResource partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProxyResource(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.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProxyResource(content); } @@ -93,10 +93,10 @@ 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.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,21 +111,21 @@ internal ProxyResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((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.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((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.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((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.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal)this).Name, 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. @@ -140,15 +140,15 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((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.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((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.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((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.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal)this).Name, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.TypeConverter.cs index 6065ed28efd1..012e2cbea6a9 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.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.IProxyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.cs b/src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.cs similarity index 93% rename from src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.cs index 6427fc230ba3..beb8fd5dd811 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.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 azure resource object public partial class ProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResource, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal { /// Backing field for property. @@ -21,13 +21,13 @@ public partial class ProxyResource : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.json.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.json.cs index 2e02ea4e64af..89d13905b8a1 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/ProxyResource.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/ProxyResource.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; @@ -54,13 +54,13 @@ public partial class ProxyResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.PowerShell.cs similarity index 90% rename from src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.PowerShell.cs index 803fd522add5..3aeeaa41f98a 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.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,27 +63,27 @@ public partial class ResourceReference partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.IResourceReference DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceReference(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.IResourceReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceReference(content); } @@ -93,10 +93,10 @@ 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.IResourceReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,13 +111,13 @@ internal ResourceReference(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal)this).Id, 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. @@ -132,7 +132,7 @@ internal ResourceReference(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal)this).Id, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.TypeConverter.cs index 1704b4764e04..fbfb2d471098 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.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.IResourceReference ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.cs b/src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.cs similarity index 92% rename from src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.cs index 258b58ffa978..cb728fcfd9a8 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.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; /// Resource reference properties. public partial class ResourceReference : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal { /// Backing field for property. @@ -21,7 +21,7 @@ public partial class ResourceReference : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReferenceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReferenceInternal.Id { get => this._id; set { {_id = value;} } } /// Creates an new instance. public ResourceReference() diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.json.cs similarity index 97% rename from src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.json.cs index e9483352e1e6..a41ad04c78ee 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/ResourceReference.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/ResourceReference.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; @@ -54,13 +54,13 @@ public partial class ResourceReference partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IResourceReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IResourceReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new ResourceReference(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/SystemData.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/SystemData.PowerShell.cs similarity index 85% rename from src/NetworkFunction/generated/api/Models/Api20220501/SystemData.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/SystemData.PowerShell.cs index 90614cf16a45..f5ed87cda685 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/SystemData.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/SystemData.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,27 +63,27 @@ public partial class SystemData partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemData(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.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -93,10 +93,10 @@ 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.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,29 +111,29 @@ internal SystemData(global::System.Collections.IDictionary content) // 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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom); } 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. @@ -148,23 +148,23 @@ internal SystemData(global::System.Management.Automation.PSObject content) // 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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/SystemData.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/SystemData.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/SystemData.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/SystemData.TypeConverter.cs index 56d715b26fe4..cc0f4d949a48 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/SystemData.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/SystemData.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.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/SystemData.cs b/src/NetworkFunction/generated/api/Models/Api20220801/SystemData.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/SystemData.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/SystemData.cs index 21fd9e5443bd..a23eaf3385bb 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/SystemData.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/SystemData.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; /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal { /// Backing field for property. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/SystemData.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/SystemData.json.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/SystemData.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/SystemData.json.cs index bf26ef6f9455..b3f1833ea9b7 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/SystemData.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/SystemData.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; @@ -54,13 +54,13 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new SystemData(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.PowerShell.cs similarity index 88% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.PowerShell.cs index fbdee30d71c4..c8dfa1d3ac44 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.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,27 +63,27 @@ public partial class TagsObject partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.ITagsObject DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TagsObject(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.ITagsObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TagsObject(content); } @@ -93,10 +93,10 @@ 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.ITagsObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,13 +111,13 @@ internal TagsObject(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObjectTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObjectTagsTypeConverter.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. @@ -132,7 +132,7 @@ internal TagsObject(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObjectTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObjectTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.TypeConverter.cs index 443323d05230..91a25d6b9bf9 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.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.ITagsObject ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.cs similarity index 83% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.cs index 472ff2831332..e207f69763f0 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.cs @@ -3,22 +3,22 @@ // 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; /// Tags object for patch operations. public partial class TagsObject : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObjectTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObjectTags()); set => this._tag = value; } /// Creates an new instance. public TagsObject() @@ -36,8 +36,8 @@ public partial interface ITagsObject : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags Tag { get; set; } } /// Tags object for patch operations. @@ -45,7 +45,7 @@ internal partial interface ITagsObjectInternal { /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.json.cs similarity index 96% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.json.cs index c8c663116f32..86a85cfb7989 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObject.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObject.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; @@ -54,13 +54,13 @@ public partial class TagsObject partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new TagsObject(json) : null; } @@ -77,7 +77,7 @@ internal TagsObject(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.J { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObjectTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObjectTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.PowerShell.cs similarity index 93% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.PowerShell.cs index 660b39d3e787..644018008a0d 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.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,27 +63,27 @@ public partial class TagsObjectTags partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.ITagsObjectTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TagsObjectTags(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.ITagsObjectTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TagsObjectTags(content); } @@ -93,10 +93,10 @@ 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.ITagsObjectTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,7 +115,7 @@ internal TagsObjectTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.TypeConverter.cs index bfe913db3da0..122f2268c645 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.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.ITagsObjectTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.cs similarity index 93% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.cs index 3e1fb7663c06..5296761255ff 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.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; /// Resource tags. public partial class TagsObjectTags : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTagsInternal { /// Creates an new instance. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.dictionary.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.dictionary.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.dictionary.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.dictionary.cs index 6ede85947235..403fda80fde3 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.dictionary.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.dictionary.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; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObjectTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObjectTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.json.cs similarity index 97% rename from src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.json.cs index 8ae22f02f471..13589398c5f3 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TagsObjectTags.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TagsObjectTags.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; @@ -54,13 +54,13 @@ public partial class TagsObjectTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new TagsObjectTags(json) : null; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.PowerShell.cs similarity index 79% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.PowerShell.cs index ab8c736b6ac0..7bf2e51ff223 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.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,27 +63,27 @@ public partial class TrackedResource partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResource(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.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResource(content); } @@ -93,7 +93,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.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,7 +113,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -128,53 +128,53 @@ internal TrackedResource(global::System.Collections.IDictionary content) // actually deserialize 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("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); } 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. @@ -189,47 +189,47 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) // actually deserialize 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("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); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.TypeConverter.cs index eb3e8e6c2ab2..feced9352c2f 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.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.ITrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.cs similarity index 87% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.cs index b78e31ca375c..0d16422e94b9 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.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; /// Common resource representation. public partial class TrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal { /// Backing field for property. @@ -28,16 +28,16 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -47,38 +47,38 @@ public partial class TrackedResource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData _systemData; /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData()); } + internal Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemData()); } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { 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); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataCreatedByType { 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)""); } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataLastModifiedByType { 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)""); } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Origin(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceTags()); set => this._tag = value; } /// Backing field for property. private string _type; @@ -167,8 +167,8 @@ public partial interface ITrackedResource : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get; set; } /// Resource type. [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( Required = false, @@ -190,7 +190,7 @@ internal partial interface ITrackedResourceInternal /// Resource name. string Name { get; set; } /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData SystemData { get; set; } /// The timestamp of resource creation (UTC). global::System.DateTime? SystemDataCreatedAt { get; set; } /// The identity that created the resource. @@ -202,7 +202,7 @@ internal partial interface ITrackedResourceInternal /// The type of identity that last modified the resource. Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get; set; } /// Resource type. string Type { get; set; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.json.cs similarity index 97% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.json.cs index 590e1b1cf204..d8a6e34c90bf 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResource.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResource.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; @@ -54,13 +54,13 @@ public partial class TrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; } @@ -118,12 +118,12 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runt { return; } - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemData.FromJson(__jsonSystemData) : SystemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.PowerShell.cs similarity index 86% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.PowerShell.cs index 7d302ce73480..03df60e65989 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.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,29 +63,29 @@ public partial class TrackedResourceSystemData partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.ITrackedResourceSystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceSystemData(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.ITrackedResourceSystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceSystemData(content); } @@ -95,7 +95,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.ITrackedResourceSystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -115,7 +115,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -130,29 +130,29 @@ internal TrackedResourceSystemData(global::System.Collections.IDictionary conten // 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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom); } 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. @@ -167,23 +167,23 @@ internal TrackedResourceSystemData(global::System.Management.Automation.PSObject // 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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); + ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.TypeConverter.cs index 3bf01f026fc4..b58d5a7b87a0 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.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.ITrackedResourceSystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceSystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.cs similarity index 82% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.cs index e7728a40eaf3..299a4ba13fbb 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.cs @@ -3,41 +3,41 @@ // 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; /// Metadata pertaining to creation and last modification of the resource. public partial class TrackedResourceSystemData : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceSystemData, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceSystemDataInternal, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemDataInternal, 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(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData __systemData = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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); } + public global::System.DateTime? CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)__systemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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; } + public string CreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)__systemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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)""); } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? CreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)__systemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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; } + public string LastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)__systemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.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)""); } + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType? LastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)__systemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal)__systemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.CreatedByType)""); } /// Creates an new instance. public TrackedResourceSystemData() @@ -60,13 +60,13 @@ public TrackedResourceSystemData() /// Metadata pertaining to creation and last modification of the resource. public partial interface ITrackedResourceSystemData : Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemData + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemData { } /// Metadata pertaining to creation and last modification of the resource. internal partial interface ITrackedResourceSystemDataInternal : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ISystemDataInternal { } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.json.cs similarity index 96% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.json.cs index 15eed08631f7..e67eb0a751c9 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceSystemData.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceSystemData.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; @@ -54,13 +54,13 @@ public partial class TrackedResourceSystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceSystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceSystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceSystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceSystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new TrackedResourceSystemData(json) : null; } @@ -101,7 +101,7 @@ internal TrackedResourceSystemData(Microsoft.Azure.PowerShell.Cmdlets.NetworkFun { return; } - __systemData = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.SystemData(json); + __systemData = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.SystemData(json); AfterFromJson(json); } } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.PowerShell.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.PowerShell.cs similarity index 93% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.PowerShell.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.PowerShell.cs index d901ec0d19dd..e6810e627c18 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.PowerShell.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.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,29 +63,29 @@ public partial class TrackedResourceTags partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// 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.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceTags(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.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceTags(content); } @@ -95,7 +95,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.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -115,7 +115,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -134,7 +134,7 @@ internal TrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.TypeConverter.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.TypeConverter.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.TypeConverter.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.TypeConverter.cs index a47e60cbfd08..acbf4a7d5951 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.TypeConverter.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.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.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.cs similarity index 92% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.cs index 416544ada2eb..d11547e7b42a 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.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; /// Resource tags. public partial class TrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTagsInternal { /// Creates an new instance. diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.dictionary.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.dictionary.cs similarity index 98% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.dictionary.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.dictionary.cs index 6bbf6740a749..07cb0088c371 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.dictionary.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.dictionary.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; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.json.cs b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.json.cs similarity index 97% rename from src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.json.cs rename to src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.json.cs index d51729b02c7e..61e34741c125 100644 --- a/src/NetworkFunction/generated/api/Models/Api20220501/TrackedResourceTags.json.cs +++ b/src/NetworkFunction/generated/api/Models/Api20220801/TrackedResourceTags.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; @@ -54,13 +54,13 @@ public partial class TrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } diff --git a/src/NetworkFunction/generated/api/NetworkFunction.cs b/src/NetworkFunction/generated/api/NetworkFunction.cs index c41cb571d5bf..4c910fa374e6 100644 --- a/src/NetworkFunction/generated/api/NetworkFunction.cs +++ b/src/NetworkFunction/generated/api/NetworkFunction.cs @@ -14,9 +14,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction public partial class NetworkFunction { - /// Return list of Azure Traffic Collectors in a Resource Group + /// Creates or updates a Azure Traffic Collector resource /// The name of the resource group. /// Azure Subscription ID. + /// Azure Traffic Collector name + /// The parameters to provide for the created Azure Traffic Collector. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -25,9 +27,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsByResourceGroupList(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsCreateOrUpdate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37,7 +39,8 @@ public partial class NetworkFunction + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" + + global::System.Uri.EscapeDataString(azureTrafficCollectorName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -46,17 +49,22 @@ public partial class NetworkFunction // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsByResourceGroupList_Call(request,onOk,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Return list of Azure Traffic Collectors in a Resource Group + /// Creates or updates a Azure Traffic Collector resource /// + /// The parameters to provide for the created Azure Traffic Collector. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -65,30 +73,32 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsByResourceGroupListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.NetworkFunction/azureTrafficCollectors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.NetworkFunction/azureTrafficCollectors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}'"); } // replace URI parameters with values from identity var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var azureTrafficCollectorName = _match.Groups["azureTrafficCollectorName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" + + azureTrafficCollectorName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -97,17 +107,21 @@ public partial class NetworkFunction // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsByResourceGroupList_Call(request,onOk,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } /// - /// Actual wire call for method. + /// Actual wire call for method. /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). @@ -118,7 +132,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsByResourceGroupList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -129,6 +143,102 @@ public partial class NetworkFunction await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -136,13 +246,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -158,27 +268,35 @@ public partial class NetworkFunction } /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// The name of the resource group. /// Azure Subscription ID. + /// Azure Traffic Collector name + /// The parameters to provide for the created Azure Traffic Collector. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsByResourceGroupList_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsCreateOrUpdate_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector body, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(azureTrafficCollectorName),azureTrafficCollectorName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Return list of Azure Traffic Collectors in a subscription + /// Deletes a specified Azure Traffic Collector resource. + /// The name of the resource group. /// Azure Subscription ID. + /// Azure Traffic Collector name /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -186,9 +304,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsBySubscriptionList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsDelete(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -196,7 +314,10 @@ public partial class NetworkFunction var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" + + global::System.Uri.EscapeDataString(azureTrafficCollectorName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -205,18 +326,19 @@ public partial class NetworkFunction // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsBySubscriptionList_Call(request,onOk,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Return list of Azure Traffic Collectors in a subscription + /// Deletes a specified Azure Traffic Collector resource. /// /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -224,27 +346,32 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsBySubscriptionListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.NetworkFunction/azureTrafficCollectors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.NetworkFunction/azureTrafficCollectors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}'"); } // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var azureTrafficCollectorName = _match.Groups["azureTrafficCollectorName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" + + azureTrafficCollectorName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -253,20 +380,19 @@ public partial class NetworkFunction // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsBySubscriptionList_Call(request,onOk,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -274,7 +400,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsBySubscriptionList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -285,6 +411,103 @@ public partial class NetworkFunction await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -292,13 +515,19 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollectorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -314,27 +543,30 @@ public partial class NetworkFunction } /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// + /// The name of the resource group. /// Azure Subscription ID. + /// Azure Traffic Collector name /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsBySubscriptionList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsDelete_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(azureTrafficCollectorName),azureTrafficCollectorName); } } - /// Creates or updates a Azure Traffic Collector resource + /// Gets the specified Azure Traffic Collector in a specified resource group /// The name of the resource group. /// Azure Subscription ID. /// Azure Traffic Collector name - /// The parameters to provide for the created Azure Traffic Collector. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -343,9 +575,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsCreateOrUpdate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsGet(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -365,22 +597,17 @@ public partial class NetworkFunction // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or updates a Azure Traffic Collector resource + /// Gets the specified Azure Traffic Collector in a specified resource group /// - /// The parameters to provide for the created Azure Traffic Collector. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -389,9 +616,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -403,158 +630,56 @@ public partial class NetworkFunction throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}'"); } - // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var subscriptionId = _match.Groups["subscriptionId"].Value; - var azureTrafficCollectorName = _match.Groups["azureTrafficCollectorName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" - + azureTrafficCollectorName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.AzureTrafficCollectorsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.UndeclaredResponseException(_response); - } - } + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + var azureTrafficCollectorName = _match.Groups["azureTrafficCollectorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" + + azureTrafficCollectorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // drop the old response - _response?.Dispose(); + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AzureTrafficCollectorsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -562,13 +687,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -584,35 +709,30 @@ public partial class NetworkFunction } /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The name of the resource group. /// Azure Subscription ID. /// Azure Traffic Collector name - /// The parameters to provide for the created Azure Traffic Collector. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsCreateOrUpdate_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector body, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsGet_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(azureTrafficCollectorName),azureTrafficCollectorName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Deletes a specified Azure Traffic Collector resource. + /// Return list of Azure Traffic Collectors in a Resource Group /// The name of the resource group. /// Azure Subscription ID. - /// Azure Traffic Collector name /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -620,9 +740,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsDelete(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -632,8 +752,7 @@ public partial class NetworkFunction + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" - + global::System.Uri.EscapeDataString(azureTrafficCollectorName) + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -642,19 +761,18 @@ public partial class NetworkFunction // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Deletes a specified Azure Traffic Collector resource. + /// Return list of Azure Traffic Collectors in a Resource Group /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -662,32 +780,30 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.NetworkFunction/azureTrafficCollectors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.NetworkFunction/azureTrafficCollectors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors'"); } // replace URI parameters with values from identity var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; - var azureTrafficCollectorName = _match.Groups["azureTrafficCollectorName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" - + azureTrafficCollectorName + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -696,19 +812,20 @@ public partial class NetworkFunction // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -716,7 +833,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -727,103 +844,6 @@ public partial class NetworkFunction await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -831,19 +851,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -859,30 +873,26 @@ public partial class NetworkFunction } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. /// /// The name of the resource group. /// Azure Subscription ID. - /// Azure Traffic Collector name /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsDelete_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsListByResourceGroup_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(azureTrafficCollectorName),azureTrafficCollectorName); } } - /// Gets the specified Azure Traffic Collector in a specified resource group - /// The name of the resource group. + /// Return list of Azure Traffic Collectors in a subscription /// Azure Subscription ID. - /// Azure Traffic Collector name /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -891,9 +901,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsGet(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -901,10 +911,7 @@ public partial class NetworkFunction var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" - + global::System.Uri.EscapeDataString(azureTrafficCollectorName) + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -918,11 +925,11 @@ public partial class NetworkFunction await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsListBySubscription_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets the specified Azure Traffic Collector in a specified resource group + /// Return list of Azure Traffic Collectors in a subscription /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -932,32 +939,27 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.NetworkFunction/azureTrafficCollectors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.NetworkFunction/azureTrafficCollectors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; - var azureTrafficCollectorName = _match.Groups["azureTrafficCollectorName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors/" - + azureTrafficCollectorName + + "/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -971,11 +973,13 @@ public partial class NetworkFunction await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AzureTrafficCollectorsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.AzureTrafficCollectorsListBySubscription_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -985,7 +989,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1003,13 +1007,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollectorListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1025,23 +1029,19 @@ public partial class NetworkFunction } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. /// - /// The name of the resource group. /// Azure Subscription ID. - /// Azure Traffic Collector name /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsGet_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(azureTrafficCollectorName),azureTrafficCollectorName); } } @@ -1058,9 +1058,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsUpdateTags(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsUpdateTags(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1104,9 +1104,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AzureTrafficCollectorsUpdateTagsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AzureTrafficCollectorsUpdateTagsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1161,7 +1161,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsUpdateTags_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsUpdateTags_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1179,13 +1179,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1212,7 +1212,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsUpdateTags_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject body, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AzureTrafficCollectorsUpdateTags_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject body, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1238,9 +1238,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CollectorPoliciesCreateOrUpdate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, string collectorPolicyName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CollectorPoliciesCreateOrUpdate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, string collectorPolicyName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1286,9 +1286,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CollectorPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CollectorPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1346,7 +1346,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CollectorPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CollectorPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1460,13 +1460,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1494,7 +1494,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CollectorPoliciesCreateOrUpdate_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, string collectorPolicyName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy body, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CollectorPoliciesCreateOrUpdate_Validate(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, string collectorPolicyName, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy body, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1521,9 +1521,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CollectorPoliciesDelete(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, string collectorPolicyName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CollectorPoliciesDelete(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, string collectorPolicyName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1565,9 +1565,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CollectorPoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CollectorPoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1622,7 +1622,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CollectorPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CollectorPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1749,7 +1749,7 @@ public partial class NetworkFunction default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1800,9 +1800,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CollectorPoliciesGet(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, string collectorPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CollectorPoliciesGet(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, string collectorPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1843,9 +1843,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CollectorPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CollectorPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1899,7 +1899,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CollectorPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CollectorPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1917,13 +1917,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1973,9 +1973,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CollectorPoliciesList(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CollectorPoliciesList(string resourceGroupName, string subscriptionId, string azureTrafficCollectorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2015,9 +2015,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CollectorPoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CollectorPoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2069,7 +2069,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CollectorPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CollectorPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2087,13 +2087,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2138,9 +2138,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkFunctionListOperations(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkFunctionListOperations(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2174,9 +2174,9 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkFunctionListOperationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkFunctionListOperationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-08-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2219,7 +2219,7 @@ public partial class NetworkFunction /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkFunctionListOperations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkFunctionListOperations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2237,13 +2237,13 @@ public partial class NetworkFunction case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } diff --git a/src/NetworkFunction/generated/api/Support/ApiVersionParameter.Completer.cs b/src/NetworkFunction/generated/api/Support/ApiVersionParameter.Completer.cs new file mode 100644 index 000000000000..59c99cd5ea13 --- /dev/null +++ b/src/NetworkFunction/generated/api/Support/ApiVersionParameter.Completer.cs @@ -0,0 +1,39 @@ +// 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.Support +{ + + /// Argument completer implementation for ApiVersionParameter. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameterTypeConverter))] + public partial struct ApiVersionParameter : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "2022-05-01".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'2022-05-01'", "2022-05-01", global::System.Management.Automation.CompletionResultType.ParameterValue, "2022-05-01"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "2022-08-01".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'2022-08-01'", "2022-08-01", global::System.Management.Automation.CompletionResultType.ParameterValue, "2022-08-01"); + } + } + } +} \ No newline at end of file diff --git a/src/NetworkFunction/generated/api/Support/ApiVersionParameter.TypeConverter.cs b/src/NetworkFunction/generated/api/Support/ApiVersionParameter.TypeConverter.cs new file mode 100644 index 000000000000..64bc3042a134 --- /dev/null +++ b/src/NetworkFunction/generated/api/Support/ApiVersionParameter.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.Support +{ + + /// TypeConverter implementation for ApiVersionParameter. + public partial class ApiVersionParameterTypeConverter : + 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) => true; + + /// + /// 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 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) => ApiVersionParameter.CreateFrom(sourceValue); + + /// 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/Support/ApiVersionParameter.cs b/src/NetworkFunction/generated/api/Support/ApiVersionParameter.cs new file mode 100644 index 000000000000..af1a58e265c7 --- /dev/null +++ b/src/NetworkFunction/generated/api/Support/ApiVersionParameter.cs @@ -0,0 +1,97 @@ +// 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.Support +{ + + public partial struct ApiVersionParameter : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameter TwoThousandTwentyTwo0501 = @"2022-05-01"; + + public static Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameter TwoThousandTwentyTwo0801 = @"2022-08-01"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ApiVersionParameter(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to ApiVersionParameter + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ApiVersionParameter(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ApiVersionParameter + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameter e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ApiVersionParameter (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ApiVersionParameter && Equals((ApiVersionParameter)obj); + } + + /// Returns hashCode for enum ApiVersionParameter + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ApiVersionParameter + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ApiVersionParameter + /// the value to convert to an instance of . + + public static implicit operator ApiVersionParameter(string value) + { + return new ApiVersionParameter(value); + } + + /// Implicit operator to convert ApiVersionParameter to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameter e) + { + return e._value; + } + + /// Overriding != operator for enum ApiVersionParameter + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameter e1, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameter e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ApiVersionParameter + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameter e1, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.ApiVersionParameter e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_Get.cs b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_Get.cs index e4d62ece61bc..40491ee2c5cc 100644 --- a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_Get.cs +++ b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionCollectorPolicy_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Gets the collector policy in a specified Traffic Collector")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class GetAzNetworkFunctionCollectorPolicy_Get : global::System.Management.Automation.PSCmdlet, @@ -160,24 +160,24 @@ public partial class GetAzNetworkFunctionCollectorPolicy_Get : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -353,12 +353,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -375,7 +375,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -393,12 +393,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -410,7 +410,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_GetViaIdentity.cs b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_GetViaIdentity.cs index 257b94b88493..ffb711451ce7 100644 --- a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_GetViaIdentity.cs +++ b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_GetViaIdentity.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionCollectorPolicy_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Gets the collector policy in a specified Traffic Collector")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class GetAzNetworkFunctionCollectorPolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -107,24 +107,24 @@ public partial class GetAzNetworkFunctionCollectorPolicy_GetViaIdentity : global /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -321,12 +321,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -343,7 +343,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -378,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_List.cs b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_List.cs index 0a114ee8b3ea..dfbc01133f9d 100644 --- a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_List.cs +++ b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionCollectorPolicy_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionCollectorPolicy_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Return list of Collector policies in a Azure Traffic Collector")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class GetAzNetworkFunctionCollectorPolicy_List : global::System.Management.Automation.PSCmdlet, @@ -151,24 +151,24 @@ public partial class GetAzNetworkFunctionCollectorPolicy_List : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -344,12 +344,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -366,7 +366,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -384,12 +384,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicyListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicyListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionOperation_List.cs b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionOperation_List.cs index 9b4dd7929c6c..518a70071da4 100644 --- a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionOperation_List.cs +++ b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionOperation_List.cs @@ -12,8 +12,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] ListOperations=>GET:"/providers/Microsoft.NetworkFunction/operations" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionOperation_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Lists all of the available NetworkFunction Rest API operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class GetAzNetworkFunctionOperation_List : global::System.Management.Automation.PSCmdlet, @@ -99,24 +100,24 @@ public partial class GetAzNetworkFunctionOperation_List : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -289,12 +290,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -311,7 +312,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -329,12 +330,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollector_Get.cs b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_Get.cs similarity index 95% rename from src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollector_Get.cs rename to src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_Get.cs index 0f788b2bedfe..17a9c1fa5eee 100644 --- a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollector_Get.cs +++ b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_Get.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionAzureTrafficCollector_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionTrafficCollector_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Gets the specified Azure Traffic Collector in a specified resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class GetAzNetworkFunctionAzureTrafficCollector_Get : global::System.Management.Automation.PSCmdlet, + public partial class GetAzNetworkFunctionTrafficCollector_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -146,24 +146,24 @@ public partial class GetAzNetworkFunctionAzureTrafficCollector_Get : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -190,9 +190,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public GetAzNetworkFunctionAzureTrafficCollector_Get() + public GetAzNetworkFunctionTrafficCollector_Get() { } @@ -339,12 +339,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -361,7 +361,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -379,12 +379,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -396,7 +396,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollector_GetViaIdentity.cs b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_GetViaIdentity.cs similarity index 95% rename from src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollector_GetViaIdentity.cs rename to src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_GetViaIdentity.cs index 5b4f0ed45550..ce062f46c87e 100644 --- a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollector_GetViaIdentity.cs +++ b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_GetViaIdentity.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionAzureTrafficCollector_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionTrafficCollector_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Gets the specified Azure Traffic Collector in a specified resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class GetAzNetworkFunctionAzureTrafficCollector_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + public partial class GetAzNetworkFunctionTrafficCollector_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -107,24 +107,24 @@ public partial class GetAzNetworkFunctionAzureTrafficCollector_GetViaIdentity : /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -151,9 +151,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public GetAzNetworkFunctionAzureTrafficCollector_GetViaIdentity() + public GetAzNetworkFunctionTrafficCollector_GetViaIdentity() { } @@ -317,12 +317,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -339,7 +339,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -357,12 +357,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -374,7 +374,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollectorsBySubscription_List.cs b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_List.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollectorsBySubscription_List.cs rename to src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_List.cs index 0a42b0f3fa34..82bd23ec6a56 100644 --- a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollectorsBySubscription_List.cs +++ b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_List.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// Return list of Azure Traffic Collectors in a subscription /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionAzureTrafficCollectorsBySubscription_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionTrafficCollector_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Return list of Azure Traffic Collectors in a subscription")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class GetAzNetworkFunctionAzureTrafficCollectorsBySubscription_List : global::System.Management.Automation.PSCmdlet, + public partial class GetAzNetworkFunctionTrafficCollector_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -123,24 +123,24 @@ public partial class GetAzNetworkFunctionAzureTrafficCollectorsBySubscription_Li /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -167,9 +167,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public GetAzNetworkFunctionAzureTrafficCollectorsBySubscription_List() + public GetAzNetworkFunctionTrafficCollector_List() { } @@ -287,7 +287,7 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AzureTrafficCollectorsBySubscriptionList(SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.AzureTrafficCollectorsListBySubscription(SubscriptionId, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } @@ -316,12 +316,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -338,7 +338,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -356,12 +356,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -387,7 +387,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AzureTrafficCollectorsBySubscriptionList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.AzureTrafficCollectorsListBySubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List.cs b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_List1.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List.cs rename to src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_List1.cs index 821eb10c3d7b..4bd2a82db30b 100644 --- a/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List.cs +++ b/src/NetworkFunction/generated/cmdlets/GetAzNetworkFunctionTrafficCollector_List1.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// Return list of Azure Traffic Collectors in a Resource Group /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzNetworkFunctionTrafficCollector_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Return list of Azure Traffic Collectors in a Resource Group")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class GetAzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List : global::System.Management.Automation.PSCmdlet, + public partial class GetAzNetworkFunctionTrafficCollector_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -137,24 +137,24 @@ public partial class GetAzNetworkFunctionAzureTrafficCollectorsByResourceGroup_L /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -181,10 +181,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet - /// class. + /// Intializes a new instance of the cmdlet class. /// - public GetAzNetworkFunctionAzureTrafficCollectorsByResourceGroup_List() + public GetAzNetworkFunctionTrafficCollector_List1() { } @@ -302,7 +301,7 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AzureTrafficCollectorsByResourceGroupList(ResourceGroupName, SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.AzureTrafficCollectorsListByResourceGroup(ResourceGroupName, SubscriptionId, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } @@ -331,12 +330,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -353,7 +352,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -371,12 +370,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollectorListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollectorListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,7 +401,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AzureTrafficCollectorsByResourceGroupList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.AzureTrafficCollectorsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_Create.cs b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_Create.cs index 78d873497fe2..6c873e5d272d 100644 --- a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_Create.cs +++ b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_Create.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionCollectorPolicy_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Collector Policy resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class NewAzNetworkFunctionCollectorPolicy_Create : global::System.Management.Automation.PSCmdlet, @@ -117,7 +117,7 @@ public partial class NewAzNetworkFunctionCollectorPolicy_Create : global::System public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy _parameter; /// Collector policy resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Collector policy resource.", ValueFromPipeline = true)] @@ -126,8 +126,8 @@ public partial class NewAzNetworkFunctionCollectorPolicy_Create : global::System ReadOnly = false, Description = @"Collector policy resource.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -187,24 +187,24 @@ public partial class NewAzNetworkFunctionCollectorPolicy_Create : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -435,12 +435,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -457,7 +457,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -475,12 +475,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateExpanded.cs b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateExpanded.cs index fb0a29ba9d67..b19dac965483 100644 --- a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateExpanded.cs +++ b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateExpanded.cs @@ -12,8 +12,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionCollectorPolicy_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Collector Policy resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class NewAzNetworkFunctionCollectorPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,7 +35,7 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateExpanded : global private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Collector policy resource. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -81,8 +82,8 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateExpanded : global ReadOnly = false, Description = @"Emission policies.", SerializedName = @"emissionPolicies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => _parametersBody.EmissionPolicy ?? null /* arrayOf */; set => _parametersBody.EmissionPolicy = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => _parametersBody.EmissionPolicy ?? null /* arrayOf */; set => _parametersBody.EmissionPolicy = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -105,8 +106,8 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateExpanded : global ReadOnly = false, Description = @"Ingestion Sources.", SerializedName = @"ingestionSources", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => _parametersBody.IngestionPolicyIngestionSource ?? null /* arrayOf */; set => _parametersBody.IngestionPolicyIngestionSource = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => _parametersBody.IngestionPolicyIngestionSource ?? null /* arrayOf */; set => _parametersBody.IngestionPolicyIngestionSource = value; } /// The ingestion type. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ingestion type.")] @@ -123,6 +124,17 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateExpanded : global /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -207,29 +219,41 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateExpanded : global [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -460,12 +484,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -482,7 +506,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -500,12 +524,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -517,7 +541,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity.cs b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity.cs index bf943c513d18..544d0f36854f 100644 --- a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity.cs +++ b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionCollectorPolicy_CreateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Collector Policy resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -96,7 +96,7 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity : glo public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy _parameter; /// Collector policy resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Collector policy resource.", ValueFromPipeline = true)] @@ -105,8 +105,8 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity : glo ReadOnly = false, Description = @"Collector policy resource.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -134,24 +134,24 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -402,12 +402,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -424,7 +424,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -442,12 +442,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -459,7 +459,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded.cs b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded.cs index 8c9fed0520f4..5862150da985 100644 --- a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded.cs +++ b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Collector Policy resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpand private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Collector policy resource. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -68,8 +68,8 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpand ReadOnly = false, Description = @"Emission policies.", SerializedName = @"emissionPolicies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => _parametersBody.EmissionPolicy ?? null /* arrayOf */; set => _parametersBody.EmissionPolicy = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => _parametersBody.EmissionPolicy ?? null /* arrayOf */; set => _parametersBody.EmissionPolicy = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -92,8 +92,8 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpand ReadOnly = false, Description = @"Ingestion Sources.", SerializedName = @"ingestionSources", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => _parametersBody.IngestionPolicyIngestionSource ?? null /* arrayOf */; set => _parametersBody.IngestionPolicyIngestionSource = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => _parametersBody.IngestionPolicyIngestionSource ?? null /* arrayOf */; set => _parametersBody.IngestionPolicyIngestionSource = value; } /// The ingestion type. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ingestion type.")] @@ -118,6 +118,17 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpand /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -155,29 +166,41 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpand [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -430,12 +453,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -452,7 +475,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -470,12 +493,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -487,7 +510,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_Create.cs b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_Create.cs similarity index 95% rename from src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_Create.cs rename to src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_Create.cs index 2273b28b9afa..85f25b642233 100644 --- a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_Create.cs +++ b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_Create.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionAzureTrafficCollector_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionTrafficCollector_Create", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Azure Traffic Collector resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class NewAzNetworkFunctionAzureTrafficCollector_Create : global::System.Management.Automation.PSCmdlet, + public partial class NewAzNetworkFunctionTrafficCollector_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -103,7 +103,7 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_Create : global:: public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector _parameter; /// Azure Traffic Collector resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Azure Traffic Collector resource.", ValueFromPipeline = true)] @@ -112,8 +112,8 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_Create : global:: ReadOnly = false, Description = @"Azure Traffic Collector resource.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -173,24 +173,24 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_Create : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -211,10 +211,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzNetworkFunctionAzureTrafficCollector_Create - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFunctionAzureTrafficCollector_Create Clone() + /// a duplicate instance of NewAzNetworkFunctionTrafficCollector_Create + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFunctionTrafficCollector_Create Clone() { - var clone = new NewAzNetworkFunctionAzureTrafficCollector_Create(); + var clone = new NewAzNetworkFunctionTrafficCollector_Create(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -313,9 +313,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public NewAzNetworkFunctionAzureTrafficCollector_Create() + public NewAzNetworkFunctionTrafficCollector_Create() { } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -442,7 +442,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -460,12 +460,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded.cs b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateExpanded.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded.cs rename to src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateExpanded.cs index 0bbad1498b53..e4ccce2c272d 100644 --- a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded.cs +++ b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateExpanded.cs @@ -12,11 +12,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionAzureTrafficCollector_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionTrafficCollector_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Azure Traffic Collector resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded : global::System.Management.Automation.PSCmdlet, + public partial class NewAzNetworkFunctionTrafficCollector_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -34,7 +35,7 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded : private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Azure Traffic Collector resource. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -58,8 +59,8 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded : ReadOnly = false, Description = @"Collector Policies for Azure Traffic Collector.", SerializedName = @"collectorPolicies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get => _parametersBody.CollectorPolicy ?? null /* arrayOf */; set => _parametersBody.CollectorPolicy = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get => _parametersBody.CollectorPolicy ?? null /* arrayOf */; set => _parametersBody.CollectorPolicy = value; } /// /// The credentials, account, tenant, and subscription used for communication with Azure @@ -189,32 +190,32 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -235,12 +236,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded - /// - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded Clone() + /// a duplicate instance of NewAzNetworkFunctionTrafficCollector_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFunctionTrafficCollector_CreateExpanded Clone() { - var clone = new NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded(); + var clone = new NewAzNetworkFunctionTrafficCollector_CreateExpanded(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -339,9 +338,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public NewAzNetworkFunctionAzureTrafficCollector_CreateExpanded() + public NewAzNetworkFunctionTrafficCollector_CreateExpanded() { } @@ -446,12 +445,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -468,7 +467,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -486,12 +485,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -503,7 +502,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity.cs b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentity.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity.cs rename to src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentity.cs index 91faefc0aece..d6cc1d4de6ec 100644 --- a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity.cs +++ b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentity.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionAzureTrafficCollector_CreateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionTrafficCollector_CreateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Azure Traffic Collector resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, + public partial class NewAzNetworkFunctionTrafficCollector_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -96,7 +96,7 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector _parameter; /// Azure Traffic Collector resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Azure Traffic Collector resource.", ValueFromPipeline = true)] @@ -105,8 +105,8 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity ReadOnly = false, Description = @"Azure Traffic Collector resource.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -134,24 +134,24 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -172,12 +172,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity - /// - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity Clone() + /// a duplicate instance of NewAzNetworkFunctionTrafficCollector_CreateViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFunctionTrafficCollector_CreateViaIdentity Clone() { - var clone = new NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity(); + var clone = new NewAzNetworkFunctionTrafficCollector_CreateViaIdentity(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -273,9 +271,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity() + public NewAzNetworkFunctionTrafficCollector_CreateViaIdentity() { } @@ -400,12 +398,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -422,7 +420,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -440,12 +438,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -457,7 +455,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded.cs b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded.cs rename to src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded.cs index 3c17e457fb0c..5953663492be 100644 --- a/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded.cs +++ b/src/NetworkFunction/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Azure Traffic Collector resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + public partial class NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -35,7 +35,7 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Azure Traffic Collector resource. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -59,8 +59,8 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity ReadOnly = false, Description = @"Collector Policies for Azure Traffic Collector.", SerializedName = @"collectorPolicies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get => _parametersBody.CollectorPolicy ?? null /* arrayOf */; set => _parametersBody.CollectorPolicy = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get => _parametersBody.CollectorPolicy ?? null /* arrayOf */; set => _parametersBody.CollectorPolicy = value; } /// /// The credentials, account, tenant, and subscription used for communication with Azure @@ -151,32 +151,32 @@ public partial class NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentity ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -198,11 +198,11 @@ protected override void BeginProcessing() /// Creates a duplicate instance of this cmdlet (via JSON serialization). /// - /// a duplicate instance of NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded + /// a duplicate instance of NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded /// - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded Clone() + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded Clone() { - var clone = new NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded(); + var clone = new NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -298,10 +298,10 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet + /// Intializes a new instance of the cmdlet /// class. /// - public NewAzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded() + public NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded() { } @@ -426,12 +426,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -448,7 +448,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -466,12 +466,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -483,7 +483,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_Delete.cs b/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_Delete.cs index 7607711ffe80..ab38bd8fc1c9 100644 --- a/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_Delete.cs +++ b/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_Delete.cs @@ -180,12 +180,12 @@ public partial class RemoveAzNetworkFunctionCollectorPolicy_Delete : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -435,12 +435,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -457,7 +457,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity.cs b/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity.cs index 0d79b259c6a8..2c465255d024 100644 --- a/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity.cs +++ b/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity.cs @@ -127,12 +127,12 @@ public partial class RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity : /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -404,12 +404,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -426,7 +426,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionAzureTrafficCollector_Delete.cs b/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_Delete.cs similarity index 97% rename from src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionAzureTrafficCollector_Delete.cs rename to src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_Delete.cs index 41f3d85c03d2..3d130cdbcaac 100644 --- a/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionAzureTrafficCollector_Delete.cs +++ b/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_Delete.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzNetworkFunctionAzureTrafficCollector_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzNetworkFunctionTrafficCollector_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Deletes a specified Azure Traffic Collector resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class RemoveAzNetworkFunctionAzureTrafficCollector_Delete : global::System.Management.Automation.PSCmdlet, + public partial class RemoveAzNetworkFunctionTrafficCollector_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -166,12 +166,12 @@ public partial class RemoveAzNetworkFunctionAzureTrafficCollector_Delete : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -212,10 +212,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of RemoveAzNetworkFunctionAzureTrafficCollector_Delete - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetworkFunctionAzureTrafficCollector_Delete Clone() + /// a duplicate instance of RemoveAzNetworkFunctionTrafficCollector_Delete + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetworkFunctionTrafficCollector_Delete Clone() { - var clone = new RemoveAzNetworkFunctionAzureTrafficCollector_Delete(); + var clone = new RemoveAzNetworkFunctionTrafficCollector_Delete(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -402,9 +402,9 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public RemoveAzNetworkFunctionAzureTrafficCollector_Delete() + public RemoveAzNetworkFunctionTrafficCollector_Delete() { } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -442,7 +442,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity.cs b/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity.cs similarity index 96% rename from src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity.cs rename to src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity.cs index 049fcb7f3e88..9a80338abc62 100644 --- a/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity.cs +++ b/src/NetworkFunction/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzNetworkFunctionTrafficCollector_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Deletes a specified Azure Traffic Collector resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + public partial class RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -127,12 +127,12 @@ public partial class RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdent /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -174,11 +174,11 @@ protected override void BeginProcessing() /// Creates a duplicate instance of this cmdlet (via JSON serialization). /// - /// a duplicate instance of RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity + /// a duplicate instance of RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity /// - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity Clone() + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity Clone() { - var clone = new RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity(); + var clone = new RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -382,10 +382,9 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet - /// class. + /// Intializes a new instance of the cmdlet class. /// - public RemoveAzNetworkFunctionAzureTrafficCollector_DeleteViaIdentity() + public RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity() { } @@ -401,12 +400,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -423,7 +422,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionCollectorPolicy_Update.cs b/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionCollectorPolicy_Update.cs index ff442f3c0fa4..0b83c00c039b 100644 --- a/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionCollectorPolicy_Update.cs +++ b/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionCollectorPolicy_Update.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzNetworkFunctionCollectorPolicy_Update", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Collector Policy resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class SetAzNetworkFunctionCollectorPolicy_Update : global::System.Management.Automation.PSCmdlet, @@ -117,7 +117,7 @@ public partial class SetAzNetworkFunctionCollectorPolicy_Update : global::System public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy _parameter; /// Collector policy resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Collector policy resource.", ValueFromPipeline = true)] @@ -126,8 +126,8 @@ public partial class SetAzNetworkFunctionCollectorPolicy_Update : global::System ReadOnly = false, Description = @"Collector policy resource.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -187,24 +187,24 @@ public partial class SetAzNetworkFunctionCollectorPolicy_Update : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -435,12 +435,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -457,7 +457,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -475,12 +475,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionCollectorPolicy_UpdateExpanded.cs b/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionCollectorPolicy_UpdateExpanded.cs index bab165367a9d..1961a116c492 100644 --- a/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionCollectorPolicy_UpdateExpanded.cs +++ b/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionCollectorPolicy_UpdateExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzNetworkFunctionCollectorPolicy_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Collector Policy resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] public partial class SetAzNetworkFunctionCollectorPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class SetAzNetworkFunctionCollectorPolicy_UpdateExpanded : global private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Collector policy resource. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.CollectorPolicy(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.CollectorPolicy(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -82,8 +82,8 @@ public partial class SetAzNetworkFunctionCollectorPolicy_UpdateExpanded : global ReadOnly = false, Description = @"Emission policies.", SerializedName = @"emissionPolicies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => _parametersBody.EmissionPolicy ?? null /* arrayOf */; set => _parametersBody.EmissionPolicy = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] EmissionPolicy { get => _parametersBody.EmissionPolicy ?? null /* arrayOf */; set => _parametersBody.EmissionPolicy = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -106,8 +106,8 @@ public partial class SetAzNetworkFunctionCollectorPolicy_UpdateExpanded : global ReadOnly = false, Description = @"Ingestion Sources.", SerializedName = @"ingestionSources", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => _parametersBody.IngestionPolicyIngestionSource ?? null /* arrayOf */; set => _parametersBody.IngestionPolicyIngestionSource = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] IngestionPolicyIngestionSource { get => _parametersBody.IngestionPolicyIngestionSource ?? null /* arrayOf */; set => _parametersBody.IngestionPolicyIngestionSource = value; } /// The ingestion type. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ingestion type.")] @@ -124,6 +124,17 @@ public partial class SetAzNetworkFunctionCollectorPolicy_UpdateExpanded : global /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -208,29 +219,41 @@ public partial class SetAzNetworkFunctionCollectorPolicy_UpdateExpanded : global [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -461,12 +484,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -483,7 +506,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -501,12 +524,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -518,7 +541,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionAzureTrafficCollector_Update.cs b/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionTrafficCollector_Update.cs similarity index 95% rename from src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionAzureTrafficCollector_Update.cs rename to src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionTrafficCollector_Update.cs index f4820c01e006..5059a154058b 100644 --- a/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionAzureTrafficCollector_Update.cs +++ b/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionTrafficCollector_Update.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzNetworkFunctionAzureTrafficCollector_Update", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzNetworkFunctionTrafficCollector_Update", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Azure Traffic Collector resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class SetAzNetworkFunctionAzureTrafficCollector_Update : global::System.Management.Automation.PSCmdlet, + public partial class SetAzNetworkFunctionTrafficCollector_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -103,7 +103,7 @@ public partial class SetAzNetworkFunctionAzureTrafficCollector_Update : global:: public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector _parameter; /// Azure Traffic Collector resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Azure Traffic Collector resource.", ValueFromPipeline = true)] @@ -112,8 +112,8 @@ public partial class SetAzNetworkFunctionAzureTrafficCollector_Update : global:: ReadOnly = false, Description = @"Azure Traffic Collector resource.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -173,24 +173,24 @@ public partial class SetAzNetworkFunctionAzureTrafficCollector_Update : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -211,10 +211,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of SetAzNetworkFunctionAzureTrafficCollector_Update - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.SetAzNetworkFunctionAzureTrafficCollector_Update Clone() + /// a duplicate instance of SetAzNetworkFunctionTrafficCollector_Update + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.SetAzNetworkFunctionTrafficCollector_Update Clone() { - var clone = new SetAzNetworkFunctionAzureTrafficCollector_Update(); + var clone = new SetAzNetworkFunctionTrafficCollector_Update(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -402,9 +402,9 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public SetAzNetworkFunctionAzureTrafficCollector_Update() + public SetAzNetworkFunctionTrafficCollector_Update() { } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -442,7 +442,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -460,12 +460,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded.cs b/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionTrafficCollector_UpdateExpanded.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded.cs rename to src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionTrafficCollector_UpdateExpanded.cs index a6b785e78f86..ec20abd0d99a 100644 --- a/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded.cs +++ b/src/NetworkFunction/generated/cmdlets/SetAzNetworkFunctionTrafficCollector_UpdateExpanded.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzNetworkFunctionAzureTrafficCollector_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzNetworkFunctionTrafficCollector_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Creates or updates a Azure Traffic Collector resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + public partial class SetAzNetworkFunctionTrafficCollector_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -35,7 +35,7 @@ public partial class SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded : private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Azure Traffic Collector resource. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.AzureTrafficCollector(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.AzureTrafficCollector(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -59,8 +59,8 @@ public partial class SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded : ReadOnly = false, Description = @"Collector Policies for Azure Traffic Collector.", SerializedName = @"collectorPolicies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] CollectorPolicy { get => _parametersBody.CollectorPolicy ?? null /* arrayOf */; set => _parametersBody.CollectorPolicy = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] CollectorPolicy { get => _parametersBody.CollectorPolicy ?? null /* arrayOf */; set => _parametersBody.CollectorPolicy = value; } /// /// The credentials, account, tenant, and subscription used for communication with Azure @@ -190,32 +190,32 @@ public partial class SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -236,12 +236,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded - /// - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded Clone() + /// a duplicate instance of SetAzNetworkFunctionTrafficCollector_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.SetAzNetworkFunctionTrafficCollector_UpdateExpanded Clone() { - var clone = new SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded(); + var clone = new SetAzNetworkFunctionTrafficCollector_UpdateExpanded(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -429,9 +427,9 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public SetAzNetworkFunctionAzureTrafficCollector_UpdateExpanded() + public SetAzNetworkFunctionTrafficCollector_UpdateExpanded() { } @@ -447,12 +445,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -469,7 +467,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -487,12 +485,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -504,7 +502,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update.cs b/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_Update.cs similarity index 95% rename from src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update.cs rename to src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_Update.cs index 5daaa4707224..72def8cd546c 100644 --- a/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update.cs +++ b/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_Update.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFunctionAzureTrafficCollectorTag_Update", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFunctionTrafficCollectorTag_Update", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Updates the specified Azure Traffic Collector tags.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update : global::System.Management.Automation.PSCmdlet, + public partial class UpdateAzNetworkFunctionTrafficCollectorTag_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -89,7 +89,7 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update : gl global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject _parameter; /// Tags object for patch operations. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Tags object for patch operations.", ValueFromPipeline = true)] @@ -98,8 +98,8 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update : gl ReadOnly = false, Description = @"Tags object for patch operations.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -159,24 +159,24 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -341,9 +341,9 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update() + public UpdateAzNetworkFunctionTrafficCollectorTag_Update() { } @@ -352,12 +352,12 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -374,7 +374,7 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -392,12 +392,12 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded.cs b/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateExpanded.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded.cs rename to src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateExpanded.cs index 3c9b1e25e817..7bbfcc0cd366 100644 --- a/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded.cs +++ b/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateExpanded.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFunctionTrafficCollectorTag_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Updates the specified Azure Traffic Collector tags.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + public partial class UpdateAzNetworkFunctionTrafficCollectorTag_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -34,7 +34,7 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpan private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObject(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObject(); /// Backing field for property. private string _azureTrafficCollectorName; @@ -152,32 +152,32 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpan ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -342,10 +342,9 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet - /// class. + /// Intializes a new instance of the cmdlet class. /// - public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded() + public UpdateAzNetworkFunctionTrafficCollectorTag_UpdateExpanded() { } @@ -354,12 +353,12 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -376,7 +375,7 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, AzureTrafficCollectorName=AzureTrafficCollectorName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -394,12 +393,12 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -411,7 +410,7 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity.cs b/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity.cs rename to src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity.cs index 5a9e0a3769b7..97da1673736a 100644 --- a/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity.cs +++ b/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Updates the specified Azure Traffic Collector tags.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, + public partial class UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -83,7 +83,7 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaId global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject _parameter; /// Tags object for patch operations. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Tags object for patch operations.", ValueFromPipeline = true)] @@ -92,8 +92,8 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaId ReadOnly = false, Description = @"Tags object for patch operations.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -121,24 +121,24 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaId /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -323,10 +323,9 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet - /// class. + /// Intializes a new instance of the cmdlet class. /// - public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity() + public UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity() { } @@ -335,12 +334,12 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -357,7 +356,7 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -375,12 +374,12 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -392,7 +391,7 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded.cs b/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded.cs similarity index 94% rename from src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded.cs rename to src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded.cs index 65ebcf21477f..59c44ac3e62c 100644 --- a/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded.cs +++ b/src/NetworkFunction/generated/cmdlets/UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector))] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Description(@"Updates the specified Azure Traffic Collector tags.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Generated] - public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + public partial class UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -34,7 +34,7 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaId private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.TagsObject(); + private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.TagsObject(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -114,32 +114,32 @@ public partial class UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaId ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -324,10 +324,10 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet + /// class. /// - public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded() + public UpdateAzNetworkFunctionTrafficCollectorTag_UpdateViaIdentityExpanded() { } @@ -336,12 +336,12 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -358,7 +358,7 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -376,12 +376,12 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -393,7 +393,7 @@ public UpdateAzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentityExpanded return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector WriteObject((await response)); } } diff --git a/src/NetworkFunction/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/NetworkFunction/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index d8175707c6a8..30e6070796a9 100644 --- a/src/NetworkFunction/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/NetworkFunction/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -163,7 +163,7 @@ protected override void ProcessRecord() if (previewVersion != null) { - sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = '{previewVersion}'"); } sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule NetworkFunction".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); diff --git a/src/NetworkFunction/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/NetworkFunction/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index d071e03e4530..3fe80e01e9b1 100644 --- a/src/NetworkFunction/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/NetworkFunction/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -604,7 +604,7 @@ string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool return ni.IsComplexInterface ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); - }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks)); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, includeBackticks)); return String.Join(Environment.NewLine, nested); } } diff --git a/src/NetworkFunction/help/Az.NetworkFunction.md b/src/NetworkFunction/help/Az.NetworkFunction.md index 7e99868496cb..02e233375d51 100644 --- a/src/NetworkFunction/help/Az.NetworkFunction.md +++ b/src/NetworkFunction/help/Az.NetworkFunction.md @@ -11,33 +11,30 @@ Locale: en-US Microsoft Azure PowerShell: NetworkFunction cmdlets ## Az.NetworkFunction Cmdlets -### [Get-AzNetworkFunctionAzureTrafficCollector](Get-AzNetworkFunctionAzureTrafficCollector.md) -Gets the specified Azure Traffic Collector in a specified resource group - -### [Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup](Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md) -Return list of Azure Traffic Collectors in a Resource Group - -### [Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription](Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md) -Return list of Azure Traffic Collectors in a subscription - ### [Get-AzNetworkFunctionCollectorPolicy](Get-AzNetworkFunctionCollectorPolicy.md) Gets the collector policy in a specified Traffic Collector -### [Get-AzNetworkFunctionOperation](Get-AzNetworkFunctionOperation.md) -Lists all of the available NetworkFunction Rest API operations. - -### [New-AzNetworkFunctionAzureTrafficCollector](New-AzNetworkFunctionAzureTrafficCollector.md) -Creates or updates a Azure Traffic Collector resource +### [Get-AzNetworkFunctionTrafficCollector](Get-AzNetworkFunctionTrafficCollector.md) +Gets the specified Azure Traffic Collector in a specified resource group ### [New-AzNetworkFunctionCollectorPolicy](New-AzNetworkFunctionCollectorPolicy.md) Creates or updates a Collector Policy resource -### [Remove-AzNetworkFunctionAzureTrafficCollector](Remove-AzNetworkFunctionAzureTrafficCollector.md) -Deletes a specified Azure Traffic Collector resource. +### [New-AzNetworkFunctionTrafficCollector](New-AzNetworkFunctionTrafficCollector.md) +Creates or updates a Azure Traffic Collector resource ### [Remove-AzNetworkFunctionCollectorPolicy](Remove-AzNetworkFunctionCollectorPolicy.md) Deletes a specified Collector Policy resource. -### [Update-AzNetworkFunctionAzureTrafficCollectorTag](Update-AzNetworkFunctionAzureTrafficCollectorTag.md) +### [Remove-AzNetworkFunctionTrafficCollector](Remove-AzNetworkFunctionTrafficCollector.md) +Deletes a specified Azure Traffic Collector resource. + +### [Update-AzNetworkFunctionCollectorPolicy](Update-AzNetworkFunctionCollectorPolicy.md) +Creates or updates a Collector Policy resource + +### [Update-AzNetworkFunctionTrafficCollector](Update-AzNetworkFunctionTrafficCollector.md) +Creates or updates a Azure Traffic Collector resource + +### [Update-AzNetworkFunctionTrafficCollectorTag](Update-AzNetworkFunctionTrafficCollectorTag.md) Updates the specified Azure Traffic Collector tags. diff --git a/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollector.md b/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollector.md deleted file mode 100644 index 97e93fa1b1d0..000000000000 --- a/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollector.md +++ /dev/null @@ -1,160 +0,0 @@ ---- -external help file: -Module Name: Az.NetworkFunction -online version: https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollector -schema: 2.0.0 ---- - -# Get-AzNetworkFunctionAzureTrafficCollector - -## SYNOPSIS -Gets the specified Azure Traffic Collector in a specified resource group - -## SYNTAX - -### Get (Default) -``` -Get-AzNetworkFunctionAzureTrafficCollector -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzNetworkFunctionAzureTrafficCollector -InputObject - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets the specified Azure Traffic Collector in a specified resource group - -## EXAMPLES - -### 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 }} - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -Azure Traffic Collector name - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: AzureTrafficCollectorName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The name of the resource group. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Azure Subscription ID. - -```yaml -Type: System.String[] -Parameter Sets: Get -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector - -## NOTES - -ALIASES - -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. - -## RELATED LINKS - diff --git a/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md b/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md deleted file mode 100644 index c3b261287a81..000000000000 --- a/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.md +++ /dev/null @@ -1,108 +0,0 @@ ---- -external help file: -Module Name: Az.NetworkFunction -online version: https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollectorsbyresourcegroup -schema: 2.0.0 ---- - -# Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup - -## SYNOPSIS -Return list of Azure Traffic Collectors in a Resource Group - -## SYNTAX - -``` -Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -## DESCRIPTION -Return list of Azure Traffic Collectors in a Resource Group - -## EXAMPLES - -### 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 }} - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The name of the resource group. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Azure Subscription ID. - -```yaml -Type: System.String[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector - -## NOTES - -ALIASES - -## RELATED LINKS - diff --git a/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md b/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md deleted file mode 100644 index dc43024f8062..000000000000 --- a/src/NetworkFunction/help/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -external help file: -Module Name: Az.NetworkFunction -online version: https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionazuretrafficcollectorsbysubscription -schema: 2.0.0 ---- - -# Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription - -## SYNOPSIS -Return list of Azure Traffic Collectors in a subscription - -## SYNTAX - -``` -Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Return list of Azure Traffic Collectors in a subscription - -## EXAMPLES - -### 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 }} - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Azure Subscription ID. - -```yaml -Type: System.String[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector - -## NOTES - -ALIASES - -## RELATED LINKS - diff --git a/src/NetworkFunction/help/Get-AzNetworkFunctionCollectorPolicy.md b/src/NetworkFunction/help/Get-AzNetworkFunctionCollectorPolicy.md index 17480c906366..0629afacb173 100644 --- a/src/NetworkFunction/help/Get-AzNetworkFunctionCollectorPolicy.md +++ b/src/NetworkFunction/help/Get-AzNetworkFunctionCollectorPolicy.md @@ -35,27 +35,41 @@ Gets the collector policy in a specified Traffic Collector ## EXAMPLES -### 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 }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here }} -``` - -{{ Add description 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" + } +``` + +This cmdlet gets list of traffic collector policies by atc name and resource group. ## PARAMETERS @@ -159,7 +173,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy +### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy ## NOTES @@ -170,7 +184,7 @@ 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 +`INPUTOBJECT `: Identity Parameter - `[AzureTrafficCollectorName ]`: Azure Traffic Collector name - `[CollectorPolicyName ]`: Collector Policy Name - `[Id ]`: Resource identity path diff --git a/src/NetworkFunction/help/Get-AzNetworkFunctionOperation.md b/src/NetworkFunction/help/Get-AzNetworkFunctionOperation.md deleted file mode 100644 index dfb810407ca6..000000000000 --- a/src/NetworkFunction/help/Get-AzNetworkFunctionOperation.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -external help file: -Module Name: Az.NetworkFunction -online version: https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionoperation -schema: 2.0.0 ---- - -# Get-AzNetworkFunctionOperation - -## SYNOPSIS -Lists all of the available NetworkFunction Rest API operations. - -## SYNTAX - -``` -Get-AzNetworkFunctionOperation [-DefaultProfile ] [] -``` - -## DESCRIPTION -Lists all of the available NetworkFunction Rest API operations. - -## EXAMPLES - -### 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 }} - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation - -## NOTES - -ALIASES - -## RELATED LINKS - diff --git a/src/NetworkFunction/help/Get-AzNetworkFunctionTrafficCollector.md b/src/NetworkFunction/help/Get-AzNetworkFunctionTrafficCollector.md new file mode 100644 index 000000000000..377dabe579ab --- /dev/null +++ b/src/NetworkFunction/help/Get-AzNetworkFunctionTrafficCollector.md @@ -0,0 +1,213 @@ +--- +external help file: +Module Name: Az.NetworkFunction +online version: https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctiontrafficcollector +schema: 2.0.0 +--- + +# Get-AzNetworkFunctionTrafficCollector + +## SYNOPSIS +Gets the specified Azure Traffic Collector in a specified resource group + +## SYNTAX + +### List (Default) +``` +Get-AzNetworkFunctionTrafficCollector [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzNetworkFunctionTrafficCollector -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzNetworkFunctionTrafficCollector -InputObject [-DefaultProfile ] + [] +``` + +### List1 +``` +Get-AzNetworkFunctionTrafficCollector -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets the specified Azure Traffic Collector in a specified resource group + +## EXAMPLES + +### 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. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Azure Traffic Collector name + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: AzureTrafficCollectorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Azure Subscription ID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector + +## NOTES + +ALIASES + +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. + +## RELATED LINKS + diff --git a/src/NetworkFunction/help/New-AzNetworkFunctionCollectorPolicy.md b/src/NetworkFunction/help/New-AzNetworkFunctionCollectorPolicy.md index c668fc3fa740..e4cff2f3349f 100644 --- a/src/NetworkFunction/help/New-AzNetworkFunctionCollectorPolicy.md +++ b/src/NetworkFunction/help/New-AzNetworkFunctionCollectorPolicy.md @@ -14,11 +14,11 @@ Creates or updates a Collector Policy resource ``` New-AzNetworkFunctionCollectorPolicy -AzureTrafficCollectorName -Name - -ResourceGroupName [-SubscriptionId ] + -ResourceGroupName -Location [-SubscriptionId ] [-EmissionPolicy ] [-IngestionPolicyIngestionSource ] - [-IngestionPolicyIngestionType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] + [-IngestionPolicyIngestionType ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -26,27 +26,41 @@ Creates or updates a Collector Policy resource ## EXAMPLES -### 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. ## PARAMETERS @@ -100,7 +114,7 @@ Emission policies. To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[] +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] Parameter Sets: (All) Aliases: @@ -116,7 +130,7 @@ Ingestion Sources. To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[] +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] Parameter Sets: (All) Aliases: @@ -142,6 +156,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Location +Resource location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Collector Policy Name @@ -202,6 +231,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -240,7 +284,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy +### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy ## NOTES @@ -251,12 +295,12 @@ 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. +`EMISSIONPOLICY `: Emission policies. - `[EmissionDestination ]`: Emission policy destinations. - `[DestinationType ]`: Emission destination type. - `[EmissionType ]`: Emission format type. -INGESTIONPOLICYINGESTIONSOURCE : Ingestion Sources. +`INGESTIONPOLICYINGESTIONSOURCE `: Ingestion Sources. - `[ResourceId ]`: Resource ID. - `[SourceType ]`: Ingestion source type. diff --git a/src/NetworkFunction/help/New-AzNetworkFunctionAzureTrafficCollector.md b/src/NetworkFunction/help/New-AzNetworkFunctionTrafficCollector.md similarity index 80% rename from src/NetworkFunction/help/New-AzNetworkFunctionAzureTrafficCollector.md rename to src/NetworkFunction/help/New-AzNetworkFunctionTrafficCollector.md index 3b3e755200c2..eab9634bd3be 100644 --- a/src/NetworkFunction/help/New-AzNetworkFunctionAzureTrafficCollector.md +++ b/src/NetworkFunction/help/New-AzNetworkFunctionTrafficCollector.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.NetworkFunction -online version: https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctionazuretrafficcollector +online version: https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctiontrafficcollector schema: 2.0.0 --- -# New-AzNetworkFunctionAzureTrafficCollector +# New-AzNetworkFunctionTrafficCollector ## SYNOPSIS Creates or updates a Azure Traffic Collector resource @@ -13,8 +13,8 @@ Creates or updates a Azure Traffic Collector resource ## SYNTAX ``` -New-AzNetworkFunctionAzureTrafficCollector -Name -ResourceGroupName - [-SubscriptionId ] [-CollectorPolicy ] [-Location ] [-Tag ] +New-AzNetworkFunctionTrafficCollector -Name -ResourceGroupName -Location + [-SubscriptionId ] [-CollectorPolicy ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -23,27 +23,23 @@ Creates or updates a Azure Traffic Collector resource ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Create a new traffic collector ```powershell -{{ Add code here }} +New-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List ``` ```output -{{ Add output here }} +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 ``` -{{ 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. ## PARAMETERS @@ -67,7 +63,7 @@ Collector Policies for Azure Traffic Collector. To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy[] +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] Parameter Sets: (All) Aliases: @@ -101,7 +97,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -221,7 +217,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector +### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector ## NOTES @@ -232,7 +228,15 @@ 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. +`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. @@ -241,11 +245,6 @@ 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. ## RELATED LINKS diff --git a/src/NetworkFunction/help/Remove-AzNetworkFunctionCollectorPolicy.md b/src/NetworkFunction/help/Remove-AzNetworkFunctionCollectorPolicy.md index c33a187cad4d..e100904f6978 100644 --- a/src/NetworkFunction/help/Remove-AzNetworkFunctionCollectorPolicy.md +++ b/src/NetworkFunction/help/Remove-AzNetworkFunctionCollectorPolicy.md @@ -30,27 +30,12 @@ Deletes a specified Collector Policy resource. ## EXAMPLES -### 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. ## PARAMETERS @@ -241,7 +226,7 @@ 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 +`INPUTOBJECT `: Identity Parameter - `[AzureTrafficCollectorName ]`: Azure Traffic Collector name - `[CollectorPolicyName ]`: Collector Policy Name - `[Id ]`: Resource identity path diff --git a/src/NetworkFunction/help/Remove-AzNetworkFunctionAzureTrafficCollector.md b/src/NetworkFunction/help/Remove-AzNetworkFunctionTrafficCollector.md similarity index 85% rename from src/NetworkFunction/help/Remove-AzNetworkFunctionAzureTrafficCollector.md rename to src/NetworkFunction/help/Remove-AzNetworkFunctionTrafficCollector.md index 56c4f4780cf3..7952560661fa 100644 --- a/src/NetworkFunction/help/Remove-AzNetworkFunctionAzureTrafficCollector.md +++ b/src/NetworkFunction/help/Remove-AzNetworkFunctionTrafficCollector.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.NetworkFunction -online version: https://docs.microsoft.com/powershell/module/az.networkfunction/remove-aznetworkfunctionazuretrafficcollector +online version: https://docs.microsoft.com/powershell/module/az.networkfunction/remove-aznetworkfunctiontrafficcollector schema: 2.0.0 --- -# Remove-AzNetworkFunctionAzureTrafficCollector +# Remove-AzNetworkFunctionTrafficCollector ## SYNOPSIS Deletes a specified Azure Traffic Collector resource. @@ -14,15 +14,14 @@ Deletes a specified Azure Traffic Collector resource. ### Delete (Default) ``` -Remove-AzNetworkFunctionAzureTrafficCollector -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] - [] +Remove-AzNetworkFunctionTrafficCollector -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### DeleteViaIdentity ``` -Remove-AzNetworkFunctionAzureTrafficCollector -InputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzNetworkFunctionTrafficCollector -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -30,27 +29,12 @@ Deletes a specified Azure Traffic Collector resource. ## EXAMPLES -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +### Example 1: Delete a new traffic collector ```powershell -{{ Add code here }} -``` - -```output -{{ Add output here }} +Remove-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname SEA-Cust10 ``` -{{ Add description here }} +This cmdlet deletes a traffic collector. ## PARAMETERS @@ -226,7 +210,7 @@ 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 +`INPUTOBJECT `: Identity Parameter - `[AzureTrafficCollectorName ]`: Azure Traffic Collector name - `[CollectorPolicyName ]`: Collector Policy Name - `[Id ]`: Resource identity path diff --git a/src/NetworkFunction/help/Update-AzNetworkFunctionCollectorPolicy.md b/src/NetworkFunction/help/Update-AzNetworkFunctionCollectorPolicy.md new file mode 100644 index 000000000000..2e156418d167 --- /dev/null +++ b/src/NetworkFunction/help/Update-AzNetworkFunctionCollectorPolicy.md @@ -0,0 +1,308 @@ +--- +external help file: +Module Name: Az.NetworkFunction +online version: https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctioncollectorpolicy +schema: 2.0.0 +--- + +# Update-AzNetworkFunctionCollectorPolicy + +## SYNOPSIS +Creates or updates a Collector Policy resource + +## SYNTAX + +``` +Update-AzNetworkFunctionCollectorPolicy -AzureTrafficCollectorName -Name + -ResourceGroupName -Location [-SubscriptionId ] + [-EmissionPolicy ] + [-IngestionPolicyIngestionSource ] + [-IngestionPolicyIngestionType ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a Collector Policy resource + +## EXAMPLES + +### 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. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AzureTrafficCollectorName +Azure Traffic Collector name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EmissionPolicy +Emission policies. +To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IEmissionPoliciesPropertiesFormat[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IngestionPolicyIngestionSource +Ingestion Sources. +To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IIngestionSourcesPropertiesFormat[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IngestionPolicyIngestionType +The ingestion type. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Resource location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Collector Policy Name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: CollectorPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Azure Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy + +## NOTES + +ALIASES + +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. + +## RELATED LINKS + diff --git a/src/NetworkFunction/help/Update-AzNetworkFunctionTrafficCollector.md b/src/NetworkFunction/help/Update-AzNetworkFunctionTrafficCollector.md new file mode 100644 index 000000000000..4c8a4e8a1e89 --- /dev/null +++ b/src/NetworkFunction/help/Update-AzNetworkFunctionTrafficCollector.md @@ -0,0 +1,250 @@ +--- +external help file: +Module Name: Az.NetworkFunction +online version: https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctiontrafficcollector +schema: 2.0.0 +--- + +# Update-AzNetworkFunctionTrafficCollector + +## SYNOPSIS +Creates or updates a Azure Traffic Collector resource + +## SYNTAX + +``` +Update-AzNetworkFunctionTrafficCollector -Name -ResourceGroupName -Location + [-SubscriptionId ] [-CollectorPolicy ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a Azure Traffic Collector resource + +## EXAMPLES + +### 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. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CollectorPolicy +Collector Policies for Azure Traffic Collector. +To construct, see NOTES section for COLLECTORPOLICY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Resource location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Azure Traffic Collector name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: AzureTrafficCollectorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Azure Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector + +## NOTES + +ALIASES + +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. + +## RELATED LINKS + diff --git a/src/NetworkFunction/help/Update-AzNetworkFunctionAzureTrafficCollectorTag.md b/src/NetworkFunction/help/Update-AzNetworkFunctionTrafficCollectorTag.md similarity index 74% rename from src/NetworkFunction/help/Update-AzNetworkFunctionAzureTrafficCollectorTag.md rename to src/NetworkFunction/help/Update-AzNetworkFunctionTrafficCollectorTag.md index b037a48f07e1..ee9befffc37b 100644 --- a/src/NetworkFunction/help/Update-AzNetworkFunctionAzureTrafficCollectorTag.md +++ b/src/NetworkFunction/help/Update-AzNetworkFunctionTrafficCollectorTag.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.NetworkFunction -online version: https://docs.microsoft.com/powershell/module/az.networkfunction/update-aznetworkfunctionazuretrafficcollectortag +online version: https://docs.microsoft.com/powershell/module/az.networkfunction/update-aznetworkfunctiontrafficcollectortag schema: 2.0.0 --- -# Update-AzNetworkFunctionAzureTrafficCollectorTag +# Update-AzNetworkFunctionTrafficCollectorTag ## SYNOPSIS Updates the specified Azure Traffic Collector tags. @@ -14,14 +14,14 @@ Updates the specified Azure Traffic Collector tags. ### UpdateExpanded (Default) ``` -Update-AzNetworkFunctionAzureTrafficCollectorTag -AzureTrafficCollectorName - -ResourceGroupName [-SubscriptionId ] [-Tag ] [-DefaultProfile ] - [-Confirm] [-WhatIf] [] +Update-AzNetworkFunctionTrafficCollectorTag -AzureTrafficCollectorName -ResourceGroupName + [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzNetworkFunctionAzureTrafficCollectorTag -InputObject [-Tag ] +Update-AzNetworkFunctionTrafficCollectorTag -InputObject [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -30,27 +30,28 @@ Updates the specified Azure Traffic Collector tags. ## EXAMPLES -### Example 1: {{ Add title here }} +### Example 1: Updates a traffic collector tag ```powershell -{{ Add code here }} +Update-AzNetworkFunctionTrafficCollectorTag -azuretrafficcollectorname atc -resourcegroupname rg1 | Format-List ``` ```output -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here }} -``` - -{{ Add description here }} +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. ## PARAMETERS @@ -185,7 +186,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector +### Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector ## NOTES @@ -196,7 +197,7 @@ 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 +`INPUTOBJECT `: Identity Parameter - `[AzureTrafficCollectorName ]`: Azure Traffic Collector name - `[CollectorPolicyName ]`: Collector Policy Name - `[Id ]`: Resource identity path diff --git a/src/NetworkFunction/exports/Get-AzNetworkFunctionOperation.ps1 b/src/NetworkFunction/internal/Get-AzNetworkFunctionOperation.ps1 similarity index 61% rename from src/NetworkFunction/exports/Get-AzNetworkFunctionOperation.ps1 rename to src/NetworkFunction/internal/Get-AzNetworkFunctionOperation.ps1 index 46473f84a15f..41fd64f5a824 100644 --- a/src/NetworkFunction/exports/Get-AzNetworkFunctionOperation.ps1 +++ b/src/NetworkFunction/internal/Get-AzNetworkFunctionOperation.ps1 @@ -25,12 +25,12 @@ Lists all of the available NetworkFunction Rest API operations. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation .Link https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionoperation #> function Get-AzNetworkFunctionOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -89,34 +89,16 @@ begin { } $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-AzNetworkFunctionOperation_List'; } - $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 } } @@ -125,14 +107,8 @@ 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() + throw } } @@ -140,16 +116,8 @@ 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/internal/New-AzNetworkFunctionCollectorPolicy.ps1 b/src/NetworkFunction/internal/New-AzNetworkFunctionCollectorPolicy.ps1 index 7cd44dac812b..37333f93b33f 100644 --- a/src/NetworkFunction/internal/New-AzNetworkFunctionCollectorPolicy.ps1 +++ b/src/NetworkFunction/internal/New-AzNetworkFunctionCollectorPolicy.ps1 @@ -20,16 +20,14 @@ 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 .Inputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy .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 @@ -52,6 +50,14 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: Azure Subscription ID. PARAMETER : Collector policy resource. + [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. @@ -60,25 +66,22 @@ PARAMETER : Collector policy resource. [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-aznetworkfunctioncollectorpolicy #> function New-AzNetworkFunctionCollectorPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy])] -[CmdletBinding(DefaultParameterSetName='CreateViaIdentityExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] # Azure Traffic Collector name ${AzureTrafficCollectorName}, [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Alias('CollectorPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] @@ -86,12 +89,14 @@ param( ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -109,27 +114,30 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy] # Collector policy resource. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType])] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] @@ -137,6 +145,21 @@ param( # The ingestion type. ${IngestionPolicyIngestionType}, + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] + [System.String] + # Resource location. + ${Location}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [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()] @@ -207,10 +230,11 @@ begin { $mapping = @{ Create = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_Create'; + CreateExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateExpanded'; CreateViaIdentity = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateViaIdentity'; CreateViaIdentityExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded'; } - if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } diff --git a/src/NetworkFunction/internal/New-AzNetworkFunctionAzureTrafficCollector.ps1 b/src/NetworkFunction/internal/New-AzNetworkFunctionTrafficCollector.ps1 similarity index 87% rename from src/NetworkFunction/internal/New-AzNetworkFunctionAzureTrafficCollector.ps1 rename to src/NetworkFunction/internal/New-AzNetworkFunctionTrafficCollector.ps1 index 101df44c2c2b..92e7001ef7ba 100644 --- a/src/NetworkFunction/internal/New-AzNetworkFunctionAzureTrafficCollector.ps1 +++ b/src/NetworkFunction/internal/New-AzNetworkFunctionTrafficCollector.ps1 @@ -20,22 +20,28 @@ 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 .Inputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector .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. 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. @@ -44,11 +50,6 @@ 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. INPUTOBJECT : Identity Parameter [AzureTrafficCollectorName ]: Azure Traffic Collector name @@ -67,6 +68,13 @@ PARAMETER : Azure Traffic Collector resource. [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [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. [EmissionPolicy ]: Emission policies. [EmissionDestination ]: Emission policy destinations. [DestinationType ]: Emission destination type. @@ -75,19 +83,15 @@ PARAMETER : Azure Traffic Collector resource. [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])] -[CmdletBinding(DefaultParameterSetName='CreateViaIdentityExpanded', 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='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Alias('AzureTrafficCollectorName')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] @@ -95,12 +99,14 @@ param( ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -118,28 +124,31 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector] # Azure Traffic Collector resource. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] [System.String] # Resource location. ${Location}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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}, @@ -213,11 +222,12 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.NetworkFunction.private\New-AzNetworkFunctionAzureTrafficCollector_Create'; - CreateViaIdentity = 'Az.NetworkFunction.private\New-AzNetworkFunctionAzureTrafficCollector_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded'; + Create = 'Az.NetworkFunction.private\New-AzNetworkFunctionTrafficCollector_Create'; + CreateExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionTrafficCollector_CreateExpanded'; + CreateViaIdentity = 'Az.NetworkFunction.private\New-AzNetworkFunctionTrafficCollector_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded'; } - if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } diff --git a/src/NetworkFunction/internal/ProxyCmdletDefinitions.ps1 b/src/NetworkFunction/internal/ProxyCmdletDefinitions.ps1 index fbbe95d5f4a3..a53b036b58e0 100644 --- a/src/NetworkFunction/internal/ProxyCmdletDefinitions.ps1 +++ b/src/NetworkFunction/internal/ProxyCmdletDefinitions.ps1 @@ -16,39 +16,140 @@ <# .Synopsis -Creates or updates a Azure Traffic Collector resource +Lists all of the available NetworkFunction Rest API operations. .Description -Creates or updates a Azure Traffic Collector resource +Lists all of the available NetworkFunction Rest API operations. .Example {{ Add code here }} .Example {{ Add code here }} +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation +.Link +https://docs.microsoft.com/powershell/module/az.networkfunction/get-aznetworkfunctionoperation +#> +function Get-AzNetworkFunctionOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [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 + + $mapping = @{ + List = 'Az.NetworkFunction.private\Get-AzNetworkFunctionOperation_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Creates or updates a Collector Policy resource +.Description +Creates or updates a Collector Policy resource +.Example +New-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List + .Inputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy .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. -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. +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. INPUTOBJECT : Identity Parameter [AzureTrafficCollectorName ]: Azure Traffic Collector name @@ -57,7 +158,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. [SubscriptionId ]: Azure Subscription ID. -PARAMETER : Azure Traffic Collector resource. +PARAMETER : Collector policy resource. [Location ]: Resource location. [SystemDataCreatedAt ]: The timestamp of resource creation (UTC). [SystemDataCreatedBy ]: The identity that created the resource. @@ -66,41 +167,45 @@ PARAMETER : Azure Traffic Collector 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. - [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. + [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-aznetworkfunctionazuretrafficcollector +https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctioncollectorpolicy #> -function New-AzNetworkFunctionAzureTrafficCollector { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])] -[CmdletBinding(DefaultParameterSetName='CreateViaIdentityExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzNetworkFunctionCollectorPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory)] - [Alias('AzureTrafficCollectorName')] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] # Azure Traffic Collector name + ${AzureTrafficCollectorName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('CollectorPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] + [System.String] + # Collector Policy Name ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -118,28 +223,48 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector] - # Azure Traffic Collector resource. + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy] + # Collector policy resource. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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}, + [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(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [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(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [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(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] [System.String] # Resource location. ${Location}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [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}, @@ -213,11 +338,12 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.NetworkFunction.private\New-AzNetworkFunctionAzureTrafficCollector_Create'; - CreateViaIdentity = 'Az.NetworkFunction.private\New-AzNetworkFunctionAzureTrafficCollector_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionAzureTrafficCollector_CreateViaIdentityExpanded'; + Create = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_Create'; + CreateExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateExpanded'; + CreateViaIdentity = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded'; } - if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } @@ -253,42 +379,32 @@ end { <# .Synopsis -Creates or updates a Collector Policy resource +Creates or updates a Azure Traffic Collector resource .Description -Creates or updates a Collector Policy 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.Api20220501.ICollectorPolicy +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector .Inputs Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy +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. -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. - -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. - -PARAMETER : Collector policy resource. +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. @@ -297,38 +413,63 @@ PARAMETER : Collector policy resource. [ResourceId ]: Resource ID. [SourceType ]: Ingestion source type. [IngestionPolicyIngestionType ]: The ingestion type. + +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. + +PARAMETER : Azure Traffic Collector resource. + [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. + [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. + [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-aznetworkfunctioncollectorpolicy +https://docs.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctiontrafficcollector #> -function New-AzNetworkFunctionCollectorPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy])] -[CmdletBinding(DefaultParameterSetName='CreateViaIdentityExpanded', 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='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('AzureTrafficCollectorName')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] # Azure Traffic Collector name - ${AzureTrafficCollectorName}, - - [Parameter(ParameterSetName='Create', Mandatory)] - [Alias('CollectorPolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] - [System.String] - # Collector Policy Name ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -346,33 +487,34 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy] - # Collector policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector] + # Azure Traffic Collector resource. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[]] - # Emission policies. - # To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table. - ${EmissionPolicy}, + [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(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]] - # Ingestion Sources. - # To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table. - ${IngestionPolicyIngestionSource}, + [System.String] + # Resource location. + ${Location}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [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}, + [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')] @@ -443,11 +585,12 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_Create'; - CreateViaIdentity = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded'; + Create = 'Az.NetworkFunction.private\New-AzNetworkFunctionTrafficCollector_Create'; + CreateExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionTrafficCollector_CreateExpanded'; + CreateViaIdentity = 'Az.NetworkFunction.private\New-AzNetworkFunctionTrafficCollector_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.NetworkFunction.private\New-AzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded'; } - if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } @@ -483,39 +626,33 @@ 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 +Creates or updates a Collector Policy resource .Example {{ Add code here }} .Example {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy .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. -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. +EMISSIONPOLICY : Emission policies. + [EmissionDestination ]: Emission policy destinations. + [DestinationType ]: Emission destination type. + [EmissionType ]: Emission format type. -PARAMETER : Azure Traffic Collector resource. +INGESTIONPOLICYINGESTIONSOURCE : Ingestion Sources. + [ResourceId ]: Resource ID. + [SourceType ]: Ingestion source type. + +PARAMETER : Collector policy resource. [Location ]: Resource location. [SystemDataCreatedAt ]: The timestamp of resource creation (UTC). [SystemDataCreatedBy ]: The identity that created the resource. @@ -524,32 +661,32 @@ PARAMETER : Azure Traffic Collector 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. - [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. + [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-aznetworkfunctionazuretrafficcollector +https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctioncollectorpolicy #> -function Set-AzNetworkFunctionAzureTrafficCollector { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])] +function Set-AzNetworkFunctionCollectorPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])] [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 + ${AzureTrafficCollectorName}, + + [Parameter(Mandatory)] + [Alias('CollectorPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] + [System.String] + # Collector Policy Name ${Name}, [Parameter(Mandatory)] @@ -567,18 +704,33 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector] - # Azure Traffic Collector resource. + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy] + # Collector policy resource. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, [Parameter(ParameterSetName='UpdateExpanded')] [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}, + [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(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] @@ -588,7 +740,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [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}, @@ -662,8 +814,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.NetworkFunction.private\Set-AzNetworkFunctionAzureTrafficCollector_Update'; - UpdateExpanded = 'Az.NetworkFunction.private\Set-AzNetworkFunctionAzureTrafficCollector_UpdateExpanded'; + Update = 'Az.NetworkFunction.private\Set-AzNetworkFunctionCollectorPolicy_Update'; + UpdateExpanded = 'Az.NetworkFunction.private\Set-AzNetworkFunctionCollectorPolicy_UpdateExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -701,33 +853,32 @@ end { <# .Synopsis -Creates or updates a Collector Policy resource +Creates or updates a Azure Traffic Collector resource .Description -Creates or updates a Collector Policy resource +Creates or updates a Azure Traffic Collector resource .Example {{ Add code here }} .Example {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector .Outputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy +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. -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. - -PARAMETER : Collector policy resource. +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. @@ -736,29 +887,44 @@ PARAMETER : Collector policy resource. [ResourceId ]: Resource ID. [SourceType ]: Ingestion source type. [IngestionPolicyIngestionType ]: The ingestion type. + +PARAMETER : Azure Traffic Collector resource. + [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. + [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. + [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-aznetworkfunctioncollectorpolicy +https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctiontrafficcollector #> -function Set-AzNetworkFunctionCollectorPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy])] +function Set-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 - ${AzureTrafficCollectorName}, - - [Parameter(Mandatory)] - [Alias('CollectorPolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Path')] - [System.String] - # Collector Policy Name ${Name}, [Parameter(Mandatory)] @@ -776,33 +942,31 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy] - # Collector policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector] + # Azure Traffic Collector resource. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IEmissionPoliciesPropertiesFormat[]] - # Emission policies. - # To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table. - ${EmissionPolicy}, + [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(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IIngestionSourcesPropertiesFormat[]] - # Ingestion Sources. - # To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table. - ${IngestionPolicyIngestionSource}, + [System.String] + # Resource location. + ${Location}, [Parameter(ParameterSetName='UpdateExpanded')] - [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}, + [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')] @@ -873,8 +1037,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.NetworkFunction.private\Set-AzNetworkFunctionCollectorPolicy_Update'; - UpdateExpanded = 'Az.NetworkFunction.private\Set-AzNetworkFunctionCollectorPolicy_UpdateExpanded'; + Update = 'Az.NetworkFunction.private\Set-AzNetworkFunctionTrafficCollector_Update'; + UpdateExpanded = 'Az.NetworkFunction.private\Set-AzNetworkFunctionTrafficCollector_UpdateExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -916,16 +1080,14 @@ 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.Api20220501.ITagsObject +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject .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 @@ -942,10 +1104,10 @@ PARAMETER : Tags object for patch operations. [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. .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='UpdateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -976,7 +1138,7 @@ param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject] # Tags object for patch operations. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1038,8 +1200,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.NetworkFunction.private\Update-AzNetworkFunctionAzureTrafficCollectorTag_Update'; - UpdateViaIdentity = 'Az.NetworkFunction.private\Update-AzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity'; + Update = 'Az.NetworkFunction.private\Update-AzNetworkFunctionTrafficCollectorTag_Update'; + UpdateViaIdentity = 'Az.NetworkFunction.private\Update-AzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity'; } if (('Update') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/NetworkFunction/internal/Set-AzNetworkFunctionCollectorPolicy.ps1 b/src/NetworkFunction/internal/Set-AzNetworkFunctionCollectorPolicy.ps1 index a8b7d7d129a6..675109f5750d 100644 --- a/src/NetworkFunction/internal/Set-AzNetworkFunctionCollectorPolicy.ps1 +++ b/src/NetworkFunction/internal/Set-AzNetworkFunctionCollectorPolicy.ps1 @@ -25,9 +25,9 @@ Creates or updates a Collector Policy resource {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -43,6 +43,14 @@ INGESTIONPOLICYINGESTIONSOURCE : Ingestion [SourceType ]: Ingestion source type. PARAMETER : Collector policy resource. + [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. @@ -51,16 +59,11 @@ PARAMETER : Collector policy resource. [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/set-aznetworkfunctioncollectorpolicy #> function Set-AzNetworkFunctionCollectorPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -91,7 +94,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ICollectorPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ICollectorPolicy] # Collector policy resource. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -99,7 +102,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [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}, @@ -107,7 +110,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [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}, @@ -119,6 +122,19 @@ param( # The ingestion type. ${IngestionPolicyIngestionType}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] + [System.String] + # Resource location. + ${Location}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [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()] diff --git a/src/NetworkFunction/internal/Set-AzNetworkFunctionAzureTrafficCollector.ps1 b/src/NetworkFunction/internal/Set-AzNetworkFunctionTrafficCollector.ps1 similarity index 93% rename from src/NetworkFunction/internal/Set-AzNetworkFunctionAzureTrafficCollector.ps1 rename to src/NetworkFunction/internal/Set-AzNetworkFunctionTrafficCollector.ps1 index 846e964a0947..05e13a285878 100644 --- a/src/NetworkFunction/internal/Set-AzNetworkFunctionAzureTrafficCollector.ps1 +++ b/src/NetworkFunction/internal/Set-AzNetworkFunctionTrafficCollector.ps1 @@ -25,15 +25,23 @@ Creates or updates a Azure Traffic Collector resource {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector .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. @@ -42,11 +50,6 @@ 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. PARAMETER : Azure Traffic Collector resource. [Location ]: Resource location. @@ -58,6 +61,13 @@ PARAMETER : Azure Traffic Collector resource. [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [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. [EmissionPolicy ]: Emission policies. [EmissionDestination ]: Emission policy destinations. [DestinationType ]: Emission destination type. @@ -66,16 +76,11 @@ PARAMETER : Azure Traffic Collector resource. [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/set-aznetworkfunctionazuretrafficcollector +https://docs.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctiontrafficcollector #> -function Set-AzNetworkFunctionAzureTrafficCollector { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector])] +function Set-AzNetworkFunctionTrafficCollector { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -100,7 +105,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.IAzureTrafficCollector] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.IAzureTrafficCollector] # Azure Traffic Collector resource. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -108,7 +113,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [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}, @@ -121,7 +126,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [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}, @@ -195,8 +200,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.NetworkFunction.private\Set-AzNetworkFunctionAzureTrafficCollector_Update'; - UpdateExpanded = 'Az.NetworkFunction.private\Set-AzNetworkFunctionAzureTrafficCollector_UpdateExpanded'; + Update = 'Az.NetworkFunction.private\Set-AzNetworkFunctionTrafficCollector_Update'; + UpdateExpanded = 'Az.NetworkFunction.private\Set-AzNetworkFunctionTrafficCollector_UpdateExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/NetworkFunction/internal/Update-AzNetworkFunctionAzureTrafficCollectorTag.ps1 b/src/NetworkFunction/internal/Update-AzNetworkFunctionTrafficCollectorTag.ps1 similarity index 94% rename from src/NetworkFunction/internal/Update-AzNetworkFunctionAzureTrafficCollectorTag.ps1 rename to src/NetworkFunction/internal/Update-AzNetworkFunctionTrafficCollectorTag.ps1 index c29af10dcb57..665a145010f9 100644 --- a/src/NetworkFunction/internal/Update-AzNetworkFunctionAzureTrafficCollectorTag.ps1 +++ b/src/NetworkFunction/internal/Update-AzNetworkFunctionTrafficCollectorTag.ps1 @@ -20,16 +20,14 @@ 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.Api20220501.ITagsObject +Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject .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 @@ -46,10 +44,10 @@ PARAMETER : Tags object for patch operations. [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. .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='UpdateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -80,7 +78,7 @@ param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220501.ITagsObject] + [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20220801.ITagsObject] # Tags object for patch operations. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -142,8 +140,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.NetworkFunction.private\Update-AzNetworkFunctionAzureTrafficCollectorTag_Update'; - UpdateViaIdentity = 'Az.NetworkFunction.private\Update-AzNetworkFunctionAzureTrafficCollectorTag_UpdateViaIdentity'; + Update = 'Az.NetworkFunction.private\Update-AzNetworkFunctionTrafficCollectorTag_Update'; + UpdateViaIdentity = 'Az.NetworkFunction.private\Update-AzNetworkFunctionTrafficCollectorTag_UpdateViaIdentity'; } if (('Update') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 b/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 deleted file mode 100644 index 14c0b54c6b78..000000000000 --- a/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzNetworkFunctionAzureTrafficCollector')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzNetworkFunctionAzureTrafficCollector.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzNetworkFunctionAzureTrafficCollector' { - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.Tests.ps1 b/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.Tests.ps1 deleted file mode 100644 index 4c021b1ce6e5..000000000000 --- a/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.Tests.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.Tests.ps1 b/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.Tests.ps1 deleted file mode 100644 index be3ed438e158..000000000000 --- a/src/NetworkFunction/test/Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.Tests.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/Get-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 b/src/NetworkFunction/test/Get-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 deleted file mode 100644 index 99fb69a0fac6..000000000000 --- a/src/NetworkFunction/test/Get-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzNetworkFunctionTrafficCollectorPolicy')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzNetworkFunctionTrafficCollectorPolicy.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzNetworkFunctionTrafficCollectorPolicy' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/New-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 b/src/NetworkFunction/test/New-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 deleted file mode 100644 index 60ddaa28ee30..000000000000 --- a/src/NetworkFunction/test/New-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzNetworkFunctionAzureTrafficCollector')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzNetworkFunctionAzureTrafficCollector.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzNetworkFunctionAzureTrafficCollector' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/New-AzNetworkFunctionCollectorPolicy.Tests.ps1 b/src/NetworkFunction/test/New-AzNetworkFunctionCollectorPolicy.Tests.ps1 index 59f2a74438b9..3a2d8caab562 100644 --- a/src/NetworkFunction/test/New-AzNetworkFunctionCollectorPolicy.Tests.ps1 +++ b/src/NetworkFunction/test/New-AzNetworkFunctionCollectorPolicy.Tests.ps1 @@ -18,4 +18,16 @@ Describe 'New-AzNetworkFunctionCollectorPolicy' { It 'CreateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'Create' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } diff --git a/src/NetworkFunction/test/New-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 b/src/NetworkFunction/test/New-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 deleted file mode 100644 index eb2eda5600cb..000000000000 --- a/src/NetworkFunction/test/New-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzNetworkFunctionTrafficCollectorPolicy')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzNetworkFunctionTrafficCollectorPolicy.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzNetworkFunctionTrafficCollectorPolicy' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Create' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/Remove-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 b/src/NetworkFunction/test/Remove-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 deleted file mode 100644 index 03c813c33af8..000000000000 --- a/src/NetworkFunction/test/Remove-AzNetworkFunctionAzureTrafficCollector.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzNetworkFunctionAzureTrafficCollector')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzNetworkFunctionAzureTrafficCollector.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzNetworkFunctionAzureTrafficCollector' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/Remove-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 b/src/NetworkFunction/test/Remove-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 deleted file mode 100644 index 47c4231ad6a3..000000000000 --- a/src/NetworkFunction/test/Remove-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzNetworkFunctionTrafficCollectorPolicy')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzNetworkFunctionTrafficCollectorPolicy.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzNetworkFunctionTrafficCollectorPolicy' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/Set-AzNetworkFunctionTrafficCollector.Tests.ps1 b/src/NetworkFunction/test/Set-AzNetworkFunctionTrafficCollector.Tests.ps1 deleted file mode 100644 index a8272f9d88cf..000000000000 --- a/src/NetworkFunction/test/Set-AzNetworkFunctionTrafficCollector.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Set-AzNetworkFunctionTrafficCollector')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzNetworkFunctionTrafficCollector.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Set-AzNetworkFunctionTrafficCollector' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Update' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/Set-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 b/src/NetworkFunction/test/Set-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 deleted file mode 100644 index 7120f88b72ec..000000000000 --- a/src/NetworkFunction/test/Set-AzNetworkFunctionTrafficCollectorPolicy.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Set-AzNetworkFunctionTrafficCollectorPolicy')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzNetworkFunctionTrafficCollectorPolicy.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Set-AzNetworkFunctionTrafficCollectorPolicy' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Update' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/NetworkFunction/test/Update-AzNetworkFunctionAzureTrafficCollectorTag.Tests.ps1 b/src/NetworkFunction/test/Update-AzNetworkFunctionCollectorPolicy.Tests.ps1 similarity index 72% rename from src/NetworkFunction/test/Update-AzNetworkFunctionAzureTrafficCollectorTag.Tests.ps1 rename to src/NetworkFunction/test/Update-AzNetworkFunctionCollectorPolicy.Tests.ps1 index d02e2bb186a0..ec1a10585699 100644 --- a/src/NetworkFunction/test/Update-AzNetworkFunctionAzureTrafficCollectorTag.Tests.ps1 +++ b/src/NetworkFunction/test/Update-AzNetworkFunctionCollectorPolicy.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzNetworkFunctionAzureTrafficCollectorTag')) +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzNetworkFunctionCollectorPolicy')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzNetworkFunctionAzureTrafficCollectorTag.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzNetworkFunctionCollectorPolicy.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,12 +14,8 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzNetworkFunctionAzure . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzNetworkFunctionAzureTrafficCollectorTag' { +Describe 'Update-AzNetworkFunctionCollectorPolicy' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/NetworkFunction/test/Get-AzNetworkFunctionOperation.Tests.ps1 b/src/NetworkFunction/test/Update-AzNetworkFunctionTrafficCollector.Tests.ps1 similarity index 65% rename from src/NetworkFunction/test/Get-AzNetworkFunctionOperation.Tests.ps1 rename to src/NetworkFunction/test/Update-AzNetworkFunctionTrafficCollector.Tests.ps1 index 8c2b38123929..ae192f704216 100644 --- a/src/NetworkFunction/test/Get-AzNetworkFunctionOperation.Tests.ps1 +++ b/src/NetworkFunction/test/Update-AzNetworkFunctionTrafficCollector.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzNetworkFunctionOperation')) +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzNetworkFunctionTrafficCollector')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzNetworkFunctionOperation.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzNetworkFunctionTrafficCollector.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,8 +14,8 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzNetworkFunctionOperatio . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzNetworkFunctionOperation' { - It 'List' -skip { +Describe 'Update-AzNetworkFunctionTrafficCollector' { + It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } } From 453600ec1bdfb8c58e0120ce970d62371a606e2b Mon Sep 17 00:00:00 2001 From: Yeming Liu <11371776+isra-fel@users.noreply.github.com> Date: Fri, 19 Aug 2022 15:18:01 +0800 Subject: [PATCH 2/2] Update Changelog.md --- src/NetworkFunction/Changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NetworkFunction/Changelog.md b/src/NetworkFunction/Changelog.md index 6a183a0e62ee..00a931ff769b 100644 --- a/src/NetworkFunction/Changelog.md +++ b/src/NetworkFunction/Changelog.md @@ -18,6 +18,9 @@ - Additional information about change #1 --> ## Upcoming Release +* Made Collector policy a tracked resource (added location property to create and update cmdlet and made it mandatory) +* Changed prefix of cmdlets from "AzureTrafficCollector" to "TrafficCollector" +* Changed operation id of list cmdlets to remove the cmdlets `Get-AzNetworkFunctionAzureTrafficCollectorsByResourceGroup` and `Get-AzNetworkFunctionAzureTrafficCollectorsBySubscription` and call them internally based on parameters provided to the cmdlet `Get-AzNetworkFunctionAzureTrafficCollector_List` ## Version 0.1.0 * First preview release for module Az.NetworkFunction