@azure/arm-storage 18.6.0-alpha.20250718.2 → 18.6.0
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/lroImpl.js +3 -7
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +241 -511
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/blobContainers.js +46 -34
- package/dist/browser/operations/blobContainers.js.map +1 -1
- package/dist/browser/operations/blobInventoryPolicies.js +27 -10
- package/dist/browser/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/browser/operations/blobServices.js +27 -10
- package/dist/browser/operations/blobServices.js.map +1 -1
- package/dist/browser/operations/deletedAccounts.js +40 -23
- package/dist/browser/operations/deletedAccounts.js.map +1 -1
- package/dist/browser/operations/encryptionScopes.js +40 -23
- package/dist/browser/operations/encryptionScopes.js.map +1 -1
- package/dist/browser/operations/fileServices.js +40 -23
- package/dist/browser/operations/fileServices.js.map +1 -1
- package/dist/browser/operations/fileShares.js +40 -23
- package/dist/browser/operations/fileShares.js.map +1 -1
- package/dist/browser/operations/localUsersOperations.js +27 -10
- package/dist/browser/operations/localUsersOperations.js.map +1 -1
- package/dist/browser/operations/managementPolicies.js +0 -1
- package/dist/browser/operations/managementPolicies.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +33 -21
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/browser/operations/objectReplicationPoliciesOperations.js +27 -10
- package/dist/browser/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/browser/operations/operations.js +27 -10
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +27 -10
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +0 -1
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/queue.js +40 -23
- package/dist/browser/operations/queue.js.map +1 -1
- package/dist/browser/operations/queueServices.js +0 -1
- package/dist/browser/operations/queueServices.js.map +1 -1
- package/dist/browser/operations/skus.js +27 -10
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/storageAccounts.js +115 -111
- package/dist/browser/operations/storageAccounts.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignmentInstancesReport.js +40 -23
- package/dist/browser/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignments.js +58 -56
- package/dist/browser/operations/storageTaskAssignments.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js +40 -23
- package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/browser/operations/tableOperations.js +40 -23
- package/dist/browser/operations/tableOperations.js.map +1 -1
- package/dist/browser/operations/tableServices.js +0 -1
- package/dist/browser/operations/tableServices.js.map +1 -1
- package/dist/browser/operations/usages.js +27 -10
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/pagingHelper.js +4 -2
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storageManagementClient.js +5 -37
- package/dist/browser/storageManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +3 -7
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +241 -511
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/blobContainers.js +45 -34
- package/dist/commonjs/operations/blobContainers.js.map +1 -1
- package/dist/commonjs/operations/blobInventoryPolicies.js +26 -10
- package/dist/commonjs/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/commonjs/operations/blobServices.js +26 -10
- package/dist/commonjs/operations/blobServices.js.map +1 -1
- package/dist/commonjs/operations/deletedAccounts.js +39 -23
- package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
- package/dist/commonjs/operations/encryptionScopes.js +39 -23
- package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
- package/dist/commonjs/operations/fileServices.js +39 -23
- package/dist/commonjs/operations/fileServices.js.map +1 -1
- package/dist/commonjs/operations/fileShares.js +39 -23
- package/dist/commonjs/operations/fileShares.js.map +1 -1
- package/dist/commonjs/operations/localUsersOperations.js +26 -10
- package/dist/commonjs/operations/localUsersOperations.js.map +1 -1
- package/dist/commonjs/operations/managementPolicies.js +0 -1
- package/dist/commonjs/operations/managementPolicies.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +32 -21
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/commonjs/operations/objectReplicationPoliciesOperations.js +26 -10
- package/dist/commonjs/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +26 -10
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +26 -10
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +0 -1
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/queue.js +39 -23
- package/dist/commonjs/operations/queue.js.map +1 -1
- package/dist/commonjs/operations/queueServices.js +0 -1
- package/dist/commonjs/operations/queueServices.js.map +1 -1
- package/dist/commonjs/operations/skus.js +26 -10
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/storageAccounts.js +114 -111
- package/dist/commonjs/operations/storageAccounts.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js +39 -23
- package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignments.js +57 -56
- package/dist/commonjs/operations/storageTaskAssignments.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js +39 -23
- package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/commonjs/operations/tableOperations.js +39 -23
- package/dist/commonjs/operations/tableOperations.js.map +1 -1
- package/dist/commonjs/operations/tableServices.js +0 -1
- package/dist/commonjs/operations/tableServices.js.map +1 -1
- package/dist/commonjs/operations/usages.js +26 -10
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +4 -2
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storageManagementClient.js +5 -37
- package/dist/commonjs/storageManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +3 -7
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +241 -511
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/blobContainers.js +46 -34
- package/dist/esm/operations/blobContainers.js.map +1 -1
- package/dist/esm/operations/blobInventoryPolicies.js +27 -10
- package/dist/esm/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/esm/operations/blobServices.js +27 -10
- package/dist/esm/operations/blobServices.js.map +1 -1
- package/dist/esm/operations/deletedAccounts.js +40 -23
- package/dist/esm/operations/deletedAccounts.js.map +1 -1
- package/dist/esm/operations/encryptionScopes.js +40 -23
- package/dist/esm/operations/encryptionScopes.js.map +1 -1
- package/dist/esm/operations/fileServices.js +40 -23
- package/dist/esm/operations/fileServices.js.map +1 -1
- package/dist/esm/operations/fileShares.js +40 -23
- package/dist/esm/operations/fileShares.js.map +1 -1
- package/dist/esm/operations/localUsersOperations.js +27 -10
- package/dist/esm/operations/localUsersOperations.js.map +1 -1
- package/dist/esm/operations/managementPolicies.js +0 -1
- package/dist/esm/operations/managementPolicies.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +33 -21
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/esm/operations/objectReplicationPoliciesOperations.js +27 -10
- package/dist/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/esm/operations/operations.js +27 -10
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +27 -10
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +0 -1
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/queue.js +40 -23
- package/dist/esm/operations/queue.js.map +1 -1
- package/dist/esm/operations/queueServices.js +0 -1
- package/dist/esm/operations/queueServices.js.map +1 -1
- package/dist/esm/operations/skus.js +27 -10
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/storageAccounts.js +115 -111
- package/dist/esm/operations/storageAccounts.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignmentInstancesReport.js +40 -23
- package/dist/esm/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignments.js +58 -56
- package/dist/esm/operations/storageTaskAssignments.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js +40 -23
- package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/esm/operations/tableOperations.js +40 -23
- package/dist/esm/operations/tableOperations.js.map +1 -1
- package/dist/esm/operations/tableServices.js +0 -1
- package/dist/esm/operations/tableServices.js.map +1 -1
- package/dist/esm/operations/usages.js +27 -10
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/pagingHelper.js +4 -2
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storageManagementClient.js +5 -37
- package/dist/esm/storageManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +3 -7
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +241 -511
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/blobContainers.js +46 -34
- package/dist/react-native/operations/blobContainers.js.map +1 -1
- package/dist/react-native/operations/blobInventoryPolicies.js +27 -10
- package/dist/react-native/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/react-native/operations/blobServices.js +27 -10
- package/dist/react-native/operations/blobServices.js.map +1 -1
- package/dist/react-native/operations/deletedAccounts.js +40 -23
- package/dist/react-native/operations/deletedAccounts.js.map +1 -1
- package/dist/react-native/operations/encryptionScopes.js +40 -23
- package/dist/react-native/operations/encryptionScopes.js.map +1 -1
- package/dist/react-native/operations/fileServices.js +40 -23
- package/dist/react-native/operations/fileServices.js.map +1 -1
- package/dist/react-native/operations/fileShares.js +40 -23
- package/dist/react-native/operations/fileShares.js.map +1 -1
- package/dist/react-native/operations/localUsersOperations.js +27 -10
- package/dist/react-native/operations/localUsersOperations.js.map +1 -1
- package/dist/react-native/operations/managementPolicies.js +0 -1
- package/dist/react-native/operations/managementPolicies.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +33 -21
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/react-native/operations/objectReplicationPoliciesOperations.js +27 -10
- package/dist/react-native/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/react-native/operations/operations.js +27 -10
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +27 -10
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +0 -1
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/queue.js +40 -23
- package/dist/react-native/operations/queue.js.map +1 -1
- package/dist/react-native/operations/queueServices.js +0 -1
- package/dist/react-native/operations/queueServices.js.map +1 -1
- package/dist/react-native/operations/skus.js +27 -10
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/storageAccounts.js +115 -111
- package/dist/react-native/operations/storageAccounts.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js +40 -23
- package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignments.js +58 -56
- package/dist/react-native/operations/storageTaskAssignments.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js +40 -23
- package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/react-native/operations/tableOperations.js +40 -23
- package/dist/react-native/operations/tableOperations.js.map +1 -1
- package/dist/react-native/operations/tableServices.js +0 -1
- package/dist/react-native/operations/tableServices.js.map +1 -1
- package/dist/react-native/operations/usages.js +27 -10
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.js +4 -2
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/storageManagementClient.js +5 -37
- package/dist/react-native/storageManagementClient.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableOperations.js","sourceRoot":"","sources":["../../../src/operations/tableOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAiBtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IACb,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,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,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,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U,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;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 { TableOperations } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n Table,\n TableListNextOptionalParams,\n TableListOptionalParams,\n TableListResponse,\n TableCreateOptionalParams,\n TableCreateResponse,\n TableUpdateOptionalParams,\n TableUpdateResponse,\n TableGetOptionalParams,\n TableGetResponse,\n TableDeleteOptionalParams,\n TableListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TableOperations operations. */\nexport class TableOperationsImpl implements TableOperations {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class TableOperations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all the tables under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: TableListOptionalParams,\n ): PagedAsyncIterableIterator<Table> {\n const iter = this.listPagingAll(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: TableListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Table[]> {\n let result: TableListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: TableListOptionalParams,\n ): AsyncIterableIterator<Table> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a new table with the specified table name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param tableName A table name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric\n * character.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableCreateOptionalParams,\n ): Promise<TableCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Creates a new table with the specified table name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param tableName A table name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric\n * character.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableUpdateOptionalParams,\n ): Promise<TableUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the table with the specified table name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param tableName A table name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric\n * character.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableGetOptionalParams,\n ): Promise<TableGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the table with the specified table name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param tableName A table name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric\n * character.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all the tables under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: TableListOptionalParams,\n ): Promise<TableListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\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 resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: TableListNextOptionalParams,\n ): Promise<TableListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListTableResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\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.ListTableResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"tableOperations.js","sourceRoot":"","sources":["../../../src/operations/tableOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAiBtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAA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C;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 { TableOperations } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n Table,\n TableListNextOptionalParams,\n TableListOptionalParams,\n TableListResponse,\n TableCreateOptionalParams,\n TableCreateResponse,\n TableUpdateOptionalParams,\n TableUpdateResponse,\n TableGetOptionalParams,\n TableGetResponse,\n TableDeleteOptionalParams,\n TableListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TableOperations operations. */\nexport class TableOperationsImpl implements TableOperations {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class TableOperations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all the tables under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: TableListOptionalParams,\n ): PagedAsyncIterableIterator<Table> {\n const iter = this.listPagingAll(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: TableListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Table[]> {\n let result: TableListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: TableListOptionalParams,\n ): AsyncIterableIterator<Table> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a new table with the specified table name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param tableName A table name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric\n * character.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableCreateOptionalParams,\n ): Promise<TableCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Creates a new table with the specified table name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param tableName A table name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric\n * character.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableUpdateOptionalParams,\n ): Promise<TableUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the table with the specified table name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param tableName A table name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric\n * character.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableGetOptionalParams,\n ): Promise<TableGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the table with the specified table name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param tableName A table name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric\n * character.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all the tables under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: TableListOptionalParams,\n ): Promise<TableListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\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 resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: TableListNextOptionalParams,\n ): Promise<TableListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Table,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListTableResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\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.ListTableResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,7 +14,6 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing TableServices operations. */
|
|
16
16
|
class TableServicesImpl {
|
|
17
|
-
client;
|
|
18
17
|
/**
|
|
19
18
|
* Initialize a new instance of the class TableServices class.
|
|
20
19
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableServices.js","sourceRoot":"","sources":["../../../src/operations/tableServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,iDAAiD;AACjD,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"tableServices.js","sourceRoot":"","sources":["../../../src/operations/tableServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,iDAAiD;AACjD,MAAa,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAyB,EACzB,WAAmB,EACnB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,UAAkC,EAClC,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EACvD,iCAAiC,CAClC,CAAC;IACJ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zB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,+JAA+J;IACrK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gBAAgB;KAC5B;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 { TableServices } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n TableServicesListOptionalParams,\n TableServicesListResponse,\n TableServiceProperties,\n TableServicesSetServicePropertiesOptionalParams,\n TableServicesSetServicePropertiesResponse,\n TableServicesGetServicePropertiesOptionalParams,\n TableServicesGetServicePropertiesResponse,\n} from \"../models/index.js\";\n\n/** Class containing TableServices operations. */\nexport class TableServicesImpl implements TableServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class TableServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all table services for the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: TableServicesListOptionalParams,\n ): Promise<TableServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of a storage account’s Table service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The properties of a storage account’s Table service, only properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: TableServiceProperties,\n options?: TableServicesSetServicePropertiesOptionalParams,\n ): Promise<TableServicesSetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, parameters, options },\n setServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the properties of a storage account’s Table service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getServiceProperties(\n resourceGroupName: string,\n accountName: string,\n options?: TableServicesGetServicePropertiesOptionalParams,\n ): Promise<TableServicesGetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServicePropertiesOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListTableServices,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst setServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.tableServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -15,7 +15,6 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Usages operations. */
|
|
17
17
|
class UsagesImpl {
|
|
18
|
-
client;
|
|
19
18
|
/**
|
|
20
19
|
* Initialize a new instance of the class Usages class.
|
|
21
20
|
* @param client Reference to the service client
|
|
@@ -38,22 +37,39 @@ class UsagesImpl {
|
|
|
38
37
|
return this;
|
|
39
38
|
},
|
|
40
39
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
40
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
42
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
42
|
}
|
|
44
43
|
return this.listByLocationPagingPage(location, options, settings);
|
|
45
44
|
},
|
|
46
45
|
};
|
|
47
46
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
listByLocationPagingPage(location, options, _settings) {
|
|
48
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
49
|
+
let result;
|
|
50
|
+
result = yield tslib_1.__await(this._listByLocation(location, options));
|
|
51
|
+
yield yield tslib_1.__await(result.value || []);
|
|
52
|
+
});
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
listByLocationPagingAll(location, options) {
|
|
55
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByLocationPagingAll_1() {
|
|
56
|
+
var _a, e_1, _b, _c;
|
|
57
|
+
try {
|
|
58
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listByLocationPagingPage(location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
59
|
+
_c = _f.value;
|
|
60
|
+
_d = false;
|
|
61
|
+
const page = _c;
|
|
62
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
57
73
|
}
|
|
58
74
|
/**
|
|
59
75
|
* Gets the current usage count and the limit for the resources of the location under the subscription.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,cAAc,CACnB,QAAgB,EAChB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC7D,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,IA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;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;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 { Usages } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n Usage,\n UsagesListByLocationOptionalParams,\n UsagesListByLocationResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Usages operations. */\nexport class UsagesImpl implements Usages {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Usages class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the current usage count and the limit for the resources of the location under the subscription.\n * @param location The location of the Azure Storage resource.\n * @param options The options parameters.\n */\n public listByLocation(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listByLocationPagingAll(location, 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.listByLocationPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listByLocationPagingPage(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: UsagesListByLocationResponse;\n result = await this._listByLocation(location, options);\n yield result.value || [];\n }\n\n private async *listByLocationPagingAll(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listByLocationPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the current usage count and the limit for the resources of the location under the subscription.\n * @param location The location of the Azure Storage resource.\n * @param options The options parameters.\n */\n private _listByLocation(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): Promise<UsagesListByLocationResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listByLocationOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -18,16 +18,18 @@ const pageMap = new WeakMap();
|
|
|
18
18
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
19
19
|
*/
|
|
20
20
|
function getContinuationToken(page) {
|
|
21
|
+
var _a;
|
|
21
22
|
if (typeof page !== "object" || page === null) {
|
|
22
23
|
return undefined;
|
|
23
24
|
}
|
|
24
|
-
return pageMap.get(page)
|
|
25
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
25
26
|
}
|
|
26
27
|
function setContinuationToken(page, continuationToken) {
|
|
28
|
+
var _a;
|
|
27
29
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
30
|
-
const pageInfo = pageMap.get(page)
|
|
32
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
31
33
|
pageInfo.continuationToken = continuationToken;
|
|
32
34
|
pageMap.set(page, pageInfo);
|
|
33
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,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,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,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 the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\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,9 +13,6 @@ 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 StorageManagementClient extends coreClient.ServiceClient {
|
|
16
|
-
$host;
|
|
17
|
-
apiVersion;
|
|
18
|
-
subscriptionId;
|
|
19
16
|
/**
|
|
20
17
|
* Initializes a new instance of the StorageManagementClient class.
|
|
21
18
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -23,6 +20,7 @@ class StorageManagementClient extends coreClient.ServiceClient {
|
|
|
23
20
|
* @param options The parameter options
|
|
24
21
|
*/
|
|
25
22
|
constructor(credentials, subscriptionId, options) {
|
|
23
|
+
var _a, _b, _c;
|
|
26
24
|
if (credentials === undefined) {
|
|
27
25
|
throw new Error("'credentials' cannot be null");
|
|
28
26
|
}
|
|
@@ -41,17 +39,12 @@ class StorageManagementClient extends coreClient.ServiceClient {
|
|
|
41
39
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
42
40
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
43
41
|
: `${packageDetails}`;
|
|
44
|
-
const optionsWithDefaults = {
|
|
45
|
-
...defaults,
|
|
46
|
-
...options,
|
|
47
|
-
userAgentOptions: {
|
|
42
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
48
43
|
userAgentPrefix,
|
|
49
|
-
},
|
|
50
|
-
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
51
|
-
};
|
|
44
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
52
45
|
super(optionsWithDefaults);
|
|
53
46
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
54
|
-
if (options
|
|
47
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
55
48
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
56
49
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
57
50
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -65,8 +58,7 @@ class StorageManagementClient extends coreClient.ServiceClient {
|
|
|
65
58
|
});
|
|
66
59
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
67
60
|
credential: credentials,
|
|
68
|
-
scopes: optionsWithDefaults.credentialScopes
|
|
69
|
-
`${optionsWithDefaults.endpoint}/.default`,
|
|
61
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
70
62
|
challengeCallbacks: {
|
|
71
63
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
72
64
|
},
|
|
@@ -132,30 +124,6 @@ class StorageManagementClient extends coreClient.ServiceClient {
|
|
|
132
124
|
};
|
|
133
125
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
134
126
|
}
|
|
135
|
-
blobServices;
|
|
136
|
-
blobContainers;
|
|
137
|
-
fileServices;
|
|
138
|
-
fileShares;
|
|
139
|
-
queueServices;
|
|
140
|
-
queue;
|
|
141
|
-
operations;
|
|
142
|
-
skus;
|
|
143
|
-
storageAccounts;
|
|
144
|
-
deletedAccounts;
|
|
145
|
-
usages;
|
|
146
|
-
managementPolicies;
|
|
147
|
-
blobInventoryPolicies;
|
|
148
|
-
privateEndpointConnections;
|
|
149
|
-
privateLinkResources;
|
|
150
|
-
objectReplicationPoliciesOperations;
|
|
151
|
-
localUsersOperations;
|
|
152
|
-
encryptionScopes;
|
|
153
|
-
tableServices;
|
|
154
|
-
tableOperations;
|
|
155
|
-
networkSecurityPerimeterConfigurations;
|
|
156
|
-
storageTaskAssignments;
|
|
157
|
-
storageTaskAssignmentsInstancesReport;
|
|
158
|
-
storageTaskAssignmentInstancesReport;
|
|
159
127
|
}
|
|
160
128
|
exports.StorageManagementClient = StorageManagementClient;
|
|
161
129
|
//# sourceMappingURL=storageManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAyB+B;AA6B/B,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;QAE/C,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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/*\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 BlobServicesImpl,\n BlobContainersImpl,\n FileServicesImpl,\n FileSharesImpl,\n QueueServicesImpl,\n QueueImpl,\n OperationsImpl,\n SkusImpl,\n StorageAccountsImpl,\n DeletedAccountsImpl,\n UsagesImpl,\n ManagementPoliciesImpl,\n BlobInventoryPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ObjectReplicationPoliciesOperationsImpl,\n LocalUsersOperationsImpl,\n EncryptionScopesImpl,\n TableServicesImpl,\n TableOperationsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n StorageTaskAssignmentsImpl,\n StorageTaskAssignmentsInstancesReportImpl,\n StorageTaskAssignmentInstancesReportImpl,\n} from \"./operations/index.js\";\nimport {\n BlobServices,\n BlobContainers,\n FileServices,\n FileShares,\n QueueServices,\n Queue,\n Operations,\n Skus,\n StorageAccounts,\n DeletedAccounts,\n Usages,\n ManagementPolicies,\n BlobInventoryPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ObjectReplicationPoliciesOperations,\n LocalUsersOperations,\n EncryptionScopes,\n TableServices,\n TableOperations,\n NetworkSecurityPerimeterConfigurations,\n StorageTaskAssignments,\n StorageTaskAssignmentsInstancesReport,\n StorageTaskAssignmentInstancesReport,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageManagementClientOptionalParams,\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: StorageManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storage/18.6.0`;\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[] =\n 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 || \"2024-01-01\";\n this.blobServices = new BlobServicesImpl(this);\n this.blobContainers = new BlobContainersImpl(this);\n this.fileServices = new FileServicesImpl(this);\n this.fileShares = new FileSharesImpl(this);\n this.queueServices = new QueueServicesImpl(this);\n this.queue = new QueueImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.storageAccounts = new StorageAccountsImpl(this);\n this.deletedAccounts = new DeletedAccountsImpl(this);\n this.usages = new UsagesImpl(this);\n this.managementPolicies = new ManagementPoliciesImpl(this);\n this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.objectReplicationPoliciesOperations =\n new ObjectReplicationPoliciesOperationsImpl(this);\n this.localUsersOperations = new LocalUsersOperationsImpl(this);\n this.encryptionScopes = new EncryptionScopesImpl(this);\n this.tableServices = new TableServicesImpl(this);\n this.tableOperations = new TableOperationsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.storageTaskAssignments = new StorageTaskAssignmentsImpl(this);\n this.storageTaskAssignmentsInstancesReport =\n new StorageTaskAssignmentsInstancesReportImpl(this);\n this.storageTaskAssignmentInstancesReport =\n new StorageTaskAssignmentInstancesReportImpl(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 blobServices: BlobServices;\n blobContainers: BlobContainers;\n fileServices: FileServices;\n fileShares: FileShares;\n queueServices: QueueServices;\n queue: Queue;\n operations: Operations;\n skus: Skus;\n storageAccounts: StorageAccounts;\n deletedAccounts: DeletedAccounts;\n usages: Usages;\n managementPolicies: ManagementPolicies;\n blobInventoryPolicies: BlobInventoryPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;\n localUsersOperations: LocalUsersOperations;\n encryptionScopes: EncryptionScopes;\n tableServices: TableServices;\n tableOperations: TableOperations;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n storageTaskAssignments: StorageTaskAssignments;\n storageTaskAssignmentsInstancesReport: StorageTaskAssignmentsInstancesReport;\n storageTaskAssignmentInstancesReport: StorageTaskAssignmentInstancesReport;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAyB+B;AA6B/B,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,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,EAA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,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,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;CA0BF;AA1KD,0DA0KC","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 BlobServicesImpl,\n BlobContainersImpl,\n FileServicesImpl,\n FileSharesImpl,\n QueueServicesImpl,\n QueueImpl,\n OperationsImpl,\n SkusImpl,\n StorageAccountsImpl,\n DeletedAccountsImpl,\n UsagesImpl,\n ManagementPoliciesImpl,\n BlobInventoryPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ObjectReplicationPoliciesOperationsImpl,\n LocalUsersOperationsImpl,\n EncryptionScopesImpl,\n TableServicesImpl,\n TableOperationsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n StorageTaskAssignmentsImpl,\n StorageTaskAssignmentsInstancesReportImpl,\n StorageTaskAssignmentInstancesReportImpl,\n} from \"./operations/index.js\";\nimport {\n BlobServices,\n BlobContainers,\n FileServices,\n FileShares,\n QueueServices,\n Queue,\n Operations,\n Skus,\n StorageAccounts,\n DeletedAccounts,\n Usages,\n ManagementPolicies,\n BlobInventoryPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ObjectReplicationPoliciesOperations,\n LocalUsersOperations,\n EncryptionScopes,\n TableServices,\n TableOperations,\n NetworkSecurityPerimeterConfigurations,\n StorageTaskAssignments,\n StorageTaskAssignmentsInstancesReport,\n StorageTaskAssignmentInstancesReport,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageManagementClientOptionalParams,\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: StorageManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storage/18.6.0`;\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[] =\n 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 || \"2024-01-01\";\n this.blobServices = new BlobServicesImpl(this);\n this.blobContainers = new BlobContainersImpl(this);\n this.fileServices = new FileServicesImpl(this);\n this.fileShares = new FileSharesImpl(this);\n this.queueServices = new QueueServicesImpl(this);\n this.queue = new QueueImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.storageAccounts = new StorageAccountsImpl(this);\n this.deletedAccounts = new DeletedAccountsImpl(this);\n this.usages = new UsagesImpl(this);\n this.managementPolicies = new ManagementPoliciesImpl(this);\n this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.objectReplicationPoliciesOperations =\n new ObjectReplicationPoliciesOperationsImpl(this);\n this.localUsersOperations = new LocalUsersOperationsImpl(this);\n this.encryptionScopes = new EncryptionScopesImpl(this);\n this.tableServices = new TableServicesImpl(this);\n this.tableOperations = new TableOperationsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.storageTaskAssignments = new StorageTaskAssignmentsImpl(this);\n this.storageTaskAssignmentsInstancesReport =\n new StorageTaskAssignmentsInstancesReportImpl(this);\n this.storageTaskAssignmentInstancesReport =\n new StorageTaskAssignmentInstancesReportImpl(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 blobServices: BlobServices;\n blobContainers: BlobContainers;\n fileServices: FileServices;\n fileShares: FileShares;\n queueServices: QueueServices;\n queue: Queue;\n operations: Operations;\n skus: Skus;\n storageAccounts: StorageAccounts;\n deletedAccounts: DeletedAccounts;\n usages: Usages;\n managementPolicies: ManagementPolicies;\n blobInventoryPolicies: BlobInventoryPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;\n localUsersOperations: LocalUsersOperations;\n encryptionScopes: EncryptionScopes;\n tableServices: TableServices;\n tableOperations: TableOperations;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n storageTaskAssignments: StorageTaskAssignments;\n storageTaskAssignmentsInstancesReport: StorageTaskAssignmentsInstancesReport;\n storageTaskAssignmentInstancesReport: StorageTaskAssignmentInstancesReport;\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.52.8"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.8"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/dist/esm/lroImpl.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
+
import { __rest } from "tslib";
|
|
8
9
|
export function createLroSpec(inputs) {
|
|
9
10
|
const { args, spec, sendOperationFn } = inputs;
|
|
10
11
|
return {
|
|
@@ -12,13 +13,8 @@ export function createLroSpec(inputs) {
|
|
|
12
13
|
requestPath: spec.path,
|
|
13
14
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
14
15
|
sendPollRequest: (path, options) => {
|
|
15
|
-
const { requestBody,
|
|
16
|
-
return sendOperationFn(args, {
|
|
17
|
-
...restSpec,
|
|
18
|
-
httpMethod: "GET",
|
|
19
|
-
path,
|
|
20
|
-
abortSignal: options?.abortSignal,
|
|
21
|
-
});
|
|
16
|
+
const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
|
|
17
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
22
18
|
},
|
|
23
19
|
};
|
|
24
20
|
}
|
package/dist/esm/lroImpl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAKH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|