@azure/arm-devcenter 1.0.0-beta.2 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/README.md +1 -1
- package/dist/index.js +1084 -434
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/attachedNetworksCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/attachedNetworksCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/attachedNetworksDeleteSample.js +3 -3
- package/dist-esm/samples-dev/attachedNetworksDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/attachedNetworksGetByDevCenterSample.js +2 -2
- package/dist-esm/samples-dev/attachedNetworksGetByDevCenterSample.js.map +1 -1
- package/dist-esm/samples-dev/attachedNetworksGetByProjectSample.js +3 -3
- package/dist-esm/samples-dev/attachedNetworksGetByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/attachedNetworksListByDevCenterSample.js +2 -2
- package/dist-esm/samples-dev/attachedNetworksListByDevCenterSample.js.map +1 -1
- package/dist-esm/samples-dev/attachedNetworksListByProjectSample.js +3 -3
- package/dist-esm/samples-dev/attachedNetworksListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +6 -6
- package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/catalogsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsGetSample.js +3 -3
- package/dist-esm/samples-dev/catalogsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsListByDevCenterSample.js +2 -2
- package/dist-esm/samples-dev/catalogsListByDevCenterSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsSyncSample.js +3 -3
- package/dist-esm/samples-dev/catalogsSyncSample.js.map +1 -1
- package/dist-esm/samples-dev/catalogsUpdateSample.js +3 -3
- package/dist-esm/samples-dev/catalogsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +33 -0
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js.map +1 -0
- package/dist-esm/samples-dev/devBoxDefinitionsCreateOrUpdateSample.js +3 -2
- package/dist-esm/samples-dev/devBoxDefinitionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/devBoxDefinitionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsGetByProjectSample.js +2 -2
- package/dist-esm/samples-dev/devBoxDefinitionsGetByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsGetSample.js +2 -2
- package/dist-esm/samples-dev/devBoxDefinitionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsListByDevCenterSample.js +2 -2
- package/dist-esm/samples-dev/devBoxDefinitionsListByDevCenterSample.js.map +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsListByProjectSample.js +2 -2
- package/dist-esm/samples-dev/devBoxDefinitionsListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/devBoxDefinitionsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/devBoxDefinitionsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/devCentersCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/devCentersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/devCentersDeleteSample.js +2 -2
- package/dist-esm/samples-dev/devCentersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/devCentersGetSample.js +2 -2
- package/dist-esm/samples-dev/devCentersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/devCentersListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/devCentersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/devCentersListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/devCentersListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/devCentersUpdateSample.js +2 -2
- package/dist-esm/samples-dev/devCentersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/environmentTypesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/environmentTypesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/environmentTypesDeleteSample.js +3 -3
- package/dist-esm/samples-dev/environmentTypesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/environmentTypesGetSample.js +3 -3
- package/dist-esm/samples-dev/environmentTypesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/environmentTypesListByDevCenterSample.js +2 -2
- package/dist-esm/samples-dev/environmentTypesListByDevCenterSample.js.map +1 -1
- package/dist-esm/samples-dev/environmentTypesUpdateSample.js +3 -3
- package/dist-esm/samples-dev/environmentTypesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/galleriesCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/galleriesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/galleriesDeleteSample.js +3 -3
- package/dist-esm/samples-dev/galleriesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/galleriesGetSample.js +3 -3
- package/dist-esm/samples-dev/galleriesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/galleriesListByDevCenterSample.js +2 -2
- package/dist-esm/samples-dev/galleriesListByDevCenterSample.js.map +1 -1
- package/dist-esm/samples-dev/imageVersionsGetSample.js +3 -3
- package/dist-esm/samples-dev/imageVersionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/imageVersionsListByImageSample.js +2 -2
- package/dist-esm/samples-dev/imageVersionsListByImageSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesGetSample.js +3 -3
- package/dist-esm/samples-dev/imagesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesListByDevCenterSample.js +2 -2
- package/dist-esm/samples-dev/imagesListByDevCenterSample.js.map +1 -1
- package/dist-esm/samples-dev/imagesListByGallerySample.js +2 -2
- package/dist-esm/samples-dev/imagesListByGallerySample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/networkConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/networkConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsGetHealthDetailsSample.js +3 -3
- package/dist-esm/samples-dev/networkConnectionsGetHealthDetailsSample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsGetSample.js +2 -2
- package/dist-esm/samples-dev/networkConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/networkConnectionsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/networkConnectionsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsListHealthDetailsSample.js +2 -2
- package/dist-esm/samples-dev/networkConnectionsListHealthDetailsSample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsRunHealthChecksSample.js +3 -3
- package/dist-esm/samples-dev/networkConnectionsRunHealthChecksSample.js.map +1 -1
- package/dist-esm/samples-dev/networkConnectionsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/networkConnectionsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationStatusesGetSample.js +4 -4
- package/dist-esm/samples-dev/operationStatusesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/poolsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/poolsGetSample.js +4 -4
- package/dist-esm/samples-dev/poolsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/poolsListByProjectSample.js +3 -3
- package/dist-esm/samples-dev/poolsListByProjectSample.js.map +1 -1
- package/dist-esm/samples-dev/poolsUpdateSample.js +4 -4
- package/dist-esm/samples-dev/poolsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js +3 -3
- package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js +2 -2
- package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js.map +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesDeleteSample.js +3 -3
- package/dist-esm/samples-dev/projectEnvironmentTypesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesGetSample.js +3 -3
- package/dist-esm/samples-dev/projectEnvironmentTypesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesListSample.js +2 -2
- package/dist-esm/samples-dev/projectEnvironmentTypesListSample.js.map +1 -1
- package/dist-esm/samples-dev/projectEnvironmentTypesUpdateSample.js +3 -3
- package/dist-esm/samples-dev/projectEnvironmentTypesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsGetSample.js +3 -3
- package/dist-esm/samples-dev/projectsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/projectsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/projectsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsUpdateSample.js +3 -3
- package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesDeleteSample.js +2 -2
- package/dist-esm/samples-dev/schedulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesGetSample.js +2 -2
- package/dist-esm/samples-dev/schedulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesListByPoolSample.js +2 -2
- package/dist-esm/samples-dev/schedulesListByPoolSample.js.map +1 -1
- package/dist-esm/samples-dev/schedulesUpdateSample.js +2 -2
- package/dist-esm/samples-dev/schedulesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/skusListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/skusListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/usagesListByLocationSample.js +2 -2
- package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -1
- package/dist-esm/src/devCenterClient.d.ts +3 -3
- package/dist-esm/src/devCenterClient.d.ts.map +1 -1
- package/dist-esm/src/devCenterClient.js +8 -11
- package/dist-esm/src/devCenterClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +246 -56
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +64 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +205 -30
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +13 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/attachedNetworks.d.ts +12 -12
- package/dist-esm/src/operations/attachedNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/attachedNetworks.js +49 -26
- package/dist-esm/src/operations/attachedNetworks.js.map +1 -1
- package/dist-esm/src/operations/catalogs.d.ts +12 -12
- package/dist-esm/src/operations/catalogs.d.ts.map +1 -1
- package/dist-esm/src/operations/catalogs.js +32 -20
- package/dist-esm/src/operations/catalogs.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.d.ts +19 -0
- package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operations/checkNameAvailability.js +49 -0
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -0
- package/dist-esm/src/operations/devBoxDefinitions.d.ts +14 -14
- package/dist-esm/src/operations/devBoxDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operations/devBoxDefinitions.js +51 -28
- package/dist-esm/src/operations/devBoxDefinitions.js.map +1 -1
- package/dist-esm/src/operations/devCenters.d.ts +10 -10
- package/dist-esm/src/operations/devCenters.d.ts.map +1 -1
- package/dist-esm/src/operations/devCenters.js +47 -24
- package/dist-esm/src/operations/devCenters.js.map +1 -1
- package/dist-esm/src/operations/environmentTypes.d.ts +7 -7
- package/dist-esm/src/operations/environmentTypes.d.ts.map +1 -1
- package/dist-esm/src/operations/environmentTypes.js +26 -14
- package/dist-esm/src/operations/environmentTypes.js.map +1 -1
- package/dist-esm/src/operations/galleries.d.ts +8 -8
- package/dist-esm/src/operations/galleries.d.ts.map +1 -1
- package/dist-esm/src/operations/galleries.js +27 -15
- package/dist-esm/src/operations/galleries.js.map +1 -1
- package/dist-esm/src/operations/imageVersions.d.ts +4 -4
- package/dist-esm/src/operations/imageVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/imageVersions.js +23 -11
- package/dist-esm/src/operations/imageVersions.js.map +1 -1
- package/dist-esm/src/operations/images.d.ts +7 -7
- package/dist-esm/src/operations/images.d.ts.map +1 -1
- package/dist-esm/src/operations/images.js +44 -21
- package/dist-esm/src/operations/images.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/networkConnections.d.ts +24 -16
- package/dist-esm/src/operations/networkConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/networkConnections.js +119 -38
- package/dist-esm/src/operations/networkConnections.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/pools.d.ts +10 -10
- package/dist-esm/src/operations/pools.d.ts.map +1 -1
- package/dist-esm/src/operations/pools.js +29 -17
- package/dist-esm/src/operations/pools.js.map +1 -1
- package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts +4 -4
- package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts.map +1 -1
- package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js +23 -11
- package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js.map +1 -1
- package/dist-esm/src/operations/projectEnvironmentTypes.d.ts +7 -7
- package/dist-esm/src/operations/projectEnvironmentTypes.d.ts.map +1 -1
- package/dist-esm/src/operations/projectEnvironmentTypes.js +26 -14
- package/dist-esm/src/operations/projectEnvironmentTypes.js.map +1 -1
- package/dist-esm/src/operations/projects.d.ts +10 -10
- package/dist-esm/src/operations/projects.d.ts.map +1 -1
- package/dist-esm/src/operations/projects.js +47 -24
- package/dist-esm/src/operations/projects.js.map +1 -1
- package/dist-esm/src/operations/schedules.d.ts +13 -13
- package/dist-esm/src/operations/schedules.d.ts.map +1 -1
- package/dist-esm/src/operations/schedules.js +41 -21
- package/dist-esm/src/operations/schedules.js.map +1 -1
- package/dist-esm/src/operations/skus.d.ts.map +1 -1
- package/dist-esm/src/operations/skus.js +19 -7
- package/dist-esm/src/operations/skus.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +19 -7
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/attachedNetworks.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/catalogs.d.ts +10 -10
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.js +9 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/devBoxDefinitions.d.ts +10 -10
- package/dist-esm/src/operationsInterfaces/devCenters.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/environmentTypes.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/galleries.d.ts +6 -6
- package/dist-esm/src/operationsInterfaces/imageVersions.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/images.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/networkConnections.d.ts +20 -12
- package/dist-esm/src/operationsInterfaces/networkConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/pools.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/projectEnvironmentTypes.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/projects.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/schedules.d.ts +11 -11
- package/dist-esm/src/operationsInterfaces/schedules.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/devcenter_examples.spec.js +3 -3
- package/dist-esm/test/devcenter_examples.spec.js.map +1 -1
- package/package.json +6 -5
- package/review/arm-devcenter.api.md +153 -38
- package/src/devCenterClient.ts +11 -9
- package/src/index.ts +1 -0
- package/src/models/index.ts +264 -57
- package/src/models/mappers.ts +221 -30
- package/src/models/parameters.ts +14 -1
- package/src/operations/attachedNetworks.ts +64 -37
- package/src/operations/catalogs.ts +39 -25
- package/src/operations/checkNameAvailability.ts +68 -0
- package/src/operations/devBoxDefinitions.ts +66 -39
- package/src/operations/devCenters.ts +55 -26
- package/src/operations/environmentTypes.ts +33 -19
- package/src/operations/galleries.ts +34 -20
- package/src/operations/imageVersions.ts +32 -18
- package/src/operations/images.ts +59 -32
- package/src/operations/index.ts +1 -0
- package/src/operations/networkConnections.ts +159 -47
- package/src/operations/operations.ts +21 -8
- package/src/operations/pools.ts +36 -22
- package/src/operations/projectAllowedEnvironmentTypes.ts +30 -12
- package/src/operations/projectEnvironmentTypes.ts +33 -15
- package/src/operations/projects.ts +55 -26
- package/src/operations/schedules.ts +58 -30
- package/src/operations/skus.ts +21 -8
- package/src/operations/usages.ts +21 -8
- package/src/operationsInterfaces/attachedNetworks.ts +8 -8
- package/src/operationsInterfaces/catalogs.ts +10 -10
- package/src/operationsInterfaces/checkNameAvailability.ts +26 -0
- package/src/operationsInterfaces/devBoxDefinitions.ts +10 -10
- package/src/operationsInterfaces/devCenters.ts +8 -8
- package/src/operationsInterfaces/environmentTypes.ts +5 -5
- package/src/operationsInterfaces/galleries.ts +6 -6
- package/src/operationsInterfaces/imageVersions.ts +2 -2
- package/src/operationsInterfaces/images.ts +3 -3
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/networkConnections.ts +24 -12
- package/src/operationsInterfaces/pools.ts +8 -8
- package/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts +2 -2
- package/src/operationsInterfaces/projectEnvironmentTypes.ts +5 -5
- package/src/operationsInterfaces/projects.ts +8 -8
- package/src/operationsInterfaces/schedules.ts +16 -10
- package/src/pagingHelper.ts +39 -0
- package/types/arm-devcenter.d.ts +400 -167
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/src/operations/images.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Images } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
Image,
|
|
17
18
|
ImagesListByDevCenterNextOptionalParams,
|
|
18
19
|
ImagesListByDevCenterOptionalParams,
|
|
20
|
+
ImagesListByDevCenterResponse,
|
|
19
21
|
ImagesListByGalleryNextOptionalParams,
|
|
20
22
|
ImagesListByGalleryOptionalParams,
|
|
21
|
-
ImagesListByDevCenterResponse,
|
|
22
23
|
ImagesListByGalleryResponse,
|
|
23
24
|
ImagesGetOptionalParams,
|
|
24
25
|
ImagesGetResponse,
|
|
@@ -41,7 +42,7 @@ export class ImagesImpl implements Images {
|
|
|
41
42
|
|
|
42
43
|
/**
|
|
43
44
|
* Lists images for a devcenter.
|
|
44
|
-
* @param resourceGroupName
|
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
46
|
* @param devCenterName The name of the devcenter.
|
|
46
47
|
* @param options The options parameters.
|
|
47
48
|
*/
|
|
@@ -62,11 +63,15 @@ export class ImagesImpl implements Images {
|
|
|
62
63
|
[Symbol.asyncIterator]() {
|
|
63
64
|
return this;
|
|
64
65
|
},
|
|
65
|
-
byPage: () => {
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
66
70
|
return this.listByDevCenterPagingPage(
|
|
67
71
|
resourceGroupName,
|
|
68
72
|
devCenterName,
|
|
69
|
-
options
|
|
73
|
+
options,
|
|
74
|
+
settings
|
|
70
75
|
);
|
|
71
76
|
}
|
|
72
77
|
};
|
|
@@ -75,15 +80,22 @@ export class ImagesImpl implements Images {
|
|
|
75
80
|
private async *listByDevCenterPagingPage(
|
|
76
81
|
resourceGroupName: string,
|
|
77
82
|
devCenterName: string,
|
|
78
|
-
options?: ImagesListByDevCenterOptionalParams
|
|
83
|
+
options?: ImagesListByDevCenterOptionalParams,
|
|
84
|
+
settings?: PageSettings
|
|
79
85
|
): AsyncIterableIterator<Image[]> {
|
|
80
|
-
let result
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
let result: ImagesListByDevCenterResponse;
|
|
87
|
+
let continuationToken = settings?.continuationToken;
|
|
88
|
+
if (!continuationToken) {
|
|
89
|
+
result = await this._listByDevCenter(
|
|
90
|
+
resourceGroupName,
|
|
91
|
+
devCenterName,
|
|
92
|
+
options
|
|
93
|
+
);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
87
99
|
while (continuationToken) {
|
|
88
100
|
result = await this._listByDevCenterNext(
|
|
89
101
|
resourceGroupName,
|
|
@@ -92,7 +104,9 @@ export class ImagesImpl implements Images {
|
|
|
92
104
|
options
|
|
93
105
|
);
|
|
94
106
|
continuationToken = result.nextLink;
|
|
95
|
-
|
|
107
|
+
let page = result.value || [];
|
|
108
|
+
setContinuationToken(page, continuationToken);
|
|
109
|
+
yield page;
|
|
96
110
|
}
|
|
97
111
|
}
|
|
98
112
|
|
|
@@ -112,7 +126,7 @@ export class ImagesImpl implements Images {
|
|
|
112
126
|
|
|
113
127
|
/**
|
|
114
128
|
* Lists images for a gallery.
|
|
115
|
-
* @param resourceGroupName
|
|
129
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
116
130
|
* @param devCenterName The name of the devcenter.
|
|
117
131
|
* @param galleryName The name of the gallery.
|
|
118
132
|
* @param options The options parameters.
|
|
@@ -136,12 +150,16 @@ export class ImagesImpl implements Images {
|
|
|
136
150
|
[Symbol.asyncIterator]() {
|
|
137
151
|
return this;
|
|
138
152
|
},
|
|
139
|
-
byPage: () => {
|
|
153
|
+
byPage: (settings?: PageSettings) => {
|
|
154
|
+
if (settings?.maxPageSize) {
|
|
155
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
156
|
+
}
|
|
140
157
|
return this.listByGalleryPagingPage(
|
|
141
158
|
resourceGroupName,
|
|
142
159
|
devCenterName,
|
|
143
160
|
galleryName,
|
|
144
|
-
options
|
|
161
|
+
options,
|
|
162
|
+
settings
|
|
145
163
|
);
|
|
146
164
|
}
|
|
147
165
|
};
|
|
@@ -151,16 +169,23 @@ export class ImagesImpl implements Images {
|
|
|
151
169
|
resourceGroupName: string,
|
|
152
170
|
devCenterName: string,
|
|
153
171
|
galleryName: string,
|
|
154
|
-
options?: ImagesListByGalleryOptionalParams
|
|
172
|
+
options?: ImagesListByGalleryOptionalParams,
|
|
173
|
+
settings?: PageSettings
|
|
155
174
|
): AsyncIterableIterator<Image[]> {
|
|
156
|
-
let result
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
175
|
+
let result: ImagesListByGalleryResponse;
|
|
176
|
+
let continuationToken = settings?.continuationToken;
|
|
177
|
+
if (!continuationToken) {
|
|
178
|
+
result = await this._listByGallery(
|
|
179
|
+
resourceGroupName,
|
|
180
|
+
devCenterName,
|
|
181
|
+
galleryName,
|
|
182
|
+
options
|
|
183
|
+
);
|
|
184
|
+
let page = result.value || [];
|
|
185
|
+
continuationToken = result.nextLink;
|
|
186
|
+
setContinuationToken(page, continuationToken);
|
|
187
|
+
yield page;
|
|
188
|
+
}
|
|
164
189
|
while (continuationToken) {
|
|
165
190
|
result = await this._listByGalleryNext(
|
|
166
191
|
resourceGroupName,
|
|
@@ -170,7 +195,9 @@ export class ImagesImpl implements Images {
|
|
|
170
195
|
options
|
|
171
196
|
);
|
|
172
197
|
continuationToken = result.nextLink;
|
|
173
|
-
|
|
198
|
+
let page = result.value || [];
|
|
199
|
+
setContinuationToken(page, continuationToken);
|
|
200
|
+
yield page;
|
|
174
201
|
}
|
|
175
202
|
}
|
|
176
203
|
|
|
@@ -192,7 +219,7 @@ export class ImagesImpl implements Images {
|
|
|
192
219
|
|
|
193
220
|
/**
|
|
194
221
|
* Lists images for a devcenter.
|
|
195
|
-
* @param resourceGroupName
|
|
222
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
196
223
|
* @param devCenterName The name of the devcenter.
|
|
197
224
|
* @param options The options parameters.
|
|
198
225
|
*/
|
|
@@ -209,7 +236,7 @@ export class ImagesImpl implements Images {
|
|
|
209
236
|
|
|
210
237
|
/**
|
|
211
238
|
* Lists images for a gallery.
|
|
212
|
-
* @param resourceGroupName
|
|
239
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
213
240
|
* @param devCenterName The name of the devcenter.
|
|
214
241
|
* @param galleryName The name of the gallery.
|
|
215
242
|
* @param options The options parameters.
|
|
@@ -228,7 +255,7 @@ export class ImagesImpl implements Images {
|
|
|
228
255
|
|
|
229
256
|
/**
|
|
230
257
|
* Gets a gallery image.
|
|
231
|
-
* @param resourceGroupName
|
|
258
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
232
259
|
* @param devCenterName The name of the devcenter.
|
|
233
260
|
* @param galleryName The name of the gallery.
|
|
234
261
|
* @param imageName The name of the image.
|
|
@@ -249,7 +276,7 @@ export class ImagesImpl implements Images {
|
|
|
249
276
|
|
|
250
277
|
/**
|
|
251
278
|
* ListByDevCenterNext
|
|
252
|
-
* @param resourceGroupName
|
|
279
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
253
280
|
* @param devCenterName The name of the devcenter.
|
|
254
281
|
* @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.
|
|
255
282
|
* @param options The options parameters.
|
|
@@ -268,7 +295,7 @@ export class ImagesImpl implements Images {
|
|
|
268
295
|
|
|
269
296
|
/**
|
|
270
297
|
* ListByGalleryNext
|
|
271
|
-
* @param resourceGroupName
|
|
298
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
272
299
|
* @param devCenterName The name of the devcenter.
|
|
273
300
|
* @param galleryName The name of the gallery.
|
|
274
301
|
* @param nextLink The nextLink from the previous successful call to the ListByGallery method.
|
package/src/operations/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./devBoxDefinitions";
|
|
|
20
20
|
export * from "./operations";
|
|
21
21
|
export * from "./operationStatuses";
|
|
22
22
|
export * from "./usages";
|
|
23
|
+
export * from "./checkNameAvailability";
|
|
23
24
|
export * from "./skus";
|
|
24
25
|
export * from "./pools";
|
|
25
26
|
export * from "./schedules";
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { NetworkConnections } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,13 +19,14 @@ import {
|
|
|
18
19
|
NetworkConnection,
|
|
19
20
|
NetworkConnectionsListBySubscriptionNextOptionalParams,
|
|
20
21
|
NetworkConnectionsListBySubscriptionOptionalParams,
|
|
22
|
+
NetworkConnectionsListBySubscriptionResponse,
|
|
21
23
|
NetworkConnectionsListByResourceGroupNextOptionalParams,
|
|
22
24
|
NetworkConnectionsListByResourceGroupOptionalParams,
|
|
25
|
+
NetworkConnectionsListByResourceGroupResponse,
|
|
23
26
|
HealthCheckStatusDetails,
|
|
24
27
|
NetworkConnectionsListHealthDetailsNextOptionalParams,
|
|
25
28
|
NetworkConnectionsListHealthDetailsOptionalParams,
|
|
26
|
-
|
|
27
|
-
NetworkConnectionsListByResourceGroupResponse,
|
|
29
|
+
NetworkConnectionsListHealthDetailsResponse,
|
|
28
30
|
NetworkConnectionsGetOptionalParams,
|
|
29
31
|
NetworkConnectionsGetResponse,
|
|
30
32
|
NetworkConnectionsCreateOrUpdateOptionalParams,
|
|
@@ -33,7 +35,6 @@ import {
|
|
|
33
35
|
NetworkConnectionsUpdateOptionalParams,
|
|
34
36
|
NetworkConnectionsUpdateResponse,
|
|
35
37
|
NetworkConnectionsDeleteOptionalParams,
|
|
36
|
-
NetworkConnectionsListHealthDetailsResponse,
|
|
37
38
|
NetworkConnectionsGetHealthDetailsOptionalParams,
|
|
38
39
|
NetworkConnectionsGetHealthDetailsResponse,
|
|
39
40
|
NetworkConnectionsRunHealthChecksOptionalParams,
|
|
@@ -70,22 +71,34 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
70
71
|
[Symbol.asyncIterator]() {
|
|
71
72
|
return this;
|
|
72
73
|
},
|
|
73
|
-
byPage: () => {
|
|
74
|
-
|
|
74
|
+
byPage: (settings?: PageSettings) => {
|
|
75
|
+
if (settings?.maxPageSize) {
|
|
76
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
77
|
+
}
|
|
78
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
75
79
|
}
|
|
76
80
|
};
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
private async *listBySubscriptionPagingPage(
|
|
80
|
-
options?: NetworkConnectionsListBySubscriptionOptionalParams
|
|
84
|
+
options?: NetworkConnectionsListBySubscriptionOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
81
86
|
): AsyncIterableIterator<NetworkConnection[]> {
|
|
82
|
-
let result
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
let result: NetworkConnectionsListBySubscriptionResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._listBySubscription(options);
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
85
96
|
while (continuationToken) {
|
|
86
97
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
87
98
|
continuationToken = result.nextLink;
|
|
88
|
-
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
89
102
|
}
|
|
90
103
|
}
|
|
91
104
|
|
|
@@ -99,7 +112,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
99
112
|
|
|
100
113
|
/**
|
|
101
114
|
* Lists network connections in a resource group
|
|
102
|
-
* @param resourceGroupName
|
|
115
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
103
116
|
* @param options The options parameters.
|
|
104
117
|
*/
|
|
105
118
|
public listByResourceGroup(
|
|
@@ -114,19 +127,33 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
114
127
|
[Symbol.asyncIterator]() {
|
|
115
128
|
return this;
|
|
116
129
|
},
|
|
117
|
-
byPage: () => {
|
|
118
|
-
|
|
130
|
+
byPage: (settings?: PageSettings) => {
|
|
131
|
+
if (settings?.maxPageSize) {
|
|
132
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
133
|
+
}
|
|
134
|
+
return this.listByResourceGroupPagingPage(
|
|
135
|
+
resourceGroupName,
|
|
136
|
+
options,
|
|
137
|
+
settings
|
|
138
|
+
);
|
|
119
139
|
}
|
|
120
140
|
};
|
|
121
141
|
}
|
|
122
142
|
|
|
123
143
|
private async *listByResourceGroupPagingPage(
|
|
124
144
|
resourceGroupName: string,
|
|
125
|
-
options?: NetworkConnectionsListByResourceGroupOptionalParams
|
|
145
|
+
options?: NetworkConnectionsListByResourceGroupOptionalParams,
|
|
146
|
+
settings?: PageSettings
|
|
126
147
|
): AsyncIterableIterator<NetworkConnection[]> {
|
|
127
|
-
let result
|
|
128
|
-
|
|
129
|
-
|
|
148
|
+
let result: NetworkConnectionsListByResourceGroupResponse;
|
|
149
|
+
let continuationToken = settings?.continuationToken;
|
|
150
|
+
if (!continuationToken) {
|
|
151
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
152
|
+
let page = result.value || [];
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
setContinuationToken(page, continuationToken);
|
|
155
|
+
yield page;
|
|
156
|
+
}
|
|
130
157
|
while (continuationToken) {
|
|
131
158
|
result = await this._listByResourceGroupNext(
|
|
132
159
|
resourceGroupName,
|
|
@@ -134,7 +161,9 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
134
161
|
options
|
|
135
162
|
);
|
|
136
163
|
continuationToken = result.nextLink;
|
|
137
|
-
|
|
164
|
+
let page = result.value || [];
|
|
165
|
+
setContinuationToken(page, continuationToken);
|
|
166
|
+
yield page;
|
|
138
167
|
}
|
|
139
168
|
}
|
|
140
169
|
|
|
@@ -152,7 +181,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
152
181
|
|
|
153
182
|
/**
|
|
154
183
|
* Lists health check status details
|
|
155
|
-
* @param resourceGroupName
|
|
184
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
156
185
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
157
186
|
* @param options The options parameters.
|
|
158
187
|
*/
|
|
@@ -173,11 +202,15 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
173
202
|
[Symbol.asyncIterator]() {
|
|
174
203
|
return this;
|
|
175
204
|
},
|
|
176
|
-
byPage: () => {
|
|
205
|
+
byPage: (settings?: PageSettings) => {
|
|
206
|
+
if (settings?.maxPageSize) {
|
|
207
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
208
|
+
}
|
|
177
209
|
return this.listHealthDetailsPagingPage(
|
|
178
210
|
resourceGroupName,
|
|
179
211
|
networkConnectionName,
|
|
180
|
-
options
|
|
212
|
+
options,
|
|
213
|
+
settings
|
|
181
214
|
);
|
|
182
215
|
}
|
|
183
216
|
};
|
|
@@ -186,15 +219,22 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
186
219
|
private async *listHealthDetailsPagingPage(
|
|
187
220
|
resourceGroupName: string,
|
|
188
221
|
networkConnectionName: string,
|
|
189
|
-
options?: NetworkConnectionsListHealthDetailsOptionalParams
|
|
222
|
+
options?: NetworkConnectionsListHealthDetailsOptionalParams,
|
|
223
|
+
settings?: PageSettings
|
|
190
224
|
): AsyncIterableIterator<HealthCheckStatusDetails[]> {
|
|
191
|
-
let result
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
225
|
+
let result: NetworkConnectionsListHealthDetailsResponse;
|
|
226
|
+
let continuationToken = settings?.continuationToken;
|
|
227
|
+
if (!continuationToken) {
|
|
228
|
+
result = await this._listHealthDetails(
|
|
229
|
+
resourceGroupName,
|
|
230
|
+
networkConnectionName,
|
|
231
|
+
options
|
|
232
|
+
);
|
|
233
|
+
let page = result.value || [];
|
|
234
|
+
continuationToken = result.nextLink;
|
|
235
|
+
setContinuationToken(page, continuationToken);
|
|
236
|
+
yield page;
|
|
237
|
+
}
|
|
198
238
|
while (continuationToken) {
|
|
199
239
|
result = await this._listHealthDetailsNext(
|
|
200
240
|
resourceGroupName,
|
|
@@ -203,7 +243,9 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
203
243
|
options
|
|
204
244
|
);
|
|
205
245
|
continuationToken = result.nextLink;
|
|
206
|
-
|
|
246
|
+
let page = result.value || [];
|
|
247
|
+
setContinuationToken(page, continuationToken);
|
|
248
|
+
yield page;
|
|
207
249
|
}
|
|
208
250
|
}
|
|
209
251
|
|
|
@@ -236,7 +278,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
236
278
|
|
|
237
279
|
/**
|
|
238
280
|
* Lists network connections in a resource group
|
|
239
|
-
* @param resourceGroupName
|
|
281
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
240
282
|
* @param options The options parameters.
|
|
241
283
|
*/
|
|
242
284
|
private _listByResourceGroup(
|
|
@@ -251,7 +293,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
251
293
|
|
|
252
294
|
/**
|
|
253
295
|
* Gets a network connection resource
|
|
254
|
-
* @param resourceGroupName
|
|
296
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
255
297
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
256
298
|
* @param options The options parameters.
|
|
257
299
|
*/
|
|
@@ -268,7 +310,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
268
310
|
|
|
269
311
|
/**
|
|
270
312
|
* Creates or updates a Network Connections resource
|
|
271
|
-
* @param resourceGroupName
|
|
313
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
272
314
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
273
315
|
* @param body Represents network connection
|
|
274
316
|
* @param options The options parameters.
|
|
@@ -339,7 +381,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
339
381
|
|
|
340
382
|
/**
|
|
341
383
|
* Creates or updates a Network Connections resource
|
|
342
|
-
* @param resourceGroupName
|
|
384
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
343
385
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
344
386
|
* @param body Represents network connection
|
|
345
387
|
* @param options The options parameters.
|
|
@@ -361,7 +403,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
361
403
|
|
|
362
404
|
/**
|
|
363
405
|
* Partially updates a Network Connection
|
|
364
|
-
* @param resourceGroupName
|
|
406
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
365
407
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
366
408
|
* @param body Represents network connection
|
|
367
409
|
* @param options The options parameters.
|
|
@@ -432,7 +474,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
432
474
|
|
|
433
475
|
/**
|
|
434
476
|
* Partially updates a Network Connection
|
|
435
|
-
* @param resourceGroupName
|
|
477
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
436
478
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
437
479
|
* @param body Represents network connection
|
|
438
480
|
* @param options The options parameters.
|
|
@@ -454,7 +496,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
454
496
|
|
|
455
497
|
/**
|
|
456
498
|
* Deletes a Network Connections resource
|
|
457
|
-
* @param resourceGroupName
|
|
499
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
458
500
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
459
501
|
* @param options The options parameters.
|
|
460
502
|
*/
|
|
@@ -518,7 +560,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
518
560
|
|
|
519
561
|
/**
|
|
520
562
|
* Deletes a Network Connections resource
|
|
521
|
-
* @param resourceGroupName
|
|
563
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
522
564
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
523
565
|
* @param options The options parameters.
|
|
524
566
|
*/
|
|
@@ -537,7 +579,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
537
579
|
|
|
538
580
|
/**
|
|
539
581
|
* Lists health check status details
|
|
540
|
-
* @param resourceGroupName
|
|
582
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
541
583
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
542
584
|
* @param options The options parameters.
|
|
543
585
|
*/
|
|
@@ -554,7 +596,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
554
596
|
|
|
555
597
|
/**
|
|
556
598
|
* Gets health check status details.
|
|
557
|
-
* @param resourceGroupName
|
|
599
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
558
600
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
559
601
|
* @param options The options parameters.
|
|
560
602
|
*/
|
|
@@ -572,19 +614,86 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
572
614
|
/**
|
|
573
615
|
* Triggers a new health check run. The execution and health check result can be tracked via the
|
|
574
616
|
* network Connection health check details
|
|
575
|
-
* @param resourceGroupName
|
|
617
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
576
618
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
577
619
|
* @param options The options parameters.
|
|
578
620
|
*/
|
|
579
|
-
|
|
621
|
+
async beginRunHealthChecks(
|
|
580
622
|
resourceGroupName: string,
|
|
581
623
|
networkConnectionName: string,
|
|
582
624
|
options?: NetworkConnectionsRunHealthChecksOptionalParams
|
|
583
|
-
): Promise<void
|
|
584
|
-
|
|
625
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
626
|
+
const directSendOperation = async (
|
|
627
|
+
args: coreClient.OperationArguments,
|
|
628
|
+
spec: coreClient.OperationSpec
|
|
629
|
+
): Promise<void> => {
|
|
630
|
+
return this.client.sendOperationRequest(args, spec);
|
|
631
|
+
};
|
|
632
|
+
const sendOperation = async (
|
|
633
|
+
args: coreClient.OperationArguments,
|
|
634
|
+
spec: coreClient.OperationSpec
|
|
635
|
+
) => {
|
|
636
|
+
let currentRawResponse:
|
|
637
|
+
| coreClient.FullOperationResponse
|
|
638
|
+
| undefined = undefined;
|
|
639
|
+
const providedCallback = args.options?.onResponse;
|
|
640
|
+
const callback: coreClient.RawResponseCallback = (
|
|
641
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
642
|
+
flatResponse: unknown
|
|
643
|
+
) => {
|
|
644
|
+
currentRawResponse = rawResponse;
|
|
645
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
646
|
+
};
|
|
647
|
+
const updatedArgs = {
|
|
648
|
+
...args,
|
|
649
|
+
options: {
|
|
650
|
+
...args.options,
|
|
651
|
+
onResponse: callback
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
655
|
+
return {
|
|
656
|
+
flatResponse,
|
|
657
|
+
rawResponse: {
|
|
658
|
+
statusCode: currentRawResponse!.status,
|
|
659
|
+
body: currentRawResponse!.parsedBody,
|
|
660
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
const lro = new LroImpl(
|
|
666
|
+
sendOperation,
|
|
585
667
|
{ resourceGroupName, networkConnectionName, options },
|
|
586
668
|
runHealthChecksOperationSpec
|
|
587
669
|
);
|
|
670
|
+
const poller = new LroEngine(lro, {
|
|
671
|
+
resumeFrom: options?.resumeFrom,
|
|
672
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
673
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
674
|
+
});
|
|
675
|
+
await poller.poll();
|
|
676
|
+
return poller;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Triggers a new health check run. The execution and health check result can be tracked via the
|
|
681
|
+
* network Connection health check details
|
|
682
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
683
|
+
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
684
|
+
* @param options The options parameters.
|
|
685
|
+
*/
|
|
686
|
+
async beginRunHealthChecksAndWait(
|
|
687
|
+
resourceGroupName: string,
|
|
688
|
+
networkConnectionName: string,
|
|
689
|
+
options?: NetworkConnectionsRunHealthChecksOptionalParams
|
|
690
|
+
): Promise<void> {
|
|
691
|
+
const poller = await this.beginRunHealthChecks(
|
|
692
|
+
resourceGroupName,
|
|
693
|
+
networkConnectionName,
|
|
694
|
+
options
|
|
695
|
+
);
|
|
696
|
+
return poller.pollUntilDone();
|
|
588
697
|
}
|
|
589
698
|
|
|
590
699
|
/**
|
|
@@ -604,7 +713,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
604
713
|
|
|
605
714
|
/**
|
|
606
715
|
* ListByResourceGroupNext
|
|
607
|
-
* @param resourceGroupName
|
|
716
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
608
717
|
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
609
718
|
* @param options The options parameters.
|
|
610
719
|
*/
|
|
@@ -621,7 +730,7 @@ export class NetworkConnectionsImpl implements NetworkConnections {
|
|
|
621
730
|
|
|
622
731
|
/**
|
|
623
732
|
* ListHealthDetailsNext
|
|
624
|
-
* @param resourceGroupName
|
|
733
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
625
734
|
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
|
|
626
735
|
* @param nextLink The nextLink from the previous successful call to the ListHealthDetails method.
|
|
627
736
|
* @param options The options parameters.
|
|
@@ -840,6 +949,9 @@ const runHealthChecksOperationSpec: coreClient.OperationSpec = {
|
|
|
840
949
|
httpMethod: "POST",
|
|
841
950
|
responses: {
|
|
842
951
|
200: {},
|
|
952
|
+
201: {},
|
|
953
|
+
202: {},
|
|
954
|
+
204: {},
|
|
843
955
|
default: {
|
|
844
956
|
bodyMapper: Mappers.CloudError
|
|
845
957
|
}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Operations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
|
|
|
48
49
|
[Symbol.asyncIterator]() {
|
|
49
50
|
return this;
|
|
50
51
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
52
|
+
byPage: (settings?: PageSettings) => {
|
|
53
|
+
if (settings?.maxPageSize) {
|
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
+
}
|
|
56
|
+
return this.listPagingPage(options, settings);
|
|
53
57
|
}
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
private async *listPagingPage(
|
|
58
|
-
options?: OperationsListOptionalParams
|
|
62
|
+
options?: OperationsListOptionalParams,
|
|
63
|
+
settings?: PageSettings
|
|
59
64
|
): AsyncIterableIterator<Operation[]> {
|
|
60
|
-
let result
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
let result: OperationsListResponse;
|
|
66
|
+
let continuationToken = settings?.continuationToken;
|
|
67
|
+
if (!continuationToken) {
|
|
68
|
+
result = await this._list(options);
|
|
69
|
+
let page = result.value || [];
|
|
70
|
+
continuationToken = result.nextLink;
|
|
71
|
+
setContinuationToken(page, continuationToken);
|
|
72
|
+
yield page;
|
|
73
|
+
}
|
|
63
74
|
while (continuationToken) {
|
|
64
75
|
result = await this._listNext(continuationToken, options);
|
|
65
76
|
continuationToken = result.nextLink;
|
|
66
|
-
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
setContinuationToken(page, continuationToken);
|
|
79
|
+
yield page;
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|