@azure/arm-sitemanager 1.0.0-alpha.20250902.1 → 1.0.0-alpha.20250915.1
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/README.md +1 -1
- package/dist/browser/api/edgeContext.d.ts +3 -0
- package/dist/browser/api/edgeContext.js +3 -2
- package/dist/browser/api/edgeContext.js.map +1 -1
- package/dist/browser/api/sites/operations.d.ts +1 -1
- package/dist/browser/api/sites/operations.js +4 -10
- package/dist/browser/api/sites/operations.js.map +1 -1
- package/dist/browser/api/sitesByServiceGroup/operations.d.ts +1 -1
- package/dist/browser/api/sitesByServiceGroup/operations.js +4 -10
- package/dist/browser/api/sitesByServiceGroup/operations.js.map +1 -1
- package/dist/browser/api/sitesBySubscription/operations.d.ts +1 -1
- package/dist/browser/api/sitesBySubscription/operations.js +4 -10
- package/dist/browser/api/sitesBySubscription/operations.js.map +1 -1
- package/dist/browser/classic/sites/index.d.ts +1 -1
- package/dist/browser/classic/sites/index.js.map +1 -1
- package/dist/browser/classic/sitesByServiceGroup/index.d.ts +1 -1
- package/dist/browser/classic/sitesByServiceGroup/index.js.map +1 -1
- package/dist/browser/classic/sitesBySubscription/index.d.ts +1 -1
- package/dist/browser/classic/sitesBySubscription/index.js.map +1 -1
- package/dist/browser/edgeClient.d.ts +2 -2
- package/dist/browser/edgeClient.js +1 -1
- package/dist/browser/edgeClient.js.map +1 -1
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +3 -9
- package/dist/browser/models/models.js +3 -8
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +3 -3
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +2 -1
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/edgeContext.d.ts +3 -0
- package/dist/commonjs/api/edgeContext.js +3 -2
- package/dist/commonjs/api/edgeContext.js.map +1 -1
- package/dist/commonjs/api/sites/operations.d.ts +1 -1
- package/dist/commonjs/api/sites/operations.js +4 -10
- package/dist/commonjs/api/sites/operations.js.map +1 -1
- package/dist/commonjs/api/sitesByServiceGroup/operations.d.ts +1 -1
- package/dist/commonjs/api/sitesByServiceGroup/operations.js +4 -10
- package/dist/commonjs/api/sitesByServiceGroup/operations.js.map +1 -1
- package/dist/commonjs/api/sitesBySubscription/operations.d.ts +1 -1
- package/dist/commonjs/api/sitesBySubscription/operations.js +4 -10
- package/dist/commonjs/api/sitesBySubscription/operations.js.map +1 -1
- package/dist/commonjs/classic/sites/index.d.ts +1 -1
- package/dist/commonjs/classic/sites/index.js.map +1 -1
- package/dist/commonjs/classic/sitesByServiceGroup/index.d.ts +1 -1
- package/dist/commonjs/classic/sitesByServiceGroup/index.js.map +1 -1
- package/dist/commonjs/classic/sitesBySubscription/index.d.ts +1 -1
- package/dist/commonjs/classic/sitesBySubscription/index.js.map +1 -1
- package/dist/commonjs/edgeClient.d.ts +2 -2
- package/dist/commonjs/edgeClient.js +6 -6
- package/dist/commonjs/edgeClient.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +3 -9
- package/dist/commonjs/models/models.js +3 -9
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +3 -3
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +33 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +2 -1
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/edgeContext.d.ts +3 -0
- package/dist/esm/api/edgeContext.js +3 -2
- package/dist/esm/api/edgeContext.js.map +1 -1
- package/dist/esm/api/sites/operations.d.ts +1 -1
- package/dist/esm/api/sites/operations.js +4 -10
- package/dist/esm/api/sites/operations.js.map +1 -1
- package/dist/esm/api/sitesByServiceGroup/operations.d.ts +1 -1
- package/dist/esm/api/sitesByServiceGroup/operations.js +4 -10
- package/dist/esm/api/sitesByServiceGroup/operations.js.map +1 -1
- package/dist/esm/api/sitesBySubscription/operations.d.ts +1 -1
- package/dist/esm/api/sitesBySubscription/operations.js +4 -10
- package/dist/esm/api/sitesBySubscription/operations.js.map +1 -1
- package/dist/esm/classic/sites/index.d.ts +1 -1
- package/dist/esm/classic/sites/index.js.map +1 -1
- package/dist/esm/classic/sitesByServiceGroup/index.d.ts +1 -1
- package/dist/esm/classic/sitesByServiceGroup/index.js.map +1 -1
- package/dist/esm/classic/sitesBySubscription/index.d.ts +1 -1
- package/dist/esm/classic/sitesBySubscription/index.js.map +1 -1
- package/dist/esm/edgeClient.d.ts +2 -2
- package/dist/esm/edgeClient.js +1 -1
- package/dist/esm/edgeClient.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +3 -9
- package/dist/esm/models/models.js +3 -8
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +3 -3
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +2 -1
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/edgeContext.d.ts +3 -0
- package/dist/react-native/api/edgeContext.js +3 -2
- package/dist/react-native/api/edgeContext.js.map +1 -1
- package/dist/react-native/api/sites/operations.d.ts +1 -1
- package/dist/react-native/api/sites/operations.js +4 -10
- package/dist/react-native/api/sites/operations.js.map +1 -1
- package/dist/react-native/api/sitesByServiceGroup/operations.d.ts +1 -1
- package/dist/react-native/api/sitesByServiceGroup/operations.js +4 -10
- package/dist/react-native/api/sitesByServiceGroup/operations.js.map +1 -1
- package/dist/react-native/api/sitesBySubscription/operations.d.ts +1 -1
- package/dist/react-native/api/sitesBySubscription/operations.js +4 -10
- package/dist/react-native/api/sitesBySubscription/operations.js.map +1 -1
- package/dist/react-native/classic/sites/index.d.ts +1 -1
- package/dist/react-native/classic/sites/index.js.map +1 -1
- package/dist/react-native/classic/sitesByServiceGroup/index.d.ts +1 -1
- package/dist/react-native/classic/sitesByServiceGroup/index.js.map +1 -1
- package/dist/react-native/classic/sitesBySubscription/index.d.ts +1 -1
- package/dist/react-native/classic/sitesBySubscription/index.js.map +1 -1
- package/dist/react-native/edgeClient.d.ts +2 -2
- package/dist/react-native/edgeClient.js +1 -1
- package/dist/react-native/edgeClient.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.js +2 -0
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +3 -9
- package/dist/react-native/models/models.js +3 -8
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +3 -3
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +2 -1
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +40 -40
- package/CHANGELOG.md +0 -7
- package/dist/browser/api/edgeContext.d.ts.map +0 -1
- package/dist/browser/api/index.d.ts.map +0 -1
- package/dist/browser/api/sites/index.d.ts.map +0 -1
- package/dist/browser/api/sites/operations.d.ts.map +0 -1
- package/dist/browser/api/sites/options.d.ts.map +0 -1
- package/dist/browser/api/sitesByServiceGroup/index.d.ts.map +0 -1
- package/dist/browser/api/sitesByServiceGroup/operations.d.ts.map +0 -1
- package/dist/browser/api/sitesByServiceGroup/options.d.ts.map +0 -1
- package/dist/browser/api/sitesBySubscription/index.d.ts.map +0 -1
- package/dist/browser/api/sitesBySubscription/operations.d.ts.map +0 -1
- package/dist/browser/api/sitesBySubscription/options.d.ts.map +0 -1
- package/dist/browser/classic/index.d.ts.map +0 -1
- package/dist/browser/classic/sites/index.d.ts.map +0 -1
- package/dist/browser/classic/sitesByServiceGroup/index.d.ts.map +0 -1
- package/dist/browser/classic/sitesBySubscription/index.d.ts.map +0 -1
- package/dist/browser/edgeClient.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/logger.d.ts.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/models.d.ts.map +0 -1
- package/dist/browser/restorePollerHelpers.d.ts.map +0 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/commonjs/api/edgeContext.d.ts.map +0 -1
- package/dist/commonjs/api/index.d.ts.map +0 -1
- package/dist/commonjs/api/sites/index.d.ts.map +0 -1
- package/dist/commonjs/api/sites/operations.d.ts.map +0 -1
- package/dist/commonjs/api/sites/options.d.ts.map +0 -1
- package/dist/commonjs/api/sitesByServiceGroup/index.d.ts.map +0 -1
- package/dist/commonjs/api/sitesByServiceGroup/operations.d.ts.map +0 -1
- package/dist/commonjs/api/sitesByServiceGroup/options.d.ts.map +0 -1
- package/dist/commonjs/api/sitesBySubscription/index.d.ts.map +0 -1
- package/dist/commonjs/api/sitesBySubscription/operations.d.ts.map +0 -1
- package/dist/commonjs/api/sitesBySubscription/options.d.ts.map +0 -1
- package/dist/commonjs/classic/index.d.ts.map +0 -1
- package/dist/commonjs/classic/sites/index.d.ts.map +0 -1
- package/dist/commonjs/classic/sitesByServiceGroup/index.d.ts.map +0 -1
- package/dist/commonjs/classic/sitesBySubscription/index.d.ts.map +0 -1
- package/dist/commonjs/edgeClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/logger.d.ts.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/models.d.ts.map +0 -1
- package/dist/commonjs/restorePollerHelpers.d.ts.map +0 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/esm/api/edgeContext.d.ts.map +0 -1
- package/dist/esm/api/index.d.ts.map +0 -1
- package/dist/esm/api/sites/index.d.ts.map +0 -1
- package/dist/esm/api/sites/operations.d.ts.map +0 -1
- package/dist/esm/api/sites/options.d.ts.map +0 -1
- package/dist/esm/api/sitesByServiceGroup/index.d.ts.map +0 -1
- package/dist/esm/api/sitesByServiceGroup/operations.d.ts.map +0 -1
- package/dist/esm/api/sitesByServiceGroup/options.d.ts.map +0 -1
- package/dist/esm/api/sitesBySubscription/index.d.ts.map +0 -1
- package/dist/esm/api/sitesBySubscription/operations.d.ts.map +0 -1
- package/dist/esm/api/sitesBySubscription/options.d.ts.map +0 -1
- package/dist/esm/classic/index.d.ts.map +0 -1
- package/dist/esm/classic/sites/index.d.ts.map +0 -1
- package/dist/esm/classic/sitesByServiceGroup/index.d.ts.map +0 -1
- package/dist/esm/classic/sitesBySubscription/index.d.ts.map +0 -1
- package/dist/esm/edgeClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/logger.d.ts.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/models.d.ts.map +0 -1
- package/dist/esm/restorePollerHelpers.d.ts.map +0 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/react-native/api/edgeContext.d.ts.map +0 -1
- package/dist/react-native/api/index.d.ts.map +0 -1
- package/dist/react-native/api/sites/index.d.ts.map +0 -1
- package/dist/react-native/api/sites/operations.d.ts.map +0 -1
- package/dist/react-native/api/sites/options.d.ts.map +0 -1
- package/dist/react-native/api/sitesByServiceGroup/index.d.ts.map +0 -1
- package/dist/react-native/api/sitesByServiceGroup/operations.d.ts.map +0 -1
- package/dist/react-native/api/sitesByServiceGroup/options.d.ts.map +0 -1
- package/dist/react-native/api/sitesBySubscription/index.d.ts.map +0 -1
- package/dist/react-native/api/sitesBySubscription/operations.d.ts.map +0 -1
- package/dist/react-native/api/sitesBySubscription/options.d.ts.map +0 -1
- package/dist/react-native/classic/index.d.ts.map +0 -1
- package/dist/react-native/classic/sites/index.d.ts.map +0 -1
- package/dist/react-native/classic/sitesByServiceGroup/index.d.ts.map +0 -1
- package/dist/react-native/classic/sitesBySubscription/index.d.ts.map +0 -1
- package/dist/react-native/edgeClient.d.ts.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/logger.d.ts.map +0 -1
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/models.d.ts.map +0 -1
- package/dist/react-native/restorePollerHelpers.d.ts.map +0 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +0 -1
- package/review/arm-sitemanager-api-node.api.md +0 -27
- package/review/arm-sitemanager-api-sites-node.api.md +0 -50
- package/review/arm-sitemanager-api-sitesByServiceGroup-node.api.md +0 -50
- package/review/arm-sitemanager-api-sitesBySubscription-node.api.md +0 -50
- package/review/arm-sitemanager-models-node.api.md +0 -115
- package/review/arm-sitemanager-node.api.md +0 -255
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/sitesBySubscription/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EAEzB,oBAAoB,EAEpB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,QAAgB,EAChB,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2FAA2F,EAC3F;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QAC/B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,MAA6B;IACrE,MAAM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C;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,MAA6B;IAClE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,2BAA2B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext as Client } from \"../index.js\";\nimport {\n Site,\n siteSerializer,\n siteDeserializer,\n errorResponseDeserializer,\n SiteUpdate,\n siteUpdateSerializer,\n _SiteListResult,\n _siteListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _$deleteSend(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a Site */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, siteName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n siteName: string,\n properties: SiteUpdate,\n options: SitesBySubscriptionUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: siteUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Update a Site */\nexport async function update(\n context: Client,\n siteName: string,\n properties: SiteUpdate,\n options: SitesBySubscriptionUpdateOptionalParams = { requestOptions: {} },\n): Promise<Site> {\n const result = await _updateSend(context, siteName, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n siteName: string,\n resource: Site,\n options: SitesBySubscriptionCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: siteSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Create a Site */\nexport function createOrUpdate(\n context: Client,\n siteName: string,\n resource: Site,\n options: SitesBySubscriptionCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<Site>, Site> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createOrUpdateSend(context, siteName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Site>, Site>;\n}\n\nexport function _getSend(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Get a Site */\nexport async function get(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionGetOptionalParams = { requestOptions: {} },\n): Promise<Site> {\n const result = await _getSend(context, siteName, options);\n return _getDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n options: SitesBySubscriptionListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_SiteListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _siteListResultDeserializer(result.body);\n}\n\n/** List Site resources by subscription ID */\nexport function list(\n context: Client,\n options: SitesBySubscriptionListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Site> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/sitesBySubscription/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EAEzB,oBAAoB,EAEpB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAQxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,QAAgB,EAChB,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2FAA2F,EAC3F;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAA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EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext as Client } from \"../index.js\";\nimport {\n Site,\n siteSerializer,\n siteDeserializer,\n errorResponseDeserializer,\n SiteUpdate,\n siteUpdateSerializer,\n _SiteListResult,\n _siteListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _$deleteSend(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a Site */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, siteName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n siteName: string,\n properties: SiteUpdate,\n options: SitesBySubscriptionUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: siteUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Update a Site */\nexport async function update(\n context: Client,\n siteName: string,\n properties: SiteUpdate,\n options: SitesBySubscriptionUpdateOptionalParams = { requestOptions: {} },\n): Promise<Site> {\n const result = await _updateSend(context, siteName, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n siteName: string,\n resource: Site,\n options: SitesBySubscriptionCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: siteSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Create a Site */\nexport function createOrUpdate(\n context: Client,\n siteName: string,\n resource: Site,\n options: SitesBySubscriptionCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<Site>, Site> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createOrUpdateSend(context, siteName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Site>, Site>;\n}\n\nexport function _getSend(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Get a Site */\nexport async function get(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionGetOptionalParams = { requestOptions: {} },\n): Promise<Site> {\n const result = await _getSend(context, siteName, options);\n return _getDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n options: SitesBySubscriptionListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_SiteListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _siteListResultDeserializer(result.body);\n}\n\n/** List Site resources by subscription ID */\nexport function list(\n context: Client,\n options: SitesBySubscriptionListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Site> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EdgeContext } from "../../api/edgeContext.js";
|
|
2
|
-
import { Site, SiteUpdate } from "../../models/models.js";
|
|
3
2
|
import { SitesListByResourceGroupOptionalParams, SitesDeleteOptionalParams, SitesUpdateOptionalParams, SitesCreateOrUpdateOptionalParams, SitesGetOptionalParams } from "../../api/sites/options.js";
|
|
3
|
+
import { Site, SiteUpdate } from "../../models/models.js";
|
|
4
4
|
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
5
|
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
6
|
/** Interface representing a Sites operations. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sites/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sites/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,+BAA+B,CAAC;AAoDvC,SAAS,SAAS,CAAC,OAAoB;IACrC,OAAO;QACL,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAgD,EAChD,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CAAC,iBAAyB,EAAE,QAAgB,EAAE,OAAmC,EAAE,EAAE,CAC3F,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACxD,MAAM,EAAE,CACN,iBAAyB,EACzB,QAAgB,EAChB,UAAsB,EACtB,OAAmC,EACnC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACtE,cAAc,EAAE,CACd,iBAAyB,EACzB,QAAgB,EAChB,QAAc,EACd,OAA2C,EAC3C,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC5E,GAAG,EAAE,CAAC,iBAAyB,EAAE,QAAgB,EAAE,OAAgC,EAAE,EAAE,CACrF,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC;KACrD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAoB;IACtD,OAAO;QACL,GAAG,SAAS,CAAC,OAAO,CAAC;KACtB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport {\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/sites/operations.js\";\nimport {\n SitesListByResourceGroupOptionalParams,\n SitesDeleteOptionalParams,\n SitesUpdateOptionalParams,\n SitesCreateOrUpdateOptionalParams,\n SitesGetOptionalParams,\n} from \"../../api/sites/options.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Sites operations. */\nexport interface SitesOperations {\n /** List Site resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: SitesListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Site>;\n /** Delete a Site */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n resourceGroupName: string,\n siteName: string,\n options?: SitesDeleteOptionalParams,\n ) => Promise<void>;\n /** Update a Site */\n update: (\n resourceGroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesUpdateOptionalParams,\n ) => Promise<Site>;\n /** Create a Site */\n createOrUpdate: (\n resourceGroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get a Site */\n get: (\n resourceGroupName: string,\n siteName: string,\n options?: SitesGetOptionalParams,\n ) => Promise<Site>;\n}\n\nfunction _getSites(context: EdgeContext) {\n return {\n listByResourceGroup: (\n resourceGroupName: string,\n options?: SitesListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (resourceGroupName: string, siteName: string, options?: SitesDeleteOptionalParams) =>\n $delete(context, resourceGroupName, siteName, options),\n update: (\n resourceGroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesUpdateOptionalParams,\n ) => update(context, resourceGroupName, siteName, properties, options),\n createOrUpdate: (\n resourceGroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resourceGroupName, siteName, resource, options),\n get: (resourceGroupName: string, siteName: string, options?: SitesGetOptionalParams) =>\n get(context, resourceGroupName, siteName, options),\n };\n}\n\nexport function _getSitesOperations(context: EdgeContext): SitesOperations {\n return {\n ..._getSites(context),\n };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EdgeContext } from "../../api/edgeContext.js";
|
|
2
|
-
import { Site, SiteUpdate } from "../../models/models.js";
|
|
3
2
|
import { SitesByServiceGroupDeleteOptionalParams, SitesByServiceGroupUpdateOptionalParams, SitesByServiceGroupCreateOrUpdateOptionalParams, SitesByServiceGroupGetOptionalParams, SitesByServiceGroupListByServiceGroupOptionalParams } from "../../api/sitesByServiceGroup/options.js";
|
|
3
|
+
import { Site, SiteUpdate } from "../../models/models.js";
|
|
4
4
|
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
5
|
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
6
|
/** Interface representing a SitesByServiceGroup operations. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sitesByServiceGroup/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sitesByServiceGroup/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,EACH,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AAoDrD,SAAS,uBAAuB,CAAC,OAAoB;IACnD,OAAO;QACL,MAAM,EAAE,CACN,gBAAwB,EACxB,QAAgB,EAChB,OAAiD,EACjD,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC1D,MAAM,EAAE,CACN,gBAAwB,EACxB,QAAgB,EAChB,UAAsB,EACtB,OAAiD,EACjD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACrE,cAAc,EAAE,CACd,gBAAwB,EACxB,QAAgB,EAChB,QAAc,EACd,OAAyD,EACzD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC3E,GAAG,EAAE,CACH,gBAAwB,EACxB,QAAgB,EAChB,OAA8C,EAC9C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACtD,kBAAkB,EAAE,CAClB,gBAAwB,EACxB,OAA6D,EAC7D,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC;KAC5D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAAoB;IAEpB,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport {\n $delete,\n update,\n createOrUpdate,\n get,\n listByServiceGroup,\n} from \"../../api/sitesByServiceGroup/operations.js\";\nimport {\n SitesByServiceGroupDeleteOptionalParams,\n SitesByServiceGroupUpdateOptionalParams,\n SitesByServiceGroupCreateOrUpdateOptionalParams,\n SitesByServiceGroupGetOptionalParams,\n SitesByServiceGroupListByServiceGroupOptionalParams,\n} from \"../../api/sitesByServiceGroup/options.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a SitesByServiceGroup operations. */\nexport interface SitesByServiceGroupOperations {\n /** delete Site at SG scope */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupDeleteOptionalParams,\n ) => Promise<void>;\n /** update Site at SG scope */\n update: (\n servicegroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesByServiceGroupUpdateOptionalParams,\n ) => Promise<Site>;\n /** create or update Site at SG scope */\n createOrUpdate: (\n servicegroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesByServiceGroupCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get Site at SG scope */\n get: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupGetOptionalParams,\n ) => Promise<Site>;\n /** list Site at SG scope */\n listByServiceGroup: (\n servicegroupName: string,\n options?: SitesByServiceGroupListByServiceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Site>;\n}\n\nfunction _getSitesByServiceGroup(context: EdgeContext) {\n return {\n delete: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupDeleteOptionalParams,\n ) => $delete(context, servicegroupName, siteName, options),\n update: (\n servicegroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesByServiceGroupUpdateOptionalParams,\n ) => update(context, servicegroupName, siteName, properties, options),\n createOrUpdate: (\n servicegroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesByServiceGroupCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, servicegroupName, siteName, resource, options),\n get: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupGetOptionalParams,\n ) => get(context, servicegroupName, siteName, options),\n listByServiceGroup: (\n servicegroupName: string,\n options?: SitesByServiceGroupListByServiceGroupOptionalParams,\n ) => listByServiceGroup(context, servicegroupName, options),\n };\n}\n\nexport function _getSitesByServiceGroupOperations(\n context: EdgeContext,\n): SitesByServiceGroupOperations {\n return {\n ..._getSitesByServiceGroup(context),\n };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EdgeContext } from "../../api/edgeContext.js";
|
|
2
|
-
import { Site, SiteUpdate } from "../../models/models.js";
|
|
3
2
|
import { SitesBySubscriptionDeleteOptionalParams, SitesBySubscriptionUpdateOptionalParams, SitesBySubscriptionCreateOrUpdateOptionalParams, SitesBySubscriptionGetOptionalParams, SitesBySubscriptionListOptionalParams } from "../../api/sitesBySubscription/options.js";
|
|
3
|
+
import { Site, SiteUpdate } from "../../models/models.js";
|
|
4
4
|
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
5
|
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
6
|
/** Interface representing a SitesBySubscription operations. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sitesBySubscription/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sitesBySubscription/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,EACH,IAAI,GACL,MAAM,6CAA6C,CAAC;AAuCrD,SAAS,uBAAuB,CAAC,OAAoB;IACnD,OAAO;QACL,MAAM,EAAE,CAAC,QAAgB,EAAE,OAAiD,EAAE,EAAE,CAC9E,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACrC,MAAM,EAAE,CACN,QAAgB,EAChB,UAAsB,EACtB,OAAiD,EACjD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACnD,cAAc,EAAE,CACd,QAAgB,EAChB,QAAc,EACd,OAAyD,EACzD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QACzD,GAAG,EAAE,CAAC,QAAgB,EAAE,OAA8C,EAAE,EAAE,CACxE,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACjC,IAAI,EAAE,CAAC,OAA+C,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KAClF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAAoB;IAEpB,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport {\n $delete,\n update,\n createOrUpdate,\n get,\n list,\n} from \"../../api/sitesBySubscription/operations.js\";\nimport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"../../api/sitesBySubscription/options.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a SitesBySubscription operations. */\nexport interface SitesBySubscriptionOperations {\n /** Delete a Site */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (siteName: string, options?: SitesBySubscriptionDeleteOptionalParams) => Promise<void>;\n /** Update a Site */\n update: (\n siteName: string,\n properties: SiteUpdate,\n options?: SitesBySubscriptionUpdateOptionalParams,\n ) => Promise<Site>;\n /** Create a Site */\n createOrUpdate: (\n siteName: string,\n resource: Site,\n options?: SitesBySubscriptionCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get a Site */\n get: (siteName: string, options?: SitesBySubscriptionGetOptionalParams) => Promise<Site>;\n /** List Site resources by subscription ID */\n list: (options?: SitesBySubscriptionListOptionalParams) => PagedAsyncIterableIterator<Site>;\n}\n\nfunction _getSitesBySubscription(context: EdgeContext) {\n return {\n delete: (siteName: string, options?: SitesBySubscriptionDeleteOptionalParams) =>\n $delete(context, siteName, options),\n update: (\n siteName: string,\n properties: SiteUpdate,\n options?: SitesBySubscriptionUpdateOptionalParams,\n ) => update(context, siteName, properties, options),\n createOrUpdate: (\n siteName: string,\n resource: Site,\n options?: SitesBySubscriptionCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, siteName, resource, options),\n get: (siteName: string, options?: SitesBySubscriptionGetOptionalParams) =>\n get(context, siteName, options),\n list: (options?: SitesBySubscriptionListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getSitesBySubscriptionOperations(\n context: EdgeContext,\n): SitesBySubscriptionOperations {\n return {\n ..._getSitesBySubscription(context),\n };\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EdgeClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import { SitesOperations } from "./classic/sites/index.js";
|
|
2
3
|
import { SitesByServiceGroupOperations } from "./classic/sitesByServiceGroup/index.js";
|
|
3
4
|
import { SitesBySubscriptionOperations } from "./classic/sitesBySubscription/index.js";
|
|
4
|
-
import { SitesOperations } from "./classic/sites/index.js";
|
|
5
|
-
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
6
5
|
import { TokenCredential } from "@azure/core-auth";
|
|
6
|
+
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
7
7
|
export { EdgeClientOptionalParams } from "./api/edgeContext.js";
|
|
8
8
|
export declare class EdgeClient {
|
|
9
9
|
private _client;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { createEdge } from "./api/index.js";
|
|
4
|
+
import { _getSitesOperations } from "./classic/sites/index.js";
|
|
4
5
|
import { _getSitesByServiceGroupOperations, } from "./classic/sitesByServiceGroup/index.js";
|
|
5
6
|
import { _getSitesBySubscriptionOperations, } from "./classic/sitesBySubscription/index.js";
|
|
6
|
-
import { _getSitesOperations } from "./classic/sites/index.js";
|
|
7
7
|
export class EdgeClient {
|
|
8
8
|
_client;
|
|
9
9
|
/** The pipeline used by this client to make requests */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edgeClient.js","sourceRoot":"","sources":["../../src/edgeClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAyC,MAAM,gBAAgB,CAAC;AACnF,OAAO,
|
|
1
|
+
{"version":3,"file":"edgeClient.js","sourceRoot":"","sources":["../../src/edgeClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAyC,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAAmB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAEL,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAMhD,MAAM,OAAO,UAAU;IACb,OAAO,CAAc;IAC7B,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,yDAAyD;IACzD,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAoC,EAAE;QAEtC,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,UAAU,EAAE,cAAc,EAAE;YACpD,GAAG,OAAO;YACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;SACtC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,mBAAmB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,mBAAmB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,KAAK,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,mDAAmD;IACnC,mBAAmB,CAAgC;IACnE,mDAAmD;IACnC,mBAAmB,CAAgC;IACnE,qCAAqC;IACrB,KAAK,CAAkB;CACxC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createEdge, EdgeContext, EdgeClientOptionalParams } from \"./api/index.js\";\nimport { SitesOperations, _getSitesOperations } from \"./classic/sites/index.js\";\nimport {\n SitesByServiceGroupOperations,\n _getSitesByServiceGroupOperations,\n} from \"./classic/sitesByServiceGroup/index.js\";\nimport {\n SitesBySubscriptionOperations,\n _getSitesBySubscriptionOperations,\n} from \"./classic/sitesBySubscription/index.js\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport { EdgeClientOptionalParams } from \"./api/edgeContext.js\";\n\nexport class EdgeClient {\n private _client: EdgeContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** Azure Edge Sites Resource Provider management API. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: EdgeClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createEdge(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.sitesByServiceGroup = _getSitesByServiceGroupOperations(this._client);\n this.sitesBySubscription = _getSitesBySubscriptionOperations(this._client);\n this.sites = _getSitesOperations(this._client);\n }\n\n /** The operation groups for sitesByServiceGroup */\n public readonly sitesByServiceGroup: SitesByServiceGroupOperations;\n /** The operation groups for sitesBySubscription */\n public readonly sitesBySubscription: SitesBySubscriptionOperations;\n /** The operation groups for sites */\n public readonly sites: SitesOperations;\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AzureClouds, AzureSupportedClouds } from "./static-helpers/cloudSettingHelpers.js";
|
|
1
2
|
import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
|
2
3
|
export { EdgeClient } from "./edgeClient.js";
|
|
3
4
|
export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js";
|
|
@@ -8,4 +9,5 @@ export { SitesByServiceGroupDeleteOptionalParams, SitesByServiceGroupUpdateOptio
|
|
|
8
9
|
export { SitesBySubscriptionDeleteOptionalParams, SitesBySubscriptionUpdateOptionalParams, SitesBySubscriptionCreateOrUpdateOptionalParams, SitesBySubscriptionGetOptionalParams, SitesBySubscriptionListOptionalParams, } from "./api/sitesBySubscription/index.js";
|
|
9
10
|
export { SitesOperations, SitesByServiceGroupOperations, SitesBySubscriptionOperations, } from "./classic/index.js";
|
|
10
11
|
export { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
|
|
12
|
+
export { AzureClouds, AzureSupportedClouds };
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
+
import { AzureClouds } from "./static-helpers/cloudSettingHelpers.js";
|
|
3
4
|
export { EdgeClient } from "./edgeClient.js";
|
|
4
5
|
export { restorePoller } from "./restorePollerHelpers.js";
|
|
5
6
|
export { KnownResourceProvisioningState, KnownCreatedByType, KnownVersions, } from "./models/index.js";
|
|
7
|
+
export { AzureClouds };
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,WAAW,EAAwB,MAAM,yCAAyC,CAAC;AAO5F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAwB,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAIL,8BAA8B,EAK9B,kBAAkB,EAOlB,aAAa,GACd,MAAM,mBAAmB,CAAC;AA6B3B,OAAO,EAAE,WAAW,EAAwB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureClouds, AzureSupportedClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { EdgeClient } from \"./edgeClient.js\";\nexport { restorePoller, RestorePollerOptions } from \"./restorePollerHelpers.js\";\nexport {\n Site,\n SiteProperties,\n SiteAddressProperties,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n ProxyResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n SiteUpdate,\n SiteUpdateProperties,\n KnownVersions,\n} from \"./models/index.js\";\nexport { EdgeClientOptionalParams } from \"./api/index.js\";\nexport {\n SitesListByResourceGroupOptionalParams,\n SitesDeleteOptionalParams,\n SitesUpdateOptionalParams,\n SitesCreateOrUpdateOptionalParams,\n SitesGetOptionalParams,\n} from \"./api/sites/index.js\";\nexport {\n SitesByServiceGroupDeleteOptionalParams,\n SitesByServiceGroupUpdateOptionalParams,\n SitesByServiceGroupCreateOrUpdateOptionalParams,\n SitesByServiceGroupGetOptionalParams,\n SitesByServiceGroupListByServiceGroupOptionalParams,\n} from \"./api/sitesByServiceGroup/index.js\";\nexport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"./api/sitesBySubscription/index.js\";\nexport {\n SitesOperations,\n SitesByServiceGroupOperations,\n SitesBySubscriptionOperations,\n} from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { AzureClouds, AzureSupportedClouds };\n"]}
|
|
@@ -139,13 +139,9 @@ export interface ErrorAdditionalInfo {
|
|
|
139
139
|
/** The additional info type. */
|
|
140
140
|
readonly type?: string;
|
|
141
141
|
/** The additional info. */
|
|
142
|
-
readonly info?:
|
|
142
|
+
readonly info?: any;
|
|
143
143
|
}
|
|
144
144
|
export declare function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo;
|
|
145
|
-
/** model interface _ErrorAdditionalInfoInfo */
|
|
146
|
-
export interface _ErrorAdditionalInfoInfo {
|
|
147
|
-
}
|
|
148
|
-
export declare function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo;
|
|
149
145
|
/** The type used for update operations of the Site. */
|
|
150
146
|
export interface SiteUpdate {
|
|
151
147
|
/** The updatable properties of the Site. */
|
|
@@ -176,9 +172,7 @@ export declare function siteArraySerializer(result: Array<Site>): any[];
|
|
|
176
172
|
export declare function siteArrayDeserializer(result: Array<Site>): any[];
|
|
177
173
|
/** Supported API Versions */
|
|
178
174
|
export declare enum KnownVersions {
|
|
179
|
-
/** API Version -
|
|
180
|
-
|
|
181
|
-
/** API Version - 2025-03-01-preview */
|
|
182
|
-
V20250301Preview = "2025-03-01-preview"
|
|
175
|
+
/** API Version - 2025-06-01 */
|
|
176
|
+
V20250601 = "2025-06-01"
|
|
183
177
|
}
|
|
184
178
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -150,12 +150,9 @@ export function errorAdditionalInfoArrayDeserializer(result) {
|
|
|
150
150
|
export function errorAdditionalInfoDeserializer(item) {
|
|
151
151
|
return {
|
|
152
152
|
type: item["type"],
|
|
153
|
-
info:
|
|
153
|
+
info: item["info"],
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
export function _errorAdditionalInfoInfoDeserializer(item) {
|
|
157
|
-
return item;
|
|
158
|
-
}
|
|
159
156
|
export function siteUpdateSerializer(item) {
|
|
160
157
|
return {
|
|
161
158
|
properties: !item["properties"]
|
|
@@ -192,9 +189,7 @@ export function siteArrayDeserializer(result) {
|
|
|
192
189
|
/** Supported API Versions */
|
|
193
190
|
export var KnownVersions;
|
|
194
191
|
(function (KnownVersions) {
|
|
195
|
-
/** API Version -
|
|
196
|
-
KnownVersions["
|
|
197
|
-
/** API Version - 2025-03-01-preview */
|
|
198
|
-
KnownVersions["V20250301Preview"] = "2025-03-01-preview";
|
|
192
|
+
/** API Version - 2025-06-01 */
|
|
193
|
+
KnownVersions["V20250601"] = "2025-06-01";
|
|
199
194
|
})(KnownVersions || (KnownVersions = {}));
|
|
200
195
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,cAAc,CAAC,IAAU;IACvC,OAAO;QACL,UAAU,EAAE,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IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAAmB;IACrD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAmB;IACvD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,6BAA6B;AAC7B,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uCAAuC;IACvC,wDAAuC,CAAA;IACvC,uCAAuC;IACvC,wDAAuC,CAAA;AACzC,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Site as ARM Resource */\nexport interface Site extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SiteProperties;\n}\n\nexport function siteSerializer(item: Site): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function siteDeserializer(item: any): Site {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Site properties */\nexport interface SiteProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n /** Provisioning state of last operation */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sitePropertiesSerializer(item: SiteProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\nexport function sitePropertiesDeserializer(item: any): SiteProperties {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesDeserializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Site address properties */\nexport interface SiteAddressProperties {\n /** First line of the street address */\n streetAddress1?: string;\n /** Second line of the street address */\n streetAddress2?: string;\n /** City of the address */\n city?: string;\n /** State or province of the address */\n stateOrProvince?: string;\n /** Country of the address */\n country?: string;\n /** Postal or ZIP code of the address */\n postalCode?: string;\n}\n\nexport function siteAddressPropertiesSerializer(item: SiteAddressProperties): any {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\nexport function siteAddressPropertiesDeserializer(item: any): SiteAddressProperties {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\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?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\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?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The type used for update operations of the Site. */\nexport interface SiteUpdate {\n /** The updatable properties of the Site. */\n properties?: SiteUpdateProperties;\n}\n\nexport function siteUpdateSerializer(item: SiteUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : siteUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the Site. */\nexport interface SiteUpdateProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n}\n\nexport function siteUpdatePropertiesSerializer(item: SiteUpdateProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\n/** The response of a Site list operation. */\nexport interface _SiteListResult {\n /** The Site items on this page */\n value: Site[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _siteListResultDeserializer(item: any): _SiteListResult {\n return {\n value: siteArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function siteArraySerializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteSerializer(item);\n });\n}\n\nexport function siteArrayDeserializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteDeserializer(item);\n });\n}\n\n/** Supported API Versions */\nexport enum KnownVersions {\n /** API Version - 2024-02-01-preview */\n V20240201Preview = \"2024-02-01-preview\",\n /** API Version - 2025-03-01-preview */\n V20250301Preview = \"2025-03-01-preview\",\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,cAAc,CAAC,IAAU;IACvC,OAAO;QACL,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACjD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACxC,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACnD,CAAC;AACJ,CAAC;AAgBD,MAAM,UAAU,wBAAwB,CAAC,IAAoB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AAE,CAAC,IAAI,CAAC,aAAa,CAAC;YAC/B,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;YACrB,CAAC,CAAC,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACxD,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;KACvB,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACnD,OAAO;QACL,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3C,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAAmB;IACrD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAmB;IACvD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,6BAA6B;AAC7B,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,+BAA+B;IAC/B,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Site as ARM Resource */\nexport interface Site extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SiteProperties;\n}\n\nexport function siteSerializer(item: Site): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function siteDeserializer(item: any): Site {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Site properties */\nexport interface SiteProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n /** Provisioning state of last operation */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sitePropertiesSerializer(item: SiteProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\nexport function sitePropertiesDeserializer(item: any): SiteProperties {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesDeserializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Site address properties */\nexport interface SiteAddressProperties {\n /** First line of the street address */\n streetAddress1?: string;\n /** Second line of the street address */\n streetAddress2?: string;\n /** City of the address */\n city?: string;\n /** State or province of the address */\n stateOrProvince?: string;\n /** Country of the address */\n country?: string;\n /** Postal or ZIP code of the address */\n postalCode?: string;\n}\n\nexport function siteAddressPropertiesSerializer(item: SiteAddressProperties): any {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\nexport function siteAddressPropertiesDeserializer(item: any): SiteAddressProperties {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\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?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\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?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The type used for update operations of the Site. */\nexport interface SiteUpdate {\n /** The updatable properties of the Site. */\n properties?: SiteUpdateProperties;\n}\n\nexport function siteUpdateSerializer(item: SiteUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : siteUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the Site. */\nexport interface SiteUpdateProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n}\n\nexport function siteUpdatePropertiesSerializer(item: SiteUpdateProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\n/** The response of a Site list operation. */\nexport interface _SiteListResult {\n /** The Site items on this page */\n value: Site[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _siteListResultDeserializer(item: any): _SiteListResult {\n return {\n value: siteArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function siteArraySerializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteSerializer(item);\n });\n}\n\nexport function siteArrayDeserializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteDeserializer(item);\n });\n}\n\n/** Supported API Versions */\nexport enum KnownVersions {\n /** API Version - 2025-06-01 */\n V20250601 = \"2025-06-01\",\n}\n"]}
|
|
@@ -33,15 +33,15 @@ export function restorePoller(client, serializedState, sourceOperation, options)
|
|
|
33
33
|
const deserializeMap = {
|
|
34
34
|
"PUT /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}": {
|
|
35
35
|
deserializer: _createOrUpdateDeserialize,
|
|
36
|
-
expectedStatuses: ["200", "201"],
|
|
36
|
+
expectedStatuses: ["200", "201", "202"],
|
|
37
37
|
},
|
|
38
38
|
"PUT /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}": {
|
|
39
39
|
deserializer: _createOrUpdateDeserializeSitesBySubscription,
|
|
40
|
-
expectedStatuses: ["200", "201"],
|
|
40
|
+
expectedStatuses: ["200", "201", "202"],
|
|
41
41
|
},
|
|
42
42
|
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/sites/{siteName}": {
|
|
43
43
|
deserializer: _createOrUpdateDeserializeSites,
|
|
44
|
-
expectedStatuses: ["200", "201"],
|
|
44
|
+
expectedStatuses: ["200", "201", "202"],
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
function getDeserializationHelper(urlStr, method) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["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AC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeClient } from \"./edgeClient.js\";\nimport { _createOrUpdateDeserialize } from \"./api/sitesByServiceGroup/operations.js\";\nimport { _createOrUpdateDeserialize as _createOrUpdateDeserializeSitesBySubscription } from \"./api/sitesBySubscription/operations.js\";\nimport { _createOrUpdateDeserialize as _createOrUpdateDeserializeSites } from \"./api/sites/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: EdgeClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"PUT /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}\": {\n deserializer: _createOrUpdateDeserializeSitesBySubscription,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/sites/{siteName}\":\n {\n deserializer: _createOrUpdateDeserializeSites,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** An enum to describe Azure Cloud. */
|
|
2
|
+
export declare enum AzureClouds {
|
|
3
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
4
|
+
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
5
|
+
/** Azure China cloud */
|
|
6
|
+
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
7
|
+
/** Azure US government cloud */
|
|
8
|
+
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
9
|
+
}
|
|
10
|
+
/** The supported values for cloud setting as a string literal type */
|
|
11
|
+
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
12
|
+
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
13
|
+
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/** An enum to describe Azure Cloud. */
|
|
4
|
+
export var AzureClouds;
|
|
5
|
+
(function (AzureClouds) {
|
|
6
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
7
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
8
|
+
/** Azure China cloud */
|
|
9
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
10
|
+
/** Azure US government cloud */
|
|
11
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
12
|
+
})(AzureClouds || (AzureClouds = {}));
|
|
13
|
+
export function getArmEndpoint(cloudSetting) {
|
|
14
|
+
if (cloudSetting === undefined) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
const cloudEndpoints = {
|
|
18
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
19
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
20
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
21
|
+
};
|
|
22
|
+
if (cloudSetting in cloudEndpoints) {
|
|
23
|
+
return cloudEndpoints[cloudSetting];
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=cloudSettingHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,uCAAuC;AACvC,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** An enum to describe Azure Cloud. */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
|
|
@@ -142,7 +142,8 @@ export function expandUrlTemplate(template, context, option) {
|
|
|
142
142
|
}
|
|
143
143
|
let op;
|
|
144
144
|
if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
|
|
145
|
-
|
|
145
|
+
op = expr[0];
|
|
146
|
+
expr = expr.slice(1);
|
|
146
147
|
}
|
|
147
148
|
const varList = expr.split(/,/g);
|
|
148
149
|
const result = [];
|