@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"]}
|
|
@@ -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"]}
|
|
@@ -13,6 +13,9 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
|
13
13
|
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
14
|
const index_js_1 = require("./operations/index.js");
|
|
15
15
|
class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
apiVersion;
|
|
18
|
+
subscriptionId;
|
|
16
19
|
/**
|
|
17
20
|
* Initializes a new instance of the AzureStackManagementClient class.
|
|
18
21
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -21,7 +24,6 @@ class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
|
21
24
|
* @param options The parameter options
|
|
22
25
|
*/
|
|
23
26
|
constructor(credentials, subscriptionId, options) {
|
|
24
|
-
var _a, _b, _c;
|
|
25
27
|
if (credentials === undefined) {
|
|
26
28
|
throw new Error("'credentials' cannot be null");
|
|
27
29
|
}
|
|
@@ -40,12 +42,17 @@ class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
|
40
42
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
41
43
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
42
44
|
: `${packageDetails}`;
|
|
43
|
-
const optionsWithDefaults =
|
|
45
|
+
const optionsWithDefaults = {
|
|
46
|
+
...defaults,
|
|
47
|
+
...options,
|
|
48
|
+
userAgentOptions: {
|
|
44
49
|
userAgentPrefix
|
|
45
|
-
},
|
|
50
|
+
},
|
|
51
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
52
|
+
};
|
|
46
53
|
super(optionsWithDefaults);
|
|
47
54
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
48
|
-
if (
|
|
55
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
49
56
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
50
57
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
51
58
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -59,7 +66,8 @@ class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
|
59
66
|
});
|
|
60
67
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
61
68
|
credential: credentials,
|
|
62
|
-
scopes:
|
|
69
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
70
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
63
71
|
challengeCallbacks: {
|
|
64
72
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
65
73
|
}
|
|
@@ -103,6 +111,12 @@ class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
|
103
111
|
};
|
|
104
112
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
105
113
|
}
|
|
114
|
+
operations;
|
|
115
|
+
cloudManifestFile;
|
|
116
|
+
customerSubscriptions;
|
|
117
|
+
products;
|
|
118
|
+
registrations;
|
|
119
|
+
linkedSubscriptions;
|
|
106
120
|
}
|
|
107
121
|
exports.AzureStackManagementClient = AzureStackManagementClient;
|
|
108
122
|
//# sourceMappingURL=azureStackManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureStackManagementClient.js","sourceRoot":"","sources":["../../src/azureStackManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAO+B;AAW/B,MAAa,0BAA2B,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"azureStackManagementClient.js","sourceRoot":"","sources":["../../src/azureStackManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAO+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,CAAsB;CAC1C;AAlID,gEAkIC","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"]}
|
|
@@ -991,100 +991,121 @@ exports.CloudManifestFileResponse = {
|
|
|
991
991
|
type: {
|
|
992
992
|
name: "Composite",
|
|
993
993
|
className: "CloudManifestFileResponse",
|
|
994
|
-
modelProperties:
|
|
994
|
+
modelProperties: {
|
|
995
|
+
...exports.Resource.type.modelProperties,
|
|
996
|
+
properties: {
|
|
995
997
|
serializedName: "properties",
|
|
996
998
|
type: {
|
|
997
999
|
name: "Composite",
|
|
998
1000
|
className: "CloudManifestFileProperties"
|
|
999
1001
|
}
|
|
1000
|
-
}
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1001
1004
|
}
|
|
1002
1005
|
};
|
|
1003
1006
|
exports.CustomerSubscription = {
|
|
1004
1007
|
type: {
|
|
1005
1008
|
name: "Composite",
|
|
1006
1009
|
className: "CustomerSubscription",
|
|
1007
|
-
modelProperties:
|
|
1010
|
+
modelProperties: {
|
|
1011
|
+
...exports.Resource.type.modelProperties,
|
|
1012
|
+
systemData: {
|
|
1008
1013
|
serializedName: "systemData",
|
|
1009
1014
|
type: {
|
|
1010
1015
|
name: "Composite",
|
|
1011
1016
|
className: "SystemData"
|
|
1012
1017
|
}
|
|
1013
|
-
},
|
|
1018
|
+
},
|
|
1019
|
+
tenantId: {
|
|
1014
1020
|
serializedName: "properties.tenantId",
|
|
1015
1021
|
type: {
|
|
1016
1022
|
name: "String"
|
|
1017
1023
|
}
|
|
1018
|
-
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1019
1026
|
}
|
|
1020
1027
|
};
|
|
1021
1028
|
exports.Product = {
|
|
1022
1029
|
type: {
|
|
1023
1030
|
name: "Composite",
|
|
1024
1031
|
className: "Product",
|
|
1025
|
-
modelProperties:
|
|
1032
|
+
modelProperties: {
|
|
1033
|
+
...exports.Resource.type.modelProperties,
|
|
1034
|
+
systemData: {
|
|
1026
1035
|
serializedName: "systemData",
|
|
1027
1036
|
type: {
|
|
1028
1037
|
name: "Composite",
|
|
1029
1038
|
className: "SystemData"
|
|
1030
1039
|
}
|
|
1031
|
-
},
|
|
1040
|
+
},
|
|
1041
|
+
displayName: {
|
|
1032
1042
|
serializedName: "properties.displayName",
|
|
1033
1043
|
type: {
|
|
1034
1044
|
name: "String"
|
|
1035
1045
|
}
|
|
1036
|
-
},
|
|
1046
|
+
},
|
|
1047
|
+
description: {
|
|
1037
1048
|
serializedName: "properties.description",
|
|
1038
1049
|
type: {
|
|
1039
1050
|
name: "String"
|
|
1040
1051
|
}
|
|
1041
|
-
},
|
|
1052
|
+
},
|
|
1053
|
+
publisherDisplayName: {
|
|
1042
1054
|
serializedName: "properties.publisherDisplayName",
|
|
1043
1055
|
type: {
|
|
1044
1056
|
name: "String"
|
|
1045
1057
|
}
|
|
1046
|
-
},
|
|
1058
|
+
},
|
|
1059
|
+
publisherIdentifier: {
|
|
1047
1060
|
serializedName: "properties.publisherIdentifier",
|
|
1048
1061
|
type: {
|
|
1049
1062
|
name: "String"
|
|
1050
1063
|
}
|
|
1051
|
-
},
|
|
1064
|
+
},
|
|
1065
|
+
offer: {
|
|
1052
1066
|
serializedName: "properties.offer",
|
|
1053
1067
|
type: {
|
|
1054
1068
|
name: "String"
|
|
1055
1069
|
}
|
|
1056
|
-
},
|
|
1070
|
+
},
|
|
1071
|
+
offerVersion: {
|
|
1057
1072
|
serializedName: "properties.offerVersion",
|
|
1058
1073
|
type: {
|
|
1059
1074
|
name: "String"
|
|
1060
1075
|
}
|
|
1061
|
-
},
|
|
1076
|
+
},
|
|
1077
|
+
sku: {
|
|
1062
1078
|
serializedName: "properties.sku",
|
|
1063
1079
|
type: {
|
|
1064
1080
|
name: "String"
|
|
1065
1081
|
}
|
|
1066
|
-
},
|
|
1082
|
+
},
|
|
1083
|
+
billingPartNumber: {
|
|
1067
1084
|
serializedName: "properties.billingPartNumber",
|
|
1068
1085
|
type: {
|
|
1069
1086
|
name: "String"
|
|
1070
1087
|
}
|
|
1071
|
-
},
|
|
1088
|
+
},
|
|
1089
|
+
vmExtensionType: {
|
|
1072
1090
|
serializedName: "properties.vmExtensionType",
|
|
1073
1091
|
type: {
|
|
1074
1092
|
name: "String"
|
|
1075
1093
|
}
|
|
1076
|
-
},
|
|
1094
|
+
},
|
|
1095
|
+
galleryItemIdentity: {
|
|
1077
1096
|
serializedName: "properties.galleryItemIdentity",
|
|
1078
1097
|
type: {
|
|
1079
1098
|
name: "String"
|
|
1080
1099
|
}
|
|
1081
|
-
},
|
|
1100
|
+
},
|
|
1101
|
+
iconUris: {
|
|
1082
1102
|
serializedName: "properties.iconUris",
|
|
1083
1103
|
type: {
|
|
1084
1104
|
name: "Composite",
|
|
1085
1105
|
className: "IconUris"
|
|
1086
1106
|
}
|
|
1087
|
-
},
|
|
1107
|
+
},
|
|
1108
|
+
links: {
|
|
1088
1109
|
serializedName: "properties.links",
|
|
1089
1110
|
type: {
|
|
1090
1111
|
name: "Sequence",
|
|
@@ -1095,115 +1116,139 @@ exports.Product = {
|
|
|
1095
1116
|
}
|
|
1096
1117
|
}
|
|
1097
1118
|
}
|
|
1098
|
-
},
|
|
1119
|
+
},
|
|
1120
|
+
legalTerms: {
|
|
1099
1121
|
serializedName: "properties.legalTerms",
|
|
1100
1122
|
type: {
|
|
1101
1123
|
name: "String"
|
|
1102
1124
|
}
|
|
1103
|
-
},
|
|
1125
|
+
},
|
|
1126
|
+
privacyPolicy: {
|
|
1104
1127
|
serializedName: "properties.privacyPolicy",
|
|
1105
1128
|
type: {
|
|
1106
1129
|
name: "String"
|
|
1107
1130
|
}
|
|
1108
|
-
},
|
|
1131
|
+
},
|
|
1132
|
+
payloadLength: {
|
|
1109
1133
|
serializedName: "properties.payloadLength",
|
|
1110
1134
|
type: {
|
|
1111
1135
|
name: "Number"
|
|
1112
1136
|
}
|
|
1113
|
-
},
|
|
1137
|
+
},
|
|
1138
|
+
productKind: {
|
|
1114
1139
|
serializedName: "properties.productKind",
|
|
1115
1140
|
type: {
|
|
1116
1141
|
name: "String"
|
|
1117
1142
|
}
|
|
1118
|
-
},
|
|
1143
|
+
},
|
|
1144
|
+
productProperties: {
|
|
1119
1145
|
serializedName: "properties.productProperties",
|
|
1120
1146
|
type: {
|
|
1121
1147
|
name: "Composite",
|
|
1122
1148
|
className: "ProductProperties"
|
|
1123
1149
|
}
|
|
1124
|
-
},
|
|
1150
|
+
},
|
|
1151
|
+
compatibility: {
|
|
1125
1152
|
serializedName: "properties.compatibility",
|
|
1126
1153
|
type: {
|
|
1127
1154
|
name: "Composite",
|
|
1128
1155
|
className: "Compatibility"
|
|
1129
1156
|
}
|
|
1130
|
-
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1131
1159
|
}
|
|
1132
1160
|
};
|
|
1133
1161
|
exports.ExtendedProductProperties = {
|
|
1134
1162
|
type: {
|
|
1135
1163
|
name: "Composite",
|
|
1136
1164
|
className: "ExtendedProductProperties",
|
|
1137
|
-
modelProperties:
|
|
1165
|
+
modelProperties: {
|
|
1166
|
+
...exports.VirtualMachineExtensionProductProperties.type.modelProperties,
|
|
1167
|
+
...exports.VirtualMachineProductProperties.type.modelProperties
|
|
1168
|
+
}
|
|
1138
1169
|
}
|
|
1139
1170
|
};
|
|
1140
1171
|
exports.Registration = {
|
|
1141
1172
|
type: {
|
|
1142
1173
|
name: "Composite",
|
|
1143
1174
|
className: "Registration",
|
|
1144
|
-
modelProperties:
|
|
1175
|
+
modelProperties: {
|
|
1176
|
+
...exports.TrackedResource.type.modelProperties,
|
|
1177
|
+
objectId: {
|
|
1145
1178
|
serializedName: "properties.objectId",
|
|
1146
1179
|
type: {
|
|
1147
1180
|
name: "String"
|
|
1148
1181
|
}
|
|
1149
|
-
},
|
|
1182
|
+
},
|
|
1183
|
+
cloudId: {
|
|
1150
1184
|
serializedName: "properties.cloudId",
|
|
1151
1185
|
type: {
|
|
1152
1186
|
name: "String"
|
|
1153
1187
|
}
|
|
1154
|
-
},
|
|
1188
|
+
},
|
|
1189
|
+
billingModel: {
|
|
1155
1190
|
serializedName: "properties.billingModel",
|
|
1156
1191
|
type: {
|
|
1157
1192
|
name: "String"
|
|
1158
1193
|
}
|
|
1159
|
-
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1160
1196
|
}
|
|
1161
1197
|
};
|
|
1162
1198
|
exports.LinkedSubscription = {
|
|
1163
1199
|
type: {
|
|
1164
1200
|
name: "Composite",
|
|
1165
1201
|
className: "LinkedSubscription",
|
|
1166
|
-
modelProperties:
|
|
1202
|
+
modelProperties: {
|
|
1203
|
+
...exports.TrackedResource.type.modelProperties,
|
|
1204
|
+
linkedSubscriptionId: {
|
|
1167
1205
|
serializedName: "properties.linkedSubscriptionId",
|
|
1168
1206
|
type: {
|
|
1169
1207
|
name: "String"
|
|
1170
1208
|
}
|
|
1171
|
-
},
|
|
1209
|
+
},
|
|
1210
|
+
registrationResourceId: {
|
|
1172
1211
|
serializedName: "properties.registrationResourceId",
|
|
1173
1212
|
type: {
|
|
1174
1213
|
name: "String"
|
|
1175
1214
|
}
|
|
1176
|
-
},
|
|
1215
|
+
},
|
|
1216
|
+
deviceId: {
|
|
1177
1217
|
serializedName: "properties.deviceId",
|
|
1178
1218
|
readOnly: true,
|
|
1179
1219
|
type: {
|
|
1180
1220
|
name: "String"
|
|
1181
1221
|
}
|
|
1182
|
-
},
|
|
1222
|
+
},
|
|
1223
|
+
deviceObjectId: {
|
|
1183
1224
|
serializedName: "properties.deviceObjectId",
|
|
1184
1225
|
readOnly: true,
|
|
1185
1226
|
type: {
|
|
1186
1227
|
name: "String"
|
|
1187
1228
|
}
|
|
1188
|
-
},
|
|
1229
|
+
},
|
|
1230
|
+
deviceLinkState: {
|
|
1189
1231
|
serializedName: "properties.deviceLinkState",
|
|
1190
1232
|
readOnly: true,
|
|
1191
1233
|
type: {
|
|
1192
1234
|
name: "String"
|
|
1193
1235
|
}
|
|
1194
|
-
},
|
|
1236
|
+
},
|
|
1237
|
+
lastConnectedTime: {
|
|
1195
1238
|
serializedName: "properties.lastConnectedTime",
|
|
1196
1239
|
readOnly: true,
|
|
1197
1240
|
type: {
|
|
1198
1241
|
name: "String"
|
|
1199
1242
|
}
|
|
1200
|
-
},
|
|
1243
|
+
},
|
|
1244
|
+
deviceConnectionStatus: {
|
|
1201
1245
|
serializedName: "properties.deviceConnectionStatus",
|
|
1202
1246
|
readOnly: true,
|
|
1203
1247
|
type: {
|
|
1204
1248
|
name: "String"
|
|
1205
1249
|
}
|
|
1206
|
-
}
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1207
1252
|
}
|
|
1208
1253
|
};
|
|
1209
1254
|
//# sourceMappingURL=mappers.js.map
|