@azure/arm-azurestack 3.0.0-alpha.20250718.1 → 3.0.0-alpha.20250730.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/dist/browser/azureStackManagementClient.js +19 -5
- package/dist/browser/azureStackManagementClient.js.map +1 -1
- package/dist/browser/models/mappers.js +83 -38
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/cloudManifestFile.js +1 -0
- package/dist/browser/operations/cloudManifestFile.js.map +1 -1
- package/dist/browser/operations/customerSubscriptions.js +23 -40
- package/dist/browser/operations/customerSubscriptions.js.map +1 -1
- package/dist/browser/operations/linkedSubscriptions.js +45 -79
- package/dist/browser/operations/linkedSubscriptions.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/products.js +23 -40
- package/dist/browser/operations/products.js.map +1 -1
- package/dist/browser/operations/registrations.js +45 -79
- package/dist/browser/operations/registrations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureStackManagementClient.js +19 -5
- package/dist/commonjs/azureStackManagementClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +83 -38
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/cloudManifestFile.js +1 -0
- package/dist/commonjs/operations/cloudManifestFile.js.map +1 -1
- package/dist/commonjs/operations/customerSubscriptions.js +23 -39
- package/dist/commonjs/operations/customerSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/linkedSubscriptions.js +45 -78
- package/dist/commonjs/operations/linkedSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/products.js +23 -39
- package/dist/commonjs/operations/products.js.map +1 -1
- package/dist/commonjs/operations/registrations.js +45 -78
- package/dist/commonjs/operations/registrations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/azureStackManagementClient.js +19 -5
- package/dist/esm/azureStackManagementClient.js.map +1 -1
- package/dist/esm/models/mappers.js +83 -38
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/cloudManifestFile.js +1 -0
- package/dist/esm/operations/cloudManifestFile.js.map +1 -1
- package/dist/esm/operations/customerSubscriptions.js +23 -40
- package/dist/esm/operations/customerSubscriptions.js.map +1 -1
- package/dist/esm/operations/linkedSubscriptions.js +45 -79
- package/dist/esm/operations/linkedSubscriptions.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/products.js +23 -40
- package/dist/esm/operations/products.js.map +1 -1
- package/dist/esm/operations/registrations.js +45 -79
- package/dist/esm/operations/registrations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureStackManagementClient.js +19 -5
- package/dist/react-native/azureStackManagementClient.js.map +1 -1
- package/dist/react-native/models/mappers.js +83 -38
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/cloudManifestFile.js +1 -0
- package/dist/react-native/operations/cloudManifestFile.js.map +1 -1
- package/dist/react-native/operations/customerSubscriptions.js +23 -40
- package/dist/react-native/operations/customerSubscriptions.js.map +1 -1
- package/dist/react-native/operations/linkedSubscriptions.js +45 -79
- package/dist/react-native/operations/linkedSubscriptions.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/products.js +23 -40
- package/dist/react-native/operations/products.js.map +1 -1
- package/dist/react-native/operations/registrations.js +45 -79
- package/dist/react-native/operations/registrations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-azurestack-node.api.md +675 -675
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registrations.js","sourceRoot":"","sources":["../../../src/operations/registrations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAyBtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,aAAqB,EACrB,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACxD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,aAAqB,EACrB,OAAyC,EACzC,QAAuB;;YAEvB,IAAI,MAAiC,CAAC;YACtC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YAC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AAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Registrations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureStackManagementClient } from \"../azureStackManagementClient.js\";\nimport {\n Registration,\n RegistrationsListNextOptionalParams,\n RegistrationsListOptionalParams,\n RegistrationsListResponse,\n RegistrationsListBySubscriptionNextOptionalParams,\n RegistrationsListBySubscriptionOptionalParams,\n RegistrationsListBySubscriptionResponse,\n RegistrationsGetOptionalParams,\n RegistrationsGetResponse,\n RegistrationsDeleteOptionalParams,\n RegistrationParameter,\n RegistrationsCreateOrUpdateOptionalParams,\n RegistrationsCreateOrUpdateResponse,\n RegistrationsUpdateOptionalParams,\n RegistrationsUpdateResponse,\n RegistrationsGetActivationKeyOptionalParams,\n RegistrationsGetActivationKeyResponse,\n RegistrationsEnableRemoteManagementOptionalParams,\n RegistrationsListNextResponse,\n RegistrationsListBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Registrations operations. */\nexport class RegistrationsImpl implements Registrations {\n private readonly client: AzureStackManagementClient;\n\n /**\n * Initialize a new instance of the class Registrations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureStackManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of all registrations.\n * @param resourceGroup Name of the resource group.\n * @param options The options parameters.\n */\n public list(\n resourceGroup: string,\n options?: RegistrationsListOptionalParams\n ): PagedAsyncIterableIterator<Registration> {\n const iter = this.listPagingAll(resourceGroup, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroup, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroup: string,\n options?: RegistrationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Registration[]> {\n let result: RegistrationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroup, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(resourceGroup, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroup: string,\n options?: RegistrationsListOptionalParams\n ): AsyncIterableIterator<Registration> {\n for await (const page of this.listPagingPage(resourceGroup, options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all registrations under current subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: RegistrationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Registration> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: RegistrationsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Registration[]> {\n let result: RegistrationsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: RegistrationsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<Registration> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all registrations.\n * @param resourceGroup Name of the resource group.\n * @param options The options parameters.\n */\n private _list(\n resourceGroup: string,\n options?: RegistrationsListOptionalParams\n ): Promise<RegistrationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, options },\n listOperationSpec\n );\n }\n\n /**\n * Returns a list of all registrations under current subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: RegistrationsListBySubscriptionOptionalParams\n ): Promise<RegistrationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns the properties of an Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n get(\n resourceGroup: string,\n registrationName: string,\n options?: RegistrationsGetOptionalParams\n ): Promise<RegistrationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete the requested Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n delete(\n resourceGroup: string,\n registrationName: string,\n options?: RegistrationsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Create or update an Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param token Registration token\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroup: string,\n registrationName: string,\n token: RegistrationParameter,\n options?: RegistrationsCreateOrUpdateOptionalParams\n ): Promise<RegistrationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, token, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Patch an Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param token Registration token\n * @param options The options parameters.\n */\n update(\n resourceGroup: string,\n registrationName: string,\n token: RegistrationParameter,\n options?: RegistrationsUpdateOptionalParams\n ): Promise<RegistrationsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, token, options },\n updateOperationSpec\n );\n }\n\n /**\n * Returns Azure Stack Activation Key.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n getActivationKey(\n resourceGroup: string,\n registrationName: string,\n options?: RegistrationsGetActivationKeyOptionalParams\n ): Promise<RegistrationsGetActivationKeyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n getActivationKeyOperationSpec\n );\n }\n\n /**\n * Enables remote management for device under the Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n enableRemoteManagement(\n resourceGroup: string,\n registrationName: string,\n options?: RegistrationsEnableRemoteManagementOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n enableRemoteManagementOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroup Name of the resource group.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroup: string,\n nextLink: string,\n options?: RegistrationsListNextOptionalParams\n ): Promise<RegistrationsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: RegistrationsListBySubscriptionNextOptionalParams\n ): Promise<RegistrationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Registration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Registration\n },\n 201: {\n bodyMapper: Mappers.Registration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.token,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Registration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.token,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getActivationKeyOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ActivationKeyResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst enableRemoteManagementOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/enableRemoteManagement\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroup\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"registrations.js","sourceRoot":"","sources":["../../../src/operations/registrations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAyBtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IACX,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,aAAqB,EACrB,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACxD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,C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,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Registrations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureStackManagementClient } from \"../azureStackManagementClient.js\";\nimport {\n Registration,\n RegistrationsListNextOptionalParams,\n RegistrationsListOptionalParams,\n RegistrationsListResponse,\n RegistrationsListBySubscriptionNextOptionalParams,\n RegistrationsListBySubscriptionOptionalParams,\n RegistrationsListBySubscriptionResponse,\n RegistrationsGetOptionalParams,\n RegistrationsGetResponse,\n RegistrationsDeleteOptionalParams,\n RegistrationParameter,\n RegistrationsCreateOrUpdateOptionalParams,\n RegistrationsCreateOrUpdateResponse,\n RegistrationsUpdateOptionalParams,\n RegistrationsUpdateResponse,\n RegistrationsGetActivationKeyOptionalParams,\n RegistrationsGetActivationKeyResponse,\n RegistrationsEnableRemoteManagementOptionalParams,\n RegistrationsListNextResponse,\n RegistrationsListBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Registrations operations. */\nexport class RegistrationsImpl implements Registrations {\n private readonly client: AzureStackManagementClient;\n\n /**\n * Initialize a new instance of the class Registrations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureStackManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of all registrations.\n * @param resourceGroup Name of the resource group.\n * @param options The options parameters.\n */\n public list(\n resourceGroup: string,\n options?: RegistrationsListOptionalParams\n ): PagedAsyncIterableIterator<Registration> {\n const iter = this.listPagingAll(resourceGroup, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroup, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroup: string,\n options?: RegistrationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Registration[]> {\n let result: RegistrationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroup, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(resourceGroup, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroup: string,\n options?: RegistrationsListOptionalParams\n ): AsyncIterableIterator<Registration> {\n for await (const page of this.listPagingPage(resourceGroup, options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all registrations under current subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: RegistrationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Registration> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: RegistrationsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Registration[]> {\n let result: RegistrationsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: RegistrationsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<Registration> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all registrations.\n * @param resourceGroup Name of the resource group.\n * @param options The options parameters.\n */\n private _list(\n resourceGroup: string,\n options?: RegistrationsListOptionalParams\n ): Promise<RegistrationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, options },\n listOperationSpec\n );\n }\n\n /**\n * Returns a list of all registrations under current subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: RegistrationsListBySubscriptionOptionalParams\n ): Promise<RegistrationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns the properties of an Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n get(\n resourceGroup: string,\n registrationName: string,\n options?: RegistrationsGetOptionalParams\n ): Promise<RegistrationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete the requested Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n delete(\n resourceGroup: string,\n registrationName: string,\n options?: RegistrationsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Create or update an Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param token Registration token\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroup: string,\n registrationName: string,\n token: RegistrationParameter,\n options?: RegistrationsCreateOrUpdateOptionalParams\n ): Promise<RegistrationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, token, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Patch an Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param token Registration token\n * @param options The options parameters.\n */\n update(\n resourceGroup: string,\n registrationName: string,\n token: RegistrationParameter,\n options?: RegistrationsUpdateOptionalParams\n ): Promise<RegistrationsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, token, options },\n updateOperationSpec\n );\n }\n\n /**\n * Returns Azure Stack Activation Key.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n getActivationKey(\n resourceGroup: string,\n registrationName: string,\n options?: RegistrationsGetActivationKeyOptionalParams\n ): Promise<RegistrationsGetActivationKeyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n getActivationKeyOperationSpec\n );\n }\n\n /**\n * Enables remote management for device under the Azure Stack registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n enableRemoteManagement(\n resourceGroup: string,\n registrationName: string,\n options?: RegistrationsEnableRemoteManagementOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n enableRemoteManagementOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroup Name of the resource group.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroup: string,\n nextLink: string,\n options?: RegistrationsListNextOptionalParams\n ): Promise<RegistrationsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: RegistrationsListBySubscriptionNextOptionalParams\n ): Promise<RegistrationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Registration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Registration\n },\n 201: {\n bodyMapper: Mappers.Registration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.token,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Registration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.token,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getActivationKeyOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ActivationKeyResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst enableRemoteManagementOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/enableRemoteManagement\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroup\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
package/dist/esm/pagingHelper.js
CHANGED
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage().
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { OperationsImpl, CloudManifestFileImpl, CustomerSubscriptionsImpl, ProductsImpl, RegistrationsImpl, LinkedSubscriptionsImpl } from "./operations/index.js";
|
|
11
11
|
export class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
12
15
|
/**
|
|
13
16
|
* Initializes a new instance of the AzureStackManagementClient class.
|
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -17,7 +20,6 @@ export class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
|
17
20
|
* @param options The parameter options
|
|
18
21
|
*/
|
|
19
22
|
constructor(credentials, subscriptionId, options) {
|
|
20
|
-
var _a, _b, _c;
|
|
21
23
|
if (credentials === undefined) {
|
|
22
24
|
throw new Error("'credentials' cannot be null");
|
|
23
25
|
}
|
|
@@ -36,12 +38,17 @@ export class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
|
36
38
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
39
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
40
|
: `${packageDetails}`;
|
|
39
|
-
const optionsWithDefaults =
|
|
41
|
+
const optionsWithDefaults = {
|
|
42
|
+
...defaults,
|
|
43
|
+
...options,
|
|
44
|
+
userAgentOptions: {
|
|
40
45
|
userAgentPrefix
|
|
41
|
-
},
|
|
46
|
+
},
|
|
47
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
48
|
+
};
|
|
42
49
|
super(optionsWithDefaults);
|
|
43
50
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
-
if (
|
|
51
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
52
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
53
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
54
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -55,7 +62,8 @@ export class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
|
55
62
|
});
|
|
56
63
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
64
|
credential: credentials,
|
|
58
|
-
scopes:
|
|
65
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
66
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
59
67
|
challengeCallbacks: {
|
|
60
68
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
61
69
|
}
|
|
@@ -99,5 +107,11 @@ export class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
|
99
107
|
};
|
|
100
108
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
101
109
|
}
|
|
110
|
+
operations;
|
|
111
|
+
cloudManifestFile;
|
|
112
|
+
customerSubscriptions;
|
|
113
|
+
products;
|
|
114
|
+
registrations;
|
|
115
|
+
linkedSubscriptions;
|
|
102
116
|
}
|
|
103
117
|
//# sourceMappingURL=azureStackManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureStackManagementClient.js","sourceRoot":"","sources":["../../src/azureStackManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,yBAAyB,EACzB,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,0BAA2B,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"azureStackManagementClient.js","sourceRoot":"","sources":["../../src/azureStackManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,yBAAyB,EACzB,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,0BAA2B,SAAQ,UAAU,CAAC,aAAa;IACtE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAkD;QAElD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA6C;YACzD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAA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O,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,qBAAqB,CAAwB;IAC7C,QAAQ,CAAW;IACnB,aAAa,CAAgB;IAC7B,mBAAmB,CAAsB;CAC1C","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n CloudManifestFileImpl,\n CustomerSubscriptionsImpl,\n ProductsImpl,\n RegistrationsImpl,\n LinkedSubscriptionsImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n CloudManifestFile,\n CustomerSubscriptions,\n Products,\n Registrations,\n LinkedSubscriptions\n} from \"./operationsInterfaces/index.js\";\nimport { AzureStackManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureStackManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureStackManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureStackManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureStackManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.6`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2020-06-01-preview\";\n this.operations = new OperationsImpl(this);\n this.cloudManifestFile = new CloudManifestFileImpl(this);\n this.customerSubscriptions = new CustomerSubscriptionsImpl(this);\n this.products = new ProductsImpl(this);\n this.registrations = new RegistrationsImpl(this);\n this.linkedSubscriptions = new LinkedSubscriptionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n cloudManifestFile: CloudManifestFile;\n customerSubscriptions: CustomerSubscriptions;\n products: Products;\n registrations: Registrations;\n linkedSubscriptions: LinkedSubscriptions;\n}\n"]}
|
|
@@ -988,100 +988,121 @@ export const CloudManifestFileResponse = {
|
|
|
988
988
|
type: {
|
|
989
989
|
name: "Composite",
|
|
990
990
|
className: "CloudManifestFileResponse",
|
|
991
|
-
modelProperties:
|
|
991
|
+
modelProperties: {
|
|
992
|
+
...Resource.type.modelProperties,
|
|
993
|
+
properties: {
|
|
992
994
|
serializedName: "properties",
|
|
993
995
|
type: {
|
|
994
996
|
name: "Composite",
|
|
995
997
|
className: "CloudManifestFileProperties"
|
|
996
998
|
}
|
|
997
|
-
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
998
1001
|
}
|
|
999
1002
|
};
|
|
1000
1003
|
export const CustomerSubscription = {
|
|
1001
1004
|
type: {
|
|
1002
1005
|
name: "Composite",
|
|
1003
1006
|
className: "CustomerSubscription",
|
|
1004
|
-
modelProperties:
|
|
1007
|
+
modelProperties: {
|
|
1008
|
+
...Resource.type.modelProperties,
|
|
1009
|
+
systemData: {
|
|
1005
1010
|
serializedName: "systemData",
|
|
1006
1011
|
type: {
|
|
1007
1012
|
name: "Composite",
|
|
1008
1013
|
className: "SystemData"
|
|
1009
1014
|
}
|
|
1010
|
-
},
|
|
1015
|
+
},
|
|
1016
|
+
tenantId: {
|
|
1011
1017
|
serializedName: "properties.tenantId",
|
|
1012
1018
|
type: {
|
|
1013
1019
|
name: "String"
|
|
1014
1020
|
}
|
|
1015
|
-
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1016
1023
|
}
|
|
1017
1024
|
};
|
|
1018
1025
|
export const Product = {
|
|
1019
1026
|
type: {
|
|
1020
1027
|
name: "Composite",
|
|
1021
1028
|
className: "Product",
|
|
1022
|
-
modelProperties:
|
|
1029
|
+
modelProperties: {
|
|
1030
|
+
...Resource.type.modelProperties,
|
|
1031
|
+
systemData: {
|
|
1023
1032
|
serializedName: "systemData",
|
|
1024
1033
|
type: {
|
|
1025
1034
|
name: "Composite",
|
|
1026
1035
|
className: "SystemData"
|
|
1027
1036
|
}
|
|
1028
|
-
},
|
|
1037
|
+
},
|
|
1038
|
+
displayName: {
|
|
1029
1039
|
serializedName: "properties.displayName",
|
|
1030
1040
|
type: {
|
|
1031
1041
|
name: "String"
|
|
1032
1042
|
}
|
|
1033
|
-
},
|
|
1043
|
+
},
|
|
1044
|
+
description: {
|
|
1034
1045
|
serializedName: "properties.description",
|
|
1035
1046
|
type: {
|
|
1036
1047
|
name: "String"
|
|
1037
1048
|
}
|
|
1038
|
-
},
|
|
1049
|
+
},
|
|
1050
|
+
publisherDisplayName: {
|
|
1039
1051
|
serializedName: "properties.publisherDisplayName",
|
|
1040
1052
|
type: {
|
|
1041
1053
|
name: "String"
|
|
1042
1054
|
}
|
|
1043
|
-
},
|
|
1055
|
+
},
|
|
1056
|
+
publisherIdentifier: {
|
|
1044
1057
|
serializedName: "properties.publisherIdentifier",
|
|
1045
1058
|
type: {
|
|
1046
1059
|
name: "String"
|
|
1047
1060
|
}
|
|
1048
|
-
},
|
|
1061
|
+
},
|
|
1062
|
+
offer: {
|
|
1049
1063
|
serializedName: "properties.offer",
|
|
1050
1064
|
type: {
|
|
1051
1065
|
name: "String"
|
|
1052
1066
|
}
|
|
1053
|
-
},
|
|
1067
|
+
},
|
|
1068
|
+
offerVersion: {
|
|
1054
1069
|
serializedName: "properties.offerVersion",
|
|
1055
1070
|
type: {
|
|
1056
1071
|
name: "String"
|
|
1057
1072
|
}
|
|
1058
|
-
},
|
|
1073
|
+
},
|
|
1074
|
+
sku: {
|
|
1059
1075
|
serializedName: "properties.sku",
|
|
1060
1076
|
type: {
|
|
1061
1077
|
name: "String"
|
|
1062
1078
|
}
|
|
1063
|
-
},
|
|
1079
|
+
},
|
|
1080
|
+
billingPartNumber: {
|
|
1064
1081
|
serializedName: "properties.billingPartNumber",
|
|
1065
1082
|
type: {
|
|
1066
1083
|
name: "String"
|
|
1067
1084
|
}
|
|
1068
|
-
},
|
|
1085
|
+
},
|
|
1086
|
+
vmExtensionType: {
|
|
1069
1087
|
serializedName: "properties.vmExtensionType",
|
|
1070
1088
|
type: {
|
|
1071
1089
|
name: "String"
|
|
1072
1090
|
}
|
|
1073
|
-
},
|
|
1091
|
+
},
|
|
1092
|
+
galleryItemIdentity: {
|
|
1074
1093
|
serializedName: "properties.galleryItemIdentity",
|
|
1075
1094
|
type: {
|
|
1076
1095
|
name: "String"
|
|
1077
1096
|
}
|
|
1078
|
-
},
|
|
1097
|
+
},
|
|
1098
|
+
iconUris: {
|
|
1079
1099
|
serializedName: "properties.iconUris",
|
|
1080
1100
|
type: {
|
|
1081
1101
|
name: "Composite",
|
|
1082
1102
|
className: "IconUris"
|
|
1083
1103
|
}
|
|
1084
|
-
},
|
|
1104
|
+
},
|
|
1105
|
+
links: {
|
|
1085
1106
|
serializedName: "properties.links",
|
|
1086
1107
|
type: {
|
|
1087
1108
|
name: "Sequence",
|
|
@@ -1092,115 +1113,139 @@ export const Product = {
|
|
|
1092
1113
|
}
|
|
1093
1114
|
}
|
|
1094
1115
|
}
|
|
1095
|
-
},
|
|
1116
|
+
},
|
|
1117
|
+
legalTerms: {
|
|
1096
1118
|
serializedName: "properties.legalTerms",
|
|
1097
1119
|
type: {
|
|
1098
1120
|
name: "String"
|
|
1099
1121
|
}
|
|
1100
|
-
},
|
|
1122
|
+
},
|
|
1123
|
+
privacyPolicy: {
|
|
1101
1124
|
serializedName: "properties.privacyPolicy",
|
|
1102
1125
|
type: {
|
|
1103
1126
|
name: "String"
|
|
1104
1127
|
}
|
|
1105
|
-
},
|
|
1128
|
+
},
|
|
1129
|
+
payloadLength: {
|
|
1106
1130
|
serializedName: "properties.payloadLength",
|
|
1107
1131
|
type: {
|
|
1108
1132
|
name: "Number"
|
|
1109
1133
|
}
|
|
1110
|
-
},
|
|
1134
|
+
},
|
|
1135
|
+
productKind: {
|
|
1111
1136
|
serializedName: "properties.productKind",
|
|
1112
1137
|
type: {
|
|
1113
1138
|
name: "String"
|
|
1114
1139
|
}
|
|
1115
|
-
},
|
|
1140
|
+
},
|
|
1141
|
+
productProperties: {
|
|
1116
1142
|
serializedName: "properties.productProperties",
|
|
1117
1143
|
type: {
|
|
1118
1144
|
name: "Composite",
|
|
1119
1145
|
className: "ProductProperties"
|
|
1120
1146
|
}
|
|
1121
|
-
},
|
|
1147
|
+
},
|
|
1148
|
+
compatibility: {
|
|
1122
1149
|
serializedName: "properties.compatibility",
|
|
1123
1150
|
type: {
|
|
1124
1151
|
name: "Composite",
|
|
1125
1152
|
className: "Compatibility"
|
|
1126
1153
|
}
|
|
1127
|
-
}
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1128
1156
|
}
|
|
1129
1157
|
};
|
|
1130
1158
|
export const ExtendedProductProperties = {
|
|
1131
1159
|
type: {
|
|
1132
1160
|
name: "Composite",
|
|
1133
1161
|
className: "ExtendedProductProperties",
|
|
1134
|
-
modelProperties:
|
|
1162
|
+
modelProperties: {
|
|
1163
|
+
...VirtualMachineExtensionProductProperties.type.modelProperties,
|
|
1164
|
+
...VirtualMachineProductProperties.type.modelProperties
|
|
1165
|
+
}
|
|
1135
1166
|
}
|
|
1136
1167
|
};
|
|
1137
1168
|
export const Registration = {
|
|
1138
1169
|
type: {
|
|
1139
1170
|
name: "Composite",
|
|
1140
1171
|
className: "Registration",
|
|
1141
|
-
modelProperties:
|
|
1172
|
+
modelProperties: {
|
|
1173
|
+
...TrackedResource.type.modelProperties,
|
|
1174
|
+
objectId: {
|
|
1142
1175
|
serializedName: "properties.objectId",
|
|
1143
1176
|
type: {
|
|
1144
1177
|
name: "String"
|
|
1145
1178
|
}
|
|
1146
|
-
},
|
|
1179
|
+
},
|
|
1180
|
+
cloudId: {
|
|
1147
1181
|
serializedName: "properties.cloudId",
|
|
1148
1182
|
type: {
|
|
1149
1183
|
name: "String"
|
|
1150
1184
|
}
|
|
1151
|
-
},
|
|
1185
|
+
},
|
|
1186
|
+
billingModel: {
|
|
1152
1187
|
serializedName: "properties.billingModel",
|
|
1153
1188
|
type: {
|
|
1154
1189
|
name: "String"
|
|
1155
1190
|
}
|
|
1156
|
-
}
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1157
1193
|
}
|
|
1158
1194
|
};
|
|
1159
1195
|
export const LinkedSubscription = {
|
|
1160
1196
|
type: {
|
|
1161
1197
|
name: "Composite",
|
|
1162
1198
|
className: "LinkedSubscription",
|
|
1163
|
-
modelProperties:
|
|
1199
|
+
modelProperties: {
|
|
1200
|
+
...TrackedResource.type.modelProperties,
|
|
1201
|
+
linkedSubscriptionId: {
|
|
1164
1202
|
serializedName: "properties.linkedSubscriptionId",
|
|
1165
1203
|
type: {
|
|
1166
1204
|
name: "String"
|
|
1167
1205
|
}
|
|
1168
|
-
},
|
|
1206
|
+
},
|
|
1207
|
+
registrationResourceId: {
|
|
1169
1208
|
serializedName: "properties.registrationResourceId",
|
|
1170
1209
|
type: {
|
|
1171
1210
|
name: "String"
|
|
1172
1211
|
}
|
|
1173
|
-
},
|
|
1212
|
+
},
|
|
1213
|
+
deviceId: {
|
|
1174
1214
|
serializedName: "properties.deviceId",
|
|
1175
1215
|
readOnly: true,
|
|
1176
1216
|
type: {
|
|
1177
1217
|
name: "String"
|
|
1178
1218
|
}
|
|
1179
|
-
},
|
|
1219
|
+
},
|
|
1220
|
+
deviceObjectId: {
|
|
1180
1221
|
serializedName: "properties.deviceObjectId",
|
|
1181
1222
|
readOnly: true,
|
|
1182
1223
|
type: {
|
|
1183
1224
|
name: "String"
|
|
1184
1225
|
}
|
|
1185
|
-
},
|
|
1226
|
+
},
|
|
1227
|
+
deviceLinkState: {
|
|
1186
1228
|
serializedName: "properties.deviceLinkState",
|
|
1187
1229
|
readOnly: true,
|
|
1188
1230
|
type: {
|
|
1189
1231
|
name: "String"
|
|
1190
1232
|
}
|
|
1191
|
-
},
|
|
1233
|
+
},
|
|
1234
|
+
lastConnectedTime: {
|
|
1192
1235
|
serializedName: "properties.lastConnectedTime",
|
|
1193
1236
|
readOnly: true,
|
|
1194
1237
|
type: {
|
|
1195
1238
|
name: "String"
|
|
1196
1239
|
}
|
|
1197
|
-
},
|
|
1240
|
+
},
|
|
1241
|
+
deviceConnectionStatus: {
|
|
1198
1242
|
serializedName: "properties.deviceConnectionStatus",
|
|
1199
1243
|
readOnly: true,
|
|
1200
1244
|
type: {
|
|
1201
1245
|
name: "String"
|
|
1202
1246
|
}
|
|
1203
|
-
}
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1204
1249
|
}
|
|
1205
1250
|
};
|
|
1206
1251
|
//# sourceMappingURL=mappers.js.map
|