@azure/arm-edgezones 1.0.0-beta.2 → 1.0.0-beta.3
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 +6 -0
- package/dist/browser/api/edgeZonesContext.d.ts +3 -3
- package/dist/browser/api/edgeZonesContext.d.ts.map +1 -1
- package/dist/browser/api/edgeZonesContext.js +29 -6
- package/dist/browser/api/edgeZonesContext.js.map +1 -1
- package/dist/browser/api/extendedZones/index.d.ts +11 -12
- package/dist/browser/api/extendedZones/index.d.ts.map +1 -1
- package/dist/browser/api/extendedZones/index.js +17 -154
- package/dist/browser/api/extendedZones/index.js.map +1 -1
- package/dist/browser/api/index.d.ts +2 -1
- package/dist/browser/api/index.d.ts.map +1 -1
- package/dist/browser/api/index.js +1 -1
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/operations/index.d.ts +6 -7
- package/dist/browser/api/operations/index.d.ts.map +1 -1
- package/dist/browser/api/operations/index.js +8 -26
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/options.d.ts.map +1 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/classic/extendedZones/index.d.ts +3 -3
- package/dist/browser/classic/extendedZones/index.d.ts.map +1 -1
- package/dist/browser/classic/extendedZones/index.js +1 -1
- package/dist/browser/classic/extendedZones/index.js.map +1 -1
- package/dist/browser/classic/index.js +1 -1
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +3 -3
- package/dist/browser/classic/operations/index.d.ts.map +1 -1
- package/dist/browser/classic/operations/index.js +1 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/edgeZonesClient.d.ts +2 -2
- package/dist/browser/edgeZonesClient.d.ts.map +1 -1
- package/dist/browser/edgeZonesClient.js +2 -2
- package/dist/browser/edgeZonesClient.js.map +1 -1
- package/dist/browser/helpers/serializerHelpers.js +1 -1
- package/dist/browser/helpers/serializerHelpers.js.map +1 -1
- package/dist/browser/index.d.ts +5 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.js +1 -1
- package/dist/browser/logger.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -3
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +2 -2
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +101 -79
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +170 -28
- package/dist/browser/models/models.js.map +1 -1
- package/dist/{commonjs/models/pagingTypes.d.ts → browser/static-helpers/pagingHelpers.d.ts} +6 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/{esm/api → browser/static-helpers}/pagingHelpers.js +5 -6
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/api/edgeZonesContext.d.ts +3 -3
- package/dist/commonjs/api/edgeZonesContext.d.ts.map +1 -1
- package/dist/commonjs/api/edgeZonesContext.js +28 -6
- package/dist/commonjs/api/edgeZonesContext.js.map +1 -1
- package/dist/commonjs/api/extendedZones/index.d.ts +11 -12
- package/dist/commonjs/api/extendedZones/index.d.ts.map +1 -1
- package/dist/commonjs/api/extendedZones/index.js +16 -153
- package/dist/commonjs/api/extendedZones/index.js.map +1 -1
- package/dist/commonjs/api/index.d.ts +2 -1
- package/dist/commonjs/api/index.d.ts.map +1 -1
- package/dist/commonjs/api/index.js +1 -1
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/operations/index.d.ts +6 -7
- package/dist/commonjs/api/operations/index.d.ts.map +1 -1
- package/dist/commonjs/api/operations/index.js +7 -25
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/options.d.ts.map +1 -0
- package/dist/commonjs/{models → api}/options.js +1 -1
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/classic/extendedZones/index.d.ts +3 -3
- package/dist/commonjs/classic/extendedZones/index.d.ts.map +1 -1
- package/dist/commonjs/classic/extendedZones/index.js +1 -1
- package/dist/commonjs/classic/extendedZones/index.js.map +1 -1
- package/dist/commonjs/classic/index.js +1 -1
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +3 -3
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
- package/dist/commonjs/classic/operations/index.js +1 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/edgeZonesClient.d.ts +2 -2
- package/dist/commonjs/edgeZonesClient.d.ts.map +1 -1
- package/dist/commonjs/edgeZonesClient.js +2 -2
- package/dist/commonjs/edgeZonesClient.js.map +1 -1
- package/dist/commonjs/helpers/serializerHelpers.js +1 -1
- package/dist/commonjs/helpers/serializerHelpers.js.map +1 -1
- package/dist/commonjs/index.d.ts +5 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -3
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/logger.js +1 -1
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -3
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +101 -79
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +190 -29
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/{browser/models/pagingTypes.d.ts → commonjs/static-helpers/pagingHelpers.d.ts} +6 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/{api → static-helpers}/pagingHelpers.js +5 -6
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/edgeZonesContext.d.ts +3 -3
- package/dist/esm/api/edgeZonesContext.d.ts.map +1 -1
- package/dist/esm/api/edgeZonesContext.js +29 -6
- package/dist/esm/api/edgeZonesContext.js.map +1 -1
- package/dist/esm/api/extendedZones/index.d.ts +11 -12
- package/dist/esm/api/extendedZones/index.d.ts.map +1 -1
- package/dist/esm/api/extendedZones/index.js +17 -154
- package/dist/esm/api/extendedZones/index.js.map +1 -1
- package/dist/esm/api/index.d.ts +2 -1
- package/dist/esm/api/index.d.ts.map +1 -1
- package/dist/esm/api/index.js +1 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +6 -7
- package/dist/esm/api/operations/index.d.ts.map +1 -1
- package/dist/esm/api/operations/index.js +8 -26
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/options.d.ts.map +1 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/classic/extendedZones/index.d.ts +3 -3
- package/dist/esm/classic/extendedZones/index.d.ts.map +1 -1
- package/dist/esm/classic/extendedZones/index.js +1 -1
- package/dist/esm/classic/extendedZones/index.js.map +1 -1
- package/dist/esm/classic/index.js +1 -1
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +3 -3
- package/dist/esm/classic/operations/index.d.ts.map +1 -1
- package/dist/esm/classic/operations/index.js +1 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/edgeZonesClient.d.ts +2 -2
- package/dist/esm/edgeZonesClient.d.ts.map +1 -1
- package/dist/esm/edgeZonesClient.js +2 -2
- package/dist/esm/edgeZonesClient.js.map +1 -1
- package/dist/esm/helpers/serializerHelpers.js +1 -1
- package/dist/esm/helpers/serializerHelpers.js.map +1 -1
- package/dist/esm/index.d.ts +5 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.js +1 -1
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -2
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +101 -79
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +170 -28
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/{browser/api → esm/static-helpers}/pagingHelpers.js +5 -6
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/api/edgeZonesContext.d.ts +3 -3
- package/dist/react-native/api/edgeZonesContext.d.ts.map +1 -1
- package/dist/react-native/api/edgeZonesContext.js +29 -6
- package/dist/react-native/api/edgeZonesContext.js.map +1 -1
- package/dist/react-native/api/extendedZones/index.d.ts +11 -12
- package/dist/react-native/api/extendedZones/index.d.ts.map +1 -1
- package/dist/react-native/api/extendedZones/index.js +17 -154
- package/dist/react-native/api/extendedZones/index.js.map +1 -1
- package/dist/react-native/api/index.d.ts +2 -1
- package/dist/react-native/api/index.d.ts.map +1 -1
- package/dist/react-native/api/index.js +1 -1
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/operations/index.d.ts +6 -7
- package/dist/react-native/api/operations/index.d.ts.map +1 -1
- package/dist/react-native/api/operations/index.js +8 -26
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/options.d.ts.map +1 -0
- package/dist/react-native/api/options.js +4 -0
- package/dist/react-native/api/options.js.map +1 -0
- package/dist/react-native/classic/extendedZones/index.d.ts +3 -3
- package/dist/react-native/classic/extendedZones/index.d.ts.map +1 -1
- package/dist/react-native/classic/extendedZones/index.js +1 -1
- package/dist/react-native/classic/extendedZones/index.js.map +1 -1
- package/dist/react-native/classic/index.js +1 -1
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +3 -3
- package/dist/react-native/classic/operations/index.d.ts.map +1 -1
- package/dist/react-native/classic/operations/index.js +1 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/edgeZonesClient.d.ts +2 -2
- package/dist/react-native/edgeZonesClient.d.ts.map +1 -1
- package/dist/react-native/edgeZonesClient.js +2 -2
- package/dist/react-native/edgeZonesClient.js.map +1 -1
- package/dist/react-native/helpers/serializerHelpers.js +1 -1
- package/dist/react-native/helpers/serializerHelpers.js.map +1 -1
- package/dist/react-native/index.d.ts +5 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -2
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/logger.js +1 -1
- package/dist/react-native/logger.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -3
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +2 -2
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +101 -79
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +170 -28
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/{api → static-helpers}/pagingHelpers.js +5 -6
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/package.json +21 -56
- package/review/arm-edgezones-models.api.md +0 -39
- package/dist/browser/api/pagingHelpers.d.ts +0 -7
- package/dist/browser/api/pagingHelpers.d.ts.map +0 -1
- package/dist/browser/api/pagingHelpers.js.map +0 -1
- package/dist/browser/models/options.d.ts.map +0 -1
- package/dist/browser/models/options.js +0 -4
- package/dist/browser/models/options.js.map +0 -1
- package/dist/browser/models/pagingTypes.d.ts.map +0 -1
- package/dist/browser/models/pagingTypes.js +0 -4
- package/dist/browser/models/pagingTypes.js.map +0 -1
- package/dist/browser/rest/clientDefinitions.d.ts +0 -39
- package/dist/browser/rest/clientDefinitions.d.ts.map +0 -1
- package/dist/browser/rest/clientDefinitions.js +0 -4
- package/dist/browser/rest/clientDefinitions.js.map +0 -1
- package/dist/browser/rest/edgeZonesClient.d.ts +0 -15
- package/dist/browser/rest/edgeZonesClient.d.ts.map +0 -1
- package/dist/browser/rest/edgeZonesClient.js +0 -42
- package/dist/browser/rest/edgeZonesClient.js.map +0 -1
- package/dist/browser/rest/index.d.ts +0 -10
- package/dist/browser/rest/index.d.ts.map +0 -1
- package/dist/browser/rest/index.js +0 -12
- package/dist/browser/rest/index.js.map +0 -1
- package/dist/browser/rest/isUnexpected.d.ts +0 -7
- package/dist/browser/rest/isUnexpected.d.ts.map +0 -1
- package/dist/browser/rest/isUnexpected.js +0 -74
- package/dist/browser/rest/isUnexpected.js.map +0 -1
- package/dist/browser/rest/outputModels.d.ts +0 -282
- package/dist/browser/rest/outputModels.d.ts.map +0 -1
- package/dist/browser/rest/outputModels.js +0 -4
- package/dist/browser/rest/outputModels.js.map +0 -1
- package/dist/browser/rest/paginateHelper.d.ts +0 -43
- package/dist/browser/rest/paginateHelper.d.ts.map +0 -1
- package/dist/browser/rest/paginateHelper.js +0 -70
- package/dist/browser/rest/paginateHelper.js.map +0 -1
- package/dist/browser/rest/parameters.d.ts +0 -7
- package/dist/browser/rest/parameters.d.ts.map +0 -1
- package/dist/browser/rest/parameters.js +0 -4
- package/dist/browser/rest/parameters.js.map +0 -1
- package/dist/browser/rest/responses.d.ts +0 -48
- package/dist/browser/rest/responses.d.ts.map +0 -1
- package/dist/browser/rest/responses.js +0 -4
- package/dist/browser/rest/responses.js.map +0 -1
- package/dist/commonjs/api/pagingHelpers.d.ts +0 -7
- package/dist/commonjs/api/pagingHelpers.d.ts.map +0 -1
- package/dist/commonjs/api/pagingHelpers.js.map +0 -1
- package/dist/commonjs/models/options.d.ts.map +0 -1
- package/dist/commonjs/models/options.js.map +0 -1
- package/dist/commonjs/models/pagingTypes.d.ts.map +0 -1
- package/dist/commonjs/models/pagingTypes.js +0 -5
- package/dist/commonjs/models/pagingTypes.js.map +0 -1
- package/dist/commonjs/rest/clientDefinitions.d.ts +0 -39
- package/dist/commonjs/rest/clientDefinitions.d.ts.map +0 -1
- package/dist/commonjs/rest/clientDefinitions.js +0 -5
- package/dist/commonjs/rest/clientDefinitions.js.map +0 -1
- package/dist/commonjs/rest/edgeZonesClient.d.ts +0 -15
- package/dist/commonjs/rest/edgeZonesClient.d.ts.map +0 -1
- package/dist/commonjs/rest/edgeZonesClient.js +0 -45
- package/dist/commonjs/rest/edgeZonesClient.js.map +0 -1
- package/dist/commonjs/rest/index.d.ts +0 -10
- package/dist/commonjs/rest/index.d.ts.map +0 -1
- package/dist/commonjs/rest/index.js +0 -15
- package/dist/commonjs/rest/index.js.map +0 -1
- package/dist/commonjs/rest/isUnexpected.d.ts +0 -7
- package/dist/commonjs/rest/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/rest/isUnexpected.js +0 -77
- package/dist/commonjs/rest/isUnexpected.js.map +0 -1
- package/dist/commonjs/rest/outputModels.d.ts +0 -282
- package/dist/commonjs/rest/outputModels.d.ts.map +0 -1
- package/dist/commonjs/rest/outputModels.js +0 -5
- package/dist/commonjs/rest/outputModels.js.map +0 -1
- package/dist/commonjs/rest/paginateHelper.d.ts +0 -43
- package/dist/commonjs/rest/paginateHelper.d.ts.map +0 -1
- package/dist/commonjs/rest/paginateHelper.js +0 -73
- package/dist/commonjs/rest/paginateHelper.js.map +0 -1
- package/dist/commonjs/rest/parameters.d.ts +0 -7
- package/dist/commonjs/rest/parameters.d.ts.map +0 -1
- package/dist/commonjs/rest/parameters.js +0 -5
- package/dist/commonjs/rest/parameters.js.map +0 -1
- package/dist/commonjs/rest/responses.d.ts +0 -48
- package/dist/commonjs/rest/responses.d.ts.map +0 -1
- package/dist/commonjs/rest/responses.js +0 -5
- package/dist/commonjs/rest/responses.js.map +0 -1
- package/dist/esm/api/pagingHelpers.d.ts +0 -7
- package/dist/esm/api/pagingHelpers.d.ts.map +0 -1
- package/dist/esm/api/pagingHelpers.js.map +0 -1
- package/dist/esm/models/options.d.ts.map +0 -1
- package/dist/esm/models/options.js +0 -4
- package/dist/esm/models/options.js.map +0 -1
- package/dist/esm/models/pagingTypes.d.ts.map +0 -1
- package/dist/esm/models/pagingTypes.js +0 -4
- package/dist/esm/models/pagingTypes.js.map +0 -1
- package/dist/esm/rest/clientDefinitions.d.ts +0 -39
- package/dist/esm/rest/clientDefinitions.d.ts.map +0 -1
- package/dist/esm/rest/clientDefinitions.js +0 -4
- package/dist/esm/rest/clientDefinitions.js.map +0 -1
- package/dist/esm/rest/edgeZonesClient.d.ts +0 -15
- package/dist/esm/rest/edgeZonesClient.d.ts.map +0 -1
- package/dist/esm/rest/edgeZonesClient.js +0 -42
- package/dist/esm/rest/edgeZonesClient.js.map +0 -1
- package/dist/esm/rest/index.d.ts +0 -10
- package/dist/esm/rest/index.d.ts.map +0 -1
- package/dist/esm/rest/index.js +0 -12
- package/dist/esm/rest/index.js.map +0 -1
- package/dist/esm/rest/isUnexpected.d.ts +0 -7
- package/dist/esm/rest/isUnexpected.d.ts.map +0 -1
- package/dist/esm/rest/isUnexpected.js +0 -74
- package/dist/esm/rest/isUnexpected.js.map +0 -1
- package/dist/esm/rest/outputModels.d.ts +0 -282
- package/dist/esm/rest/outputModels.d.ts.map +0 -1
- package/dist/esm/rest/outputModels.js +0 -4
- package/dist/esm/rest/outputModels.js.map +0 -1
- package/dist/esm/rest/paginateHelper.d.ts +0 -43
- package/dist/esm/rest/paginateHelper.d.ts.map +0 -1
- package/dist/esm/rest/paginateHelper.js +0 -70
- package/dist/esm/rest/paginateHelper.js.map +0 -1
- package/dist/esm/rest/parameters.d.ts +0 -7
- package/dist/esm/rest/parameters.d.ts.map +0 -1
- package/dist/esm/rest/parameters.js +0 -4
- package/dist/esm/rest/parameters.js.map +0 -1
- package/dist/esm/rest/responses.d.ts +0 -48
- package/dist/esm/rest/responses.d.ts.map +0 -1
- package/dist/esm/rest/responses.js +0 -4
- package/dist/esm/rest/responses.js.map +0 -1
- package/dist/react-native/api/pagingHelpers.d.ts +0 -7
- package/dist/react-native/api/pagingHelpers.d.ts.map +0 -1
- package/dist/react-native/api/pagingHelpers.js.map +0 -1
- package/dist/react-native/models/options.d.ts.map +0 -1
- package/dist/react-native/models/options.js +0 -4
- package/dist/react-native/models/options.js.map +0 -1
- package/dist/react-native/models/pagingTypes.d.ts.map +0 -1
- package/dist/react-native/models/pagingTypes.js +0 -4
- package/dist/react-native/models/pagingTypes.js.map +0 -1
- package/dist/react-native/rest/clientDefinitions.d.ts +0 -39
- package/dist/react-native/rest/clientDefinitions.d.ts.map +0 -1
- package/dist/react-native/rest/clientDefinitions.js +0 -4
- package/dist/react-native/rest/clientDefinitions.js.map +0 -1
- package/dist/react-native/rest/edgeZonesClient.d.ts +0 -15
- package/dist/react-native/rest/edgeZonesClient.d.ts.map +0 -1
- package/dist/react-native/rest/edgeZonesClient.js +0 -42
- package/dist/react-native/rest/edgeZonesClient.js.map +0 -1
- package/dist/react-native/rest/index.d.ts +0 -10
- package/dist/react-native/rest/index.d.ts.map +0 -1
- package/dist/react-native/rest/index.js +0 -12
- package/dist/react-native/rest/index.js.map +0 -1
- package/dist/react-native/rest/isUnexpected.d.ts +0 -7
- package/dist/react-native/rest/isUnexpected.d.ts.map +0 -1
- package/dist/react-native/rest/isUnexpected.js +0 -74
- package/dist/react-native/rest/isUnexpected.js.map +0 -1
- package/dist/react-native/rest/outputModels.d.ts +0 -282
- package/dist/react-native/rest/outputModels.d.ts.map +0 -1
- package/dist/react-native/rest/outputModels.js +0 -4
- package/dist/react-native/rest/outputModels.js.map +0 -1
- package/dist/react-native/rest/paginateHelper.d.ts +0 -43
- package/dist/react-native/rest/paginateHelper.d.ts.map +0 -1
- package/dist/react-native/rest/paginateHelper.js +0 -70
- package/dist/react-native/rest/paginateHelper.js.map +0 -1
- package/dist/react-native/rest/parameters.d.ts +0 -7
- package/dist/react-native/rest/parameters.d.ts.map +0 -1
- package/dist/react-native/rest/parameters.js +0 -4
- package/dist/react-native/rest/parameters.js.map +0 -1
- package/dist/react-native/rest/responses.d.ts +0 -48
- package/dist/react-native/rest/responses.d.ts.map +0 -1
- package/dist/react-native/rest/responses.js +0 -4
- package/dist/react-native/rest/responses.js.map +0 -1
- package/review/arm-edgezones-api.api.md +0 -46
- /package/dist/browser/{models → api}/options.d.ts +0 -0
- /package/dist/commonjs/{models → api}/options.d.ts +0 -0
- /package/dist/esm/{models → api}/options.d.ts +0 -0
- /package/dist/react-native/{models → api}/options.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../src/rest/outputModels.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,sLAAsL;IACtL,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,6JAA6J;IAC7J,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,mEAAmE;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC,8HAA8H;IAC9H,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,yIAAyI;IACzI,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,0JAA0J;IAC1J,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6GAA6G;IAC7G,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,+GAA+G;AAC/G,MAAM,WAAW,mBAAm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AAG,MAAM,CAAC;AAClC,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACtC,gDAAgD;AAChD,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC;AACrD,wCAAwC;AACxC,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAC7C,wCAAwC;AACxC,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAC7C,oCAAoC;AACpC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AACzC,2CAA2C;AAC3C,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;AAC1D,8BAA8B;AAC9B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AACtE,6DAA6D;AAC7D,MAAM,MAAM,4CAA4C,GAAG,MAAM,CAAC;AAClE,iEAAiE;AACjE,MAAM,MAAM,gDAAgD,GAAG,MAAM,CAAC;AACtE,qDAAqD;AACrD,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/rest/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Paged } from \"@azure/core-paging\";\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface OperationOutput {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplayOutput;\n /**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"\n *\n * Possible values: \"user\", \"system\", \"user,system\"\n */\n readonly origin?: OriginOutput;\n /**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.\n *\n * Possible values: \"Internal\"\n */\n actionType?: ActionTypeOutput;\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplayOutput {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponseOutput {\n /** The error object. */\n error?: ErrorDetailOutput;\n}\n\n/** The error detail. */\nexport interface ErrorDetailOutput {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: Array<ErrorDetailOutput>;\n /** The error additional info. */\n readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfoOutput {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\n/** Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering. */\nexport interface ExtendedZoneOutput extends ProxyResourceOutput {\n /** The resource-specific properties for this resource. */\n properties?: ExtendedZonePropertiesOutput;\n}\n\n/** The properties of an Extended Zone resource. */\nexport interface ExtendedZonePropertiesOutput {\n /**\n * Status of the last operation performed by the subscription on the Edge Zone resource\n *\n * Possible values: \"Provisioning\", \"Updating\", \"Deleting\", \"Accepted\"\n */\n readonly provisioningState?: ProvisioningStateOutput;\n /**\n * Indicates the Azure Extended Zone registration’s approval status.\n *\n * Possible values: \"NotRegistered\", \"PendingRegister\", \"Registered\", \"PendingUnregister\"\n */\n readonly registrationState?: RegistrationStateOutput;\n /** Display name of the Azure Extended Zone. */\n readonly displayName: string;\n /** Regional display name of the Azure Extended Zone. */\n readonly regionalDisplayName: string;\n /** Type of region for the Azure Extended Zone. */\n readonly regionType: string;\n /** Category of region for the Azure Extended Zone. */\n readonly regionCategory: string;\n /** Geography of the Azure Extended Zone. */\n readonly geography: string;\n /** The Geography Group of the Azure Extended Zone. */\n readonly geographyGroup: string;\n /** The Longitude of the Azure Extended Zone. */\n readonly longitude: string;\n /** The Latitude of the Azure Extended Zone. */\n readonly latitude: string;\n /** The Home Location of the Azure Extended Zone. */\n readonly homeLocation: string;\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResourceOutput extends ResourceOutput {}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface ResourceOutput {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemDataOutput;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemDataOutput {\n /** The identity that created the resource. */\n createdBy?: string;\n /**\n * The type of identity that created the resource.\n *\n * Possible values: \"User\", \"Application\", \"ManagedIdentity\", \"Key\"\n */\n createdByType?: CreatedByTypeOutput;\n /** The timestamp of resource creation (UTC). */\n createdAt?: string;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /**\n * The type of identity that last modified the resource.\n *\n * Possible values: \"User\", \"Application\", \"ManagedIdentity\", \"Key\"\n */\n lastModifiedByType?: CreatedByTypeOutput;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: string;\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResourceOutput extends ResourceOutput {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\n/** The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set. */\nexport interface ResourceModelWithAllowedPropertySetOutput extends TrackedResourceOutput {\n /**\n * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource.\n * If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.\n */\n managedBy?: string;\n /**\n * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.\n * If supported, the resource provider must validate and persist this value.\n */\n kind?: string;\n /**\n * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention.\n * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19),\n * If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\n */\n eTag?: string;\n identity?: IdentityOutput;\n sku?: SkuOutput;\n plan?: PlanOutput;\n}\n\n/** Identity for the resource. */\nexport interface IdentityOutput {\n /** The principal ID of resource identity. The value must be an UUID. */\n readonly principalId?: string;\n /** The tenant ID of resource. The value must be an UUID. */\n readonly tenantId?: string;\n /** The identity type. */\n type?: ResourceIdentityTypeOutput;\n}\n\n/** The resource model definition representing SKU */\nexport interface SkuOutput {\n /** The name of the SKU. Ex - P3. It is typically a letter+number code */\n name: string;\n /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */\n tier?: SkuTierOutput;\n /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */\n size?: string;\n /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */\n family?: string;\n /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */\n capacity?: number;\n}\n\n/** Plan for the resource. */\nexport interface PlanOutput {\n /** A user defined name of the 3rd Party Artifact that is being procured. */\n name: string;\n /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */\n publisher: string;\n /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */\n product: string;\n /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */\n promotionCode?: string;\n /** The version of the desired product/artifact. */\n version?: string;\n}\n\n/** The base extension resource. */\nexport interface ExtensionResourceOutput extends ResourceOutput {}\n\n/** The resource model definition for an Azure Resource Manager resource with an etag. */\nexport interface AzureEntityResourceOutput extends ResourceOutput {\n /** Resource Etag. */\n readonly etag?: string;\n}\n\n/** A private link resource. */\nexport interface PrivateLinkResourceOutput extends ResourceOutput {\n /** Resource properties. */\n properties?: PrivateLinkResourcePropertiesOutput;\n}\n\n/** Properties of a private link resource. */\nexport interface PrivateLinkResourcePropertiesOutput {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\n/** The private endpoint connection resource */\nexport interface PrivateEndpointConnectionOutput extends ResourceOutput {\n /** The private endpoint connection properties */\n properties?: PrivateEndpointConnectionPropertiesOutput;\n}\n\n/** Properties of the private endpoint connection. */\nexport interface PrivateEndpointConnectionPropertiesOutput {\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpointOutput;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput;\n /**\n * The provisioning state of the private endpoint connection resource.\n *\n * Possible values: \"Succeeded\", \"Creating\", \"Deleting\", \"Failed\"\n */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningStateOutput;\n}\n\n/** The Private Endpoint resource. */\nexport interface PrivateEndpointOutput {\n /** The resource identifier for private endpoint */\n readonly id?: string;\n}\n\n/** A collection of information about the state of the connection between service consumer and provider. */\nexport interface PrivateLinkServiceConnectionStateOutput {\n /**\n * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.\n *\n * Possible values: \"Pending\", \"Approved\", \"Rejected\"\n */\n status?: PrivateEndpointServiceConnectionStatusOutput;\n /** The reason for approval/rejection of the connection. */\n description?: string;\n /** A message indicating if changes on the service provider require any updates on the consumer. */\n actionsRequired?: string;\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport type OperationListResultOutput = Paged<OperationOutput>;\n/** Alias for OriginOutput */\nexport type OriginOutput = string;\n/** Alias for ActionTypeOutput */\nexport type ActionTypeOutput = string;\n/** Alias for ResourceProvisioningStateOutput */\nexport type ResourceProvisioningStateOutput = string;\n/** Alias for ProvisioningStateOutput */\nexport type ProvisioningStateOutput = string;\n/** Alias for RegistrationStateOutput */\nexport type RegistrationStateOutput = string;\n/** Alias for CreatedByTypeOutput */\nexport type CreatedByTypeOutput = string;\n/** Alias for ResourceIdentityTypeOutput */\nexport type ResourceIdentityTypeOutput = \"SystemAssigned\";\n/** Alias for SkuTierOutput */\nexport type SkuTierOutput = \"Free\" | \"Basic\" | \"Standard\" | \"Premium\";\n/** Alias for PrivateEndpointServiceConnectionStatusOutput */\nexport type PrivateEndpointServiceConnectionStatusOutput = string;\n/** Alias for PrivateEndpointConnectionProvisioningStateOutput */\nexport type PrivateEndpointConnectionProvisioningStateOutput = string;\n/** The response of a ExtendedZone list operation. */\nexport type ExtendedZoneListResultOutput = Paged<ExtendedZoneOutput>;\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
-
/**
|
|
4
|
-
* Helper type to extract the type of an array
|
|
5
|
-
*/
|
|
6
|
-
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
7
|
-
/**
|
|
8
|
-
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
9
|
-
*/
|
|
10
|
-
export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
|
|
11
|
-
page: TPage;
|
|
12
|
-
nextPageLink?: string;
|
|
13
|
-
}>;
|
|
14
|
-
/**
|
|
15
|
-
* Options for the paging helper
|
|
16
|
-
*/
|
|
17
|
-
export interface PagingOptions<TResponse> {
|
|
18
|
-
/**
|
|
19
|
-
* Custom function to extract pagination details for crating the PagedAsyncIterableIterator
|
|
20
|
-
*/
|
|
21
|
-
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Helper type to infer the Type of the paged elements from the response type
|
|
25
|
-
* This type is generated based on the swagger information for x-ms-pageable
|
|
26
|
-
* specifically on the itemName property which indicates the property of the response
|
|
27
|
-
* where the page items are found. The default value is `value`.
|
|
28
|
-
* This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
|
|
29
|
-
*/
|
|
30
|
-
export type PaginateReturn<TResult> = TResult extends {
|
|
31
|
-
body: {
|
|
32
|
-
value?: infer TPage;
|
|
33
|
-
};
|
|
34
|
-
} ? GetArrayType<TPage> : Array<unknown>;
|
|
35
|
-
/**
|
|
36
|
-
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
37
|
-
* @param client - Client to use for sending the next page requests
|
|
38
|
-
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
39
|
-
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
40
|
-
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
41
|
-
*/
|
|
42
|
-
export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
43
|
-
//# sourceMappingURL=paginateHelper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../../src/rest/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,0BAA0B,EAAe,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SAAS;IACpD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACG,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA0BvD"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
import { getPagedAsyncIterator } from "@azure/core-paging";
|
|
4
|
-
import { createRestError } from "@azure-rest/core-client";
|
|
5
|
-
/**
|
|
6
|
-
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
7
|
-
* @param client - Client to use for sending the next page requests
|
|
8
|
-
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
9
|
-
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
10
|
-
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
11
|
-
*/
|
|
12
|
-
export function paginate(client, initialResponse, options = {}) {
|
|
13
|
-
let firstRun = true;
|
|
14
|
-
const itemName = "value";
|
|
15
|
-
const nextLinkName = "nextLink";
|
|
16
|
-
const { customGetPage } = options;
|
|
17
|
-
const pagedResult = {
|
|
18
|
-
firstPageLink: "",
|
|
19
|
-
getPage: typeof customGetPage === "function"
|
|
20
|
-
? customGetPage
|
|
21
|
-
: async (pageLink) => {
|
|
22
|
-
const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();
|
|
23
|
-
firstRun = false;
|
|
24
|
-
checkPagingRequest(result);
|
|
25
|
-
const nextLink = getNextLink(result.body, nextLinkName);
|
|
26
|
-
const values = getElements(result.body, itemName);
|
|
27
|
-
return {
|
|
28
|
-
page: values,
|
|
29
|
-
nextPageLink: nextLink,
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
return getPagedAsyncIterator(pagedResult);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Gets for the value of nextLink in the body
|
|
37
|
-
*/
|
|
38
|
-
function getNextLink(body, nextLinkName) {
|
|
39
|
-
if (!nextLinkName) {
|
|
40
|
-
return undefined;
|
|
41
|
-
}
|
|
42
|
-
const nextLink = body[nextLinkName];
|
|
43
|
-
if (typeof nextLink !== "string" && typeof nextLink !== "undefined") {
|
|
44
|
-
throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);
|
|
45
|
-
}
|
|
46
|
-
return nextLink;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Gets the elements of the current request in the body.
|
|
50
|
-
*/
|
|
51
|
-
function getElements(body, itemName) {
|
|
52
|
-
const value = body[itemName];
|
|
53
|
-
// value has to be an array according to the x-ms-pageable extension.
|
|
54
|
-
// The fact that this must be an array is used above to calculate the
|
|
55
|
-
// type of elements in the page in PaginateReturn
|
|
56
|
-
if (!Array.isArray(value)) {
|
|
57
|
-
throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
58
|
-
}
|
|
59
|
-
return value !== null && value !== void 0 ? value : [];
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Checks if a request failed
|
|
63
|
-
*/
|
|
64
|
-
function checkPagingRequest(response) {
|
|
65
|
-
const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"];
|
|
66
|
-
if (!Http2xxStatusCodes.includes(response.status)) {
|
|
67
|
-
throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=paginateHelper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../../src/rest/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,qBAAqB,EAA2C,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AAyCzF;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAA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qEAAqE;IACrE,iDAAiD;IACjD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RequestParameters } from "@azure-rest/core-client";
|
|
2
|
-
export type OperationsListParameters = RequestParameters;
|
|
3
|
-
export type ExtendedZonesGetParameters = RequestParameters;
|
|
4
|
-
export type ExtendedZonesListBySubscriptionParameters = RequestParameters;
|
|
5
|
-
export type ExtendedZonesRegisterParameters = RequestParameters;
|
|
6
|
-
export type ExtendedZonesUnregisterParameters = RequestParameters;
|
|
7
|
-
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/rest/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AACzD,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;AAC3D,MAAM,MAAM,yCAAyC,GAAG,iBAAiB,CAAC;AAC1E,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;AAChE,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/rest/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\n\nexport type OperationsListParameters = RequestParameters;\nexport type ExtendedZonesGetParameters = RequestParameters;\nexport type ExtendedZonesListBySubscriptionParameters = RequestParameters;\nexport type ExtendedZonesRegisterParameters = RequestParameters;\nexport type ExtendedZonesUnregisterParameters = RequestParameters;\n"]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { HttpResponse } from "@azure-rest/core-client";
|
|
2
|
-
import { OperationListResultOutput, ErrorResponseOutput, ExtendedZoneOutput, ExtendedZoneListResultOutput } from "./outputModels.js";
|
|
3
|
-
/** Azure operation completed successfully. */
|
|
4
|
-
export interface OperationsList200Response extends HttpResponse {
|
|
5
|
-
status: "200";
|
|
6
|
-
body: OperationListResultOutput;
|
|
7
|
-
}
|
|
8
|
-
export interface OperationsListDefaultResponse extends HttpResponse {
|
|
9
|
-
status: string;
|
|
10
|
-
body: ErrorResponseOutput;
|
|
11
|
-
}
|
|
12
|
-
/** Azure operation completed successfully. */
|
|
13
|
-
export interface ExtendedZonesGet200Response extends HttpResponse {
|
|
14
|
-
status: "200";
|
|
15
|
-
body: ExtendedZoneOutput;
|
|
16
|
-
}
|
|
17
|
-
export interface ExtendedZonesGetDefaultResponse extends HttpResponse {
|
|
18
|
-
status: string;
|
|
19
|
-
body: ErrorResponseOutput;
|
|
20
|
-
}
|
|
21
|
-
/** Azure operation completed successfully. */
|
|
22
|
-
export interface ExtendedZonesListBySubscription200Response extends HttpResponse {
|
|
23
|
-
status: "200";
|
|
24
|
-
body: ExtendedZoneListResultOutput;
|
|
25
|
-
}
|
|
26
|
-
export interface ExtendedZonesListBySubscriptionDefaultResponse extends HttpResponse {
|
|
27
|
-
status: string;
|
|
28
|
-
body: ErrorResponseOutput;
|
|
29
|
-
}
|
|
30
|
-
/** Azure operation completed successfully. */
|
|
31
|
-
export interface ExtendedZonesRegister200Response extends HttpResponse {
|
|
32
|
-
status: "200";
|
|
33
|
-
body: ExtendedZoneOutput;
|
|
34
|
-
}
|
|
35
|
-
export interface ExtendedZonesRegisterDefaultResponse extends HttpResponse {
|
|
36
|
-
status: string;
|
|
37
|
-
body: ErrorResponseOutput;
|
|
38
|
-
}
|
|
39
|
-
/** Azure operation completed successfully. */
|
|
40
|
-
export interface ExtendedZonesUnregister200Response extends HttpResponse {
|
|
41
|
-
status: "200";
|
|
42
|
-
body: ExtendedZoneOutput;
|
|
43
|
-
}
|
|
44
|
-
export interface ExtendedZonesUnregisterDefaultResponse extends HttpResponse {
|
|
45
|
-
status: string;
|
|
46
|
-
body: ErrorResponseOutput;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/rest/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,mBAAmB,CAAC;AAE3B,8CAA8C;AAC9C,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,0CAA2C,SAAQ,YAAY;IAC9E,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,4BAA4B,CAAC;CACpC;AAED,MAAM,WAAW,8CAA+C,SAAQ,YAAY;IAClF,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,gCAAiC,SAAQ,YAAY;IACpE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/rest/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n OperationListResultOutput,\n ErrorResponseOutput,\n ExtendedZoneOutput,\n ExtendedZoneListResultOutput,\n} from \"./outputModels.js\";\n\n/** Azure operation completed successfully. */\nexport interface OperationsList200Response extends HttpResponse {\n status: \"200\";\n body: OperationListResultOutput;\n}\n\nexport interface OperationsListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface ExtendedZonesGet200Response extends HttpResponse {\n status: \"200\";\n body: ExtendedZoneOutput;\n}\n\nexport interface ExtendedZonesGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface ExtendedZonesListBySubscription200Response extends HttpResponse {\n status: \"200\";\n body: ExtendedZoneListResultOutput;\n}\n\nexport interface ExtendedZonesListBySubscriptionDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface ExtendedZonesRegister200Response extends HttpResponse {\n status: \"200\";\n body: ExtendedZoneOutput;\n}\n\nexport interface ExtendedZonesRegisterDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface ExtendedZonesUnregister200Response extends HttpResponse {\n status: \"200\";\n body: ExtendedZoneOutput;\n}\n\nexport interface ExtendedZonesUnregisterDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
-
import { BuildPagedAsyncIteratorOptions, PageSettings, PagedAsyncIterableIterator } from "../models/pagingTypes.js";
|
|
3
|
-
/**
|
|
4
|
-
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
5
|
-
*/
|
|
6
|
-
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
7
|
-
//# sourceMappingURL=pagingHelpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/api/pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,OAAO,EACL,8BAA8B,EAE9B,YAAY,EACZ,0BAA0B,EAE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IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACzF,MAAM,IAAI,8BAAS,CACjB,iBAAiB,YAAY,oDAAoD,OAAO,QAAQ,EAAE,CACnG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,8BAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,IAAI,IAAA,uBAAY,EAAC,QAAQ,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAA,6BAAe,EACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\nimport {\n BuildPagedAsyncIteratorOptions,\n ContinuablePage,\n PageSettings,\n PagedAsyncIterableIterator,\n PagedResult,\n} from \"../models/pagingTypes.js\";\nimport { isUnexpected } from \"../rest/index.js\";\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n if (isUnexpected(response)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE,2BAA2B;AAC3B,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;CAAG;AAE3E,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;CAAG;AAE1F,2BAA2B;AAC3B,MAAM,WAAW,mCAAoC,SAAQ,gBAAgB;CAAG;AAEhF,2BAA2B;AAC3B,MAAM,WAAW,qCAAsC,SAAQ,gBAAgB;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ExtendedZonesGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ExtendedZonesListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ExtendedZonesRegisterOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ExtendedZonesUnregisterOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagingTypes.d.ts","sourceRoot":"","sources":["../../../src/models/pagingTypes.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,KAAK,GAAG;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ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ourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n"]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { OperationsListParameters, ExtendedZonesGetParameters, ExtendedZonesListBySubscriptionParameters, ExtendedZonesRegisterParameters, ExtendedZonesUnregisterParameters } from "./parameters.js";
|
|
2
|
-
import { OperationsList200Response, OperationsListDefaultResponse, ExtendedZonesGet200Response, ExtendedZonesGetDefaultResponse, ExtendedZonesListBySubscription200Response, ExtendedZonesListBySubscriptionDefaultResponse, ExtendedZonesRegister200Response, ExtendedZonesRegisterDefaultResponse, ExtendedZonesUnregister200Response, ExtendedZonesUnregisterDefaultResponse } from "./responses.js";
|
|
3
|
-
import { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
4
|
-
export interface OperationsList {
|
|
5
|
-
/** List the operations for the provider */
|
|
6
|
-
get(options?: OperationsListParameters): StreamableMethod<OperationsList200Response | OperationsListDefaultResponse>;
|
|
7
|
-
}
|
|
8
|
-
export interface ExtendedZonesGet {
|
|
9
|
-
/** Gets an Azure Extended Zone for a subscription */
|
|
10
|
-
get(options?: ExtendedZonesGetParameters): StreamableMethod<ExtendedZonesGet200Response | ExtendedZonesGetDefaultResponse>;
|
|
11
|
-
}
|
|
12
|
-
export interface ExtendedZonesListBySubscription {
|
|
13
|
-
/** Lists the Azure Extended Zones available to a subscription */
|
|
14
|
-
get(options?: ExtendedZonesListBySubscriptionParameters): StreamableMethod<ExtendedZonesListBySubscription200Response | ExtendedZonesListBySubscriptionDefaultResponse>;
|
|
15
|
-
}
|
|
16
|
-
export interface ExtendedZonesRegister {
|
|
17
|
-
/** Registers a subscription for an Extended Zone */
|
|
18
|
-
post(options: ExtendedZonesRegisterParameters): StreamableMethod<ExtendedZonesRegister200Response | ExtendedZonesRegisterDefaultResponse>;
|
|
19
|
-
}
|
|
20
|
-
export interface ExtendedZonesUnregister {
|
|
21
|
-
/** Unregisters a subscription for an Extended Zone */
|
|
22
|
-
post(options: ExtendedZonesUnregisterParameters): StreamableMethod<ExtendedZonesUnregister200Response | ExtendedZonesUnregisterDefaultResponse>;
|
|
23
|
-
}
|
|
24
|
-
export interface Routes {
|
|
25
|
-
/** Resource for '/providers/Microsoft.EdgeZones/operations' has methods for the following verbs: get */
|
|
26
|
-
(path: "/providers/Microsoft.EdgeZones/operations"): OperationsList;
|
|
27
|
-
/** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.EdgeZones/extendedZones/\{extendedZoneName\}' has methods for the following verbs: get */
|
|
28
|
-
(path: "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}", subscriptionId: string, extendedZoneName: string): ExtendedZonesGet;
|
|
29
|
-
/** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.EdgeZones/extendedZones' has methods for the following verbs: get */
|
|
30
|
-
(path: "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones", subscriptionId: string): ExtendedZonesListBySubscription;
|
|
31
|
-
/** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.EdgeZones/extendedZones/\{extendedZoneName\}/register' has methods for the following verbs: post */
|
|
32
|
-
(path: "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register", subscriptionId: string, extendedZoneName: string): ExtendedZonesRegister;
|
|
33
|
-
/** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.EdgeZones/extendedZones/\{extendedZoneName\}/unregister' has methods for the following verbs: post */
|
|
34
|
-
(path: "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister", subscriptionId: string, extendedZoneName: string): ExtendedZonesUnregister;
|
|
35
|
-
}
|
|
36
|
-
export type EdgeZonesContext = Client & {
|
|
37
|
-
path: Routes;
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=clientDefinitions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../src/rest/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,yCAAyC,EACzC,+BAA+B,EAC/B,iCAAiC,EAClC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,+B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EAAE,yGAAyG,EAC/G,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,GACvB,qBAAqB,CAAC;IACzB,6KAA6K;IAC7K,CACE,IAAI,EAAE,2GAA2G,EACjH,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,GACvB,uBAAuB,CAAC;CAC5B;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../../src/rest/clientDefinitions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n OperationsListParameters,\n ExtendedZonesGetParameters,\n ExtendedZonesListBySubscriptionParameters,\n ExtendedZonesRegisterParameters,\n ExtendedZonesUnregisterParameters,\n} from \"./parameters.js\";\nimport {\n OperationsList200Response,\n OperationsListDefaultResponse,\n ExtendedZonesGet200Response,\n ExtendedZonesGetDefaultResponse,\n ExtendedZonesListBySubscription200Response,\n ExtendedZonesListBySubscriptionDefaultResponse,\n ExtendedZonesRegister200Response,\n ExtendedZonesRegisterDefaultResponse,\n ExtendedZonesUnregister200Response,\n ExtendedZonesUnregisterDefaultResponse,\n} from \"./responses.js\";\nimport { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface OperationsList {\n /** List the operations for the provider */\n get(\n options?: OperationsListParameters,\n ): StreamableMethod<OperationsList200Response | OperationsListDefaultResponse>;\n}\n\nexport interface ExtendedZonesGet {\n /** Gets an Azure Extended Zone for a subscription */\n get(\n options?: ExtendedZonesGetParameters,\n ): StreamableMethod<ExtendedZonesGet200Response | ExtendedZonesGetDefaultResponse>;\n}\n\nexport interface ExtendedZonesListBySubscription {\n /** Lists the Azure Extended Zones available to a subscription */\n get(\n options?: ExtendedZonesListBySubscriptionParameters,\n ): StreamableMethod<\n ExtendedZonesListBySubscription200Response | ExtendedZonesListBySubscriptionDefaultResponse\n >;\n}\n\nexport interface ExtendedZonesRegister {\n /** Registers a subscription for an Extended Zone */\n post(\n options: ExtendedZonesRegisterParameters,\n ): StreamableMethod<ExtendedZonesRegister200Response | ExtendedZonesRegisterDefaultResponse>;\n}\n\nexport interface ExtendedZonesUnregister {\n /** Unregisters a subscription for an Extended Zone */\n post(\n options: ExtendedZonesUnregisterParameters,\n ): StreamableMethod<ExtendedZonesUnregister200Response | ExtendedZonesUnregisterDefaultResponse>;\n}\n\nexport interface Routes {\n /** Resource for '/providers/Microsoft.EdgeZones/operations' has methods for the following verbs: get */\n (path: \"/providers/Microsoft.EdgeZones/operations\"): OperationsList;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.EdgeZones/extendedZones/\\{extendedZoneName\\}' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}\",\n subscriptionId: string,\n extendedZoneName: string,\n ): ExtendedZonesGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.EdgeZones/extendedZones' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones\",\n subscriptionId: string,\n ): ExtendedZonesListBySubscription;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.EdgeZones/extendedZones/\\{extendedZoneName\\}/register' has methods for the following verbs: post */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register\",\n subscriptionId: string,\n extendedZoneName: string,\n ): ExtendedZonesRegister;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.EdgeZones/extendedZones/\\{extendedZoneName\\}/unregister' has methods for the following verbs: post */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister\",\n subscriptionId: string,\n extendedZoneName: string,\n ): ExtendedZonesUnregister;\n}\n\nexport type EdgeZonesContext = Client & {\n path: Routes;\n};\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ClientOptions } from "@azure-rest/core-client";
|
|
2
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
3
|
-
import { EdgeZonesContext } from "./clientDefinitions.js";
|
|
4
|
-
/** The optional parameters for the client */
|
|
5
|
-
export interface EdgeZonesContextOptions extends ClientOptions {
|
|
6
|
-
/** The api version option of the client */
|
|
7
|
-
apiVersion?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Initialize a new instance of `EdgeZonesContext`
|
|
11
|
-
* @param credentials - uniquely identify client credential
|
|
12
|
-
* @param options - the parameter for all optional parameters
|
|
13
|
-
*/
|
|
14
|
-
export default function createClient(credentials: TokenCredential, { apiVersion, ...options }?: EdgeZonesContextOptions): EdgeZonesContext;
|
|
15
|
-
//# sourceMappingURL=edgeZonesClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edgeZonesClient.d.ts","sourceRoot":"","sources":["../../../src/rest/edgeZonesClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,6CAA6C;AAC7C,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAAW,EAAE,eAAe,EAC5B,EAAE,UAAiC,EAAE,GAAG,OAAO,EAAE,GAAE,uBAA4B,GAC9E,gBAAgB,CAsClB"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.default = createClient;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const core_client_1 = require("@azure-rest/core-client");
|
|
8
|
-
const logger_js_1 = require("../logger.js");
|
|
9
|
-
/**
|
|
10
|
-
* Initialize a new instance of `EdgeZonesContext`
|
|
11
|
-
* @param credentials - uniquely identify client credential
|
|
12
|
-
* @param options - the parameter for all optional parameters
|
|
13
|
-
*/
|
|
14
|
-
function createClient(credentials, _a = {}) {
|
|
15
|
-
var _b, _c, _d, _e, _f, _g;
|
|
16
|
-
var { apiVersion = "2024-04-01-preview" } = _a, options = tslib_1.__rest(_a, ["apiVersion"]);
|
|
17
|
-
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `https://management.azure.com`;
|
|
18
|
-
const userAgentInfo = `azsdk-js-arm-edgezones/1.0.0-beta.2`;
|
|
19
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
20
|
-
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
21
|
-
: `${userAgentInfo}`;
|
|
22
|
-
options = Object.assign(Object.assign({}, options), { userAgentOptions: {
|
|
23
|
-
userAgentPrefix,
|
|
24
|
-
}, loggingOptions: {
|
|
25
|
-
logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger_js_1.logger.info,
|
|
26
|
-
}, credentials: {
|
|
27
|
-
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
28
|
-
} });
|
|
29
|
-
const client = (0, core_client_1.getClient)(endpointUrl, credentials, options);
|
|
30
|
-
client.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
31
|
-
client.pipeline.addPolicy({
|
|
32
|
-
name: "ClientApiVersionPolicy",
|
|
33
|
-
sendRequest: (req, next) => {
|
|
34
|
-
// Use the apiVersion defined in request url directly
|
|
35
|
-
// Append one if there is no apiVersion and we have one at client options
|
|
36
|
-
const url = new URL(req.url);
|
|
37
|
-
if (!url.searchParams.get("api-version") && apiVersion) {
|
|
38
|
-
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
39
|
-
}
|
|
40
|
-
return next(req);
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
return client;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=edgeZonesClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edgeZonesClient.js","sourceRoot":"","sources":["../../../src/rest/edgeZonesClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,+BAyCC;;AAzDD,yDAAmE;AACnE,4CAAsC;AAUtC;;;;GAIG;AACH,SAAwB,YAAY,CAClC,WAA4B,EAC5B,KAA6E,EAAE;;QAA/E,EAAE,UAAU,GAAG,oBAAoB,OAA4C,EAAvC,OAAO,sBAA/C,cAAiD,CAAF;IAE/C,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,aAAa,GAAG,qCAAqC,CAAC;IAC5D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,kBAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE,GACF,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAqB,CAAC;IAEhF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { logger } from \"../logger.js\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { EdgeZonesContext } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface EdgeZonesContextOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `EdgeZonesContext`\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n credentials: TokenCredential,\n { apiVersion = \"2024-04-01-preview\", ...options }: EdgeZonesContextOptions = {},\n): EdgeZonesContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const userAgentInfo = `azsdk-js-arm-edgezones/1.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as EdgeZonesContext;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return client;\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import EdgeZonesClient from "./edgeZonesClient.js";
|
|
2
|
-
export * from "./edgeZonesClient.js";
|
|
3
|
-
export * from "./parameters.js";
|
|
4
|
-
export * from "./responses.js";
|
|
5
|
-
export * from "./clientDefinitions.js";
|
|
6
|
-
export * from "./isUnexpected.js";
|
|
7
|
-
export * from "./outputModels.js";
|
|
8
|
-
export * from "./paginateHelper.js";
|
|
9
|
-
export default EdgeZonesClient;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rest/index.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,MAAM,sBAAsB,CAAC;AAEnD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,eAAe,eAAe,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const edgeZonesClient_js_1 = tslib_1.__importDefault(require("./edgeZonesClient.js"));
|
|
7
|
-
tslib_1.__exportStar(require("./edgeZonesClient.js"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./parameters.js"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./responses.js"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./clientDefinitions.js"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./isUnexpected.js"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./outputModels.js"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./paginateHelper.js"), exports);
|
|
14
|
-
exports.default = edgeZonesClient_js_1.default;
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,sFAAmD;AAEnD,+DAAqC;AACrC,0DAAgC;AAChC,yDAA+B;AAC/B,iEAAuC;AACvC,4DAAkC;AAClC,4DAAkC;AAClC,8DAAoC;AAEpC,kBAAe,4BAAe,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport EdgeZonesClient from \"./edgeZonesClient.js\";\n\nexport * from \"./edgeZonesClient.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./outputModels.js\";\nexport * from \"./paginateHelper.js\";\n\nexport default EdgeZonesClient;\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OperationsList200Response, OperationsListDefaultResponse, ExtendedZonesGet200Response, ExtendedZonesGetDefaultResponse, ExtendedZonesListBySubscription200Response, ExtendedZonesListBySubscriptionDefaultResponse, ExtendedZonesRegister200Response, ExtendedZonesRegisterDefaultResponse, ExtendedZonesUnregister200Response, ExtendedZonesUnregisterDefaultResponse } from "./responses.js";
|
|
2
|
-
export declare function isUnexpected(response: OperationsList200Response | OperationsListDefaultResponse): response is OperationsListDefaultResponse;
|
|
3
|
-
export declare function isUnexpected(response: ExtendedZonesGet200Response | ExtendedZonesGetDefaultResponse): response is ExtendedZonesGetDefaultResponse;
|
|
4
|
-
export declare function isUnexpected(response: ExtendedZonesListBySubscription200Response | ExtendedZonesListBySubscriptionDefaultResponse): response is ExtendedZonesListBySubscriptionDefaultResponse;
|
|
5
|
-
export declare function isUnexpected(response: ExtendedZonesRegister200Response | ExtendedZonesRegisterDefaultResponse): response is ExtendedZonesRegisterDefaultResponse;
|
|
6
|
-
export declare function isUnexpected(response: ExtendedZonesUnregister200Response | ExtendedZonesUnregisterDefaultResponse): response is ExtendedZonesUnregisterDefaultResponse;
|
|
7
|
-
//# sourceMappingURL=isUnexpected.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../../src/rest/isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,+BAA+B,EAC/B,0CAA0C,EAC1C,8CAA8C,EAC9C,gCAAgC,EAChC,oCAAoC,EACpC,kCAAkC,EAClC,sCAAsC,EACvC,MAAM,gBAAgB,CAAC;AAaxB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,yBAAyB,GAAG,6BAA6B,GAClE,QAAQ,IAAI,6BAA6B,CAAC;AAC7C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,2BAA2B,GAAG,+BAA+B,GACtE,QAAQ,IAAI,+BAA+B,CAAC;AAC/C,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,0CAA0C,GAC1C,8CAA8C,GACjD,QAAQ,IAAI,8CAA8C,CAAC;AAC9D,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,gCAAgC,GAAG,oCAAoC,GAChF,QAAQ,IAAI,oCAAoC,CAAC;AACpD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,kCAAkC,GAAG,sCAAsC,GACpF,QAAQ,IAAI,sCAAsC,CAAC"}
|