From 54418ed4713c02dc2964beda46acbd8ad003f5c3 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 9 Oct 2023 10:41:52 +0000 Subject: [PATCH] CodeGen from PR 26133 in Azure/azure-rest-api-specs Merge 883e1379882fc217f77fd294cf1f86f444f053ce into 5775c90db370eb73a5cd7ccb36e16c34630a5c8c --- common/config/rush/pnpm-lock.yaml | 16 +- .../arm-mobilenetwork/CHANGELOG.md | 32 ++- .../arm-mobilenetwork/_meta.json | 8 +- .../arm-mobilenetwork/assets.json | 6 - .../arm-mobilenetwork/package.json | 30 +-- .../review/arm-mobilenetwork.api.md | 29 ++- ...ttachedDataNetworksCreateOrUpdateSample.ts | 65 ------ .../attachedDataNetworksDeleteSample.ts | 47 ---- .../attachedDataNetworksGetSample.ts | 47 ---- ...NetworksListByPacketCoreDataPlaneSample.ts | 48 ---- .../attachedDataNetworksUpdateTagsSample.ts | 52 ----- .../dataNetworksCreateOrUpdateSample.ts | 53 ----- .../samples-dev/dataNetworksDeleteSample.ts | 45 ---- .../samples-dev/dataNetworksGetSample.ts | 45 ---- .../dataNetworksListByMobileNetworkSample.ts | 46 ---- .../dataNetworksUpdateTagsSample.ts | 50 ---- ...diagnosticsPackagesCreateOrUpdateSample.ts | 45 ---- .../diagnosticsPackagesDeleteSample.ts | 45 ---- .../diagnosticsPackagesGetSample.ts | 45 ---- ...kagesListByPacketCoreControlPlaneSample.ts | 46 ---- .../mobileNetworksCreateOrUpdateSample.ts | 51 ---- .../samples-dev/mobileNetworksDeleteSample.ts | 43 ---- .../samples-dev/mobileNetworksGetSample.ts | 43 ---- ...mobileNetworksListByResourceGroupSample.ts | 44 ---- .../mobileNetworksListBySubscriptionSample.ts | 40 ---- .../mobileNetworksUpdateTagsSample.ts | 48 ---- .../samples-dev/operationsListSample.ts | 40 ---- .../packetCapturesCreateOrUpdateSample.ts | 59 ----- .../samples-dev/packetCapturesDeleteSample.ts | 45 ---- .../samples-dev/packetCapturesGetSample.ts | 45 ---- ...turesListByPacketCoreControlPlaneSample.ts | 46 ---- .../samples-dev/packetCapturesStopSample.ts | 45 ---- ...rolPlaneVersionsGetBySubscriptionSample.ts | 40 ---- ...packetCoreControlPlaneVersionsGetSample.ts | 35 --- ...olPlaneVersionsListBySubscriptionSample.ts | 40 ---- ...acketCoreControlPlaneVersionsListSample.ts | 37 --- ...olPlanesCollectDiagnosticsPackageSample.ts | 51 ---- ...etCoreControlPlanesCreateOrUpdateSample.ts | 84 ------- .../packetCoreControlPlanesDeleteSample.ts | 43 ---- .../packetCoreControlPlanesGetSample.ts | 43 ---- ...eControlPlanesListByResourceGroupSample.ts | 44 ---- ...reControlPlanesListBySubscriptionSample.ts | 40 ---- .../packetCoreControlPlanesReinstallSample.ts | 43 ---- .../packetCoreControlPlanesRollbackSample.ts | 43 ---- ...packetCoreControlPlanesUpdateTagsSample.ts | 56 ----- ...acketCoreDataPlanesCreateOrUpdateSample.ts | 53 ----- .../packetCoreDataPlanesDeleteSample.ts | 45 ---- .../packetCoreDataPlanesGetSample.ts | 45 ---- ...lanesListByPacketCoreControlPlaneSample.ts | 46 ---- .../packetCoreDataPlanesUpdateTagsSample.ts | 50 ---- .../servicesCreateOrUpdateSample.ts | 83 ------- .../samples-dev/servicesDeleteSample.ts | 45 ---- .../samples-dev/servicesGetSample.ts | 45 ---- .../servicesListByMobileNetworkSample.ts | 46 ---- .../samples-dev/servicesUpdateTagsSample.ts | 50 ---- .../simGroupsCreateOrUpdateSample.ts | 63 ----- .../samples-dev/simGroupsDeleteSample.ts | 43 ---- .../samples-dev/simGroupsGetSample.ts | 40 ---- .../simGroupsListByResourceGroupSample.ts | 44 ---- .../simGroupsListBySubscriptionSample.ts | 40 ---- .../samples-dev/simGroupsUpdateTagsSample.ts | 56 ----- .../simPoliciesCreateOrUpdateSample.ts | 92 -------- .../samples-dev/simPoliciesDeleteSample.ts | 45 ---- .../samples-dev/simPoliciesGetSample.ts | 45 ---- .../simPoliciesListByMobileNetworkSample.ts | 46 ---- .../simPoliciesUpdateTagsSample.ts | 50 ---- .../samples-dev/simsBulkDeleteSample.ts | 48 ---- .../simsBulkUploadEncryptedSample.ts | 104 --------- .../samples-dev/simsBulkUploadSample.ts | 101 -------- .../samples-dev/simsCreateOrUpdateSample.ts | 70 ------ .../samples-dev/simsDeleteSample.ts | 45 ---- .../samples-dev/simsGetSample.ts | 45 ---- .../samples-dev/simsListByGroupSample.ts | 46 ---- .../samples-dev/sitesCreateOrUpdateSample.ts | 47 ---- .../sitesDeletePacketCoreSample.ts | 55 ----- .../samples-dev/sitesDeleteSample.ts | 45 ---- .../samples-dev/sitesGetSample.ts | 45 ---- .../sitesListByMobileNetworkSample.ts | 46 ---- .../samples-dev/sitesUpdateTagsSample.ts | 50 ---- .../samples-dev/slicesCreateOrUpdateSample.ts | 51 ---- .../samples-dev/slicesDeleteSample.ts | 45 ---- .../samples-dev/slicesGetSample.ts | 45 ---- .../slicesListByMobileNetworkSample.ts | 46 ---- .../samples-dev/slicesUpdateTagsSample.ts | 50 ---- .../samples/v3/javascript/README.md | 204 ---------------- ...ttachedDataNetworksCreateOrUpdateSample.js | 58 ----- .../attachedDataNetworksDeleteSample.js | 43 ---- .../attachedDataNetworksGetSample.js | 43 ---- ...NetworksListByPacketCoreDataPlaneSample.js | 44 ---- .../attachedDataNetworksUpdateTagsSample.js | 45 ---- .../dataNetworksCreateOrUpdateSample.js | 46 ---- .../v3/javascript/dataNetworksDeleteSample.js | 41 ---- .../v3/javascript/dataNetworksGetSample.js | 41 ---- .../dataNetworksListByMobileNetworkSample.js | 42 ---- .../dataNetworksUpdateTagsSample.js | 43 ---- ...diagnosticsPackagesCreateOrUpdateSample.js | 41 ---- .../diagnosticsPackagesDeleteSample.js | 41 ---- .../diagnosticsPackagesGetSample.js | 41 ---- ...kagesListByPacketCoreControlPlaneSample.js | 42 ---- .../mobileNetworksCreateOrUpdateSample.js | 44 ---- .../javascript/mobileNetworksDeleteSample.js | 39 ---- .../v3/javascript/mobileNetworksGetSample.js | 36 --- ...mobileNetworksListByResourceGroupSample.js | 38 --- .../mobileNetworksListBySubscriptionSample.js | 37 --- .../mobileNetworksUpdateTagsSample.js | 41 ---- .../v3/javascript/operationsListSample.js | 37 --- .../samples/v3/javascript/package.json | 32 --- .../packetCapturesCreateOrUpdateSample.js | 52 ----- .../javascript/packetCapturesDeleteSample.js | 41 ---- .../v3/javascript/packetCapturesGetSample.js | 41 ---- ...turesListByPacketCoreControlPlaneSample.js | 42 ---- .../v3/javascript/packetCapturesStopSample.js | 41 ---- ...rolPlaneVersionsGetBySubscriptionSample.js | 35 --- ...packetCoreControlPlaneVersionsGetSample.js | 33 --- ...olPlaneVersionsListBySubscriptionSample.js | 37 --- ...acketCoreControlPlaneVersionsListSample.js | 35 --- ...olPlanesCollectDiagnosticsPackageSample.js | 44 ---- ...etCoreControlPlanesCreateOrUpdateSample.js | 72 ------ .../packetCoreControlPlanesDeleteSample.js | 39 ---- .../packetCoreControlPlanesGetSample.js | 39 ---- ...eControlPlanesListByResourceGroupSample.js | 38 --- ...reControlPlanesListBySubscriptionSample.js | 37 --- .../packetCoreControlPlanesReinstallSample.js | 39 ---- .../packetCoreControlPlanesRollbackSample.js | 39 ---- ...packetCoreControlPlanesUpdateTagsSample.js | 50 ---- ...acketCoreDataPlanesCreateOrUpdateSample.js | 46 ---- .../packetCoreDataPlanesDeleteSample.js | 41 ---- .../packetCoreDataPlanesGetSample.js | 41 ---- ...lanesListByPacketCoreControlPlaneSample.js | 42 ---- .../packetCoreDataPlanesUpdateTagsSample.js | 43 ---- .../samples/v3/javascript/sample.env | 4 - .../servicesCreateOrUpdateSample.js | 76 ------ .../v3/javascript/servicesDeleteSample.js | 41 ---- .../v3/javascript/servicesGetSample.js | 37 --- .../servicesListByMobileNetworkSample.js | 42 ---- .../v3/javascript/servicesUpdateTagsSample.js | 43 ---- .../simGroupsCreateOrUpdateSample.js | 56 ----- .../v3/javascript/simGroupsDeleteSample.js | 36 --- .../v3/javascript/simGroupsGetSample.js | 36 --- .../simGroupsListByResourceGroupSample.js | 38 --- .../simGroupsListBySubscriptionSample.js | 37 --- .../javascript/simGroupsUpdateTagsSample.js | 46 ---- .../simPoliciesCreateOrUpdateSample.js | 80 ------- .../v3/javascript/simPoliciesDeleteSample.js | 41 ---- .../v3/javascript/simPoliciesGetSample.js | 37 --- .../simPoliciesListByMobileNetworkSample.js | 42 ---- .../javascript/simPoliciesUpdateTagsSample.js | 43 ---- .../v3/javascript/simsBulkDeleteSample.js | 41 ---- .../simsBulkUploadEncryptedSample.js | 91 -------- .../v3/javascript/simsBulkUploadSample.js | 88 ------- .../v3/javascript/simsCreateOrUpdateSample.js | 63 ----- .../samples/v3/javascript/simsDeleteSample.js | 37 --- .../samples/v3/javascript/simsGetSample.js | 37 --- .../v3/javascript/simsListByGroupSample.js | 39 ---- .../javascript/sitesCreateOrUpdateSample.js | 43 ---- .../javascript/sitesDeletePacketCoreSample.js | 47 ---- .../v3/javascript/sitesDeleteSample.js | 41 ---- .../samples/v3/javascript/sitesGetSample.js | 37 --- .../sitesListByMobileNetworkSample.js | 39 ---- .../v3/javascript/sitesUpdateTagsSample.js | 43 ---- .../javascript/slicesCreateOrUpdateSample.js | 47 ---- .../v3/javascript/slicesDeleteSample.js | 41 ---- .../samples/v3/javascript/slicesGetSample.js | 37 --- .../slicesListByMobileNetworkSample.js | 39 ---- .../v3/javascript/slicesUpdateTagsSample.js | 43 ---- .../samples/v3/typescript/README.md | 217 ------------------ .../samples/v3/typescript/package.json | 41 ---- .../samples/v3/typescript/sample.env | 4 - ...ttachedDataNetworksCreateOrUpdateSample.ts | 65 ------ .../src/attachedDataNetworksDeleteSample.ts | 47 ---- .../src/attachedDataNetworksGetSample.ts | 47 ---- ...NetworksListByPacketCoreDataPlaneSample.ts | 48 ---- .../attachedDataNetworksUpdateTagsSample.ts | 52 ----- .../src/dataNetworksCreateOrUpdateSample.ts | 53 ----- .../src/dataNetworksDeleteSample.ts | 45 ---- .../typescript/src/dataNetworksGetSample.ts | 45 ---- .../dataNetworksListByMobileNetworkSample.ts | 46 ---- .../src/dataNetworksUpdateTagsSample.ts | 50 ---- ...diagnosticsPackagesCreateOrUpdateSample.ts | 45 ---- .../src/diagnosticsPackagesDeleteSample.ts | 45 ---- .../src/diagnosticsPackagesGetSample.ts | 45 ---- ...kagesListByPacketCoreControlPlaneSample.ts | 46 ---- .../src/mobileNetworksCreateOrUpdateSample.ts | 51 ---- .../src/mobileNetworksDeleteSample.ts | 43 ---- .../typescript/src/mobileNetworksGetSample.ts | 43 ---- ...mobileNetworksListByResourceGroupSample.ts | 44 ---- .../mobileNetworksListBySubscriptionSample.ts | 40 ---- .../src/mobileNetworksUpdateTagsSample.ts | 48 ---- .../v3/typescript/src/operationsListSample.ts | 40 ---- .../src/packetCapturesCreateOrUpdateSample.ts | 59 ----- .../src/packetCapturesDeleteSample.ts | 45 ---- .../typescript/src/packetCapturesGetSample.ts | 45 ---- ...turesListByPacketCoreControlPlaneSample.ts | 46 ---- .../src/packetCapturesStopSample.ts | 45 ---- ...rolPlaneVersionsGetBySubscriptionSample.ts | 40 ---- ...packetCoreControlPlaneVersionsGetSample.ts | 35 --- ...olPlaneVersionsListBySubscriptionSample.ts | 40 ---- ...acketCoreControlPlaneVersionsListSample.ts | 37 --- ...olPlanesCollectDiagnosticsPackageSample.ts | 51 ---- ...etCoreControlPlanesCreateOrUpdateSample.ts | 84 ------- .../packetCoreControlPlanesDeleteSample.ts | 43 ---- .../src/packetCoreControlPlanesGetSample.ts | 43 ---- ...eControlPlanesListByResourceGroupSample.ts | 44 ---- ...reControlPlanesListBySubscriptionSample.ts | 40 ---- .../packetCoreControlPlanesReinstallSample.ts | 43 ---- .../packetCoreControlPlanesRollbackSample.ts | 43 ---- ...packetCoreControlPlanesUpdateTagsSample.ts | 56 ----- ...acketCoreDataPlanesCreateOrUpdateSample.ts | 53 ----- .../src/packetCoreDataPlanesDeleteSample.ts | 45 ---- .../src/packetCoreDataPlanesGetSample.ts | 45 ---- ...lanesListByPacketCoreControlPlaneSample.ts | 46 ---- .../packetCoreDataPlanesUpdateTagsSample.ts | 50 ---- .../src/servicesCreateOrUpdateSample.ts | 83 ------- .../v3/typescript/src/servicesDeleteSample.ts | 45 ---- .../v3/typescript/src/servicesGetSample.ts | 45 ---- .../src/servicesListByMobileNetworkSample.ts | 46 ---- .../src/servicesUpdateTagsSample.ts | 50 ---- .../src/simGroupsCreateOrUpdateSample.ts | 63 ----- .../typescript/src/simGroupsDeleteSample.ts | 43 ---- .../v3/typescript/src/simGroupsGetSample.ts | 40 ---- .../src/simGroupsListByResourceGroupSample.ts | 44 ---- .../src/simGroupsListBySubscriptionSample.ts | 40 ---- .../src/simGroupsUpdateTagsSample.ts | 56 ----- .../src/simPoliciesCreateOrUpdateSample.ts | 92 -------- .../typescript/src/simPoliciesDeleteSample.ts | 45 ---- .../v3/typescript/src/simPoliciesGetSample.ts | 45 ---- .../simPoliciesListByMobileNetworkSample.ts | 46 ---- .../src/simPoliciesUpdateTagsSample.ts | 50 ---- .../v3/typescript/src/simsBulkDeleteSample.ts | 48 ---- .../src/simsBulkUploadEncryptedSample.ts | 104 --------- .../v3/typescript/src/simsBulkUploadSample.ts | 101 -------- .../src/simsCreateOrUpdateSample.ts | 70 ------ .../v3/typescript/src/simsDeleteSample.ts | 45 ---- .../v3/typescript/src/simsGetSample.ts | 45 ---- .../typescript/src/simsListByGroupSample.ts | 46 ---- .../src/sitesCreateOrUpdateSample.ts | 47 ---- .../src/sitesDeletePacketCoreSample.ts | 55 ----- .../v3/typescript/src/sitesDeleteSample.ts | 45 ---- .../v3/typescript/src/sitesGetSample.ts | 45 ---- .../src/sitesListByMobileNetworkSample.ts | 46 ---- .../typescript/src/sitesUpdateTagsSample.ts | 50 ---- .../src/slicesCreateOrUpdateSample.ts | 51 ---- .../v3/typescript/src/slicesDeleteSample.ts | 45 ---- .../v3/typescript/src/slicesGetSample.ts | 45 ---- .../src/slicesListByMobileNetworkSample.ts | 46 ---- .../typescript/src/slicesUpdateTagsSample.ts | 50 ---- .../samples/v3/typescript/tsconfig.json | 17 -- .../src/mobileNetworkManagementClient.ts | 4 +- .../arm-mobilenetwork/src/models/index.ts | 65 +++++- .../arm-mobilenetwork/src/models/mappers.ts | 136 ++++++++++- .../src/models/parameters.ts | 2 +- .../mobilenetwork_operations_test.spec.ts | 104 --------- .../arm-mobilenetwork/test/sampleTest.ts | 43 ++++ .../arm-mobilenetwork/tsconfig.json | 10 +- 254 files changed, 313 insertions(+), 11891 deletions(-) delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/assets.json delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksListByPacketCoreDataPlaneSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksListByResourceGroupSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksListBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/operationsListSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesListByPacketCoreControlPlaneSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesStopSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsListBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsListSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesListByResourceGroupSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesListBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesReinstallSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesRollbackSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsListByResourceGroupSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsListBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkUploadEncryptedSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkUploadSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsListByGroupSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesDeletePacketCoreSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/README.md delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksListByPacketCoreDataPlaneSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksListByMobileNetworkSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesListByPacketCoreControlPlaneSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListByResourceGroupSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListBySubscriptionSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/operationsListSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/package.json delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesListByPacketCoreControlPlaneSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesStopSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetBySubscriptionSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListBySubscriptionSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCollectDiagnosticsPackageSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListByResourceGroupSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListBySubscriptionSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesReinstallSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesRollbackSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesListByPacketCoreControlPlaneSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sample.env delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesListByMobileNetworkSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListByResourceGroupSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListBySubscriptionSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesListByMobileNetworkSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadEncryptedSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsListByGroupSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeletePacketCoreSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesListByMobileNetworkSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesCreateOrUpdateSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesDeleteSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesGetSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesListByMobileNetworkSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesUpdateTagsSample.js delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/README.md delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/package.json delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/sample.env delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksListByPacketCoreDataPlaneSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListByResourceGroupSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/operationsListSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesListByPacketCoreControlPlaneSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesStopSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListByResourceGroupSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesReinstallSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesRollbackSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListByResourceGroupSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListBySubscriptionSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadEncryptedSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsListByGroupSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeletePacketCoreSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesCreateOrUpdateSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesDeleteSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesGetSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesListByMobileNetworkSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesUpdateTagsSample.ts delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/tsconfig.json delete mode 100644 sdk/mobilenetwork/arm-mobilenetwork/test/mobilenetwork_operations_test.spec.ts create mode 100644 sdk/mobilenetwork/arm-mobilenetwork/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index bde321a58542..411ff4cf21c0 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3962,7 +3962,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug@3.2.7: @@ -4214,7 +4214,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231005 + typescript: 5.3.0-dev.20231009 dev: false /eastasianwidth@0.2.0: @@ -8963,8 +8963,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231005: - resolution: {integrity: sha512-Twm3wBauTO94CSWbjXFMpsHsbaOUVssreq6pUo4wr8YsaIp0jim8EeCa9LfawFetQ+P4PODMmiM+uBhhWRVX0Q==} + /typescript@5.3.0-dev.20231009: + resolution: {integrity: sha512-0JwLa29peN3wK/3uUMHTr9bzLwJ7BIloeN3JTyHj0aeyoowNMJXjpVMSTu8geVzfP4RPL9vM/7iyVPrPBmLBaQ==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -13935,10 +13935,11 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-s9z80uTSiAh8E7UAI5qsPJEVeav53DUFM9ZdOi7Plcz7MA68sUS+XmYpLe5imbf04VC3+NFg0Iowit+cAlvZ2g==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-lnumI9E4rI04bzuiz6VVkHAyP86S2IzHUJnUeScuCBw6rraBmgrp14XDXnMBF5+BnqK7AFKITh9xD/3IXuuJig==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: + '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.38.0(@types/node@14.18.63) '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) '@rollup/plugin-json': 6.0.0(rollup@2.79.1) @@ -13950,8 +13951,8 @@ packages: cross-env: 7.0.3 dotenv: 16.3.1 mkdirp: 2.1.6 - mocha: 10.2.0 - rimraf: 3.0.2 + mocha: 7.2.0 + rimraf: 5.0.5 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@14.18.63)(rollup@2.79.1) ts-node: 10.9.1(@types/node@14.18.63)(typescript@5.0.4) @@ -13961,6 +13962,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: diff --git a/sdk/mobilenetwork/arm-mobilenetwork/CHANGELOG.md b/sdk/mobilenetwork/arm-mobilenetwork/CHANGELOG.md index c3417fac794b..6b6c7776266c 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/CHANGELOG.md +++ b/sdk/mobilenetwork/arm-mobilenetwork/CHANGELOG.md @@ -1,15 +1,25 @@ # Release History + +## 3.1.0 (2023-10-09) + +**Features** -## 3.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface EventHubConfiguration + - Added Interface NASRerouteConfiguration + - Added Interface SignalingConfiguration + - Interface PacketCapture has a new optional parameter outputFiles + - Interface PacketCoreControlPlane has a new optional parameter controlPlaneAccessVirtualIpv4Addresses + - Interface PacketCoreControlPlane has a new optional parameter eventHub + - Interface PacketCoreControlPlane has a new optional parameter signaling + - Interface PacketCoreDataPlane has a new optional parameter userPlaneAccessVirtualIpv4Addresses + - Enum KnownInstallationReason has a new value ControlPlaneAccessInterfaceHasChanged + - Enum KnownInstallationReason has a new value ControlPlaneAccessVirtualIpv4AddressesHasChanged + - Enum KnownInstallationReason has a new value PublicLandMobileNetworkIdentifierHasChanged + - Enum KnownInstallationReason has a new value UserPlaneAccessInterfaceHasChanged + - Enum KnownInstallationReason has a new value UserPlaneAccessVirtualIpv4AddressesHasChanged + - Enum KnownInstallationReason has a new value UserPlaneDataInterfaceHasChanged + + ## 3.0.0 (2023-07-05) **Features** @@ -123,4 +133,4 @@ ## 1.0.0 (2022-12-15) -The package of @azure/arm-mobilenetwork is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +The package of @azure/arm-mobilenetwork is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/mobilenetwork/arm-mobilenetwork/_meta.json b/sdk/mobilenetwork/arm-mobilenetwork/_meta.json index 9455902651a3..378356ca3580 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/_meta.json +++ b/sdk/mobilenetwork/arm-mobilenetwork/_meta.json @@ -1,8 +1,8 @@ { - "commit": "95358a2b319539960ec94ca7decd47c28f4fc2d0", + "commit": "571d40058d0d99bc877ff9df716ce8ad5ad6fecf", "readme": "specification/mobilenetwork/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\mobilenetwork\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/mobilenetwork/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/mobilenetwork/arm-mobilenetwork/assets.json b/sdk/mobilenetwork/arm-mobilenetwork/assets.json deleted file mode 100644 index f27745183e30..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/mobilenetwork/arm-mobilenetwork", - "Tag": "js/mobilenetwork/arm-mobilenetwork_0b08471816" -} diff --git a/sdk/mobilenetwork/arm-mobilenetwork/package.json b/sdk/mobilenetwork/arm-mobilenetwork/package.json index 58a7a4bd9134..59ad122ba34e 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/package.json +++ b/sdk/mobilenetwork/arm-mobilenetwork/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for MobileNetworkManagementClient.", - "version": "3.0.1", + "version": "3.1.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -38,18 +38,18 @@ "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", - "@azure/identity": "^3.3.0", + "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", - "mocha": "^10.0.0", + "mocha": "^7.1.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -84,7 +84,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -112,13 +112,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mobilenetwork/arm-mobilenetwork", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-mobilenetwork?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mobilenetwork/arm-mobilenetwork" +} \ No newline at end of file diff --git a/sdk/mobilenetwork/arm-mobilenetwork/review/arm-mobilenetwork.api.md b/sdk/mobilenetwork/arm-mobilenetwork/review/arm-mobilenetwork.api.md index 06954a104390..46d9425e046a 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/review/arm-mobilenetwork.api.md +++ b/sdk/mobilenetwork/arm-mobilenetwork/review/arm-mobilenetwork.api.md @@ -363,6 +363,12 @@ export interface ErrorResponse { error?: ErrorDetail; } +// @public +export interface EventHubConfiguration { + id: string; + reportingInterval?: number; +} + // @public export function getContinuationToken(page: unknown): string | undefined; @@ -454,9 +460,15 @@ export enum KnownDiagnosticsPackageStatus { // @public export enum KnownInstallationReason { + ControlPlaneAccessInterfaceHasChanged = "ControlPlaneAccessInterfaceHasChanged", + ControlPlaneAccessVirtualIpv4AddressesHasChanged = "ControlPlaneAccessVirtualIpv4AddressesHasChanged", NoAttachedDataNetworks = "NoAttachedDataNetworks", NoPacketCoreDataPlane = "NoPacketCoreDataPlane", - NoSlices = "NoSlices" + NoSlices = "NoSlices", + PublicLandMobileNetworkIdentifierHasChanged = "PublicLandMobileNetworkIdentifierHasChanged", + UserPlaneAccessInterfaceHasChanged = "UserPlaneAccessInterfaceHasChanged", + UserPlaneAccessVirtualIpv4AddressesHasChanged = "UserPlaneAccessVirtualIpv4AddressesHasChanged", + UserPlaneDataInterfaceHasChanged = "UserPlaneDataInterfaceHasChanged" } // @public @@ -750,6 +762,11 @@ export interface NaptConfiguration { // @public export type NaptEnabled = string; +// @public +export interface NASRerouteConfiguration { + macroMmeGroupId: number; +} + // @public export type ObsoleteVersion = string; @@ -798,6 +815,7 @@ export interface PacketCapture extends ProxyResource { bytesToCapturePerPacket?: number; readonly captureStartTime?: Date; networkInterfaces?: string[]; + readonly outputFiles?: string[]; readonly provisioningState?: ProvisioningState; readonly reason?: string; readonly status?: PacketCaptureStatus; @@ -874,8 +892,10 @@ export type PacketCaptureStatus = string; // @public export interface PacketCoreControlPlane extends TrackedResource { controlPlaneAccessInterface: InterfaceProperties; + controlPlaneAccessVirtualIpv4Addresses?: string[]; coreNetworkTechnology?: CoreNetworkType; diagnosticsUpload?: DiagnosticsUploadConfiguration; + eventHub?: EventHubConfiguration; identity?: ManagedServiceIdentity; installation?: Installation; readonly installedVersion?: string; @@ -884,6 +904,7 @@ export interface PacketCoreControlPlane extends TrackedResource { platform: PlatformConfiguration; readonly provisioningState?: ProvisioningState; readonly rollbackVersion?: string; + signaling?: SignalingConfiguration; sites: SiteResourceId[]; sku: BillingSku; ueMtu?: number; @@ -1074,6 +1095,7 @@ export type PacketCoreControlPlaneVersionsListResponse = PacketCoreControlPlaneV export interface PacketCoreDataPlane extends TrackedResource { readonly provisioningState?: ProvisioningState; userPlaneAccessInterface: InterfaceProperties; + userPlaneAccessVirtualIpv4Addresses?: string[]; } // @public @@ -1322,6 +1344,11 @@ export interface ServicesUpdateTagsOptionalParams extends coreClient.OperationOp // @public export type ServicesUpdateTagsResponse = Service; +// @public +export interface SignalingConfiguration { + nasReroute?: NASRerouteConfiguration; +} + // @public export interface Sim extends ProxyResource { authenticationKey?: string; diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksCreateOrUpdateSample.ts deleted file mode 100644 index f3d1d9f66786..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AttachedDataNetwork, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an attached data network. Must be created in the same location as its parent packet core data plane. - * - * @summary Creates or updates an attached data network. Must be created in the same location as its parent packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkCreate.json - */ -async function createAttachedDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const parameters: AttachedDataNetwork = { - dnsAddresses: ["1.1.1.1"], - location: "eastus", - naptConfiguration: { - enabled: "Enabled", - pinholeLimits: 65536, - pinholeTimeouts: { icmp: 30, tcp: 180, udp: 30 }, - portRange: { maxPort: 49999, minPort: 1024 }, - portReuseHoldTime: { tcp: 120, udp: 60 } - }, - userEquipmentAddressPoolPrefix: ["2.2.0.0/16"], - userEquipmentStaticAddressPoolPrefix: ["2.4.0.0/16"], - userPlaneDataInterface: { name: "N6" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createAttachedDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksDeleteSample.ts deleted file mode 100644 index 2f7588eaa91d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified attached data network. - * - * @summary Deletes the specified attached data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkDelete.json - */ -async function deleteAttachedDataNetworkResource() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName - ); - console.log(result); -} - -async function main() { - deleteAttachedDataNetworkResource(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksGetSample.ts deleted file mode 100644 index bc8f8dbdd69d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified attached data network. - * - * @summary Gets information about the specified attached data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkGet.json - */ -async function getAttachedDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName - ); - console.log(result); -} - -async function main() { - getAttachedDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksListByPacketCoreDataPlaneSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksListByPacketCoreDataPlaneSample.ts deleted file mode 100644 index f370db7b45f5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksListByPacketCoreDataPlaneSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the attached data networks associated with a packet core data plane. - * - * @summary Gets all the attached data networks associated with a packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkListByPacketCoreDataPlane.json - */ -async function listAttachedDataNetworksInADataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.attachedDataNetworks.listByPacketCoreDataPlane( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAttachedDataNetworksInADataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksUpdateTagsSample.ts deleted file mode 100644 index 935f30d7ba48..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/attachedDataNetworksUpdateTagsSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an attached data network tags. - * - * @summary Updates an attached data network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkUpdateTags.json - */ -async function updateAttachedDataNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateAttachedDataNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksCreateOrUpdateSample.ts deleted file mode 100644 index 834ec4e411e9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataNetwork, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a data network. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a data network. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkCreate.json - */ -async function createDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const parameters: DataNetwork = { - description: "myFavouriteDataNetwork", - location: "eastus" - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - dataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksDeleteSample.ts deleted file mode 100644 index a10066f7357f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified data network. - * - * @summary Deletes the specified data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkDelete.json - */ -async function deleteDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - dataNetworkName - ); - console.log(result); -} - -async function main() { - deleteDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksGetSample.ts deleted file mode 100644 index 4a154020386a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified data network. - * - * @summary Gets information about the specified data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkGet.json - */ -async function getDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.get( - resourceGroupName, - mobileNetworkName, - dataNetworkName - ); - console.log(result); -} - -async function main() { - getDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksListByMobileNetworkSample.ts deleted file mode 100644 index e3dbfcc10787..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data networks in the mobile network. - * - * @summary Lists all data networks in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkListByMobileNetwork.json - */ -async function listDataNetworksInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataNetworks.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataNetworksInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksUpdateTagsSample.ts deleted file mode 100644 index 898db5624c91..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/dataNetworksUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates data network tags. - * - * @summary Updates data network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkUpdateTags.json - */ -async function updateDataNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.updateTags( - resourceGroupName, - mobileNetworkName, - dataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateDataNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesCreateOrUpdateSample.ts deleted file mode 100644 index b8f7a946731b..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesCreateOrUpdateSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a diagnostics package. - * - * @summary Creates or updates a diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageCreate.json - */ -async function createDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - createDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesDeleteSample.ts deleted file mode 100644 index 6a4247ba5676..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified diagnostics package. - * - * @summary Deletes the specified diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageDelete.json - */ -async function deleteDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - deleteDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesGetSample.ts deleted file mode 100644 index 9829f04c98d6..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified diagnostics package. - * - * @summary Gets information about the specified diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageGet.json - */ -async function getDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.get( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - getDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts deleted file mode 100644 index ba55c03c772b..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the diagnostics packages under a packet core control plane. - * - * @summary Lists all the diagnostics packages under a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageListByPacketCoreControlPlane.json - */ -async function listDiagnosticsPackagesUnderAPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.diagnosticsPackages.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDiagnosticsPackagesUnderAPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksCreateOrUpdateSample.ts deleted file mode 100644 index 6c6661dd69fc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MobileNetwork, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a mobile network. - * - * @summary Creates or updates a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkCreate.json - */ -async function createMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const parameters: MobileNetwork = { - location: "eastus", - publicLandMobileNetworkIdentifier: { mcc: "001", mnc: "01" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksDeleteSample.ts deleted file mode 100644 index 30219d79712f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified mobile network. - * - * @summary Deletes the specified mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkDelete.json - */ -async function deleteMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName - ); - console.log(result); -} - -async function main() { - deleteMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksGetSample.ts deleted file mode 100644 index 11e8fc2deac1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified mobile network. - * - * @summary Gets information about the specified mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkGet.json - */ -async function getMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.get( - resourceGroupName, - mobileNetworkName - ); - console.log(result); -} - -async function main() { - getMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksListByResourceGroupSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksListByResourceGroupSample.ts deleted file mode 100644 index 9a6d63073ea8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the mobile networks in a resource group. - * - * @summary Lists all the mobile networks in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListByResourceGroup.json - */ -async function listMobileNetworksInResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.mobileNetworks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworksInResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksListBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksListBySubscriptionSample.ts deleted file mode 100644 index 820ac6af43a8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the mobile networks in a subscription. - * - * @summary Lists all the mobile networks in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListBySubscription.json - */ -async function listMobileNetworksInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.mobileNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworksInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksUpdateTagsSample.ts deleted file mode 100644 index 96411b901729..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/mobileNetworksUpdateTagsSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates mobile network tags. - * - * @summary Updates mobile network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkUpdateTags.json - */ -async function updateMobileNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.updateTags( - resourceGroupName, - mobileNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateMobileNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/operationsListSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/operationsListSample.ts deleted file mode 100644 index 84dff1e16602..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of the operations. - * - * @summary Gets a list of the operations. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/OperationList.json - */ -async function getRegistrationOperations() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getRegistrationOperations(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesCreateOrUpdateSample.ts deleted file mode 100644 index f045d4c42eb9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PacketCapture, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a packet capture. - * - * @summary Creates or updates a packet capture. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureCreate.json - */ -async function createPacketCapture() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const parameters: PacketCapture = { - bytesToCapturePerPacket: 10000, - networkInterfaces: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN" - ], - timeLimitInSeconds: 100, - totalBytesPerSession: 100000 - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCapture(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesDeleteSample.ts deleted file mode 100644 index 37ef547955bb..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified packet capture. - * - * @summary Deletes the specified packet capture. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureDelete.json - */ -async function deletePacketCapture() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - deletePacketCapture(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesGetSample.ts deleted file mode 100644 index 812549bd2a51..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet capture session. - * - * @summary Gets information about the specified packet capture session. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureGet.json - */ -async function getPacketCaptureSession() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - getPacketCaptureSession(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesListByPacketCoreControlPlaneSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesListByPacketCoreControlPlaneSample.ts deleted file mode 100644 index 87c833395d54..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesListByPacketCoreControlPlaneSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the packet capture sessions under a packet core control plane. - * - * @summary Lists all the packet capture sessions under a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureListByPacketCoreControlPlane.json - */ -async function listPacketCaptureSessionsUnderAPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCaptures.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCaptureSessionsUnderAPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesStopSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesStopSample.ts deleted file mode 100644 index 1b1333ae234d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCapturesStopSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Stop a packet capture session. - * - * @summary Stop a packet capture session. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureStop.json - */ -async function stopPacketCaptureSession() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginStopAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - stopPacketCaptureSession(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts deleted file mode 100644 index f91f1b0acb8e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane version. - * - * @summary Gets information about the specified packet core control plane version. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGetBySubscription.json - */ -async function getPacketCoreControlPlaneVersionBySubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const versionName = "PMN-4-11-1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlaneVersions.getBySubscription( - versionName - ); - console.log(result); -} - -async function main() { - getPacketCoreControlPlaneVersionBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsGetSample.ts deleted file mode 100644 index 3c01320865d5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsGetSample.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane version. - * - * @summary Gets information about the specified packet core control plane version. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGet.json - */ -async function getPacketCoreControlPlaneVersion() { - const versionName = "PMN-4-11-1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential); - const result = await client.packetCoreControlPlaneVersions.get(versionName); - console.log(result); -} - -async function main() { - getPacketCoreControlPlaneVersion(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsListBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsListBySubscriptionSample.ts deleted file mode 100644 index 06cccbc6eaff..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all supported packet core control planes versions. - * - * @summary Lists all supported packet core control planes versions. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionListBySubscription.json - */ -async function getSupportedPacketCoreControlPlaneVersionsBySubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlaneVersions.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSupportedPacketCoreControlPlaneVersionsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsListSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsListSample.ts deleted file mode 100644 index b1e0c74861fa..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlaneVersionsListSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all supported packet core control planes versions. - * - * @summary Lists all supported packet core control planes versions. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionList.json - */ -async function getSupportedPacketCoreControlPlaneVersions() { - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlaneVersions.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSupportedPacketCoreControlPlaneVersions(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts deleted file mode 100644 index 23cce76ea07d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PacketCoreControlPlaneCollectDiagnosticsPackage, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account. - * - * @summary Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json - */ -async function collectDiagnosticsPackageFromPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters: PacketCoreControlPlaneCollectDiagnosticsPackage = { - storageAccountBlobUrl: - "https://contosoaccount.blob.core.windows.net/container/diagnosticsPackage.zip" - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginCollectDiagnosticsPackageAndWait( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - collectDiagnosticsPackageFromPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesCreateOrUpdateSample.ts deleted file mode 100644 index 6beb117a8ab1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesCreateOrUpdateSample.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PacketCoreControlPlane, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a packet core control plane. - * - * @summary Creates or updates a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCreate.json - */ -async function createPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters: PacketCoreControlPlane = { - controlPlaneAccessInterface: { name: "N2" }, - coreNetworkTechnology: "5GC", - installation: { desiredState: "Installed" }, - localDiagnosticsAccess: { - authenticationType: "AAD", - httpsServerCertificate: { - certificateUrl: - "https://contosovault.vault.azure.net/certificates/ingress" - } - }, - location: "eastus", - platform: { - type: "AKS-HCI", - azureStackEdgeDevice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TestAzureStackEdgeDevice" - }, - connectedCluster: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/TestConnectedCluster" - }, - customLocation: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation" - } - }, - sites: [ - { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/sites/testSite" - } - ], - sku: "G0", - ueMtu: 1600, - version: "0.2.0" - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesDeleteSample.ts deleted file mode 100644 index c7e566e27535..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified packet core control plane. - * - * @summary Deletes the specified packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneDelete.json - */ -async function deletePacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - deletePacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesGetSample.ts deleted file mode 100644 index 69eb94ff9219..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane. - * - * @summary Gets information about the specified packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneGet.json - */ -async function getPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.get( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - getPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesListByResourceGroupSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesListByResourceGroupSample.ts deleted file mode 100644 index 55a98148c812..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the packet core control planes in a resource group. - * - * @summary Lists all the packet core control planes in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListByResourceGroup.json - */ -async function listPacketCoreControlPlanesInResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlanes.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreControlPlanesInResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesListBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesListBySubscriptionSample.ts deleted file mode 100644 index 376e3985e7db..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the packet core control planes in a subscription. - * - * @summary Lists all the packet core control planes in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListBySubscription.json - */ -async function listPacketCoreControlPlanesInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlanes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreControlPlanesInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesReinstallSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesReinstallSample.ts deleted file mode 100644 index 49b3683ff730..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesReinstallSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core to return it to a known state. This action will cause a service outage. - * - * @summary Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core to return it to a known state. This action will cause a service outage. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneReinstall.json - */ -async function reinstallPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginReinstallAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - reinstallPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesRollbackSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesRollbackSample.ts deleted file mode 100644 index e5776cdb8be7..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesRollbackSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks are not possible. This action may cause a service outage. - * - * @summary Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks are not possible. This action may cause a service outage. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneRollback.json - */ -async function rollbackPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginRollbackAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - rollbackPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesUpdateTagsSample.ts deleted file mode 100644 index f79290948dd4..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreControlPlanesUpdateTagsSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IdentityAndTagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch packet core control plane resource. - * - * @summary Patch packet core control plane resource. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlanePatch.json - */ -async function patchPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters: IdentityAndTagsObject = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": {} - } - }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - patchPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesCreateOrUpdateSample.ts deleted file mode 100644 index f494a19e6456..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesCreateOrUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PacketCoreDataPlane, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a packet core data plane. Must be created in the same location as its parent packet core control plane. - * - * @summary Creates or updates a packet core data plane. Must be created in the same location as its parent packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneCreate.json - */ -async function createPacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const parameters: PacketCoreDataPlane = { - location: "eastus", - userPlaneAccessInterface: { name: "N3" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesDeleteSample.ts deleted file mode 100644 index 5484847f165a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified packet core data plane. - * - * @summary Deletes the specified packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneDelete.json - */ -async function deletePacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - ); - console.log(result); -} - -async function main() { - deletePacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesGetSample.ts deleted file mode 100644 index 21512797aab0..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core data plane. - * - * @summary Gets information about the specified packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneGet.json - */ -async function getPacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - ); - console.log(result); -} - -async function main() { - getPacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts deleted file mode 100644 index ccd674b6882d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the packet core data planes associated with a packet core control plane. - * - * @summary Lists all the packet core data planes associated with a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json - */ -async function listPacketCoreDataPlanesInAControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreDataPlanes.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreDataPlanesInAControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesUpdateTagsSample.ts deleted file mode 100644 index bb15f37589bc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/packetCoreDataPlanesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates packet core data planes tags. - * - * @summary Updates packet core data planes tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneUpdateTags.json - */ -async function updatePacketCoreDataPlaneTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - updatePacketCoreDataPlaneTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesCreateOrUpdateSample.ts deleted file mode 100644 index c1efc775a50a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesCreateOrUpdateSample.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - Service, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a service. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a service. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceCreate.json - */ -async function createService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const parameters: Service = { - location: "eastus", - pccRules: [ - { - ruleName: "default-rule", - rulePrecedence: 255, - ruleQosPolicy: { - fiveQi: 9, - allocationAndRetentionPriorityLevel: 9, - maximumBitRate: { downlink: "1 Gbps", uplink: "500 Mbps" }, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable" - }, - serviceDataFlowTemplates: [ - { - direction: "Uplink", - ports: [], - remoteIpList: ["10.3.4.0/24"], - templateName: "IP-to-server", - protocol: ["ip"] - } - ], - trafficControl: "Enabled" - } - ], - servicePrecedence: 255, - serviceQosPolicy: { - fiveQi: 9, - allocationAndRetentionPriorityLevel: 9, - maximumBitRate: { downlink: "1 Gbps", uplink: "500 Mbps" }, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable" - } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - serviceName, - parameters - ); - console.log(result); -} - -async function main() { - createService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesDeleteSample.ts deleted file mode 100644 index 281cef55fbf1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified service. - * - * @summary Deletes the specified service. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceDelete.json - */ -async function deleteService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - serviceName - ); - console.log(result); -} - -async function main() { - deleteService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesGetSample.ts deleted file mode 100644 index 062167231b7d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified service. - * - * @summary Gets information about the specified service. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceGet.json - */ -async function getService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.get( - resourceGroupName, - mobileNetworkName, - serviceName - ); - console.log(result); -} - -async function main() { - getService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesListByMobileNetworkSample.ts deleted file mode 100644 index 8cab084579e8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the services in a mobile network. - * - * @summary Gets all the services in a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceListByMobileNetwork.json - */ -async function listServicesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.services.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listServicesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesUpdateTagsSample.ts deleted file mode 100644 index 10912edd244a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/servicesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates service tags. - * - * @summary Updates service tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceUpdateTags.json - */ -async function updateServiceTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.updateTags( - resourceGroupName, - mobileNetworkName, - serviceName, - parameters - ); - console.log(result); -} - -async function main() { - updateServiceTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsCreateOrUpdateSample.ts deleted file mode 100644 index eb19f3b4bacf..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsCreateOrUpdateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SimGroup, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a SIM group. - * - * @summary Creates or updates a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupCreate.json - */ -async function createSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters: SimGroup = { - encryptionKey: { - keyUrl: "https://contosovault.vault.azure.net/keys/azureKey" - }, - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": {} - } - }, - location: "eastus", - mobileNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork" - } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.beginCreateOrUpdateAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - createSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsDeleteSample.ts deleted file mode 100644 index ad898d74e635..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified SIM group. - * - * @summary Deletes the specified SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupDelete.json - */ -async function deleteSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.beginDeleteAndWait( - resourceGroupName, - simGroupName - ); - console.log(result); -} - -async function main() { - deleteSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsGetSample.ts deleted file mode 100644 index c30a0d3b4ecc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM group. - * - * @summary Gets information about the specified SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupGet.json - */ -async function getSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.get(resourceGroupName, simGroupName); - console.log(result); -} - -async function main() { - getSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsListByResourceGroupSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsListByResourceGroupSample.ts deleted file mode 100644 index 5653054d2b17..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the SIM groups in a resource group. - * - * @summary Gets all the SIM groups in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListByResourceGroup.json - */ -async function listSimGroupsInAResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simGroups.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimGroupsInAResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsListBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsListBySubscriptionSample.ts deleted file mode 100644 index 06169027a245..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the SIM groups in a subscription. - * - * @summary Gets all the SIM groups in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListBySubscription.json - */ -async function listSimGroupsInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simGroups.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimGroupsInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsUpdateTagsSample.ts deleted file mode 100644 index ba5dc1603e17..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simGroupsUpdateTagsSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IdentityAndTagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch SIM group resource. - * - * @summary Patch SIM group resource. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupPatch.json - */ -async function patchSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters: IdentityAndTagsObject = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": {} - } - }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.updateTags( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - patchSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesCreateOrUpdateSample.ts deleted file mode 100644 index 09f341a67b8e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesCreateOrUpdateSample.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SimPolicy, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyCreate.json - */ -async function createSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const parameters: SimPolicy = { - defaultSlice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - location: "eastus", - registrationTimer: 3240, - sliceConfigurations: [ - { - dataNetworkConfigurations: [ - { - fiveQi: 9, - additionalAllowedSessionTypes: [], - allocationAndRetentionPriorityLevel: 9, - allowedServices: [ - { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService" - } - ], - dataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork" - }, - defaultSessionType: "IPv4", - maximumNumberOfBufferedPackets: 200, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable", - sessionAmbr: { downlink: "1 Gbps", uplink: "500 Mbps" } - } - ], - defaultDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - } - } - ], - ueAmbr: { downlink: "1 Gbps", uplink: "500 Mbps" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - simPolicyName, - parameters - ); - console.log(result); -} - -async function main() { - createSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesDeleteSample.ts deleted file mode 100644 index b198cd82b7b3..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified SIM policy. - * - * @summary Deletes the specified SIM policy. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyDelete.json - */ -async function deleteSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - simPolicyName - ); - console.log(result); -} - -async function main() { - deleteSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesGetSample.ts deleted file mode 100644 index 84fac80f19b7..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM policy. - * - * @summary Gets information about the specified SIM policy. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyGet.json - */ -async function getSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.get( - resourceGroupName, - mobileNetworkName, - simPolicyName - ); - console.log(result); -} - -async function main() { - getSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesListByMobileNetworkSample.ts deleted file mode 100644 index ecbe2ff4c6c9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the SIM policies in a mobile network. - * - * @summary Gets all the SIM policies in a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyListByMobileNetwork.json - */ -async function listSimPoliciesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simPolicies.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimPoliciesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesUpdateTagsSample.ts deleted file mode 100644 index 3b23a13c0891..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simPoliciesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates SIM policy tags. - * - * @summary Updates SIM policy tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyUpdateTags.json - */ -async function updateSimPolicyTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.updateTags( - resourceGroupName, - mobileNetworkName, - simPolicyName, - parameters - ); - console.log(result); -} - -async function main() { - updateSimPolicyTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkDeleteSample.ts deleted file mode 100644 index a814bcfde394..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkDeleteSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SimDeleteList, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Bulk delete SIMs from a SIM group. - * - * @summary Bulk delete SIMs from a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkDelete.json - */ -async function bulkDeleteSiMSFromASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const parameters: SimDeleteList = { sims: ["testSim", "testSim2"] }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkDeleteAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkDeleteSiMSFromASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkUploadEncryptedSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkUploadEncryptedSample.ts deleted file mode 100644 index 7b13033b3021..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkUploadEncryptedSample.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EncryptedSimUploadList, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. - * - * @summary Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUploadEncrypted.json - */ -async function bulkUploadEncryptedSiMSToASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters: EncryptedSimUploadList = { - azureKeyIdentifier: 1, - encryptedTransportKey: "ABC123", - signedTransportKey: "ABC123", - sims: [ - { - name: "testSim", - deviceType: "Video camera", - encryptedCredentials: "ABC123", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.1" } - } - ] - }, - { - name: "testSim2", - deviceType: "Video camera", - encryptedCredentials: "ABC123", - integratedCircuitCardIdentifier: "8900000000000000001", - internationalMobileSubscriberIdentity: "00000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.2" } - } - ] - } - ], - vendorKeyFingerprint: "ABC123", - version: 1 - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkUploadEncryptedAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkUploadEncryptedSiMSToASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkUploadSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkUploadSample.ts deleted file mode 100644 index 7d261b804072..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsBulkUploadSample.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SimUploadList, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Bulk upload SIMs to a SIM group. - * - * @summary Bulk upload SIMs to a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUpload.json - */ -async function bulkUploadSiMSInASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters: SimUploadList = { - sims: [ - { - name: "testSim", - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.1" } - } - ] - }, - { - name: "testSim2", - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000001", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.2" } - } - ] - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkUploadAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkUploadSiMSInASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsCreateOrUpdateSample.ts deleted file mode 100644 index 0960a3906fa8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsCreateOrUpdateSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Sim, MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a SIM. - * - * @summary Creates or updates a SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimCreate.json - */ -async function createSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const simName = "testSim"; - const parameters: Sim = { - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.1" } - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginCreateOrUpdateAndWait( - resourceGroupName, - simGroupName, - simName, - parameters - ); - console.log(result); -} - -async function main() { - createSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsDeleteSample.ts deleted file mode 100644 index 42bee22f755a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified SIM. - * - * @summary Deletes the specified SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimDelete.json - */ -async function deleteSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const simName = "testSim"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginDeleteAndWait( - resourceGroupName, - simGroupName, - simName - ); - console.log(result); -} - -async function main() { - deleteSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsGetSample.ts deleted file mode 100644 index 0bcc7d0406dc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM. - * - * @summary Gets information about the specified SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGet.json - */ -async function getSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const simName = "testSimName"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.get( - resourceGroupName, - simGroupName, - simName - ); - console.log(result); -} - -async function main() { - getSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsListByGroupSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsListByGroupSample.ts deleted file mode 100644 index 5f007683fcde..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/simsListByGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the SIMs in a SIM group. - * - * @summary Gets all the SIMs in a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimListBySimGroup.json - */ -async function listSiMSInASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.sims.listByGroup( - resourceGroupName, - simGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSiMSInASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesCreateOrUpdateSample.ts deleted file mode 100644 index 5a3a59080bda..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesCreateOrUpdateSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Site, MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteCreate.json - */ -async function createMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters: Site = { location: "testLocation" }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - createMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesDeletePacketCoreSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesDeletePacketCoreSample.ts deleted file mode 100644 index 654162cf3aa3..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesDeletePacketCoreSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SiteDeletePacketCore, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a packet core under the specified mobile network site. - * - * @summary Deletes a packet core under the specified mobile network site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDeletePacketCore.json - */ -async function deletePacketCoreInMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters: SiteDeletePacketCore = { - packetCore: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP" - } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginDeletePacketCoreAndWait( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - deletePacketCoreInMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesDeleteSample.ts deleted file mode 100644 index 4ab95ab9b4c1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. - * - * @summary Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDelete.json - */ -async function deleteMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - siteName - ); - console.log(result); -} - -async function main() { - deleteMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesGetSample.ts deleted file mode 100644 index 5edcb4c76bf5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified mobile network site. - * - * @summary Gets information about the specified mobile network site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteGet.json - */ -async function getMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.get( - resourceGroupName, - mobileNetworkName, - siteName - ); - console.log(result); -} - -async function main() { - getMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesListByMobileNetworkSample.ts deleted file mode 100644 index d882a832c9df..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all sites in the mobile network. - * - * @summary Lists all sites in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteListByMobileNetwork.json - */ -async function listMobileNetworkSitesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.sites.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworkSitesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesUpdateTagsSample.ts deleted file mode 100644 index bb868304e4a5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/sitesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates site tags. - * - * @summary Updates site tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteUpdateTags.json - */ -async function updateMobileNetworkSiteTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.updateTags( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - updateMobileNetworkSiteTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesCreateOrUpdateSample.ts deleted file mode 100644 index 754507d636d1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Slice, MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a network slice. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a network slice. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceCreate.json - */ -async function createNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const parameters: Slice = { - description: "myFavouriteSlice", - location: "eastus", - snssai: { sd: "1abcde", sst: 1 } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - sliceName, - parameters - ); - console.log(result); -} - -async function main() { - createNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesDeleteSample.ts deleted file mode 100644 index a0d44d1be70e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified network slice. - * - * @summary Deletes the specified network slice. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceDelete.json - */ -async function deleteNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - sliceName - ); - console.log(result); -} - -async function main() { - deleteNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesGetSample.ts deleted file mode 100644 index 688989c9e6ec..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified network slice. - * - * @summary Gets information about the specified network slice. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceGet.json - */ -async function getNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.get( - resourceGroupName, - mobileNetworkName, - sliceName - ); - console.log(result); -} - -async function main() { - getNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesListByMobileNetworkSample.ts deleted file mode 100644 index 677747077d4d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all slices in the mobile network. - * - * @summary Lists all slices in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceListByMobileNetwork.json - */ -async function listNetworkSlicesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.slices.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listNetworkSlicesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesUpdateTagsSample.ts deleted file mode 100644 index 9762778069bb..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples-dev/slicesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates slice tags. - * - * @summary Updates slice tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceUpdateTags.json - */ -async function updateNetworkSliceTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.updateTags( - resourceGroupName, - mobileNetworkName, - sliceName, - parameters - ); - console.log(result); -} - -async function main() { - updateNetworkSliceTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/README.md b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/README.md deleted file mode 100644 index de913efedfe0..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/README.md +++ /dev/null @@ -1,204 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [attachedDataNetworksCreateOrUpdateSample.js][attacheddatanetworkscreateorupdatesample] | Creates or updates an attached data network. Must be created in the same location as its parent packet core data plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkCreate.json | -| [attachedDataNetworksDeleteSample.js][attacheddatanetworksdeletesample] | Deletes the specified attached data network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkDelete.json | -| [attachedDataNetworksGetSample.js][attacheddatanetworksgetsample] | Gets information about the specified attached data network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkGet.json | -| [attachedDataNetworksListByPacketCoreDataPlaneSample.js][attacheddatanetworkslistbypacketcoredataplanesample] | Gets all the attached data networks associated with a packet core data plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkListByPacketCoreDataPlane.json | -| [attachedDataNetworksUpdateTagsSample.js][attacheddatanetworksupdatetagssample] | Updates an attached data network tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkUpdateTags.json | -| [dataNetworksCreateOrUpdateSample.js][datanetworkscreateorupdatesample] | Creates or updates a data network. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkCreate.json | -| [dataNetworksDeleteSample.js][datanetworksdeletesample] | Deletes the specified data network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkDelete.json | -| [dataNetworksGetSample.js][datanetworksgetsample] | Gets information about the specified data network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkGet.json | -| [dataNetworksListByMobileNetworkSample.js][datanetworkslistbymobilenetworksample] | Lists all data networks in the mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkListByMobileNetwork.json | -| [dataNetworksUpdateTagsSample.js][datanetworksupdatetagssample] | Updates data network tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkUpdateTags.json | -| [diagnosticsPackagesCreateOrUpdateSample.js][diagnosticspackagescreateorupdatesample] | Creates or updates a diagnostics package. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageCreate.json | -| [diagnosticsPackagesDeleteSample.js][diagnosticspackagesdeletesample] | Deletes the specified diagnostics package. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageDelete.json | -| [diagnosticsPackagesGetSample.js][diagnosticspackagesgetsample] | Gets information about the specified diagnostics package. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageGet.json | -| [diagnosticsPackagesListByPacketCoreControlPlaneSample.js][diagnosticspackageslistbypacketcorecontrolplanesample] | Lists all the diagnostics packages under a packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageListByPacketCoreControlPlane.json | -| [mobileNetworksCreateOrUpdateSample.js][mobilenetworkscreateorupdatesample] | Creates or updates a mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkCreate.json | -| [mobileNetworksDeleteSample.js][mobilenetworksdeletesample] | Deletes the specified mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkDelete.json | -| [mobileNetworksGetSample.js][mobilenetworksgetsample] | Gets information about the specified mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkGet.json | -| [mobileNetworksListByResourceGroupSample.js][mobilenetworkslistbyresourcegroupsample] | Lists all the mobile networks in a resource group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListByResourceGroup.json | -| [mobileNetworksListBySubscriptionSample.js][mobilenetworkslistbysubscriptionsample] | Lists all the mobile networks in a subscription. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListBySubscription.json | -| [mobileNetworksUpdateTagsSample.js][mobilenetworksupdatetagssample] | Updates mobile network tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkUpdateTags.json | -| [operationsListSample.js][operationslistsample] | Gets a list of the operations. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/OperationList.json | -| [packetCapturesCreateOrUpdateSample.js][packetcapturescreateorupdatesample] | Creates or updates a packet capture. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureCreate.json | -| [packetCapturesDeleteSample.js][packetcapturesdeletesample] | Deletes the specified packet capture. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureDelete.json | -| [packetCapturesGetSample.js][packetcapturesgetsample] | Gets information about the specified packet capture session. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureGet.json | -| [packetCapturesListByPacketCoreControlPlaneSample.js][packetcaptureslistbypacketcorecontrolplanesample] | Lists all the packet capture sessions under a packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureListByPacketCoreControlPlane.json | -| [packetCapturesStopSample.js][packetcapturesstopsample] | Stop a packet capture session. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureStop.json | -| [packetCoreControlPlaneVersionsGetBySubscriptionSample.js][packetcorecontrolplaneversionsgetbysubscriptionsample] | Gets information about the specified packet core control plane version. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGetBySubscription.json | -| [packetCoreControlPlaneVersionsGetSample.js][packetcorecontrolplaneversionsgetsample] | Gets information about the specified packet core control plane version. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGet.json | -| [packetCoreControlPlaneVersionsListBySubscriptionSample.js][packetcorecontrolplaneversionslistbysubscriptionsample] | Lists all supported packet core control planes versions. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionListBySubscription.json | -| [packetCoreControlPlaneVersionsListSample.js][packetcorecontrolplaneversionslistsample] | Lists all supported packet core control planes versions. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionList.json | -| [packetCoreControlPlanesCollectDiagnosticsPackageSample.js][packetcorecontrolplanescollectdiagnosticspackagesample] | Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json | -| [packetCoreControlPlanesCreateOrUpdateSample.js][packetcorecontrolplanescreateorupdatesample] | Creates or updates a packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCreate.json | -| [packetCoreControlPlanesDeleteSample.js][packetcorecontrolplanesdeletesample] | Deletes the specified packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneDelete.json | -| [packetCoreControlPlanesGetSample.js][packetcorecontrolplanesgetsample] | Gets information about the specified packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneGet.json | -| [packetCoreControlPlanesListByResourceGroupSample.js][packetcorecontrolplaneslistbyresourcegroupsample] | Lists all the packet core control planes in a resource group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListByResourceGroup.json | -| [packetCoreControlPlanesListBySubscriptionSample.js][packetcorecontrolplaneslistbysubscriptionsample] | Lists all the packet core control planes in a subscription. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListBySubscription.json | -| [packetCoreControlPlanesReinstallSample.js][packetcorecontrolplanesreinstallsample] | Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core to return it to a known state. This action will cause a service outage. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneReinstall.json | -| [packetCoreControlPlanesRollbackSample.js][packetcorecontrolplanesrollbacksample] | Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks are not possible. This action may cause a service outage. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneRollback.json | -| [packetCoreControlPlanesUpdateTagsSample.js][packetcorecontrolplanesupdatetagssample] | Patch packet core control plane resource. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlanePatch.json | -| [packetCoreDataPlanesCreateOrUpdateSample.js][packetcoredataplanescreateorupdatesample] | Creates or updates a packet core data plane. Must be created in the same location as its parent packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneCreate.json | -| [packetCoreDataPlanesDeleteSample.js][packetcoredataplanesdeletesample] | Deletes the specified packet core data plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneDelete.json | -| [packetCoreDataPlanesGetSample.js][packetcoredataplanesgetsample] | Gets information about the specified packet core data plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneGet.json | -| [packetCoreDataPlanesListByPacketCoreControlPlaneSample.js][packetcoredataplaneslistbypacketcorecontrolplanesample] | Lists all the packet core data planes associated with a packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json | -| [packetCoreDataPlanesUpdateTagsSample.js][packetcoredataplanesupdatetagssample] | Updates packet core data planes tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneUpdateTags.json | -| [servicesCreateOrUpdateSample.js][servicescreateorupdatesample] | Creates or updates a service. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceCreate.json | -| [servicesDeleteSample.js][servicesdeletesample] | Deletes the specified service. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceDelete.json | -| [servicesGetSample.js][servicesgetsample] | Gets information about the specified service. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceGet.json | -| [servicesListByMobileNetworkSample.js][serviceslistbymobilenetworksample] | Gets all the services in a mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceListByMobileNetwork.json | -| [servicesUpdateTagsSample.js][servicesupdatetagssample] | Updates service tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceUpdateTags.json | -| [simGroupsCreateOrUpdateSample.js][simgroupscreateorupdatesample] | Creates or updates a SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupCreate.json | -| [simGroupsDeleteSample.js][simgroupsdeletesample] | Deletes the specified SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupDelete.json | -| [simGroupsGetSample.js][simgroupsgetsample] | Gets information about the specified SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupGet.json | -| [simGroupsListByResourceGroupSample.js][simgroupslistbyresourcegroupsample] | Gets all the SIM groups in a resource group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListByResourceGroup.json | -| [simGroupsListBySubscriptionSample.js][simgroupslistbysubscriptionsample] | Gets all the SIM groups in a subscription. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListBySubscription.json | -| [simGroupsUpdateTagsSample.js][simgroupsupdatetagssample] | Patch SIM group resource. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupPatch.json | -| [simPoliciesCreateOrUpdateSample.js][simpoliciescreateorupdatesample] | Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyCreate.json | -| [simPoliciesDeleteSample.js][simpoliciesdeletesample] | Deletes the specified SIM policy. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyDelete.json | -| [simPoliciesGetSample.js][simpoliciesgetsample] | Gets information about the specified SIM policy. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyGet.json | -| [simPoliciesListByMobileNetworkSample.js][simpolicieslistbymobilenetworksample] | Gets all the SIM policies in a mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyListByMobileNetwork.json | -| [simPoliciesUpdateTagsSample.js][simpoliciesupdatetagssample] | Updates SIM policy tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyUpdateTags.json | -| [simsBulkDeleteSample.js][simsbulkdeletesample] | Bulk delete SIMs from a SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkDelete.json | -| [simsBulkUploadEncryptedSample.js][simsbulkuploadencryptedsample] | Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUploadEncrypted.json | -| [simsBulkUploadSample.js][simsbulkuploadsample] | Bulk upload SIMs to a SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUpload.json | -| [simsCreateOrUpdateSample.js][simscreateorupdatesample] | Creates or updates a SIM. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimCreate.json | -| [simsDeleteSample.js][simsdeletesample] | Deletes the specified SIM. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimDelete.json | -| [simsGetSample.js][simsgetsample] | Gets information about the specified SIM. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGet.json | -| [simsListByGroupSample.js][simslistbygroupsample] | Gets all the SIMs in a SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimListBySimGroup.json | -| [sitesCreateOrUpdateSample.js][sitescreateorupdatesample] | Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteCreate.json | -| [sitesDeletePacketCoreSample.js][sitesdeletepacketcoresample] | Deletes a packet core under the specified mobile network site. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDeletePacketCore.json | -| [sitesDeleteSample.js][sitesdeletesample] | Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDelete.json | -| [sitesGetSample.js][sitesgetsample] | Gets information about the specified mobile network site. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteGet.json | -| [sitesListByMobileNetworkSample.js][siteslistbymobilenetworksample] | Lists all sites in the mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteListByMobileNetwork.json | -| [sitesUpdateTagsSample.js][sitesupdatetagssample] | Updates site tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteUpdateTags.json | -| [slicesCreateOrUpdateSample.js][slicescreateorupdatesample] | Creates or updates a network slice. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceCreate.json | -| [slicesDeleteSample.js][slicesdeletesample] | Deletes the specified network slice. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceDelete.json | -| [slicesGetSample.js][slicesgetsample] | Gets information about the specified network slice. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceGet.json | -| [slicesListByMobileNetworkSample.js][sliceslistbymobilenetworksample] | Lists all slices in the mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceListByMobileNetwork.json | -| [slicesUpdateTagsSample.js][slicesupdatetagssample] | Updates slice tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceUpdateTags.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node attachedDataNetworksCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env MOBILENETWORK_SUBSCRIPTION_ID="" MOBILENETWORK_RESOURCE_GROUP="" node attachedDataNetworksCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[attacheddatanetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksCreateOrUpdateSample.js -[attacheddatanetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksDeleteSample.js -[attacheddatanetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksGetSample.js -[attacheddatanetworkslistbypacketcoredataplanesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksListByPacketCoreDataPlaneSample.js -[attacheddatanetworksupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksUpdateTagsSample.js -[datanetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksCreateOrUpdateSample.js -[datanetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksDeleteSample.js -[datanetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksGetSample.js -[datanetworkslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksListByMobileNetworkSample.js -[datanetworksupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksUpdateTagsSample.js -[diagnosticspackagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesCreateOrUpdateSample.js -[diagnosticspackagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesDeleteSample.js -[diagnosticspackagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesGetSample.js -[diagnosticspackageslistbypacketcorecontrolplanesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesListByPacketCoreControlPlaneSample.js -[mobilenetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksCreateOrUpdateSample.js -[mobilenetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksDeleteSample.js -[mobilenetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksGetSample.js -[mobilenetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListByResourceGroupSample.js -[mobilenetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListBySubscriptionSample.js -[mobilenetworksupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksUpdateTagsSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/operationsListSample.js -[packetcapturescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesCreateOrUpdateSample.js -[packetcapturesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesDeleteSample.js -[packetcapturesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesGetSample.js -[packetcaptureslistbypacketcorecontrolplanesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesListByPacketCoreControlPlaneSample.js -[packetcapturesstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesStopSample.js -[packetcorecontrolplaneversionsgetbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetBySubscriptionSample.js -[packetcorecontrolplaneversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetSample.js -[packetcorecontrolplaneversionslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListBySubscriptionSample.js -[packetcorecontrolplaneversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListSample.js -[packetcorecontrolplanescollectdiagnosticspackagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCollectDiagnosticsPackageSample.js -[packetcorecontrolplanescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCreateOrUpdateSample.js -[packetcorecontrolplanesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesDeleteSample.js -[packetcorecontrolplanesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesGetSample.js -[packetcorecontrolplaneslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListByResourceGroupSample.js -[packetcorecontrolplaneslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListBySubscriptionSample.js -[packetcorecontrolplanesreinstallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesReinstallSample.js -[packetcorecontrolplanesrollbacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesRollbackSample.js -[packetcorecontrolplanesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesUpdateTagsSample.js -[packetcoredataplanescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesCreateOrUpdateSample.js -[packetcoredataplanesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesDeleteSample.js -[packetcoredataplanesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesGetSample.js -[packetcoredataplaneslistbypacketcorecontrolplanesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesListByPacketCoreControlPlaneSample.js -[packetcoredataplanesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesUpdateTagsSample.js -[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesCreateOrUpdateSample.js -[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesDeleteSample.js -[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesGetSample.js -[serviceslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesListByMobileNetworkSample.js -[servicesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesUpdateTagsSample.js -[simgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsCreateOrUpdateSample.js -[simgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsDeleteSample.js -[simgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsGetSample.js -[simgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListByResourceGroupSample.js -[simgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListBySubscriptionSample.js -[simgroupsupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsUpdateTagsSample.js -[simpoliciescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesCreateOrUpdateSample.js -[simpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesDeleteSample.js -[simpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesGetSample.js -[simpolicieslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesListByMobileNetworkSample.js -[simpoliciesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesUpdateTagsSample.js -[simsbulkdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkDeleteSample.js -[simsbulkuploadencryptedsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadEncryptedSample.js -[simsbulkuploadsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadSample.js -[simscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsCreateOrUpdateSample.js -[simsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsDeleteSample.js -[simsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsGetSample.js -[simslistbygroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsListByGroupSample.js -[sitescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesCreateOrUpdateSample.js -[sitesdeletepacketcoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeletePacketCoreSample.js -[sitesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeleteSample.js -[sitesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesGetSample.js -[siteslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesListByMobileNetworkSample.js -[sitesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesUpdateTagsSample.js -[slicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesCreateOrUpdateSample.js -[slicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesDeleteSample.js -[slicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesGetSample.js -[sliceslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesListByMobileNetworkSample.js -[slicesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesUpdateTagsSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-mobilenetwork?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mobilenetwork/arm-mobilenetwork/README.md diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksCreateOrUpdateSample.js deleted file mode 100644 index b736ebb1feb9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksCreateOrUpdateSample.js +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates an attached data network. Must be created in the same location as its parent packet core data plane. - * - * @summary Creates or updates an attached data network. Must be created in the same location as its parent packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkCreate.json - */ -async function createAttachedDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const parameters = { - dnsAddresses: ["1.1.1.1"], - location: "eastus", - naptConfiguration: { - enabled: "Enabled", - pinholeLimits: 65536, - pinholeTimeouts: { icmp: 30, tcp: 180, udp: 30 }, - portRange: { maxPort: 49999, minPort: 1024 }, - portReuseHoldTime: { tcp: 120, udp: 60 }, - }, - userEquipmentAddressPoolPrefix: ["2.2.0.0/16"], - userEquipmentStaticAddressPoolPrefix: ["2.4.0.0/16"], - userPlaneDataInterface: { name: "N6" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createAttachedDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksDeleteSample.js deleted file mode 100644 index a3698ccd9739..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksDeleteSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified attached data network. - * - * @summary Deletes the specified attached data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkDelete.json - */ -async function deleteAttachedDataNetworkResource() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName - ); - console.log(result); -} - -async function main() { - deleteAttachedDataNetworkResource(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksGetSample.js deleted file mode 100644 index ffcff4c9c128..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksGetSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified attached data network. - * - * @summary Gets information about the specified attached data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkGet.json - */ -async function getAttachedDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName - ); - console.log(result); -} - -async function main() { - getAttachedDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksListByPacketCoreDataPlaneSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksListByPacketCoreDataPlaneSample.js deleted file mode 100644 index 4c0e48fd1282..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksListByPacketCoreDataPlaneSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all the attached data networks associated with a packet core data plane. - * - * @summary Gets all the attached data networks associated with a packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkListByPacketCoreDataPlane.json - */ -async function listAttachedDataNetworksInADataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.attachedDataNetworks.listByPacketCoreDataPlane( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAttachedDataNetworksInADataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksUpdateTagsSample.js deleted file mode 100644 index a1f848dd4b54..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/attachedDataNetworksUpdateTagsSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates an attached data network tags. - * - * @summary Updates an attached data network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkUpdateTags.json - */ -async function updateAttachedDataNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const parameters = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateAttachedDataNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksCreateOrUpdateSample.js deleted file mode 100644 index abd0ec9ad298..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksCreateOrUpdateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a data network. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a data network. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkCreate.json - */ -async function createDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const parameters = { - description: "myFavouriteDataNetwork", - location: "eastus", - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - dataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksDeleteSample.js deleted file mode 100644 index c2e9a5d98f00..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified data network. - * - * @summary Deletes the specified data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkDelete.json - */ -async function deleteDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - dataNetworkName - ); - console.log(result); -} - -async function main() { - deleteDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksGetSample.js deleted file mode 100644 index b8bc904befdd..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified data network. - * - * @summary Gets information about the specified data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkGet.json - */ -async function getDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.get( - resourceGroupName, - mobileNetworkName, - dataNetworkName - ); - console.log(result); -} - -async function main() { - getDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksListByMobileNetworkSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksListByMobileNetworkSample.js deleted file mode 100644 index 35a8de423d0d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksListByMobileNetworkSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all data networks in the mobile network. - * - * @summary Lists all data networks in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkListByMobileNetwork.json - */ -async function listDataNetworksInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataNetworks.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataNetworksInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksUpdateTagsSample.js deleted file mode 100644 index 1113a10918b8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/dataNetworksUpdateTagsSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates data network tags. - * - * @summary Updates data network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkUpdateTags.json - */ -async function updateDataNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const parameters = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.updateTags( - resourceGroupName, - mobileNetworkName, - dataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateDataNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesCreateOrUpdateSample.js deleted file mode 100644 index f266f1bf2b40..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesCreateOrUpdateSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a diagnostics package. - * - * @summary Creates or updates a diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageCreate.json - */ -async function createDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - createDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesDeleteSample.js deleted file mode 100644 index f8a45a1811a2..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified diagnostics package. - * - * @summary Deletes the specified diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageDelete.json - */ -async function deleteDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - deleteDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesGetSample.js deleted file mode 100644 index c366224fa763..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified diagnostics package. - * - * @summary Gets information about the specified diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageGet.json - */ -async function getDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.get( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - getDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesListByPacketCoreControlPlaneSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesListByPacketCoreControlPlaneSample.js deleted file mode 100644 index a79d166a0ff9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/diagnosticsPackagesListByPacketCoreControlPlaneSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the diagnostics packages under a packet core control plane. - * - * @summary Lists all the diagnostics packages under a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageListByPacketCoreControlPlane.json - */ -async function listDiagnosticsPackagesUnderAPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.diagnosticsPackages.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDiagnosticsPackagesUnderAPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksCreateOrUpdateSample.js deleted file mode 100644 index 7f4ff6aa0766..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksCreateOrUpdateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a mobile network. - * - * @summary Creates or updates a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkCreate.json - */ -async function createMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const parameters = { - location: "eastus", - publicLandMobileNetworkIdentifier: { mcc: "001", mnc: "01" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksDeleteSample.js deleted file mode 100644 index b670f6f8979d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified mobile network. - * - * @summary Deletes the specified mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkDelete.json - */ -async function deleteMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName - ); - console.log(result); -} - -async function main() { - deleteMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksGetSample.js deleted file mode 100644 index 901140d42d62..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified mobile network. - * - * @summary Gets information about the specified mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkGet.json - */ -async function getMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.get(resourceGroupName, mobileNetworkName); - console.log(result); -} - -async function main() { - getMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListByResourceGroupSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListByResourceGroupSample.js deleted file mode 100644 index 35a5cf392687..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the mobile networks in a resource group. - * - * @summary Lists all the mobile networks in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListByResourceGroup.json - */ -async function listMobileNetworksInResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.mobileNetworks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworksInResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListBySubscriptionSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListBySubscriptionSample.js deleted file mode 100644 index 1fa73543cff5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the mobile networks in a subscription. - * - * @summary Lists all the mobile networks in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListBySubscription.json - */ -async function listMobileNetworksInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.mobileNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworksInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksUpdateTagsSample.js deleted file mode 100644 index 93990f9397aa..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/mobileNetworksUpdateTagsSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates mobile network tags. - * - * @summary Updates mobile network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkUpdateTags.json - */ -async function updateMobileNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const parameters = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.updateTags( - resourceGroupName, - mobileNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateMobileNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/operationsListSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/operationsListSample.js deleted file mode 100644 index 9afe709ea1a6..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a list of the operations. - * - * @summary Gets a list of the operations. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/OperationList.json - */ -async function getRegistrationOperations() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getRegistrationOperations(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/package.json b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/package.json deleted file mode 100644 index b221a595c7d9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-mobilenetwork-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=14.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/mobilenetwork/arm-mobilenetwork" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mobilenetwork/arm-mobilenetwork", - "dependencies": { - "@azure/arm-mobilenetwork": "latest", - "dotenv": "latest", - "@azure/identity": "^2.0.1" - } -} diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesCreateOrUpdateSample.js deleted file mode 100644 index 6c43600d8121..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a packet capture. - * - * @summary Creates or updates a packet capture. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureCreate.json - */ -async function createPacketCapture() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const parameters = { - bytesToCapturePerPacket: 10000, - networkInterfaces: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN", - ], - timeLimitInSeconds: 100, - totalBytesPerSession: 100000, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCapture(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesDeleteSample.js deleted file mode 100644 index 66ac2696e033..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified packet capture. - * - * @summary Deletes the specified packet capture. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureDelete.json - */ -async function deletePacketCapture() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - deletePacketCapture(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesGetSample.js deleted file mode 100644 index ba7b511bcb5e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified packet capture session. - * - * @summary Gets information about the specified packet capture session. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureGet.json - */ -async function getPacketCaptureSession() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - getPacketCaptureSession(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesListByPacketCoreControlPlaneSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesListByPacketCoreControlPlaneSample.js deleted file mode 100644 index 263359720008..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesListByPacketCoreControlPlaneSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the packet capture sessions under a packet core control plane. - * - * @summary Lists all the packet capture sessions under a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureListByPacketCoreControlPlane.json - */ -async function listPacketCaptureSessionsUnderAPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCaptures.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCaptureSessionsUnderAPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesStopSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesStopSample.js deleted file mode 100644 index d751daba2f4e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCapturesStopSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Stop a packet capture session. - * - * @summary Stop a packet capture session. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureStop.json - */ -async function stopPacketCaptureSession() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginStopAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - stopPacketCaptureSession(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetBySubscriptionSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetBySubscriptionSample.js deleted file mode 100644 index f2503997e5ef..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetBySubscriptionSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane version. - * - * @summary Gets information about the specified packet core control plane version. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGetBySubscription.json - */ -async function getPacketCoreControlPlaneVersionBySubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const versionName = "PMN-4-11-1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlaneVersions.getBySubscription(versionName); - console.log(result); -} - -async function main() { - getPacketCoreControlPlaneVersionBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetSample.js deleted file mode 100644 index ac1ab2b3a7b4..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsGetSample.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane version. - * - * @summary Gets information about the specified packet core control plane version. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGet.json - */ -async function getPacketCoreControlPlaneVersion() { - const versionName = "PMN-4-11-1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential); - const result = await client.packetCoreControlPlaneVersions.get(versionName); - console.log(result); -} - -async function main() { - getPacketCoreControlPlaneVersion(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListBySubscriptionSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListBySubscriptionSample.js deleted file mode 100644 index 0ea091e928c4..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all supported packet core control planes versions. - * - * @summary Lists all supported packet core control planes versions. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionListBySubscription.json - */ -async function getSupportedPacketCoreControlPlaneVersionsBySubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlaneVersions.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSupportedPacketCoreControlPlaneVersionsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListSample.js deleted file mode 100644 index 7d1f5808d027..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlaneVersionsListSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all supported packet core control planes versions. - * - * @summary Lists all supported packet core control planes versions. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionList.json - */ -async function getSupportedPacketCoreControlPlaneVersions() { - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlaneVersions.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSupportedPacketCoreControlPlaneVersions(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCollectDiagnosticsPackageSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCollectDiagnosticsPackageSample.js deleted file mode 100644 index 96e531f43e41..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCollectDiagnosticsPackageSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account. - * - * @summary Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json - */ -async function collectDiagnosticsPackageFromPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters = { - storageAccountBlobUrl: - "https://contosoaccount.blob.core.windows.net/container/diagnosticsPackage.zip", - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginCollectDiagnosticsPackageAndWait( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - collectDiagnosticsPackageFromPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCreateOrUpdateSample.js deleted file mode 100644 index 084589210026..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesCreateOrUpdateSample.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a packet core control plane. - * - * @summary Creates or updates a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCreate.json - */ -async function createPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters = { - controlPlaneAccessInterface: { name: "N2" }, - coreNetworkTechnology: "5GC", - installation: { desiredState: "Installed" }, - localDiagnosticsAccess: { - authenticationType: "AAD", - httpsServerCertificate: { - certificateUrl: "https://contosovault.vault.azure.net/certificates/ingress", - }, - }, - location: "eastus", - platform: { - type: "AKS-HCI", - azureStackEdgeDevice: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TestAzureStackEdgeDevice", - }, - connectedCluster: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/TestConnectedCluster", - }, - customLocation: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation", - }, - }, - sites: [ - { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/sites/testSite", - }, - ], - sku: "G0", - ueMtu: 1600, - version: "0.2.0", - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesDeleteSample.js deleted file mode 100644 index e127f2789bbc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified packet core control plane. - * - * @summary Deletes the specified packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneDelete.json - */ -async function deletePacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - deletePacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesGetSample.js deleted file mode 100644 index e54138bec096..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesGetSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane. - * - * @summary Gets information about the specified packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneGet.json - */ -async function getPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.get( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - getPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListByResourceGroupSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListByResourceGroupSample.js deleted file mode 100644 index f16e72eb3f8e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the packet core control planes in a resource group. - * - * @summary Lists all the packet core control planes in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListByResourceGroup.json - */ -async function listPacketCoreControlPlanesInResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlanes.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreControlPlanesInResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListBySubscriptionSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListBySubscriptionSample.js deleted file mode 100644 index 641de15a7dbf..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the packet core control planes in a subscription. - * - * @summary Lists all the packet core control planes in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListBySubscription.json - */ -async function listPacketCoreControlPlanesInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlanes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreControlPlanesInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesReinstallSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesReinstallSample.js deleted file mode 100644 index d060eebdb583..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesReinstallSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core to return it to a known state. This action will cause a service outage. - * - * @summary Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core to return it to a known state. This action will cause a service outage. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneReinstall.json - */ -async function reinstallPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginReinstallAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - reinstallPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesRollbackSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesRollbackSample.js deleted file mode 100644 index 086ec8d46526..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesRollbackSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks are not possible. This action may cause a service outage. - * - * @summary Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks are not possible. This action may cause a service outage. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneRollback.json - */ -async function rollbackPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginRollbackAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - rollbackPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesUpdateTagsSample.js deleted file mode 100644 index 4d654ef733e5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreControlPlanesUpdateTagsSample.js +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch packet core control plane resource. - * - * @summary Patch packet core control plane resource. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlanePatch.json - */ -async function patchPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": - {}, - }, - }, - tags: { tag1: "value1", tag2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - patchPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesCreateOrUpdateSample.js deleted file mode 100644 index d88482e7b7dd..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesCreateOrUpdateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a packet core data plane. Must be created in the same location as its parent packet core control plane. - * - * @summary Creates or updates a packet core data plane. Must be created in the same location as its parent packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneCreate.json - */ -async function createPacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const parameters = { - location: "eastus", - userPlaneAccessInterface: { name: "N3" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesDeleteSample.js deleted file mode 100644 index 47a89c0a3fa5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified packet core data plane. - * - * @summary Deletes the specified packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneDelete.json - */ -async function deletePacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - ); - console.log(result); -} - -async function main() { - deletePacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesGetSample.js deleted file mode 100644 index e1086216accb..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core data plane. - * - * @summary Gets information about the specified packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneGet.json - */ -async function getPacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - ); - console.log(result); -} - -async function main() { - getPacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesListByPacketCoreControlPlaneSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesListByPacketCoreControlPlaneSample.js deleted file mode 100644 index 642f465b26a6..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesListByPacketCoreControlPlaneSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the packet core data planes associated with a packet core control plane. - * - * @summary Lists all the packet core data planes associated with a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json - */ -async function listPacketCoreDataPlanesInAControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreDataPlanes.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreDataPlanesInAControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesUpdateTagsSample.js deleted file mode 100644 index 127306d8722f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/packetCoreDataPlanesUpdateTagsSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates packet core data planes tags. - * - * @summary Updates packet core data planes tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneUpdateTags.json - */ -async function updatePacketCoreDataPlaneTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const parameters = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - updatePacketCoreDataPlaneTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sample.env b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesCreateOrUpdateSample.js deleted file mode 100644 index 2032291948d2..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesCreateOrUpdateSample.js +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a service. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a service. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceCreate.json - */ -async function createService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const parameters = { - location: "eastus", - pccRules: [ - { - ruleName: "default-rule", - rulePrecedence: 255, - ruleQosPolicy: { - fiveQi: 9, - allocationAndRetentionPriorityLevel: 9, - maximumBitRate: { downlink: "1 Gbps", uplink: "500 Mbps" }, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable", - }, - serviceDataFlowTemplates: [ - { - direction: "Uplink", - ports: [], - remoteIpList: ["10.3.4.0/24"], - templateName: "IP-to-server", - protocol: ["ip"], - }, - ], - trafficControl: "Enabled", - }, - ], - servicePrecedence: 255, - serviceQosPolicy: { - fiveQi: 9, - allocationAndRetentionPriorityLevel: 9, - maximumBitRate: { downlink: "1 Gbps", uplink: "500 Mbps" }, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - serviceName, - parameters - ); - console.log(result); -} - -async function main() { - createService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesDeleteSample.js deleted file mode 100644 index d5b357ff62e9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified service. - * - * @summary Deletes the specified service. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceDelete.json - */ -async function deleteService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - serviceName - ); - console.log(result); -} - -async function main() { - deleteService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesGetSample.js deleted file mode 100644 index 70fe883ccd5f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified service. - * - * @summary Gets information about the specified service. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceGet.json - */ -async function getService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.get(resourceGroupName, mobileNetworkName, serviceName); - console.log(result); -} - -async function main() { - getService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesListByMobileNetworkSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesListByMobileNetworkSample.js deleted file mode 100644 index 09f61d9258a5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesListByMobileNetworkSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all the services in a mobile network. - * - * @summary Gets all the services in a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceListByMobileNetwork.json - */ -async function listServicesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.services.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listServicesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesUpdateTagsSample.js deleted file mode 100644 index bd192b4ad355..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/servicesUpdateTagsSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates service tags. - * - * @summary Updates service tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceUpdateTags.json - */ -async function updateServiceTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const parameters = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.updateTags( - resourceGroupName, - mobileNetworkName, - serviceName, - parameters - ); - console.log(result); -} - -async function main() { - updateServiceTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsCreateOrUpdateSample.js deleted file mode 100644 index 26a43cc90809..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsCreateOrUpdateSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a SIM group. - * - * @summary Creates or updates a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupCreate.json - */ -async function createSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters = { - encryptionKey: { - keyUrl: "https://contosovault.vault.azure.net/keys/azureKey", - }, - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": - {}, - }, - }, - location: "eastus", - mobileNetwork: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.beginCreateOrUpdateAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - createSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsDeleteSample.js deleted file mode 100644 index b0ee757cab3f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified SIM group. - * - * @summary Deletes the specified SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupDelete.json - */ -async function deleteSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.beginDeleteAndWait(resourceGroupName, simGroupName); - console.log(result); -} - -async function main() { - deleteSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsGetSample.js deleted file mode 100644 index ff8319cd7b03..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM group. - * - * @summary Gets information about the specified SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupGet.json - */ -async function getSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.get(resourceGroupName, simGroupName); - console.log(result); -} - -async function main() { - getSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListByResourceGroupSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListByResourceGroupSample.js deleted file mode 100644 index 7a17ac70bb78..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all the SIM groups in a resource group. - * - * @summary Gets all the SIM groups in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListByResourceGroup.json - */ -async function listSimGroupsInAResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simGroups.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimGroupsInAResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListBySubscriptionSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListBySubscriptionSample.js deleted file mode 100644 index 78e7645e9138..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all the SIM groups in a subscription. - * - * @summary Gets all the SIM groups in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListBySubscription.json - */ -async function listSimGroupsInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simGroups.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimGroupsInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsUpdateTagsSample.js deleted file mode 100644 index b3d2e96467d3..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simGroupsUpdateTagsSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch SIM group resource. - * - * @summary Patch SIM group resource. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupPatch.json - */ -async function patchSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": - {}, - }, - }, - tags: { tag1: "value1", tag2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.updateTags(resourceGroupName, simGroupName, parameters); - console.log(result); -} - -async function main() { - patchSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesCreateOrUpdateSample.js deleted file mode 100644 index c199f8b6f3e3..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesCreateOrUpdateSample.js +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyCreate.json - */ -async function createSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const parameters = { - defaultSlice: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice", - }, - location: "eastus", - registrationTimer: 3240, - sliceConfigurations: [ - { - dataNetworkConfigurations: [ - { - fiveQi: 9, - additionalAllowedSessionTypes: [], - allocationAndRetentionPriorityLevel: 9, - allowedServices: [ - { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService", - }, - ], - dataNetwork: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork", - }, - defaultSessionType: "IPv4", - maximumNumberOfBufferedPackets: 200, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable", - sessionAmbr: { downlink: "1 Gbps", uplink: "500 Mbps" }, - }, - ], - defaultDataNetwork: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork", - }, - slice: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice", - }, - }, - ], - ueAmbr: { downlink: "1 Gbps", uplink: "500 Mbps" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - simPolicyName, - parameters - ); - console.log(result); -} - -async function main() { - createSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesDeleteSample.js deleted file mode 100644 index 2d472434110d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified SIM policy. - * - * @summary Deletes the specified SIM policy. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyDelete.json - */ -async function deleteSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - simPolicyName - ); - console.log(result); -} - -async function main() { - deleteSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesGetSample.js deleted file mode 100644 index d12d0dec0b5d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM policy. - * - * @summary Gets information about the specified SIM policy. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyGet.json - */ -async function getSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.get(resourceGroupName, mobileNetworkName, simPolicyName); - console.log(result); -} - -async function main() { - getSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesListByMobileNetworkSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesListByMobileNetworkSample.js deleted file mode 100644 index 137894b716dc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesListByMobileNetworkSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all the SIM policies in a mobile network. - * - * @summary Gets all the SIM policies in a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyListByMobileNetwork.json - */ -async function listSimPoliciesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simPolicies.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimPoliciesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesUpdateTagsSample.js deleted file mode 100644 index 787f3289dd90..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simPoliciesUpdateTagsSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates SIM policy tags. - * - * @summary Updates SIM policy tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyUpdateTags.json - */ -async function updateSimPolicyTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const parameters = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.updateTags( - resourceGroupName, - mobileNetworkName, - simPolicyName, - parameters - ); - console.log(result); -} - -async function main() { - updateSimPolicyTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkDeleteSample.js deleted file mode 100644 index 098a027fbdc8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Bulk delete SIMs from a SIM group. - * - * @summary Bulk delete SIMs from a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkDelete.json - */ -async function bulkDeleteSiMSFromASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const parameters = { sims: ["testSim", "testSim2"] }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkDeleteAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkDeleteSiMSFromASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadEncryptedSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadEncryptedSample.js deleted file mode 100644 index 6080f6a81bcf..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadEncryptedSample.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. - * - * @summary Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUploadEncrypted.json - */ -async function bulkUploadEncryptedSiMSToASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters = { - azureKeyIdentifier: 1, - encryptedTransportKey: "ABC123", - signedTransportKey: "ABC123", - sims: [ - { - name: "testSim", - deviceType: "Video camera", - encryptedCredentials: "ABC123", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - simPolicy: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy", - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork", - }, - slice: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice", - }, - staticIp: { ipv4Address: "2.4.0.1" }, - }, - ], - }, - { - name: "testSim2", - deviceType: "Video camera", - encryptedCredentials: "ABC123", - integratedCircuitCardIdentifier: "8900000000000000001", - internationalMobileSubscriberIdentity: "00000", - simPolicy: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy", - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork", - }, - slice: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice", - }, - staticIp: { ipv4Address: "2.4.0.2" }, - }, - ], - }, - ], - vendorKeyFingerprint: "ABC123", - version: 1, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkUploadEncryptedAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkUploadEncryptedSiMSToASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadSample.js deleted file mode 100644 index f98d6617230f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsBulkUploadSample.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Bulk upload SIMs to a SIM group. - * - * @summary Bulk upload SIMs to a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUpload.json - */ -async function bulkUploadSiMSInASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters = { - sims: [ - { - name: "testSim", - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy", - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork", - }, - slice: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice", - }, - staticIp: { ipv4Address: "2.4.0.1" }, - }, - ], - }, - { - name: "testSim2", - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000001", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy", - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork", - }, - slice: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice", - }, - staticIp: { ipv4Address: "2.4.0.2" }, - }, - ], - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkUploadAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkUploadSiMSInASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsCreateOrUpdateSample.js deleted file mode 100644 index 962b3019486b..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsCreateOrUpdateSample.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a SIM. - * - * @summary Creates or updates a SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimCreate.json - */ -async function createSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const simName = "testSim"; - const parameters = { - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy", - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork", - }, - slice: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice", - }, - staticIp: { ipv4Address: "2.4.0.1" }, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginCreateOrUpdateAndWait( - resourceGroupName, - simGroupName, - simName, - parameters - ); - console.log(result); -} - -async function main() { - createSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsDeleteSample.js deleted file mode 100644 index 27d7375c4271..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsDeleteSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified SIM. - * - * @summary Deletes the specified SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimDelete.json - */ -async function deleteSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const simName = "testSim"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginDeleteAndWait(resourceGroupName, simGroupName, simName); - console.log(result); -} - -async function main() { - deleteSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsGetSample.js deleted file mode 100644 index 118eab724c24..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM. - * - * @summary Gets information about the specified SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGet.json - */ -async function getSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const simName = "testSimName"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.get(resourceGroupName, simGroupName, simName); - console.log(result); -} - -async function main() { - getSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsListByGroupSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsListByGroupSample.js deleted file mode 100644 index 0b2d7b2aaf2c..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/simsListByGroupSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all the SIMs in a SIM group. - * - * @summary Gets all the SIMs in a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimListBySimGroup.json - */ -async function listSiMSInASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.sims.listByGroup(resourceGroupName, simGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSiMSInASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesCreateOrUpdateSample.js deleted file mode 100644 index ab52bf4d5a2f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesCreateOrUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteCreate.json - */ -async function createMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters = { location: "testLocation" }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - createMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeletePacketCoreSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeletePacketCoreSample.js deleted file mode 100644 index 04e094b643a8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeletePacketCoreSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a packet core under the specified mobile network site. - * - * @summary Deletes a packet core under the specified mobile network site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDeletePacketCore.json - */ -async function deletePacketCoreInMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters = { - packetCore: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginDeletePacketCoreAndWait( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - deletePacketCoreInMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeleteSample.js deleted file mode 100644 index f5bda3fd428e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. - * - * @summary Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDelete.json - */ -async function deleteMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - siteName - ); - console.log(result); -} - -async function main() { - deleteMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesGetSample.js deleted file mode 100644 index 842f5361d852..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified mobile network site. - * - * @summary Gets information about the specified mobile network site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteGet.json - */ -async function getMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.get(resourceGroupName, mobileNetworkName, siteName); - console.log(result); -} - -async function main() { - getMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesListByMobileNetworkSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesListByMobileNetworkSample.js deleted file mode 100644 index 1aa7f8449eb2..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesListByMobileNetworkSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all sites in the mobile network. - * - * @summary Lists all sites in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteListByMobileNetwork.json - */ -async function listMobileNetworkSitesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.sites.listByMobileNetwork(resourceGroupName, mobileNetworkName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworkSitesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesUpdateTagsSample.js deleted file mode 100644 index 7b84afcc80c4..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/sitesUpdateTagsSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates site tags. - * - * @summary Updates site tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteUpdateTags.json - */ -async function updateMobileNetworkSiteTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.updateTags( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - updateMobileNetworkSiteTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesCreateOrUpdateSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesCreateOrUpdateSample.js deleted file mode 100644 index deb077e06b45..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesCreateOrUpdateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a network slice. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a network slice. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceCreate.json - */ -async function createNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const parameters = { - description: "myFavouriteSlice", - location: "eastus", - snssai: { sd: "1abcde", sst: 1 }, - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - sliceName, - parameters - ); - console.log(result); -} - -async function main() { - createNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesDeleteSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesDeleteSample.js deleted file mode 100644 index a1c4af9e4a9a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the specified network slice. - * - * @summary Deletes the specified network slice. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceDelete.json - */ -async function deleteNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - sliceName - ); - console.log(result); -} - -async function main() { - deleteNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesGetSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesGetSample.js deleted file mode 100644 index 580f428c7c1a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets information about the specified network slice. - * - * @summary Gets information about the specified network slice. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceGet.json - */ -async function getNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.get(resourceGroupName, mobileNetworkName, sliceName); - console.log(result); -} - -async function main() { - getNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesListByMobileNetworkSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesListByMobileNetworkSample.js deleted file mode 100644 index 7271092d3e1e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesListByMobileNetworkSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all slices in the mobile network. - * - * @summary Lists all slices in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceListByMobileNetwork.json - */ -async function listNetworkSlicesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.slices.listByMobileNetwork(resourceGroupName, mobileNetworkName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listNetworkSlicesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesUpdateTagsSample.js b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesUpdateTagsSample.js deleted file mode 100644 index 34afe9684dc8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/javascript/slicesUpdateTagsSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MobileNetworkManagementClient } = require("@azure/arm-mobilenetwork"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates slice tags. - * - * @summary Updates slice tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceUpdateTags.json - */ -async function updateNetworkSliceTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const parameters = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.updateTags( - resourceGroupName, - mobileNetworkName, - sliceName, - parameters - ); - console.log(result); -} - -async function main() { - updateNetworkSliceTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/README.md b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/README.md deleted file mode 100644 index 6ebd71e68b99..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/README.md +++ /dev/null @@ -1,217 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [attachedDataNetworksCreateOrUpdateSample.ts][attacheddatanetworkscreateorupdatesample] | Creates or updates an attached data network. Must be created in the same location as its parent packet core data plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkCreate.json | -| [attachedDataNetworksDeleteSample.ts][attacheddatanetworksdeletesample] | Deletes the specified attached data network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkDelete.json | -| [attachedDataNetworksGetSample.ts][attacheddatanetworksgetsample] | Gets information about the specified attached data network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkGet.json | -| [attachedDataNetworksListByPacketCoreDataPlaneSample.ts][attacheddatanetworkslistbypacketcoredataplanesample] | Gets all the attached data networks associated with a packet core data plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkListByPacketCoreDataPlane.json | -| [attachedDataNetworksUpdateTagsSample.ts][attacheddatanetworksupdatetagssample] | Updates an attached data network tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkUpdateTags.json | -| [dataNetworksCreateOrUpdateSample.ts][datanetworkscreateorupdatesample] | Creates or updates a data network. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkCreate.json | -| [dataNetworksDeleteSample.ts][datanetworksdeletesample] | Deletes the specified data network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkDelete.json | -| [dataNetworksGetSample.ts][datanetworksgetsample] | Gets information about the specified data network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkGet.json | -| [dataNetworksListByMobileNetworkSample.ts][datanetworkslistbymobilenetworksample] | Lists all data networks in the mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkListByMobileNetwork.json | -| [dataNetworksUpdateTagsSample.ts][datanetworksupdatetagssample] | Updates data network tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkUpdateTags.json | -| [diagnosticsPackagesCreateOrUpdateSample.ts][diagnosticspackagescreateorupdatesample] | Creates or updates a diagnostics package. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageCreate.json | -| [diagnosticsPackagesDeleteSample.ts][diagnosticspackagesdeletesample] | Deletes the specified diagnostics package. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageDelete.json | -| [diagnosticsPackagesGetSample.ts][diagnosticspackagesgetsample] | Gets information about the specified diagnostics package. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageGet.json | -| [diagnosticsPackagesListByPacketCoreControlPlaneSample.ts][diagnosticspackageslistbypacketcorecontrolplanesample] | Lists all the diagnostics packages under a packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageListByPacketCoreControlPlane.json | -| [mobileNetworksCreateOrUpdateSample.ts][mobilenetworkscreateorupdatesample] | Creates or updates a mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkCreate.json | -| [mobileNetworksDeleteSample.ts][mobilenetworksdeletesample] | Deletes the specified mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkDelete.json | -| [mobileNetworksGetSample.ts][mobilenetworksgetsample] | Gets information about the specified mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkGet.json | -| [mobileNetworksListByResourceGroupSample.ts][mobilenetworkslistbyresourcegroupsample] | Lists all the mobile networks in a resource group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListByResourceGroup.json | -| [mobileNetworksListBySubscriptionSample.ts][mobilenetworkslistbysubscriptionsample] | Lists all the mobile networks in a subscription. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListBySubscription.json | -| [mobileNetworksUpdateTagsSample.ts][mobilenetworksupdatetagssample] | Updates mobile network tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkUpdateTags.json | -| [operationsListSample.ts][operationslistsample] | Gets a list of the operations. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/OperationList.json | -| [packetCapturesCreateOrUpdateSample.ts][packetcapturescreateorupdatesample] | Creates or updates a packet capture. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureCreate.json | -| [packetCapturesDeleteSample.ts][packetcapturesdeletesample] | Deletes the specified packet capture. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureDelete.json | -| [packetCapturesGetSample.ts][packetcapturesgetsample] | Gets information about the specified packet capture session. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureGet.json | -| [packetCapturesListByPacketCoreControlPlaneSample.ts][packetcaptureslistbypacketcorecontrolplanesample] | Lists all the packet capture sessions under a packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureListByPacketCoreControlPlane.json | -| [packetCapturesStopSample.ts][packetcapturesstopsample] | Stop a packet capture session. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureStop.json | -| [packetCoreControlPlaneVersionsGetBySubscriptionSample.ts][packetcorecontrolplaneversionsgetbysubscriptionsample] | Gets information about the specified packet core control plane version. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGetBySubscription.json | -| [packetCoreControlPlaneVersionsGetSample.ts][packetcorecontrolplaneversionsgetsample] | Gets information about the specified packet core control plane version. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGet.json | -| [packetCoreControlPlaneVersionsListBySubscriptionSample.ts][packetcorecontrolplaneversionslistbysubscriptionsample] | Lists all supported packet core control planes versions. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionListBySubscription.json | -| [packetCoreControlPlaneVersionsListSample.ts][packetcorecontrolplaneversionslistsample] | Lists all supported packet core control planes versions. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionList.json | -| [packetCoreControlPlanesCollectDiagnosticsPackageSample.ts][packetcorecontrolplanescollectdiagnosticspackagesample] | Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json | -| [packetCoreControlPlanesCreateOrUpdateSample.ts][packetcorecontrolplanescreateorupdatesample] | Creates or updates a packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCreate.json | -| [packetCoreControlPlanesDeleteSample.ts][packetcorecontrolplanesdeletesample] | Deletes the specified packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneDelete.json | -| [packetCoreControlPlanesGetSample.ts][packetcorecontrolplanesgetsample] | Gets information about the specified packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneGet.json | -| [packetCoreControlPlanesListByResourceGroupSample.ts][packetcorecontrolplaneslistbyresourcegroupsample] | Lists all the packet core control planes in a resource group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListByResourceGroup.json | -| [packetCoreControlPlanesListBySubscriptionSample.ts][packetcorecontrolplaneslistbysubscriptionsample] | Lists all the packet core control planes in a subscription. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListBySubscription.json | -| [packetCoreControlPlanesReinstallSample.ts][packetcorecontrolplanesreinstallsample] | Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core to return it to a known state. This action will cause a service outage. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneReinstall.json | -| [packetCoreControlPlanesRollbackSample.ts][packetcorecontrolplanesrollbacksample] | Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks are not possible. This action may cause a service outage. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneRollback.json | -| [packetCoreControlPlanesUpdateTagsSample.ts][packetcorecontrolplanesupdatetagssample] | Patch packet core control plane resource. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlanePatch.json | -| [packetCoreDataPlanesCreateOrUpdateSample.ts][packetcoredataplanescreateorupdatesample] | Creates or updates a packet core data plane. Must be created in the same location as its parent packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneCreate.json | -| [packetCoreDataPlanesDeleteSample.ts][packetcoredataplanesdeletesample] | Deletes the specified packet core data plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneDelete.json | -| [packetCoreDataPlanesGetSample.ts][packetcoredataplanesgetsample] | Gets information about the specified packet core data plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneGet.json | -| [packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts][packetcoredataplaneslistbypacketcorecontrolplanesample] | Lists all the packet core data planes associated with a packet core control plane. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json | -| [packetCoreDataPlanesUpdateTagsSample.ts][packetcoredataplanesupdatetagssample] | Updates packet core data planes tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneUpdateTags.json | -| [servicesCreateOrUpdateSample.ts][servicescreateorupdatesample] | Creates or updates a service. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceCreate.json | -| [servicesDeleteSample.ts][servicesdeletesample] | Deletes the specified service. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceDelete.json | -| [servicesGetSample.ts][servicesgetsample] | Gets information about the specified service. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceGet.json | -| [servicesListByMobileNetworkSample.ts][serviceslistbymobilenetworksample] | Gets all the services in a mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceListByMobileNetwork.json | -| [servicesUpdateTagsSample.ts][servicesupdatetagssample] | Updates service tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceUpdateTags.json | -| [simGroupsCreateOrUpdateSample.ts][simgroupscreateorupdatesample] | Creates or updates a SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupCreate.json | -| [simGroupsDeleteSample.ts][simgroupsdeletesample] | Deletes the specified SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupDelete.json | -| [simGroupsGetSample.ts][simgroupsgetsample] | Gets information about the specified SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupGet.json | -| [simGroupsListByResourceGroupSample.ts][simgroupslistbyresourcegroupsample] | Gets all the SIM groups in a resource group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListByResourceGroup.json | -| [simGroupsListBySubscriptionSample.ts][simgroupslistbysubscriptionsample] | Gets all the SIM groups in a subscription. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListBySubscription.json | -| [simGroupsUpdateTagsSample.ts][simgroupsupdatetagssample] | Patch SIM group resource. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupPatch.json | -| [simPoliciesCreateOrUpdateSample.ts][simpoliciescreateorupdatesample] | Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyCreate.json | -| [simPoliciesDeleteSample.ts][simpoliciesdeletesample] | Deletes the specified SIM policy. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyDelete.json | -| [simPoliciesGetSample.ts][simpoliciesgetsample] | Gets information about the specified SIM policy. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyGet.json | -| [simPoliciesListByMobileNetworkSample.ts][simpolicieslistbymobilenetworksample] | Gets all the SIM policies in a mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyListByMobileNetwork.json | -| [simPoliciesUpdateTagsSample.ts][simpoliciesupdatetagssample] | Updates SIM policy tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyUpdateTags.json | -| [simsBulkDeleteSample.ts][simsbulkdeletesample] | Bulk delete SIMs from a SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkDelete.json | -| [simsBulkUploadEncryptedSample.ts][simsbulkuploadencryptedsample] | Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUploadEncrypted.json | -| [simsBulkUploadSample.ts][simsbulkuploadsample] | Bulk upload SIMs to a SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUpload.json | -| [simsCreateOrUpdateSample.ts][simscreateorupdatesample] | Creates or updates a SIM. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimCreate.json | -| [simsDeleteSample.ts][simsdeletesample] | Deletes the specified SIM. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimDelete.json | -| [simsGetSample.ts][simsgetsample] | Gets information about the specified SIM. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGet.json | -| [simsListByGroupSample.ts][simslistbygroupsample] | Gets all the SIMs in a SIM group. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimListBySimGroup.json | -| [sitesCreateOrUpdateSample.ts][sitescreateorupdatesample] | Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteCreate.json | -| [sitesDeletePacketCoreSample.ts][sitesdeletepacketcoresample] | Deletes a packet core under the specified mobile network site. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDeletePacketCore.json | -| [sitesDeleteSample.ts][sitesdeletesample] | Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDelete.json | -| [sitesGetSample.ts][sitesgetsample] | Gets information about the specified mobile network site. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteGet.json | -| [sitesListByMobileNetworkSample.ts][siteslistbymobilenetworksample] | Lists all sites in the mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteListByMobileNetwork.json | -| [sitesUpdateTagsSample.ts][sitesupdatetagssample] | Updates site tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteUpdateTags.json | -| [slicesCreateOrUpdateSample.ts][slicescreateorupdatesample] | Creates or updates a network slice. Must be created in the same location as its parent mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceCreate.json | -| [slicesDeleteSample.ts][slicesdeletesample] | Deletes the specified network slice. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceDelete.json | -| [slicesGetSample.ts][slicesgetsample] | Gets information about the specified network slice. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceGet.json | -| [slicesListByMobileNetworkSample.ts][sliceslistbymobilenetworksample] | Lists all slices in the mobile network. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceListByMobileNetwork.json | -| [slicesUpdateTagsSample.ts][slicesupdatetagssample] | Updates slice tags. x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceUpdateTags.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/attachedDataNetworksCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env MOBILENETWORK_SUBSCRIPTION_ID="" MOBILENETWORK_RESOURCE_GROUP="" node dist/attachedDataNetworksCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[attacheddatanetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksCreateOrUpdateSample.ts -[attacheddatanetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksDeleteSample.ts -[attacheddatanetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksGetSample.ts -[attacheddatanetworkslistbypacketcoredataplanesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksListByPacketCoreDataPlaneSample.ts -[attacheddatanetworksupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksUpdateTagsSample.ts -[datanetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksCreateOrUpdateSample.ts -[datanetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksDeleteSample.ts -[datanetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksGetSample.ts -[datanetworkslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksListByMobileNetworkSample.ts -[datanetworksupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksUpdateTagsSample.ts -[diagnosticspackagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesCreateOrUpdateSample.ts -[diagnosticspackagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesDeleteSample.ts -[diagnosticspackagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesGetSample.ts -[diagnosticspackageslistbypacketcorecontrolplanesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts -[mobilenetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksCreateOrUpdateSample.ts -[mobilenetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksDeleteSample.ts -[mobilenetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksGetSample.ts -[mobilenetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListByResourceGroupSample.ts -[mobilenetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListBySubscriptionSample.ts -[mobilenetworksupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksUpdateTagsSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/operationsListSample.ts -[packetcapturescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesCreateOrUpdateSample.ts -[packetcapturesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesDeleteSample.ts -[packetcapturesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesGetSample.ts -[packetcaptureslistbypacketcorecontrolplanesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesListByPacketCoreControlPlaneSample.ts -[packetcapturesstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesStopSample.ts -[packetcorecontrolplaneversionsgetbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts -[packetcorecontrolplaneversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetSample.ts -[packetcorecontrolplaneversionslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListBySubscriptionSample.ts -[packetcorecontrolplaneversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListSample.ts -[packetcorecontrolplanescollectdiagnosticspackagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts -[packetcorecontrolplanescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCreateOrUpdateSample.ts -[packetcorecontrolplanesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesDeleteSample.ts -[packetcorecontrolplanesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesGetSample.ts -[packetcorecontrolplaneslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListByResourceGroupSample.ts -[packetcorecontrolplaneslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListBySubscriptionSample.ts -[packetcorecontrolplanesreinstallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesReinstallSample.ts -[packetcorecontrolplanesrollbacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesRollbackSample.ts -[packetcorecontrolplanesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesUpdateTagsSample.ts -[packetcoredataplanescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesCreateOrUpdateSample.ts -[packetcoredataplanesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesDeleteSample.ts -[packetcoredataplanesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesGetSample.ts -[packetcoredataplaneslistbypacketcorecontrolplanesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts -[packetcoredataplanesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesUpdateTagsSample.ts -[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts -[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesDeleteSample.ts -[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesGetSample.ts -[serviceslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesListByMobileNetworkSample.ts -[servicesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesUpdateTagsSample.ts -[simgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsCreateOrUpdateSample.ts -[simgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsDeleteSample.ts -[simgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsGetSample.ts -[simgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListByResourceGroupSample.ts -[simgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListBySubscriptionSample.ts -[simgroupsupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsUpdateTagsSample.ts -[simpoliciescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesCreateOrUpdateSample.ts -[simpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesDeleteSample.ts -[simpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesGetSample.ts -[simpolicieslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesListByMobileNetworkSample.ts -[simpoliciesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesUpdateTagsSample.ts -[simsbulkdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkDeleteSample.ts -[simsbulkuploadencryptedsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadEncryptedSample.ts -[simsbulkuploadsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadSample.ts -[simscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsCreateOrUpdateSample.ts -[simsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsDeleteSample.ts -[simsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsGetSample.ts -[simslistbygroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsListByGroupSample.ts -[sitescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesCreateOrUpdateSample.ts -[sitesdeletepacketcoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeletePacketCoreSample.ts -[sitesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeleteSample.ts -[sitesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesGetSample.ts -[siteslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesListByMobileNetworkSample.ts -[sitesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesUpdateTagsSample.ts -[slicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesCreateOrUpdateSample.ts -[slicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesDeleteSample.ts -[slicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesGetSample.ts -[sliceslistbymobilenetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesListByMobileNetworkSample.ts -[slicesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesUpdateTagsSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-mobilenetwork?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mobilenetwork/arm-mobilenetwork/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/package.json b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/package.json deleted file mode 100644 index 5ae6d1dd5e01..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-mobilenetwork-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=14.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/mobilenetwork/arm-mobilenetwork" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mobilenetwork/arm-mobilenetwork", - "dependencies": { - "@azure/arm-mobilenetwork": "latest", - "dotenv": "latest", - "@azure/identity": "^2.0.1" - }, - "devDependencies": { - "@types/node": "^14.0.0", - "typescript": "~5.0.0", - "rimraf": "latest" - } -} diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/sample.env b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksCreateOrUpdateSample.ts deleted file mode 100644 index f3d1d9f66786..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AttachedDataNetwork, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an attached data network. Must be created in the same location as its parent packet core data plane. - * - * @summary Creates or updates an attached data network. Must be created in the same location as its parent packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkCreate.json - */ -async function createAttachedDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const parameters: AttachedDataNetwork = { - dnsAddresses: ["1.1.1.1"], - location: "eastus", - naptConfiguration: { - enabled: "Enabled", - pinholeLimits: 65536, - pinholeTimeouts: { icmp: 30, tcp: 180, udp: 30 }, - portRange: { maxPort: 49999, minPort: 1024 }, - portReuseHoldTime: { tcp: 120, udp: 60 } - }, - userEquipmentAddressPoolPrefix: ["2.2.0.0/16"], - userEquipmentStaticAddressPoolPrefix: ["2.4.0.0/16"], - userPlaneDataInterface: { name: "N6" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createAttachedDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksDeleteSample.ts deleted file mode 100644 index 2f7588eaa91d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified attached data network. - * - * @summary Deletes the specified attached data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkDelete.json - */ -async function deleteAttachedDataNetworkResource() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName - ); - console.log(result); -} - -async function main() { - deleteAttachedDataNetworkResource(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksGetSample.ts deleted file mode 100644 index bc8f8dbdd69d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified attached data network. - * - * @summary Gets information about the specified attached data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkGet.json - */ -async function getAttachedDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName - ); - console.log(result); -} - -async function main() { - getAttachedDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksListByPacketCoreDataPlaneSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksListByPacketCoreDataPlaneSample.ts deleted file mode 100644 index f370db7b45f5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksListByPacketCoreDataPlaneSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the attached data networks associated with a packet core data plane. - * - * @summary Gets all the attached data networks associated with a packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkListByPacketCoreDataPlane.json - */ -async function listAttachedDataNetworksInADataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.attachedDataNetworks.listByPacketCoreDataPlane( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAttachedDataNetworksInADataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksUpdateTagsSample.ts deleted file mode 100644 index 935f30d7ba48..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/attachedDataNetworksUpdateTagsSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an attached data network tags. - * - * @summary Updates an attached data network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/AttachedDataNetworkUpdateTags.json - */ -async function updateAttachedDataNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCoreDataPlaneName = "TestPacketCoreDP"; - const attachedDataNetworkName = "TestAttachedDataNetwork"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.attachedDataNetworks.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - attachedDataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateAttachedDataNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksCreateOrUpdateSample.ts deleted file mode 100644 index 834ec4e411e9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataNetwork, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a data network. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a data network. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkCreate.json - */ -async function createDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const parameters: DataNetwork = { - description: "myFavouriteDataNetwork", - location: "eastus" - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - dataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksDeleteSample.ts deleted file mode 100644 index a10066f7357f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified data network. - * - * @summary Deletes the specified data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkDelete.json - */ -async function deleteDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - dataNetworkName - ); - console.log(result); -} - -async function main() { - deleteDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksGetSample.ts deleted file mode 100644 index 4a154020386a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified data network. - * - * @summary Gets information about the specified data network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkGet.json - */ -async function getDataNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.get( - resourceGroupName, - mobileNetworkName, - dataNetworkName - ); - console.log(result); -} - -async function main() { - getDataNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksListByMobileNetworkSample.ts deleted file mode 100644 index e3dbfcc10787..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data networks in the mobile network. - * - * @summary Lists all data networks in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkListByMobileNetwork.json - */ -async function listDataNetworksInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataNetworks.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataNetworksInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksUpdateTagsSample.ts deleted file mode 100644 index 898db5624c91..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/dataNetworksUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates data network tags. - * - * @summary Updates data network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DataNetworkUpdateTags.json - */ -async function updateDataNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const dataNetworkName = "testDataNetwork"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.dataNetworks.updateTags( - resourceGroupName, - mobileNetworkName, - dataNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateDataNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesCreateOrUpdateSample.ts deleted file mode 100644 index b8f7a946731b..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesCreateOrUpdateSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a diagnostics package. - * - * @summary Creates or updates a diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageCreate.json - */ -async function createDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - createDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesDeleteSample.ts deleted file mode 100644 index 6a4247ba5676..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified diagnostics package. - * - * @summary Deletes the specified diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageDelete.json - */ -async function deleteDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - deleteDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesGetSample.ts deleted file mode 100644 index 9829f04c98d6..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified diagnostics package. - * - * @summary Gets information about the specified diagnostics package. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageGet.json - */ -async function getDiagnosticsPackage() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const diagnosticsPackageName = "dp1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.diagnosticsPackages.get( - resourceGroupName, - packetCoreControlPlaneName, - diagnosticsPackageName - ); - console.log(result); -} - -async function main() { - getDiagnosticsPackage(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts deleted file mode 100644 index ba55c03c772b..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/diagnosticsPackagesListByPacketCoreControlPlaneSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the diagnostics packages under a packet core control plane. - * - * @summary Lists all the diagnostics packages under a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/DiagnosticsPackageListByPacketCoreControlPlane.json - */ -async function listDiagnosticsPackagesUnderAPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.diagnosticsPackages.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDiagnosticsPackagesUnderAPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksCreateOrUpdateSample.ts deleted file mode 100644 index 6c6661dd69fc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MobileNetwork, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a mobile network. - * - * @summary Creates or updates a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkCreate.json - */ -async function createMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const parameters: MobileNetwork = { - location: "eastus", - publicLandMobileNetworkIdentifier: { mcc: "001", mnc: "01" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - createMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksDeleteSample.ts deleted file mode 100644 index 30219d79712f..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified mobile network. - * - * @summary Deletes the specified mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkDelete.json - */ -async function deleteMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName - ); - console.log(result); -} - -async function main() { - deleteMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksGetSample.ts deleted file mode 100644 index 11e8fc2deac1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified mobile network. - * - * @summary Gets information about the specified mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkGet.json - */ -async function getMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.get( - resourceGroupName, - mobileNetworkName - ); - console.log(result); -} - -async function main() { - getMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListByResourceGroupSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListByResourceGroupSample.ts deleted file mode 100644 index 9a6d63073ea8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the mobile networks in a resource group. - * - * @summary Lists all the mobile networks in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListByResourceGroup.json - */ -async function listMobileNetworksInResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.mobileNetworks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworksInResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListBySubscriptionSample.ts deleted file mode 100644 index 820ac6af43a8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the mobile networks in a subscription. - * - * @summary Lists all the mobile networks in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkListBySubscription.json - */ -async function listMobileNetworksInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.mobileNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworksInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksUpdateTagsSample.ts deleted file mode 100644 index 96411b901729..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/mobileNetworksUpdateTagsSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates mobile network tags. - * - * @summary Updates mobile network tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/MobileNetworkUpdateTags.json - */ -async function updateMobileNetworkTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.mobileNetworks.updateTags( - resourceGroupName, - mobileNetworkName, - parameters - ); - console.log(result); -} - -async function main() { - updateMobileNetworkTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/operationsListSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/operationsListSample.ts deleted file mode 100644 index 84dff1e16602..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of the operations. - * - * @summary Gets a list of the operations. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/OperationList.json - */ -async function getRegistrationOperations() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getRegistrationOperations(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesCreateOrUpdateSample.ts deleted file mode 100644 index f045d4c42eb9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PacketCapture, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a packet capture. - * - * @summary Creates or updates a packet capture. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureCreate.json - */ -async function createPacketCapture() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const parameters: PacketCapture = { - bytesToCapturePerPacket: 10000, - networkInterfaces: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN" - ], - timeLimitInSeconds: 100, - totalBytesPerSession: 100000 - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCapture(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesDeleteSample.ts deleted file mode 100644 index 37ef547955bb..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified packet capture. - * - * @summary Deletes the specified packet capture. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureDelete.json - */ -async function deletePacketCapture() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - deletePacketCapture(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesGetSample.ts deleted file mode 100644 index 812549bd2a51..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet capture session. - * - * @summary Gets information about the specified packet capture session. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureGet.json - */ -async function getPacketCaptureSession() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - getPacketCaptureSession(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesListByPacketCoreControlPlaneSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesListByPacketCoreControlPlaneSample.ts deleted file mode 100644 index 87c833395d54..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesListByPacketCoreControlPlaneSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the packet capture sessions under a packet core control plane. - * - * @summary Lists all the packet capture sessions under a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureListByPacketCoreControlPlane.json - */ -async function listPacketCaptureSessionsUnderAPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCaptures.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCaptureSessionsUnderAPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesStopSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesStopSample.ts deleted file mode 100644 index 1b1333ae234d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCapturesStopSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Stop a packet capture session. - * - * @summary Stop a packet capture session. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCaptureStop.json - */ -async function stopPacketCaptureSession() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const packetCaptureName = "pc1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCaptures.beginStopAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCaptureName - ); - console.log(result); -} - -async function main() { - stopPacketCaptureSession(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts deleted file mode 100644 index f91f1b0acb8e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane version. - * - * @summary Gets information about the specified packet core control plane version. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGetBySubscription.json - */ -async function getPacketCoreControlPlaneVersionBySubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const versionName = "PMN-4-11-1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlaneVersions.getBySubscription( - versionName - ); - console.log(result); -} - -async function main() { - getPacketCoreControlPlaneVersionBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetSample.ts deleted file mode 100644 index 3c01320865d5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsGetSample.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane version. - * - * @summary Gets information about the specified packet core control plane version. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionGet.json - */ -async function getPacketCoreControlPlaneVersion() { - const versionName = "PMN-4-11-1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential); - const result = await client.packetCoreControlPlaneVersions.get(versionName); - console.log(result); -} - -async function main() { - getPacketCoreControlPlaneVersion(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListBySubscriptionSample.ts deleted file mode 100644 index 06cccbc6eaff..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all supported packet core control planes versions. - * - * @summary Lists all supported packet core control planes versions. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionListBySubscription.json - */ -async function getSupportedPacketCoreControlPlaneVersionsBySubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlaneVersions.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSupportedPacketCoreControlPlaneVersionsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListSample.ts deleted file mode 100644 index b1e0c74861fa..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlaneVersionsListSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all supported packet core control planes versions. - * - * @summary Lists all supported packet core control planes versions. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneVersionList.json - */ -async function getSupportedPacketCoreControlPlaneVersions() { - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlaneVersions.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSupportedPacketCoreControlPlaneVersions(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts deleted file mode 100644 index 23cce76ea07d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCollectDiagnosticsPackageSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PacketCoreControlPlaneCollectDiagnosticsPackage, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account. - * - * @summary Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json - */ -async function collectDiagnosticsPackageFromPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters: PacketCoreControlPlaneCollectDiagnosticsPackage = { - storageAccountBlobUrl: - "https://contosoaccount.blob.core.windows.net/container/diagnosticsPackage.zip" - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginCollectDiagnosticsPackageAndWait( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - collectDiagnosticsPackageFromPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCreateOrUpdateSample.ts deleted file mode 100644 index 6beb117a8ab1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesCreateOrUpdateSample.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PacketCoreControlPlane, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a packet core control plane. - * - * @summary Creates or updates a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneCreate.json - */ -async function createPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters: PacketCoreControlPlane = { - controlPlaneAccessInterface: { name: "N2" }, - coreNetworkTechnology: "5GC", - installation: { desiredState: "Installed" }, - localDiagnosticsAccess: { - authenticationType: "AAD", - httpsServerCertificate: { - certificateUrl: - "https://contosovault.vault.azure.net/certificates/ingress" - } - }, - location: "eastus", - platform: { - type: "AKS-HCI", - azureStackEdgeDevice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TestAzureStackEdgeDevice" - }, - connectedCluster: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/TestConnectedCluster" - }, - customLocation: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation" - } - }, - sites: [ - { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/sites/testSite" - } - ], - sku: "G0", - ueMtu: 1600, - version: "0.2.0" - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesDeleteSample.ts deleted file mode 100644 index c7e566e27535..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified packet core control plane. - * - * @summary Deletes the specified packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneDelete.json - */ -async function deletePacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - deletePacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesGetSample.ts deleted file mode 100644 index 69eb94ff9219..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core control plane. - * - * @summary Gets information about the specified packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneGet.json - */ -async function getPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.get( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - getPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListByResourceGroupSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListByResourceGroupSample.ts deleted file mode 100644 index 55a98148c812..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the packet core control planes in a resource group. - * - * @summary Lists all the packet core control planes in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListByResourceGroup.json - */ -async function listPacketCoreControlPlanesInResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlanes.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreControlPlanesInResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListBySubscriptionSample.ts deleted file mode 100644 index 376e3985e7db..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the packet core control planes in a subscription. - * - * @summary Lists all the packet core control planes in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneListBySubscription.json - */ -async function listPacketCoreControlPlanesInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreControlPlanes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreControlPlanesInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesReinstallSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesReinstallSample.ts deleted file mode 100644 index 49b3683ff730..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesReinstallSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core to return it to a known state. This action will cause a service outage. - * - * @summary Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core to return it to a known state. This action will cause a service outage. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneReinstall.json - */ -async function reinstallPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginReinstallAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - reinstallPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesRollbackSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesRollbackSample.ts deleted file mode 100644 index e5776cdb8be7..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesRollbackSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks are not possible. This action may cause a service outage. - * - * @summary Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks are not possible. This action may cause a service outage. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlaneRollback.json - */ -async function rollbackPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.beginRollbackAndWait( - resourceGroupName, - packetCoreControlPlaneName - ); - console.log(result); -} - -async function main() { - rollbackPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesUpdateTagsSample.ts deleted file mode 100644 index f79290948dd4..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreControlPlanesUpdateTagsSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IdentityAndTagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch packet core control plane resource. - * - * @summary Patch packet core control plane resource. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreControlPlanePatch.json - */ -async function patchPacketCoreControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "TestPacketCoreCP"; - const parameters: IdentityAndTagsObject = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": {} - } - }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreControlPlanes.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - patchPacketCoreControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesCreateOrUpdateSample.ts deleted file mode 100644 index f494a19e6456..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesCreateOrUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PacketCoreDataPlane, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a packet core data plane. Must be created in the same location as its parent packet core control plane. - * - * @summary Creates or updates a packet core data plane. Must be created in the same location as its parent packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneCreate.json - */ -async function createPacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const parameters: PacketCoreDataPlane = { - location: "eastus", - userPlaneAccessInterface: { name: "N3" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.beginCreateOrUpdateAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - createPacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesDeleteSample.ts deleted file mode 100644 index 5484847f165a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified packet core data plane. - * - * @summary Deletes the specified packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneDelete.json - */ -async function deletePacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.beginDeleteAndWait( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - ); - console.log(result); -} - -async function main() { - deletePacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesGetSample.ts deleted file mode 100644 index 21512797aab0..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified packet core data plane. - * - * @summary Gets information about the specified packet core data plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneGet.json - */ -async function getPacketCoreDataPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.get( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName - ); - console.log(result); -} - -async function main() { - getPacketCoreDataPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts deleted file mode 100644 index ccd674b6882d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesListByPacketCoreControlPlaneSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the packet core data planes associated with a packet core control plane. - * - * @summary Lists all the packet core data planes associated with a packet core control plane. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json - */ -async function listPacketCoreDataPlanesInAControlPlane() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.packetCoreDataPlanes.listByPacketCoreControlPlane( - resourceGroupName, - packetCoreControlPlaneName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listPacketCoreDataPlanesInAControlPlane(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesUpdateTagsSample.ts deleted file mode 100644 index bb15f37589bc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/packetCoreDataPlanesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates packet core data planes tags. - * - * @summary Updates packet core data planes tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/PacketCoreDataPlaneUpdateTags.json - */ -async function updatePacketCoreDataPlaneTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const packetCoreControlPlaneName = "testPacketCoreCP"; - const packetCoreDataPlaneName = "testPacketCoreDP"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.packetCoreDataPlanes.updateTags( - resourceGroupName, - packetCoreControlPlaneName, - packetCoreDataPlaneName, - parameters - ); - console.log(result); -} - -async function main() { - updatePacketCoreDataPlaneTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts deleted file mode 100644 index c1efc775a50a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - Service, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a service. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a service. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceCreate.json - */ -async function createService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const parameters: Service = { - location: "eastus", - pccRules: [ - { - ruleName: "default-rule", - rulePrecedence: 255, - ruleQosPolicy: { - fiveQi: 9, - allocationAndRetentionPriorityLevel: 9, - maximumBitRate: { downlink: "1 Gbps", uplink: "500 Mbps" }, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable" - }, - serviceDataFlowTemplates: [ - { - direction: "Uplink", - ports: [], - remoteIpList: ["10.3.4.0/24"], - templateName: "IP-to-server", - protocol: ["ip"] - } - ], - trafficControl: "Enabled" - } - ], - servicePrecedence: 255, - serviceQosPolicy: { - fiveQi: 9, - allocationAndRetentionPriorityLevel: 9, - maximumBitRate: { downlink: "1 Gbps", uplink: "500 Mbps" }, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable" - } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - serviceName, - parameters - ); - console.log(result); -} - -async function main() { - createService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesDeleteSample.ts deleted file mode 100644 index 281cef55fbf1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified service. - * - * @summary Deletes the specified service. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceDelete.json - */ -async function deleteService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - serviceName - ); - console.log(result); -} - -async function main() { - deleteService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesGetSample.ts deleted file mode 100644 index 062167231b7d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified service. - * - * @summary Gets information about the specified service. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceGet.json - */ -async function getService() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.get( - resourceGroupName, - mobileNetworkName, - serviceName - ); - console.log(result); -} - -async function main() { - getService(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesListByMobileNetworkSample.ts deleted file mode 100644 index 8cab084579e8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the services in a mobile network. - * - * @summary Gets all the services in a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceListByMobileNetwork.json - */ -async function listServicesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.services.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listServicesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesUpdateTagsSample.ts deleted file mode 100644 index 10912edd244a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/servicesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates service tags. - * - * @summary Updates service tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/ServiceUpdateTags.json - */ -async function updateServiceTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const serviceName = "TestService"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.services.updateTags( - resourceGroupName, - mobileNetworkName, - serviceName, - parameters - ); - console.log(result); -} - -async function main() { - updateServiceTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsCreateOrUpdateSample.ts deleted file mode 100644 index eb19f3b4bacf..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsCreateOrUpdateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SimGroup, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a SIM group. - * - * @summary Creates or updates a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupCreate.json - */ -async function createSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters: SimGroup = { - encryptionKey: { - keyUrl: "https://contosovault.vault.azure.net/keys/azureKey" - }, - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": {} - } - }, - location: "eastus", - mobileNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork" - } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.beginCreateOrUpdateAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - createSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsDeleteSample.ts deleted file mode 100644 index ad898d74e635..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified SIM group. - * - * @summary Deletes the specified SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupDelete.json - */ -async function deleteSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.beginDeleteAndWait( - resourceGroupName, - simGroupName - ); - console.log(result); -} - -async function main() { - deleteSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsGetSample.ts deleted file mode 100644 index c30a0d3b4ecc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM group. - * - * @summary Gets information about the specified SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupGet.json - */ -async function getSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.get(resourceGroupName, simGroupName); - console.log(result); -} - -async function main() { - getSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListByResourceGroupSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListByResourceGroupSample.ts deleted file mode 100644 index 5653054d2b17..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the SIM groups in a resource group. - * - * @summary Gets all the SIM groups in a resource group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListByResourceGroup.json - */ -async function listSimGroupsInAResourceGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simGroups.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimGroupsInAResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListBySubscriptionSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListBySubscriptionSample.ts deleted file mode 100644 index 06169027a245..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the SIM groups in a subscription. - * - * @summary Gets all the SIM groups in a subscription. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupListBySubscription.json - */ -async function listSimGroupsInASubscription() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simGroups.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimGroupsInASubscription(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsUpdateTagsSample.ts deleted file mode 100644 index ba5dc1603e17..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simGroupsUpdateTagsSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IdentityAndTagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch SIM group resource. - * - * @summary Patch SIM group resource. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGroupPatch.json - */ -async function patchSimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters: IdentityAndTagsObject = { - identity: { - type: "UserAssigned", - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity": {} - } - }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simGroups.updateTags( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - patchSimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesCreateOrUpdateSample.ts deleted file mode 100644 index 09f341a67b8e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesCreateOrUpdateSample.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SimPolicy, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyCreate.json - */ -async function createSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const parameters: SimPolicy = { - defaultSlice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - location: "eastus", - registrationTimer: 3240, - sliceConfigurations: [ - { - dataNetworkConfigurations: [ - { - fiveQi: 9, - additionalAllowedSessionTypes: [], - allocationAndRetentionPriorityLevel: 9, - allowedServices: [ - { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService" - } - ], - dataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork" - }, - defaultSessionType: "IPv4", - maximumNumberOfBufferedPackets: 200, - preemptionCapability: "NotPreempt", - preemptionVulnerability: "Preemptable", - sessionAmbr: { downlink: "1 Gbps", uplink: "500 Mbps" } - } - ], - defaultDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - } - } - ], - ueAmbr: { downlink: "1 Gbps", uplink: "500 Mbps" } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - simPolicyName, - parameters - ); - console.log(result); -} - -async function main() { - createSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesDeleteSample.ts deleted file mode 100644 index b198cd82b7b3..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified SIM policy. - * - * @summary Deletes the specified SIM policy. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyDelete.json - */ -async function deleteSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - simPolicyName - ); - console.log(result); -} - -async function main() { - deleteSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesGetSample.ts deleted file mode 100644 index 84fac80f19b7..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM policy. - * - * @summary Gets information about the specified SIM policy. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyGet.json - */ -async function getSimPolicy() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.get( - resourceGroupName, - mobileNetworkName, - simPolicyName - ); - console.log(result); -} - -async function main() { - getSimPolicy(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesListByMobileNetworkSample.ts deleted file mode 100644 index ecbe2ff4c6c9..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the SIM policies in a mobile network. - * - * @summary Gets all the SIM policies in a mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyListByMobileNetwork.json - */ -async function listSimPoliciesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.simPolicies.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSimPoliciesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesUpdateTagsSample.ts deleted file mode 100644 index 3b23a13c0891..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simPoliciesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates SIM policy tags. - * - * @summary Updates SIM policy tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimPolicyUpdateTags.json - */ -async function updateSimPolicyTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const simPolicyName = "testPolicy"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.simPolicies.updateTags( - resourceGroupName, - mobileNetworkName, - simPolicyName, - parameters - ); - console.log(result); -} - -async function main() { - updateSimPolicyTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkDeleteSample.ts deleted file mode 100644 index a814bcfde394..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkDeleteSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SimDeleteList, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Bulk delete SIMs from a SIM group. - * - * @summary Bulk delete SIMs from a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkDelete.json - */ -async function bulkDeleteSiMSFromASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const parameters: SimDeleteList = { sims: ["testSim", "testSim2"] }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkDeleteAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkDeleteSiMSFromASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadEncryptedSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadEncryptedSample.ts deleted file mode 100644 index 7b13033b3021..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadEncryptedSample.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EncryptedSimUploadList, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. - * - * @summary Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUploadEncrypted.json - */ -async function bulkUploadEncryptedSiMSToASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters: EncryptedSimUploadList = { - azureKeyIdentifier: 1, - encryptedTransportKey: "ABC123", - signedTransportKey: "ABC123", - sims: [ - { - name: "testSim", - deviceType: "Video camera", - encryptedCredentials: "ABC123", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.1" } - } - ] - }, - { - name: "testSim2", - deviceType: "Video camera", - encryptedCredentials: "ABC123", - integratedCircuitCardIdentifier: "8900000000000000001", - internationalMobileSubscriberIdentity: "00000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.2" } - } - ] - } - ], - vendorKeyFingerprint: "ABC123", - version: 1 - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkUploadEncryptedAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkUploadEncryptedSiMSToASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadSample.ts deleted file mode 100644 index 7d261b804072..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsBulkUploadSample.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SimUploadList, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Bulk upload SIMs to a SIM group. - * - * @summary Bulk upload SIMs to a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimBulkUpload.json - */ -async function bulkUploadSiMSInASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const parameters: SimUploadList = { - sims: [ - { - name: "testSim", - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.1" } - } - ] - }, - { - name: "testSim2", - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000001", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.2" } - } - ] - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginBulkUploadAndWait( - resourceGroupName, - simGroupName, - parameters - ); - console.log(result); -} - -async function main() { - bulkUploadSiMSInASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsCreateOrUpdateSample.ts deleted file mode 100644 index 0960a3906fa8..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsCreateOrUpdateSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Sim, MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a SIM. - * - * @summary Creates or updates a SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimCreate.json - */ -async function createSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const simName = "testSim"; - const parameters: Sim = { - authenticationKey: "00000000000000000000000000000000", - deviceType: "Video camera", - integratedCircuitCardIdentifier: "8900000000000000000", - internationalMobileSubscriberIdentity: "00000", - operatorKeyCode: "00000000000000000000000000000000", - simPolicy: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy" - }, - staticIpConfiguration: [ - { - attachedDataNetwork: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork" - }, - slice: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice" - }, - staticIp: { ipv4Address: "2.4.0.1" } - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginCreateOrUpdateAndWait( - resourceGroupName, - simGroupName, - simName, - parameters - ); - console.log(result); -} - -async function main() { - createSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsDeleteSample.ts deleted file mode 100644 index 42bee22f755a..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified SIM. - * - * @summary Deletes the specified SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimDelete.json - */ -async function deleteSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const simName = "testSim"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.beginDeleteAndWait( - resourceGroupName, - simGroupName, - simName - ); - console.log(result); -} - -async function main() { - deleteSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsGetSample.ts deleted file mode 100644 index 0bcc7d0406dc..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified SIM. - * - * @summary Gets information about the specified SIM. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimGet.json - */ -async function getSim() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "testResourceGroupName"; - const simGroupName = "testSimGroup"; - const simName = "testSimName"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sims.get( - resourceGroupName, - simGroupName, - simName - ); - console.log(result); -} - -async function main() { - getSim(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsListByGroupSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsListByGroupSample.ts deleted file mode 100644 index 5f007683fcde..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/simsListByGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all the SIMs in a SIM group. - * - * @summary Gets all the SIMs in a SIM group. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SimListBySimGroup.json - */ -async function listSiMSInASimGroup() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const simGroupName = "testSimGroup"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.sims.listByGroup( - resourceGroupName, - simGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listSiMSInASimGroup(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesCreateOrUpdateSample.ts deleted file mode 100644 index 5a3a59080bda..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesCreateOrUpdateSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Site, MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteCreate.json - */ -async function createMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters: Site = { location: "testLocation" }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - createMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeletePacketCoreSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeletePacketCoreSample.ts deleted file mode 100644 index 654162cf3aa3..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeletePacketCoreSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SiteDeletePacketCore, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a packet core under the specified mobile network site. - * - * @summary Deletes a packet core under the specified mobile network site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDeletePacketCore.json - */ -async function deletePacketCoreInMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters: SiteDeletePacketCore = { - packetCore: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP" - } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginDeletePacketCoreAndWait( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - deletePacketCoreInMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeleteSample.ts deleted file mode 100644 index 4ab95ab9b4c1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. - * - * @summary Deletes the specified mobile network site. This will also delete any network functions that are a part of this site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteDelete.json - */ -async function deleteMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - siteName - ); - console.log(result); -} - -async function main() { - deleteMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesGetSample.ts deleted file mode 100644 index 5edcb4c76bf5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified mobile network site. - * - * @summary Gets information about the specified mobile network site. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteGet.json - */ -async function getMobileNetworkSite() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.get( - resourceGroupName, - mobileNetworkName, - siteName - ); - console.log(result); -} - -async function main() { - getMobileNetworkSite(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesListByMobileNetworkSample.ts deleted file mode 100644 index d882a832c9df..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all sites in the mobile network. - * - * @summary Lists all sites in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteListByMobileNetwork.json - */ -async function listMobileNetworkSitesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.sites.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMobileNetworkSitesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesUpdateTagsSample.ts deleted file mode 100644 index bb868304e4a5..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/sitesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates site tags. - * - * @summary Updates site tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SiteUpdateTags.json - */ -async function updateMobileNetworkSiteTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const siteName = "testSite"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.sites.updateTags( - resourceGroupName, - mobileNetworkName, - siteName, - parameters - ); - console.log(result); -} - -async function main() { - updateMobileNetworkSiteTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesCreateOrUpdateSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesCreateOrUpdateSample.ts deleted file mode 100644 index 754507d636d1..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Slice, MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a network slice. Must be created in the same location as its parent mobile network. - * - * @summary Creates or updates a network slice. Must be created in the same location as its parent mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceCreate.json - */ -async function createNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const parameters: Slice = { - description: "myFavouriteSlice", - location: "eastus", - snssai: { sd: "1abcde", sst: 1 } - }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.beginCreateOrUpdateAndWait( - resourceGroupName, - mobileNetworkName, - sliceName, - parameters - ); - console.log(result); -} - -async function main() { - createNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesDeleteSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesDeleteSample.ts deleted file mode 100644 index a0d44d1be70e..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the specified network slice. - * - * @summary Deletes the specified network slice. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceDelete.json - */ -async function deleteNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.beginDeleteAndWait( - resourceGroupName, - mobileNetworkName, - sliceName - ); - console.log(result); -} - -async function main() { - deleteNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesGetSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesGetSample.ts deleted file mode 100644 index 688989c9e6ec..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets information about the specified network slice. - * - * @summary Gets information about the specified network slice. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceGet.json - */ -async function getNetworkSlice() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.get( - resourceGroupName, - mobileNetworkName, - sliceName - ); - console.log(result); -} - -async function main() { - getNetworkSlice(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesListByMobileNetworkSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesListByMobileNetworkSample.ts deleted file mode 100644 index 677747077d4d..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesListByMobileNetworkSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MobileNetworkManagementClient } from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all slices in the mobile network. - * - * @summary Lists all slices in the mobile network. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceListByMobileNetwork.json - */ -async function listNetworkSlicesInAMobileNetwork() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.slices.listByMobileNetwork( - resourceGroupName, - mobileNetworkName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listNetworkSlicesInAMobileNetwork(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesUpdateTagsSample.ts b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesUpdateTagsSample.ts deleted file mode 100644 index 9762778069bb..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/src/slicesUpdateTagsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TagsObject, - MobileNetworkManagementClient -} from "@azure/arm-mobilenetwork"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates slice tags. - * - * @summary Updates slice tags. - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-06-01/examples/SliceUpdateTags.json - */ -async function updateNetworkSliceTags() { - const subscriptionId = - process.env["MOBILENETWORK_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["MOBILENETWORK_RESOURCE_GROUP"] || "rg1"; - const mobileNetworkName = "testMobileNetwork"; - const sliceName = "testSlice"; - const parameters: TagsObject = { tags: { tag1: "value1", tag2: "value2" } }; - const credential = new DefaultAzureCredential(); - const client = new MobileNetworkManagementClient(credential, subscriptionId); - const result = await client.slices.updateTags( - resourceGroupName, - mobileNetworkName, - sliceName, - parameters - ); - console.log(result); -} - -async function main() { - updateNetworkSliceTags(); -} - -main().catch(console.error); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/tsconfig.json b/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/tsconfig.json deleted file mode 100644 index e26ce2a6d8f7..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/samples/v3/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**.ts" - ] -} diff --git a/sdk/mobilenetwork/arm-mobilenetwork/src/mobileNetworkManagementClient.ts b/sdk/mobilenetwork/arm-mobilenetwork/src/mobileNetworkManagementClient.ts index a38424e566f4..19c07f3b46e0 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/src/mobileNetworkManagementClient.ts +++ b/sdk/mobilenetwork/arm-mobilenetwork/src/mobileNetworkManagementClient.ts @@ -98,7 +98,7 @@ export class MobileNetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-mobilenetwork/3.0.1`; + const packageDetails = `azsdk-js-arm-mobilenetwork/3.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -151,7 +151,7 @@ export class MobileNetworkManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-06-01"; + this.apiVersion = options.apiVersion || "2023-09-01"; this.attachedDataNetworks = new AttachedDataNetworksImpl(this); this.dataNetworks = new DataNetworksImpl(this); this.diagnosticsPackages = new DiagnosticsPackagesImpl(this); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/src/models/index.ts b/sdk/mobilenetwork/arm-mobilenetwork/src/models/index.ts index 3613b664658a..49595e68e18e 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/src/models/index.ts +++ b/sdk/mobilenetwork/arm-mobilenetwork/src/models/index.ts @@ -410,6 +410,26 @@ export interface DiagnosticsUploadConfiguration { storageAccountContainerUrl: string; } +/** Configuration for sending packet core events to Azure Event Hub. */ +export interface EventHubConfiguration { + /** Resource ID of Azure Event Hub to send packet core events to. */ + id: string; + /** The duration (in seconds) between UE usage reports. */ + reportingInterval?: number; +} + +/** Signaling configuration for the packet core. */ +export interface SignalingConfiguration { + /** Configuration enabling 4G NAS reroute. */ + nasReroute?: NASRerouteConfiguration; +} + +/** Configuration enabling NAS reroute. */ +export interface NASRerouteConfiguration { + /** The macro network's MME group ID. This is where unknown UEs are sent to via NAS reroute. */ + macroMmeGroupId: number; +} + /** Managed service identity (User assigned identity) */ export interface ManagedServiceIdentity { /** Type of managed service identity (currently only UserAssigned allowed). */ @@ -1026,6 +1046,8 @@ export interface PacketCoreControlPlane extends TrackedResource { readonly rollbackVersion?: string; /** The control plane interface on the access network. For 5G networks, this is the N2 interface. For 4G networks, this is the S1-MME interface. */ controlPlaneAccessInterface: InterfaceProperties; + /** The virtual IP address(es) for the control plane on the access network in a High Availability (HA) system. In an HA deployment the access network router should be configured to anycast traffic for this address to the control plane access interfaces on the active and standby nodes. In non-HA system this list should be omitted or empty. */ + controlPlaneAccessVirtualIpv4Addresses?: string[]; /** The SKU defining the throughput and SIM allowances for this packet core control plane deployment. */ sku: BillingSku; /** The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links for all data networks. The MTU set on the user plane access link is calculated to be 60 bytes greater than this value to allow for GTP encapsulation. */ @@ -1034,6 +1056,10 @@ export interface PacketCoreControlPlane extends TrackedResource { localDiagnosticsAccess: LocalDiagnosticsAccessConfiguration; /** Configuration for uploading packet core diagnostics */ diagnosticsUpload?: DiagnosticsUploadConfiguration; + /** Configuration for sending packet core events to an Azure Event Hub. */ + eventHub?: EventHubConfiguration; + /** Signaling configuration for the packet core. */ + signaling?: SignalingConfiguration; /** Settings to allow interoperability with third party components e.g. RANs and UEs. */ interopSettings?: Record; } @@ -1047,6 +1073,8 @@ export interface PacketCoreDataPlane extends TrackedResource { readonly provisioningState?: ProvisioningState; /** The user plane interface on the access network. For 5G networks, this is the N3 interface. For 4G networks, this is the S1-U interface. */ userPlaneAccessInterface: InterfaceProperties; + /** The virtual IP address(es) for the user plane on the access network in a High Availability (HA) system. In an HA deployment the access network router should be configured to forward traffic for this address to the control plane access interface on the active or standby node. In non-HA system this list should be omitted or empty. */ + userPlaneAccessVirtualIpv4Addresses?: string[]; } /** Service resource. Must be created in the same location as its parent mobile network. */ @@ -1181,6 +1209,11 @@ export interface PacketCapture extends ProxyResource { totalBytesPerSession?: number; /** Maximum duration of the capture session in seconds. */ timeLimitInSeconds?: number; + /** + * The list of output files of a packet capture session. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly outputFiles?: string[]; } /** Packet core control plane version resource. */ @@ -1439,12 +1472,24 @@ export type ReinstallRequired = string; /** Known values of {@link InstallationReason} that the service accepts. */ export enum KnownInstallationReason { - /** The mobile network does not have any applicable configured slices. */ + /** The packet core has not been installed as the mobile network does not have any applicable configured slices. */ NoSlices = "NoSlices", - /** There is no configured data plane for this packet core. */ + /** The packet core has not been installed as there is no configured data plane for this packet core. */ NoPacketCoreDataPlane = "NoPacketCoreDataPlane", - /** The packet core has no attached data networks. */ - NoAttachedDataNetworks = "NoAttachedDataNetworks" + /** The packet core has not been installed as the packet core has no attached data networks. */ + NoAttachedDataNetworks = "NoAttachedDataNetworks", + /** A reinstall is required as the packet core is running with out-of-date PLMN ID. */ + PublicLandMobileNetworkIdentifierHasChanged = "PublicLandMobileNetworkIdentifierHasChanged", + /** A reinstall is required as the packet core is running with out-of-date control plane access interface information. */ + ControlPlaneAccessInterfaceHasChanged = "ControlPlaneAccessInterfaceHasChanged", + /** A reinstall is required as the packet core is running with out-of-date user plane core interface. */ + UserPlaneAccessInterfaceHasChanged = "UserPlaneAccessInterfaceHasChanged", + /** A reinstall is required as the packet core is running with out-of-date user plane access interface. */ + UserPlaneDataInterfaceHasChanged = "UserPlaneDataInterfaceHasChanged", + /** A reinstall is required as the packet core is running with out-of-date control plane access network virtual IP address. */ + ControlPlaneAccessVirtualIpv4AddressesHasChanged = "ControlPlaneAccessVirtualIpv4AddressesHasChanged", + /** A reinstall is required as the packet core is running with out-of-date user plane access network virtual IP address. */ + UserPlaneAccessVirtualIpv4AddressesHasChanged = "UserPlaneAccessVirtualIpv4AddressesHasChanged" } /** @@ -1452,9 +1497,15 @@ export enum KnownInstallationReason { * {@link KnownInstallationReason} can be used interchangeably with InstallationReason, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NoSlices**: The mobile network does not have any applicable configured slices. \ - * **NoPacketCoreDataPlane**: There is no configured data plane for this packet core. \ - * **NoAttachedDataNetworks**: The packet core has no attached data networks. + * **NoSlices**: The packet core has not been installed as the mobile network does not have any applicable configured slices. \ + * **NoPacketCoreDataPlane**: The packet core has not been installed as there is no configured data plane for this packet core. \ + * **NoAttachedDataNetworks**: The packet core has not been installed as the packet core has no attached data networks. \ + * **PublicLandMobileNetworkIdentifierHasChanged**: A reinstall is required as the packet core is running with out-of-date PLMN ID. \ + * **ControlPlaneAccessInterfaceHasChanged**: A reinstall is required as the packet core is running with out-of-date control plane access interface information. \ + * **UserPlaneAccessInterfaceHasChanged**: A reinstall is required as the packet core is running with out-of-date user plane core interface. \ + * **UserPlaneDataInterfaceHasChanged**: A reinstall is required as the packet core is running with out-of-date user plane access interface. \ + * **ControlPlaneAccessVirtualIpv4AddressesHasChanged**: A reinstall is required as the packet core is running with out-of-date control plane access network virtual IP address. \ + * **UserPlaneAccessVirtualIpv4AddressesHasChanged**: A reinstall is required as the packet core is running with out-of-date user plane access network virtual IP address. */ export type InstallationReason = string; diff --git a/sdk/mobilenetwork/arm-mobilenetwork/src/models/mappers.ts b/sdk/mobilenetwork/arm-mobilenetwork/src/models/mappers.ts index d232895d8637..9ab8d061357a 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/src/models/mappers.ts +++ b/sdk/mobilenetwork/arm-mobilenetwork/src/models/mappers.ts @@ -1046,6 +1046,74 @@ export const DiagnosticsUploadConfiguration: coreClient.CompositeMapper = { } }; +export const EventHubConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EventHubConfiguration", + modelProperties: { + id: { + constraints: { + Pattern: new RegExp( + "^\\/[sS][uU][bB][sS][cC][rR][iI][pP][tT][iI][oO][nN][sS]\\/[^/?#]+\\/[rR][eE][sS][oO][uU][rR][cC][eE][gG][rR][oO][uU][pP][sS]\\/[^/?#]+\\/[pP][rR][oO][vV][iI][dD][eE][rR][sS]\\/[mM][iI][cC][rR][oO][sS][oO][fF][tT]\\.[eE][vV][eE][nN][tT][hH][uU][bB]\\/[nN][aA][mM][eE][sS][pP][aA][cC][eE][sS]\\/[^/?#]+\\/[eV][vV][eE][nN][tT][hH][uU][bB][sS]\\/[^/?#]+$" + ) + }, + serializedName: "id", + required: true, + type: { + name: "String" + } + }, + reportingInterval: { + defaultValue: 1800, + constraints: { + InclusiveMaximum: 3600, + InclusiveMinimum: 30 + }, + serializedName: "reportingInterval", + type: { + name: "Number" + } + } + } + } +}; + +export const SignalingConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SignalingConfiguration", + modelProperties: { + nasReroute: { + serializedName: "nasReroute", + type: { + name: "Composite", + className: "NASRerouteConfiguration" + } + } + } + } +}; + +export const NASRerouteConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NASRerouteConfiguration", + modelProperties: { + macroMmeGroupId: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0 + }, + serializedName: "macroMmeGroupId", + required: true, + type: { + name: "Number" + } + } + } + } +}; + export const ManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2904,6 +2972,25 @@ export const PacketCoreControlPlane: coreClient.CompositeMapper = { className: "InterfaceProperties" } }, + controlPlaneAccessVirtualIpv4Addresses: { + constraints: { + UniqueItems: true + }, + serializedName: "properties.controlPlaneAccessVirtualIpv4Addresses", + type: { + name: "Sequence", + element: { + constraints: { + Pattern: new RegExp( + "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" + ) + }, + type: { + name: "String" + } + } + } + }, sku: { serializedName: "properties.sku", required: true, @@ -2936,6 +3023,20 @@ export const PacketCoreControlPlane: coreClient.CompositeMapper = { className: "DiagnosticsUploadConfiguration" } }, + eventHub: { + serializedName: "properties.eventHub", + type: { + name: "Composite", + className: "EventHubConfiguration" + } + }, + signaling: { + serializedName: "properties.signaling", + type: { + name: "Composite", + className: "SignalingConfiguration" + } + }, interopSettings: { serializedName: "properties.interopSettings", type: { @@ -2966,6 +3067,25 @@ export const PacketCoreDataPlane: coreClient.CompositeMapper = { name: "Composite", className: "InterfaceProperties" } + }, + userPlaneAccessVirtualIpv4Addresses: { + constraints: { + UniqueItems: true + }, + serializedName: "properties.userPlaneAccessVirtualIpv4Addresses", + type: { + name: "Sequence", + element: { + constraints: { + Pattern: new RegExp( + "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" + ) + }, + type: { + name: "String" + } + } + } } } } @@ -3292,7 +3412,7 @@ export const PacketCapture: coreClient.CompositeMapper = { defaultValue: 67108864, constraints: { InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 + InclusiveMinimum: 1000 }, serializedName: "properties.totalBytesPerSession", type: { @@ -3303,12 +3423,24 @@ export const PacketCapture: coreClient.CompositeMapper = { defaultValue: 18000, constraints: { InclusiveMaximum: 18000, - InclusiveMinimum: 0 + InclusiveMinimum: 5 }, serializedName: "properties.timeLimitInSeconds", type: { name: "Number" } + }, + outputFiles: { + serializedName: "properties.outputFiles", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } diff --git a/sdk/mobilenetwork/arm-mobilenetwork/src/models/parameters.ts b/sdk/mobilenetwork/arm-mobilenetwork/src/models/parameters.ts index 13ababd43e05..e4ed8816610b 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/src/models/parameters.ts +++ b/sdk/mobilenetwork/arm-mobilenetwork/src/models/parameters.ts @@ -133,7 +133,7 @@ export const attachedDataNetworkName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-06-01", + defaultValue: "2023-09-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/mobilenetwork/arm-mobilenetwork/test/mobilenetwork_operations_test.spec.ts b/sdk/mobilenetwork/arm-mobilenetwork/test/mobilenetwork_operations_test.spec.ts deleted file mode 100644 index 78accae92682..000000000000 --- a/sdk/mobilenetwork/arm-mobilenetwork/test/mobilenetwork_operations_test.spec.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - Recorder, - RecorderStartOptions, - delay, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { MobileNetworkManagementClient } from "../src/mobileNetworkManagementClient"; - -const replaceableVariables: Record = { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("MobileNetwork test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: MobileNetworkManagementClient; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new MobileNetworkManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("mobileNetworks create test", async function () { - const res = await client.mobileNetworks.beginCreateOrUpdateAndWait( - resourceGroup, - resourcename, - { - location, - publicLandMobileNetworkIdentifier: { mcc: "001", mnc: "01" } - }, - testPollingOptions); - assert.equal(res.name, resourcename); - }); - - it("mobileNetworks get test", async function () { - const res = await client.mobileNetworks.get(resourceGroup, - resourcename); - assert.equal(res.name, resourcename); - }); - - it("mobileNetworks list test", async function () { - const resArray = new Array(); - for await (let item of client.mobileNetworks.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 1); - }); - - it("mobileNetworks delete test", async function () { - const resArray = new Array(); - const res = await client.mobileNetworks.beginDeleteAndWait(resourceGroup, resourcename, testPollingOptions - ) - for await (let item of client.mobileNetworks.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 0); - }); - - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}) diff --git a/sdk/mobilenetwork/arm-mobilenetwork/test/sampleTest.ts b/sdk/mobilenetwork/arm-mobilenetwork/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/mobilenetwork/arm-mobilenetwork/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/mobilenetwork/arm-mobilenetwork/tsconfig.json b/sdk/mobilenetwork/arm-mobilenetwork/tsconfig.json index d28d7de2857d..3e6ae96443f3 100644 --- a/sdk/mobilenetwork/arm-mobilenetwork/tsconfig.json +++ b/sdk/mobilenetwork/arm-mobilenetwork/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-mobilenetwork": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"