@azure/arm-storage 18.6.0-alpha.20250717.1 → 18.6.0-alpha.20250718.2
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 +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +15 -2
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +6 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +511 -245
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/blobContainers.js +34 -46
- package/dist/browser/operations/blobContainers.js.map +1 -1
- package/dist/browser/operations/blobInventoryPolicies.js +10 -27
- package/dist/browser/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/browser/operations/blobServices.js +10 -27
- package/dist/browser/operations/blobServices.js.map +1 -1
- package/dist/browser/operations/deletedAccounts.js +23 -40
- package/dist/browser/operations/deletedAccounts.js.map +1 -1
- package/dist/browser/operations/encryptionScopes.js +23 -40
- package/dist/browser/operations/encryptionScopes.js.map +1 -1
- package/dist/browser/operations/fileServices.js +23 -40
- package/dist/browser/operations/fileServices.js.map +1 -1
- package/dist/browser/operations/fileShares.js +23 -40
- package/dist/browser/operations/fileShares.js.map +1 -1
- package/dist/browser/operations/localUsersOperations.js +10 -27
- package/dist/browser/operations/localUsersOperations.js.map +1 -1
- package/dist/browser/operations/managementPolicies.js +1 -0
- package/dist/browser/operations/managementPolicies.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +21 -33
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/browser/operations/objectReplicationPoliciesOperations.js +10 -27
- package/dist/browser/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +10 -27
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/queue.js +23 -40
- package/dist/browser/operations/queue.js.map +1 -1
- package/dist/browser/operations/queueServices.js +1 -0
- package/dist/browser/operations/queueServices.js.map +1 -1
- package/dist/browser/operations/skus.js +10 -27
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/storageAccounts.js +111 -115
- package/dist/browser/operations/storageAccounts.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignmentInstancesReport.js +23 -40
- package/dist/browser/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignments.js +56 -58
- package/dist/browser/operations/storageTaskAssignments.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js +23 -40
- package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/browser/operations/tableOperations.js +23 -40
- package/dist/browser/operations/tableOperations.js.map +1 -1
- package/dist/browser/operations/tableServices.js +1 -0
- package/dist/browser/operations/tableServices.js.map +1 -1
- package/dist/browser/operations/usages.js +10 -27
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storageManagementClient.js +37 -5
- package/dist/browser/storageManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +15 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +7 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +511 -245
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/blobContainers.js +34 -45
- package/dist/commonjs/operations/blobContainers.js.map +1 -1
- package/dist/commonjs/operations/blobInventoryPolicies.js +10 -26
- package/dist/commonjs/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/commonjs/operations/blobServices.js +10 -26
- package/dist/commonjs/operations/blobServices.js.map +1 -1
- package/dist/commonjs/operations/deletedAccounts.js +23 -39
- package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
- package/dist/commonjs/operations/encryptionScopes.js +23 -39
- package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
- package/dist/commonjs/operations/fileServices.js +23 -39
- package/dist/commonjs/operations/fileServices.js.map +1 -1
- package/dist/commonjs/operations/fileShares.js +23 -39
- package/dist/commonjs/operations/fileShares.js.map +1 -1
- package/dist/commonjs/operations/localUsersOperations.js +10 -26
- package/dist/commonjs/operations/localUsersOperations.js.map +1 -1
- package/dist/commonjs/operations/managementPolicies.js +1 -0
- package/dist/commonjs/operations/managementPolicies.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +21 -32
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/commonjs/operations/objectReplicationPoliciesOperations.js +10 -26
- package/dist/commonjs/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +10 -26
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/queue.js +23 -39
- package/dist/commonjs/operations/queue.js.map +1 -1
- package/dist/commonjs/operations/queueServices.js +1 -0
- package/dist/commonjs/operations/queueServices.js.map +1 -1
- package/dist/commonjs/operations/skus.js +10 -26
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/storageAccounts.js +111 -114
- package/dist/commonjs/operations/storageAccounts.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js +23 -39
- package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignments.js +56 -57
- package/dist/commonjs/operations/storageTaskAssignments.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js +23 -39
- package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/commonjs/operations/tableOperations.js +23 -39
- package/dist/commonjs/operations/tableOperations.js.map +1 -1
- package/dist/commonjs/operations/tableServices.js +1 -0
- package/dist/commonjs/operations/tableServices.js.map +1 -1
- package/dist/commonjs/operations/usages.js +10 -26
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storageManagementClient.js +37 -5
- package/dist/commonjs/storageManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +15 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +511 -245
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/blobContainers.js +34 -46
- package/dist/esm/operations/blobContainers.js.map +1 -1
- package/dist/esm/operations/blobInventoryPolicies.js +10 -27
- package/dist/esm/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/esm/operations/blobServices.js +10 -27
- package/dist/esm/operations/blobServices.js.map +1 -1
- package/dist/esm/operations/deletedAccounts.js +23 -40
- package/dist/esm/operations/deletedAccounts.js.map +1 -1
- package/dist/esm/operations/encryptionScopes.js +23 -40
- package/dist/esm/operations/encryptionScopes.js.map +1 -1
- package/dist/esm/operations/fileServices.js +23 -40
- package/dist/esm/operations/fileServices.js.map +1 -1
- package/dist/esm/operations/fileShares.js +23 -40
- package/dist/esm/operations/fileShares.js.map +1 -1
- package/dist/esm/operations/localUsersOperations.js +10 -27
- package/dist/esm/operations/localUsersOperations.js.map +1 -1
- package/dist/esm/operations/managementPolicies.js +1 -0
- package/dist/esm/operations/managementPolicies.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +21 -33
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/esm/operations/objectReplicationPoliciesOperations.js +10 -27
- package/dist/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +10 -27
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/queue.js +23 -40
- package/dist/esm/operations/queue.js.map +1 -1
- package/dist/esm/operations/queueServices.js +1 -0
- package/dist/esm/operations/queueServices.js.map +1 -1
- package/dist/esm/operations/skus.js +10 -27
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/storageAccounts.js +111 -115
- package/dist/esm/operations/storageAccounts.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignmentInstancesReport.js +23 -40
- package/dist/esm/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignments.js +56 -58
- package/dist/esm/operations/storageTaskAssignments.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js +23 -40
- package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/esm/operations/tableOperations.js +23 -40
- package/dist/esm/operations/tableOperations.js.map +1 -1
- package/dist/esm/operations/tableServices.js +1 -0
- package/dist/esm/operations/tableServices.js.map +1 -1
- package/dist/esm/operations/usages.js +10 -27
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storageManagementClient.js +37 -5
- package/dist/esm/storageManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +15 -2
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +6 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +511 -245
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/blobContainers.js +34 -46
- package/dist/react-native/operations/blobContainers.js.map +1 -1
- package/dist/react-native/operations/blobInventoryPolicies.js +10 -27
- package/dist/react-native/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/react-native/operations/blobServices.js +10 -27
- package/dist/react-native/operations/blobServices.js.map +1 -1
- package/dist/react-native/operations/deletedAccounts.js +23 -40
- package/dist/react-native/operations/deletedAccounts.js.map +1 -1
- package/dist/react-native/operations/encryptionScopes.js +23 -40
- package/dist/react-native/operations/encryptionScopes.js.map +1 -1
- package/dist/react-native/operations/fileServices.js +23 -40
- package/dist/react-native/operations/fileServices.js.map +1 -1
- package/dist/react-native/operations/fileShares.js +23 -40
- package/dist/react-native/operations/fileShares.js.map +1 -1
- package/dist/react-native/operations/localUsersOperations.js +10 -27
- package/dist/react-native/operations/localUsersOperations.js.map +1 -1
- package/dist/react-native/operations/managementPolicies.js +1 -0
- package/dist/react-native/operations/managementPolicies.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +21 -33
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/react-native/operations/objectReplicationPoliciesOperations.js +10 -27
- package/dist/react-native/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +10 -27
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/queue.js +23 -40
- package/dist/react-native/operations/queue.js.map +1 -1
- package/dist/react-native/operations/queueServices.js +1 -0
- package/dist/react-native/operations/queueServices.js.map +1 -1
- package/dist/react-native/operations/skus.js +10 -27
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/storageAccounts.js +111 -115
- package/dist/react-native/operations/storageAccounts.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js +23 -40
- package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignments.js +56 -58
- package/dist/react-native/operations/storageTaskAssignments.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js +23 -40
- package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/react-native/operations/tableOperations.js +23 -40
- package/dist/react-native/operations/tableOperations.js.map +1 -1
- package/dist/react-native/operations/tableServices.js +1 -0
- package/dist/react-native/operations/tableServices.js.map +1 -1
- package/dist/react-native/operations/usages.js +10 -27
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/storageManagementClient.js +37 -5
- package/dist/react-native/storageManagementClient.js.map +1 -1
- package/package.json +3 -5
- package/CHANGELOG.md +0 -347
- package/review/arm-storage-node.api.md +0 -3479
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../src/operations/queue.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;A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B,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 { Queue } 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 ListQueue,\n QueueListNextOptionalParams,\n QueueListOptionalParams,\n QueueListResponse,\n StorageQueue,\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueUpdateOptionalParams,\n QueueUpdateResponse,\n QueueGetOptionalParams,\n QueueGetResponse,\n QueueDeleteOptionalParams,\n QueueListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Queue operations. */\nexport class QueueImpl implements Queue {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Queue 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 queues 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?: QueueListOptionalParams,\n ): PagedAsyncIterableIterator<ListQueue> {\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?: QueueListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ListQueue[]> {\n let result: QueueListResponse;\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?: QueueListOptionalParams,\n ): AsyncIterableIterator<ListQueue> {\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 queue with the specified queue 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 queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueCreateOptionalParams,\n ): Promise<QueueCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n createOperationSpec,\n );\n }\n\n /**\n * Creates a new queue with the specified queue 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 queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueUpdateOptionalParams,\n ): Promise<QueueUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the queue with the specified queue 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 queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueGetOptionalParams,\n ): Promise<QueueGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the queue with the specified queue 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 queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all the queues 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?: QueueListOptionalParams,\n ): Promise<QueueListResponse> {\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?: QueueListNextOptionalParams,\n ): Promise<QueueListNextResponse> {\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}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\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}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\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}/queueServices/default/queues/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\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.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\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.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxpagesize,\n Parameters.filter,\n ],\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.ListQueueResource,\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":"queue.js","sourceRoot":"","sources":["../../../src/operations/queue.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;AAkBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAA0B;IA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AiB;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 { Queue } 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 ListQueue,\n QueueListNextOptionalParams,\n QueueListOptionalParams,\n QueueListResponse,\n StorageQueue,\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueUpdateOptionalParams,\n QueueUpdateResponse,\n QueueGetOptionalParams,\n QueueGetResponse,\n QueueDeleteOptionalParams,\n QueueListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Queue operations. */\nexport class QueueImpl implements Queue {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Queue 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 queues 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?: QueueListOptionalParams,\n ): PagedAsyncIterableIterator<ListQueue> {\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?: QueueListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ListQueue[]> {\n let result: QueueListResponse;\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?: QueueListOptionalParams,\n ): AsyncIterableIterator<ListQueue> {\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 queue with the specified queue 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 queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueCreateOptionalParams,\n ): Promise<QueueCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n createOperationSpec,\n );\n }\n\n /**\n * Creates a new queue with the specified queue 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 queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueUpdateOptionalParams,\n ): Promise<QueueUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the queue with the specified queue 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 queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueGetOptionalParams,\n ): Promise<QueueGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the queue with the specified queue 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 queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all the queues 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?: QueueListOptionalParams,\n ): Promise<QueueListResponse> {\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?: QueueListNextOptionalParams,\n ): Promise<QueueListNextResponse> {\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}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\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}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\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}/queueServices/default/queues/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\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.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\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.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxpagesize,\n Parameters.filter,\n ],\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.ListQueueResource,\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"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing QueueServices operations. */
|
|
12
12
|
export class QueueServicesImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class QueueServices class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queueServices.js","sourceRoot":"","sources":["../../../src/operations/queueServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;
|
|
1
|
+
{"version":3,"file":"queueServices.js","sourceRoot":"","sources":["../../../src/operations/queueServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,O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,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 { QueueServices } 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 QueueServicesListOptionalParams,\n QueueServicesListResponse,\n QueueServiceProperties,\n QueueServicesSetServicePropertiesOptionalParams,\n QueueServicesSetServicePropertiesResponse,\n QueueServicesGetServicePropertiesOptionalParams,\n QueueServicesGetServicePropertiesResponse,\n} from \"../models/index.js\";\n\n/** Class containing QueueServices operations. */\nexport class QueueServicesImpl implements QueueServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class QueueServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all queue 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?: QueueServicesListOptionalParams,\n ): Promise<QueueServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of a storage account’s Queue 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 Queue 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: QueueServiceProperties,\n options?: QueueServicesSetServicePropertiesOptionalParams,\n ): Promise<QueueServicesSetServicePropertiesResponse> {\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 Queue 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?: QueueServicesGetServicePropertiesOptionalParams,\n ): Promise<QueueServicesGetServicePropertiesResponse> {\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}/queueServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueServices,\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}/queueServices/{queueServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueServiceName,\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}/queueServices/{queueServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\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.queueServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,13 +5,13 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing Skus operations. */
|
|
14
13
|
export class SkusImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class Skus class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -33,39 +33,22 @@ export class SkusImpl {
|
|
|
33
33
|
return this;
|
|
34
34
|
},
|
|
35
35
|
byPage: (settings) => {
|
|
36
|
-
if (settings
|
|
36
|
+
if (settings?.maxPageSize) {
|
|
37
37
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
38
38
|
}
|
|
39
39
|
return this.listPagingPage(options, settings);
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
listPagingPage(options, _settings) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
yield yield __await(result.value || []);
|
|
48
|
-
});
|
|
43
|
+
async *listPagingPage(options, _settings) {
|
|
44
|
+
let result;
|
|
45
|
+
result = await this._list(options);
|
|
46
|
+
yield result.value || [];
|
|
49
47
|
}
|
|
50
|
-
listPagingAll(options) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
55
|
-
_c = _f.value;
|
|
56
|
-
_d = false;
|
|
57
|
-
const page = _c;
|
|
58
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
-
finally {
|
|
63
|
-
try {
|
|
64
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
65
|
-
}
|
|
66
|
-
finally { if (e_1) throw e_1.error; }
|
|
67
|
-
}
|
|
68
|
-
});
|
|
48
|
+
async *listPagingAll(options) {
|
|
49
|
+
for await (const page of this.listPagingPage(options)) {
|
|
50
|
+
yield* page;
|
|
51
|
+
}
|
|
69
52
|
}
|
|
70
53
|
/**
|
|
71
54
|
* Lists the available SKUs supported by Microsoft.Storage for given subscription.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,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C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,kEAAkE;IACxE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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 { Skus } 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 SkuInformation,\n SkusListOptionalParams,\n SkusListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Skus operations. */\nexport class SkusImpl implements Skus {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Skus class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the available SKUs supported by Microsoft.Storage for given subscription.\n * @param options The options parameters.\n */\n public list(\n options?: SkusListOptionalParams,\n ): PagedAsyncIterableIterator<SkuInformation> {\n const iter = this.listPagingAll(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(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: SkusListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<SkuInformation[]> {\n let result: SkusListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: SkusListOptionalParams,\n ): AsyncIterableIterator<SkuInformation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the available SKUs supported by Microsoft.Storage for given subscription.\n * @param options The options parameters.\n */\n private _list(options?: SkusListOptionalParams): Promise<SkusListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSkuListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing StorageAccounts operations. */
|
|
17
16
|
export class StorageAccountsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class StorageAccounts class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class StorageAccountsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listPagingPage(options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listPagingPage(options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._list(options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listNext(continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listPagingAll(options) {
|
|
66
|
+
for await (const page of this.listPagingPage(options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Lists all the storage accounts available under the given resource group. Note that storage keys are
|
|
@@ -101,52 +84,35 @@ export class StorageAccountsImpl {
|
|
|
101
84
|
return this;
|
|
102
85
|
},
|
|
103
86
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
87
|
+
if (settings?.maxPageSize) {
|
|
105
88
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
89
|
}
|
|
107
90
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
108
91
|
},
|
|
109
92
|
};
|
|
110
93
|
}
|
|
111
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
94
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
95
|
+
let result;
|
|
96
|
+
let continuationToken = settings?.continuationToken;
|
|
97
|
+
if (!continuationToken) {
|
|
98
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
104
|
+
while (continuationToken) {
|
|
105
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
106
|
+
continuationToken = result.nextLink;
|
|
107
|
+
let page = result.value || [];
|
|
108
|
+
setContinuationToken(page, continuationToken);
|
|
109
|
+
yield page;
|
|
110
|
+
}
|
|
130
111
|
}
|
|
131
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
-
_c = _f.value;
|
|
137
|
-
_d = false;
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
-
finally {
|
|
144
|
-
try {
|
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
146
|
-
}
|
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
112
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
113
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
114
|
+
yield* page;
|
|
115
|
+
}
|
|
150
116
|
}
|
|
151
117
|
/**
|
|
152
118
|
* Checks that the storage account name is valid and is not already in use.
|
|
@@ -176,14 +142,19 @@ export class StorageAccountsImpl {
|
|
|
176
142
|
return this.client.sendOperationRequest(args, spec);
|
|
177
143
|
};
|
|
178
144
|
const sendOperationFn = async (args, spec) => {
|
|
179
|
-
var _a;
|
|
180
145
|
let currentRawResponse = undefined;
|
|
181
|
-
const providedCallback =
|
|
146
|
+
const providedCallback = args.options?.onResponse;
|
|
182
147
|
const callback = (rawResponse, flatResponse) => {
|
|
183
148
|
currentRawResponse = rawResponse;
|
|
184
|
-
providedCallback
|
|
149
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
150
|
+
};
|
|
151
|
+
const updatedArgs = {
|
|
152
|
+
...args,
|
|
153
|
+
options: {
|
|
154
|
+
...args.options,
|
|
155
|
+
onResponse: callback,
|
|
156
|
+
},
|
|
185
157
|
};
|
|
186
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
187
158
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
188
159
|
return {
|
|
189
160
|
flatResponse,
|
|
@@ -200,8 +171,8 @@ export class StorageAccountsImpl {
|
|
|
200
171
|
spec: createOperationSpec,
|
|
201
172
|
});
|
|
202
173
|
const poller = await createHttpPoller(lro, {
|
|
203
|
-
restoreFrom: options
|
|
204
|
-
intervalInMs: options
|
|
174
|
+
restoreFrom: options?.resumeFrom,
|
|
175
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
205
176
|
});
|
|
206
177
|
await poller.poll();
|
|
207
178
|
return poller;
|
|
@@ -361,14 +332,19 @@ export class StorageAccountsImpl {
|
|
|
361
332
|
return this.client.sendOperationRequest(args, spec);
|
|
362
333
|
};
|
|
363
334
|
const sendOperationFn = async (args, spec) => {
|
|
364
|
-
var _a;
|
|
365
335
|
let currentRawResponse = undefined;
|
|
366
|
-
const providedCallback =
|
|
336
|
+
const providedCallback = args.options?.onResponse;
|
|
367
337
|
const callback = (rawResponse, flatResponse) => {
|
|
368
338
|
currentRawResponse = rawResponse;
|
|
369
|
-
providedCallback
|
|
339
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
340
|
+
};
|
|
341
|
+
const updatedArgs = {
|
|
342
|
+
...args,
|
|
343
|
+
options: {
|
|
344
|
+
...args.options,
|
|
345
|
+
onResponse: callback,
|
|
346
|
+
},
|
|
370
347
|
};
|
|
371
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
372
348
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
373
349
|
return {
|
|
374
350
|
flatResponse,
|
|
@@ -385,8 +361,8 @@ export class StorageAccountsImpl {
|
|
|
385
361
|
spec: failoverOperationSpec,
|
|
386
362
|
});
|
|
387
363
|
const poller = await createHttpPoller(lro, {
|
|
388
|
-
restoreFrom: options
|
|
389
|
-
intervalInMs: options
|
|
364
|
+
restoreFrom: options?.resumeFrom,
|
|
365
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
390
366
|
resourceLocationConfig: "location",
|
|
391
367
|
});
|
|
392
368
|
await poller.poll();
|
|
@@ -432,14 +408,19 @@ export class StorageAccountsImpl {
|
|
|
432
408
|
return this.client.sendOperationRequest(args, spec);
|
|
433
409
|
};
|
|
434
410
|
const sendOperationFn = async (args, spec) => {
|
|
435
|
-
var _a;
|
|
436
411
|
let currentRawResponse = undefined;
|
|
437
|
-
const providedCallback =
|
|
412
|
+
const providedCallback = args.options?.onResponse;
|
|
438
413
|
const callback = (rawResponse, flatResponse) => {
|
|
439
414
|
currentRawResponse = rawResponse;
|
|
440
|
-
providedCallback
|
|
415
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
416
|
+
};
|
|
417
|
+
const updatedArgs = {
|
|
418
|
+
...args,
|
|
419
|
+
options: {
|
|
420
|
+
...args.options,
|
|
421
|
+
onResponse: callback,
|
|
422
|
+
},
|
|
441
423
|
};
|
|
442
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
443
424
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
444
425
|
return {
|
|
445
426
|
flatResponse,
|
|
@@ -456,8 +437,8 @@ export class StorageAccountsImpl {
|
|
|
456
437
|
spec: hierarchicalNamespaceMigrationOperationSpec,
|
|
457
438
|
});
|
|
458
439
|
const poller = await createHttpPoller(lro, {
|
|
459
|
-
restoreFrom: options
|
|
460
|
-
intervalInMs: options
|
|
440
|
+
restoreFrom: options?.resumeFrom,
|
|
441
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
461
442
|
resourceLocationConfig: "location",
|
|
462
443
|
});
|
|
463
444
|
await poller.poll();
|
|
@@ -494,14 +475,19 @@ export class StorageAccountsImpl {
|
|
|
494
475
|
return this.client.sendOperationRequest(args, spec);
|
|
495
476
|
};
|
|
496
477
|
const sendOperationFn = async (args, spec) => {
|
|
497
|
-
var _a;
|
|
498
478
|
let currentRawResponse = undefined;
|
|
499
|
-
const providedCallback =
|
|
479
|
+
const providedCallback = args.options?.onResponse;
|
|
500
480
|
const callback = (rawResponse, flatResponse) => {
|
|
501
481
|
currentRawResponse = rawResponse;
|
|
502
|
-
providedCallback
|
|
482
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
483
|
+
};
|
|
484
|
+
const updatedArgs = {
|
|
485
|
+
...args,
|
|
486
|
+
options: {
|
|
487
|
+
...args.options,
|
|
488
|
+
onResponse: callback,
|
|
489
|
+
},
|
|
503
490
|
};
|
|
504
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
505
491
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
506
492
|
return {
|
|
507
493
|
flatResponse,
|
|
@@ -518,8 +504,8 @@ export class StorageAccountsImpl {
|
|
|
518
504
|
spec: abortHierarchicalNamespaceMigrationOperationSpec,
|
|
519
505
|
});
|
|
520
506
|
const poller = await createHttpPoller(lro, {
|
|
521
|
-
restoreFrom: options
|
|
522
|
-
intervalInMs: options
|
|
507
|
+
restoreFrom: options?.resumeFrom,
|
|
508
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
523
509
|
resourceLocationConfig: "location",
|
|
524
510
|
});
|
|
525
511
|
await poller.poll();
|
|
@@ -556,14 +542,19 @@ export class StorageAccountsImpl {
|
|
|
556
542
|
return this.client.sendOperationRequest(args, spec);
|
|
557
543
|
};
|
|
558
544
|
const sendOperationFn = async (args, spec) => {
|
|
559
|
-
var _a;
|
|
560
545
|
let currentRawResponse = undefined;
|
|
561
|
-
const providedCallback =
|
|
546
|
+
const providedCallback = args.options?.onResponse;
|
|
562
547
|
const callback = (rawResponse, flatResponse) => {
|
|
563
548
|
currentRawResponse = rawResponse;
|
|
564
|
-
providedCallback
|
|
549
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
550
|
+
};
|
|
551
|
+
const updatedArgs = {
|
|
552
|
+
...args,
|
|
553
|
+
options: {
|
|
554
|
+
...args.options,
|
|
555
|
+
onResponse: callback,
|
|
556
|
+
},
|
|
565
557
|
};
|
|
566
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
567
558
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
568
559
|
return {
|
|
569
560
|
flatResponse,
|
|
@@ -580,8 +571,8 @@ export class StorageAccountsImpl {
|
|
|
580
571
|
spec: customerInitiatedMigrationOperationSpec,
|
|
581
572
|
});
|
|
582
573
|
const poller = await createHttpPoller(lro, {
|
|
583
|
-
restoreFrom: options
|
|
584
|
-
intervalInMs: options
|
|
574
|
+
restoreFrom: options?.resumeFrom,
|
|
575
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
585
576
|
resourceLocationConfig: "location",
|
|
586
577
|
});
|
|
587
578
|
await poller.poll();
|
|
@@ -632,14 +623,19 @@ export class StorageAccountsImpl {
|
|
|
632
623
|
return this.client.sendOperationRequest(args, spec);
|
|
633
624
|
};
|
|
634
625
|
const sendOperationFn = async (args, spec) => {
|
|
635
|
-
var _a;
|
|
636
626
|
let currentRawResponse = undefined;
|
|
637
|
-
const providedCallback =
|
|
627
|
+
const providedCallback = args.options?.onResponse;
|
|
638
628
|
const callback = (rawResponse, flatResponse) => {
|
|
639
629
|
currentRawResponse = rawResponse;
|
|
640
|
-
providedCallback
|
|
630
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
631
|
+
};
|
|
632
|
+
const updatedArgs = {
|
|
633
|
+
...args,
|
|
634
|
+
options: {
|
|
635
|
+
...args.options,
|
|
636
|
+
onResponse: callback,
|
|
637
|
+
},
|
|
641
638
|
};
|
|
642
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
643
639
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
644
640
|
return {
|
|
645
641
|
flatResponse,
|
|
@@ -656,8 +652,8 @@ export class StorageAccountsImpl {
|
|
|
656
652
|
spec: restoreBlobRangesOperationSpec,
|
|
657
653
|
});
|
|
658
654
|
const poller = await createHttpPoller(lro, {
|
|
659
|
-
restoreFrom: options
|
|
660
|
-
intervalInMs: options
|
|
655
|
+
restoreFrom: options?.resumeFrom,
|
|
656
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
661
657
|
resourceLocationConfig: "location",
|
|
662
658
|
});
|
|
663
659
|
await poller.poll();
|