@azure/arm-quantum 1.0.0-beta.1 → 1.0.0-beta.3
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/CHANGELOG.md +39 -1
- package/LICENSE +4 -4
- package/README.md +26 -19
- package/{dist-esm/src → dist/browser}/azureQuantumManagementClient.d.ts +3 -3
- package/dist/browser/azureQuantumManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/azureQuantumManagementClient.js +41 -32
- package/dist/browser/azureQuantumManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +18 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +106 -41
- package/dist/browser/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.js +8 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts +5 -1
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +464 -347
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/models/parameters.js +43 -32
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +4 -4
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/offerings.d.ts +3 -3
- package/dist/browser/operations/offerings.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/offerings.js +37 -59
- package/dist/browser/operations/offerings.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/dist/browser/operations/operations.js +116 -0
- package/dist/browser/operations/operations.js.map +1 -0
- package/dist/browser/operations/workspace.d.ts +38 -0
- package/dist/browser/operations/workspace.d.ts.map +1 -0
- package/dist/browser/operations/workspace.js +119 -0
- package/dist/browser/operations/workspace.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaces.d.ts +12 -12
- package/dist/browser/operations/workspaces.d.ts.map +1 -0
- package/dist/browser/operations/workspaces.js +457 -0
- package/dist/browser/operations/workspaces.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +4 -4
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/offerings.d.ts +1 -1
- package/dist/browser/operationsInterfaces/offerings.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/offerings.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/dist/browser/operationsInterfaces/workspace.d.ts +30 -0
- package/dist/browser/operationsInterfaces/workspace.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/workspace.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.d.ts +8 -8
- package/dist/browser/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/azureQuantumManagementClient.d.ts +23 -0
- package/dist/commonjs/azureQuantumManagementClient.d.ts.map +1 -0
- package/dist/commonjs/azureQuantumManagementClient.js +117 -0
- package/dist/commonjs/azureQuantumManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +21 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-quantum.d.ts → dist/commonjs/models/index.d.ts} +614 -734
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +81 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +32 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1032 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +15 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +130 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +5 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +15 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/offerings.d.ts +35 -0
- package/dist/commonjs/operations/offerings.d.ts.map +1 -0
- package/dist/commonjs/operations/offerings.js +133 -0
- package/dist/commonjs/operations/offerings.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +121 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/workspace.d.ts +38 -0
- package/dist/commonjs/operations/workspace.d.ts.map +1 -0
- package/dist/commonjs/operations/workspace.js +124 -0
- package/dist/commonjs/operations/workspace.js.map +1 -0
- package/dist/commonjs/operations/workspaces.d.ts +99 -0
- package/dist/commonjs/operations/workspaces.d.ts.map +1 -0
- package/dist/commonjs/operations/workspaces.js +462 -0
- package/dist/commonjs/operations/workspaces.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +15 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/offerings.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/offerings.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/offerings.js +10 -0
- package/dist/commonjs/operationsInterfaces/offerings.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspace.d.ts +30 -0
- package/dist/commonjs/operationsInterfaces/workspace.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspace.js +10 -0
- package/dist/commonjs/operationsInterfaces/workspace.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaces.d.ts +63 -0
- package/dist/commonjs/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaces.js +10 -0
- package/dist/commonjs/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/azureQuantumManagementClient.d.ts +23 -0
- package/dist/esm/azureQuantumManagementClient.d.ts.map +1 -0
- package/dist/esm/azureQuantumManagementClient.js +112 -0
- package/dist/esm/azureQuantumManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +18 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +614 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +78 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +32 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1029 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +15 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +127 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +5 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +12 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/offerings.d.ts +35 -0
- package/dist/esm/operations/offerings.d.ts.map +1 -0
- package/dist/esm/operations/offerings.js +128 -0
- package/dist/esm/operations/offerings.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +116 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/workspace.d.ts +38 -0
- package/dist/esm/operations/workspace.d.ts.map +1 -0
- package/dist/esm/operations/workspace.js +119 -0
- package/dist/esm/operations/workspace.js.map +1 -0
- package/dist/esm/operations/workspaces.d.ts +99 -0
- package/dist/esm/operations/workspaces.d.ts.map +1 -0
- package/dist/esm/operations/workspaces.js +457 -0
- package/dist/esm/operations/workspaces.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +5 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +12 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/offerings.d.ts +12 -0
- package/dist/esm/operationsInterfaces/offerings.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/offerings.js +9 -0
- package/dist/esm/operationsInterfaces/offerings.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/workspace.d.ts +30 -0
- package/dist/esm/operationsInterfaces/workspace.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/workspace.js +9 -0
- package/dist/esm/operationsInterfaces/workspace.js.map +1 -0
- package/dist/esm/operationsInterfaces/workspaces.d.ts +63 -0
- package/dist/esm/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/workspaces.js +9 -0
- package/dist/esm/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/azureQuantumManagementClient.d.ts +23 -0
- package/dist/react-native/azureQuantumManagementClient.d.ts.map +1 -0
- package/dist/react-native/azureQuantumManagementClient.js +112 -0
- package/dist/react-native/azureQuantumManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +18 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +614 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +78 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +32 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1029 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +15 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +127 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +5 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +12 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/offerings.d.ts +35 -0
- package/dist/react-native/operations/offerings.d.ts.map +1 -0
- package/dist/react-native/operations/offerings.js +128 -0
- package/dist/react-native/operations/offerings.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +116 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/workspace.d.ts +38 -0
- package/dist/react-native/operations/workspace.d.ts.map +1 -0
- package/dist/react-native/operations/workspace.js +119 -0
- package/dist/react-native/operations/workspace.js.map +1 -0
- package/dist/react-native/operations/workspaces.d.ts +99 -0
- package/dist/react-native/operations/workspaces.d.ts.map +1 -0
- package/dist/react-native/operations/workspaces.js +457 -0
- package/dist/react-native/operations/workspaces.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +12 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/offerings.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/offerings.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/offerings.js +9 -0
- package/dist/react-native/operationsInterfaces/offerings.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/workspace.d.ts +30 -0
- package/dist/react-native/operationsInterfaces/workspace.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/workspace.js +9 -0
- package/dist/react-native/operationsInterfaces/workspace.js.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaces.d.ts +63 -0
- package/dist/react-native/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaces.js +9 -0
- package/dist/react-native/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +83 -72
- package/review/{arm-quantum.api.md → arm-quantum-node.api.md} +54 -6
- package/dist/index.js +0 -2131
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/offeringsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/offeringsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/offeringsListSample.js +0 -59
- package/dist-esm/samples-dev/offeringsListSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -58
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.js +0 -42
- package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +0 -48
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.js +0 -39
- package/dist-esm/samples-dev/workspacesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesGetSample.js +0 -39
- package/dist-esm/samples-dev/workspacesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +0 -59
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +0 -58
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesUpdateTagsSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesUpdateTagsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesUpdateTagsSample.js +0 -42
- package/dist-esm/samples-dev/workspacesUpdateTagsSample.js.map +0 -1
- package/dist-esm/src/azureQuantumManagementClient.d.ts.map +0 -1
- package/dist-esm/src/azureQuantumManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -5
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/offerings.d.ts.map +0 -1
- package/dist-esm/src/operations/offerings.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js +0 -138
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/workspace.d.ts +0 -20
- package/dist-esm/src/operations/workspace.d.ts.map +0 -1
- package/dist-esm/src/operations/workspace.js +0 -54
- package/dist-esm/src/operations/workspace.js.map +0 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +0 -1
- package/dist-esm/src/operations/workspaces.js +0 -498
- package/dist-esm/src/operations/workspaces.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/offerings.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/offerings.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspace.d.ts +0 -12
- package/dist-esm/src/operationsInterfaces/workspace.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspace.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/quantum_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/quantum_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/quantum_operations_test.spec.js +0 -128
- package/dist-esm/test/quantum_operations_test.spec.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/azureQuantumManagementClient.ts +0 -156
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -617
- package/src/models/mappers.ts +0 -952
- package/src/models/parameters.ts +0 -137
- package/src/operations/index.ts +0 -12
- package/src/operations/offerings.ts +0 -170
- package/src/operations/operations.ts +0 -149
- package/src/operations/workspace.ts +0 -74
- package/src/operations/workspaces.ts +0 -633
- package/src/operationsInterfaces/index.ts +0 -12
- package/src/operationsInterfaces/offerings.ts +0 -24
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/workspace.ts +0 -28
- package/src/operationsInterfaces/workspaces.ts +0 -121
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/offerings.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspace.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
package/src/models/parameters.ts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
OperationParameter,
|
|
11
|
-
OperationURLParameter,
|
|
12
|
-
OperationQueryParameter
|
|
13
|
-
} from "@azure/core-client";
|
|
14
|
-
import {
|
|
15
|
-
QuantumWorkspace as QuantumWorkspaceMapper,
|
|
16
|
-
TagsObject as TagsObjectMapper,
|
|
17
|
-
CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper
|
|
18
|
-
} from "../models/mappers";
|
|
19
|
-
|
|
20
|
-
export const accept: OperationParameter = {
|
|
21
|
-
parameterPath: "accept",
|
|
22
|
-
mapper: {
|
|
23
|
-
defaultValue: "application/json",
|
|
24
|
-
isConstant: true,
|
|
25
|
-
serializedName: "Accept",
|
|
26
|
-
type: {
|
|
27
|
-
name: "String"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const $host: OperationURLParameter = {
|
|
33
|
-
parameterPath: "$host",
|
|
34
|
-
mapper: {
|
|
35
|
-
serializedName: "$host",
|
|
36
|
-
required: true,
|
|
37
|
-
type: {
|
|
38
|
-
name: "String"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
skipEncoding: true
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const resourceGroupName: OperationURLParameter = {
|
|
45
|
-
parameterPath: "resourceGroupName",
|
|
46
|
-
mapper: {
|
|
47
|
-
serializedName: "resourceGroupName",
|
|
48
|
-
required: true,
|
|
49
|
-
type: {
|
|
50
|
-
name: "String"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const apiVersion: OperationQueryParameter = {
|
|
56
|
-
parameterPath: "apiVersion",
|
|
57
|
-
mapper: {
|
|
58
|
-
defaultValue: "2022-01-10-preview",
|
|
59
|
-
isConstant: true,
|
|
60
|
-
serializedName: "api-version",
|
|
61
|
-
type: {
|
|
62
|
-
name: "String"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const subscriptionId: OperationURLParameter = {
|
|
68
|
-
parameterPath: "subscriptionId",
|
|
69
|
-
mapper: {
|
|
70
|
-
serializedName: "subscriptionId",
|
|
71
|
-
required: true,
|
|
72
|
-
type: {
|
|
73
|
-
name: "String"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export const workspaceName: OperationURLParameter = {
|
|
79
|
-
parameterPath: "workspaceName",
|
|
80
|
-
mapper: {
|
|
81
|
-
serializedName: "workspaceName",
|
|
82
|
-
required: true,
|
|
83
|
-
type: {
|
|
84
|
-
name: "String"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export const contentType: OperationParameter = {
|
|
90
|
-
parameterPath: ["options", "contentType"],
|
|
91
|
-
mapper: {
|
|
92
|
-
defaultValue: "application/json",
|
|
93
|
-
isConstant: true,
|
|
94
|
-
serializedName: "Content-Type",
|
|
95
|
-
type: {
|
|
96
|
-
name: "String"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export const quantumWorkspace: OperationParameter = {
|
|
102
|
-
parameterPath: "quantumWorkspace",
|
|
103
|
-
mapper: QuantumWorkspaceMapper
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export const workspaceTags: OperationParameter = {
|
|
107
|
-
parameterPath: "workspaceTags",
|
|
108
|
-
mapper: TagsObjectMapper
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export const nextLink: OperationURLParameter = {
|
|
112
|
-
parameterPath: "nextLink",
|
|
113
|
-
mapper: {
|
|
114
|
-
serializedName: "nextLink",
|
|
115
|
-
required: true,
|
|
116
|
-
type: {
|
|
117
|
-
name: "String"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
skipEncoding: true
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export const locationName: OperationURLParameter = {
|
|
124
|
-
parameterPath: "locationName",
|
|
125
|
-
mapper: {
|
|
126
|
-
serializedName: "locationName",
|
|
127
|
-
required: true,
|
|
128
|
-
type: {
|
|
129
|
-
name: "String"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export const checkNameAvailabilityParameters: OperationParameter = {
|
|
135
|
-
parameterPath: "checkNameAvailabilityParameters",
|
|
136
|
-
mapper: CheckNameAvailabilityParametersMapper
|
|
137
|
-
};
|
package/src/operations/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export * from "./workspaces";
|
|
10
|
-
export * from "./offerings";
|
|
11
|
-
export * from "./operations";
|
|
12
|
-
export * from "./workspace";
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Offerings } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureQuantumManagementClient } from "../azureQuantumManagementClient";
|
|
16
|
-
import {
|
|
17
|
-
ProviderDescription,
|
|
18
|
-
OfferingsListNextOptionalParams,
|
|
19
|
-
OfferingsListOptionalParams,
|
|
20
|
-
OfferingsListResponse,
|
|
21
|
-
OfferingsListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Offerings operations. */
|
|
26
|
-
export class OfferingsImpl implements Offerings {
|
|
27
|
-
private readonly client: AzureQuantumManagementClient;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Offerings class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: AzureQuantumManagementClient) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Returns the list of all provider offerings available for the given location.
|
|
39
|
-
* @param locationName Location.
|
|
40
|
-
* @param options The options parameters.
|
|
41
|
-
*/
|
|
42
|
-
public list(
|
|
43
|
-
locationName: string,
|
|
44
|
-
options?: OfferingsListOptionalParams
|
|
45
|
-
): PagedAsyncIterableIterator<ProviderDescription> {
|
|
46
|
-
const iter = this.listPagingAll(locationName, options);
|
|
47
|
-
return {
|
|
48
|
-
next() {
|
|
49
|
-
return iter.next();
|
|
50
|
-
},
|
|
51
|
-
[Symbol.asyncIterator]() {
|
|
52
|
-
return this;
|
|
53
|
-
},
|
|
54
|
-
byPage: (settings?: PageSettings) => {
|
|
55
|
-
if (settings?.maxPageSize) {
|
|
56
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
57
|
-
}
|
|
58
|
-
return this.listPagingPage(locationName, options, settings);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
private async *listPagingPage(
|
|
64
|
-
locationName: string,
|
|
65
|
-
options?: OfferingsListOptionalParams,
|
|
66
|
-
settings?: PageSettings
|
|
67
|
-
): AsyncIterableIterator<ProviderDescription[]> {
|
|
68
|
-
let result: OfferingsListResponse;
|
|
69
|
-
let continuationToken = settings?.continuationToken;
|
|
70
|
-
if (!continuationToken) {
|
|
71
|
-
result = await this._list(locationName, options);
|
|
72
|
-
let page = result.value || [];
|
|
73
|
-
continuationToken = result.nextLink;
|
|
74
|
-
setContinuationToken(page, continuationToken);
|
|
75
|
-
yield page;
|
|
76
|
-
}
|
|
77
|
-
while (continuationToken) {
|
|
78
|
-
result = await this._listNext(locationName, continuationToken, options);
|
|
79
|
-
continuationToken = result.nextLink;
|
|
80
|
-
let page = result.value || [];
|
|
81
|
-
setContinuationToken(page, continuationToken);
|
|
82
|
-
yield page;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private async *listPagingAll(
|
|
87
|
-
locationName: string,
|
|
88
|
-
options?: OfferingsListOptionalParams
|
|
89
|
-
): AsyncIterableIterator<ProviderDescription> {
|
|
90
|
-
for await (const page of this.listPagingPage(locationName, options)) {
|
|
91
|
-
yield* page;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Returns the list of all provider offerings available for the given location.
|
|
97
|
-
* @param locationName Location.
|
|
98
|
-
* @param options The options parameters.
|
|
99
|
-
*/
|
|
100
|
-
private _list(
|
|
101
|
-
locationName: string,
|
|
102
|
-
options?: OfferingsListOptionalParams
|
|
103
|
-
): Promise<OfferingsListResponse> {
|
|
104
|
-
return this.client.sendOperationRequest(
|
|
105
|
-
{ locationName, options },
|
|
106
|
-
listOperationSpec
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* ListNext
|
|
112
|
-
* @param locationName Location.
|
|
113
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
114
|
-
* @param options The options parameters.
|
|
115
|
-
*/
|
|
116
|
-
private _listNext(
|
|
117
|
-
locationName: string,
|
|
118
|
-
nextLink: string,
|
|
119
|
-
options?: OfferingsListNextOptionalParams
|
|
120
|
-
): Promise<OfferingsListNextResponse> {
|
|
121
|
-
return this.client.sendOperationRequest(
|
|
122
|
-
{ locationName, nextLink, options },
|
|
123
|
-
listNextOperationSpec
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
// Operation Specifications
|
|
128
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
129
|
-
|
|
130
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
131
|
-
path:
|
|
132
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings",
|
|
133
|
-
httpMethod: "GET",
|
|
134
|
-
responses: {
|
|
135
|
-
200: {
|
|
136
|
-
bodyMapper: Mappers.OfferingsListResult
|
|
137
|
-
},
|
|
138
|
-
default: {
|
|
139
|
-
bodyMapper: Mappers.ErrorResponse
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
queryParameters: [Parameters.apiVersion],
|
|
143
|
-
urlParameters: [
|
|
144
|
-
Parameters.$host,
|
|
145
|
-
Parameters.subscriptionId,
|
|
146
|
-
Parameters.locationName
|
|
147
|
-
],
|
|
148
|
-
headerParameters: [Parameters.accept],
|
|
149
|
-
serializer
|
|
150
|
-
};
|
|
151
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
152
|
-
path: "{nextLink}",
|
|
153
|
-
httpMethod: "GET",
|
|
154
|
-
responses: {
|
|
155
|
-
200: {
|
|
156
|
-
bodyMapper: Mappers.OfferingsListResult
|
|
157
|
-
},
|
|
158
|
-
default: {
|
|
159
|
-
bodyMapper: Mappers.ErrorResponse
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
urlParameters: [
|
|
163
|
-
Parameters.$host,
|
|
164
|
-
Parameters.subscriptionId,
|
|
165
|
-
Parameters.nextLink,
|
|
166
|
-
Parameters.locationName
|
|
167
|
-
],
|
|
168
|
-
headerParameters: [Parameters.accept],
|
|
169
|
-
serializer
|
|
170
|
-
};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Operations } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureQuantumManagementClient } from "../azureQuantumManagementClient";
|
|
16
|
-
import {
|
|
17
|
-
Operation,
|
|
18
|
-
OperationsListNextOptionalParams,
|
|
19
|
-
OperationsListOptionalParams,
|
|
20
|
-
OperationsListResponse,
|
|
21
|
-
OperationsListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Operations operations. */
|
|
26
|
-
export class OperationsImpl implements Operations {
|
|
27
|
-
private readonly client: AzureQuantumManagementClient;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Operations class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: AzureQuantumManagementClient) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Returns list of operations.
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
public list(
|
|
42
|
-
options?: OperationsListOptionalParams
|
|
43
|
-
): PagedAsyncIterableIterator<Operation> {
|
|
44
|
-
const iter = this.listPagingAll(options);
|
|
45
|
-
return {
|
|
46
|
-
next() {
|
|
47
|
-
return iter.next();
|
|
48
|
-
},
|
|
49
|
-
[Symbol.asyncIterator]() {
|
|
50
|
-
return this;
|
|
51
|
-
},
|
|
52
|
-
byPage: (settings?: PageSettings) => {
|
|
53
|
-
if (settings?.maxPageSize) {
|
|
54
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
-
}
|
|
56
|
-
return this.listPagingPage(options, settings);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
private async *listPagingPage(
|
|
62
|
-
options?: OperationsListOptionalParams,
|
|
63
|
-
settings?: PageSettings
|
|
64
|
-
): AsyncIterableIterator<Operation[]> {
|
|
65
|
-
let result: OperationsListResponse;
|
|
66
|
-
let continuationToken = settings?.continuationToken;
|
|
67
|
-
if (!continuationToken) {
|
|
68
|
-
result = await this._list(options);
|
|
69
|
-
let page = result.value || [];
|
|
70
|
-
continuationToken = result.nextLink;
|
|
71
|
-
setContinuationToken(page, continuationToken);
|
|
72
|
-
yield page;
|
|
73
|
-
}
|
|
74
|
-
while (continuationToken) {
|
|
75
|
-
result = await this._listNext(continuationToken, options);
|
|
76
|
-
continuationToken = result.nextLink;
|
|
77
|
-
let page = result.value || [];
|
|
78
|
-
setContinuationToken(page, continuationToken);
|
|
79
|
-
yield page;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private async *listPagingAll(
|
|
84
|
-
options?: OperationsListOptionalParams
|
|
85
|
-
): AsyncIterableIterator<Operation> {
|
|
86
|
-
for await (const page of this.listPagingPage(options)) {
|
|
87
|
-
yield* page;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Returns list of operations.
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
private _list(
|
|
96
|
-
options?: OperationsListOptionalParams
|
|
97
|
-
): Promise<OperationsListResponse> {
|
|
98
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* ListNext
|
|
103
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
104
|
-
* @param options The options parameters.
|
|
105
|
-
*/
|
|
106
|
-
private _listNext(
|
|
107
|
-
nextLink: string,
|
|
108
|
-
options?: OperationsListNextOptionalParams
|
|
109
|
-
): Promise<OperationsListNextResponse> {
|
|
110
|
-
return this.client.sendOperationRequest(
|
|
111
|
-
{ nextLink, options },
|
|
112
|
-
listNextOperationSpec
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// Operation Specifications
|
|
117
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
118
|
-
|
|
119
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
120
|
-
path: "/providers/Microsoft.Quantum/operations",
|
|
121
|
-
httpMethod: "GET",
|
|
122
|
-
responses: {
|
|
123
|
-
200: {
|
|
124
|
-
bodyMapper: Mappers.OperationsList
|
|
125
|
-
},
|
|
126
|
-
default: {
|
|
127
|
-
bodyMapper: Mappers.ErrorResponse
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
queryParameters: [Parameters.apiVersion],
|
|
131
|
-
urlParameters: [Parameters.$host],
|
|
132
|
-
headerParameters: [Parameters.accept],
|
|
133
|
-
serializer
|
|
134
|
-
};
|
|
135
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
136
|
-
path: "{nextLink}",
|
|
137
|
-
httpMethod: "GET",
|
|
138
|
-
responses: {
|
|
139
|
-
200: {
|
|
140
|
-
bodyMapper: Mappers.OperationsList
|
|
141
|
-
},
|
|
142
|
-
default: {
|
|
143
|
-
bodyMapper: Mappers.ErrorResponse
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
147
|
-
headerParameters: [Parameters.accept],
|
|
148
|
-
serializer
|
|
149
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { Workspace } from "../operationsInterfaces";
|
|
10
|
-
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
13
|
-
import { AzureQuantumManagementClient } from "../azureQuantumManagementClient";
|
|
14
|
-
import {
|
|
15
|
-
CheckNameAvailabilityParameters,
|
|
16
|
-
WorkspaceCheckNameAvailabilityOptionalParams,
|
|
17
|
-
WorkspaceCheckNameAvailabilityResponse
|
|
18
|
-
} from "../models";
|
|
19
|
-
|
|
20
|
-
/** Class containing Workspace operations. */
|
|
21
|
-
export class WorkspaceImpl implements Workspace {
|
|
22
|
-
private readonly client: AzureQuantumManagementClient;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Initialize a new instance of the class Workspace class.
|
|
26
|
-
* @param client Reference to the service client
|
|
27
|
-
*/
|
|
28
|
-
constructor(client: AzureQuantumManagementClient) {
|
|
29
|
-
this.client = client;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Check the availability of the resource name.
|
|
34
|
-
* @param locationName Location.
|
|
35
|
-
* @param checkNameAvailabilityParameters The name and type of the resource.
|
|
36
|
-
* @param options The options parameters.
|
|
37
|
-
*/
|
|
38
|
-
checkNameAvailability(
|
|
39
|
-
locationName: string,
|
|
40
|
-
checkNameAvailabilityParameters: CheckNameAvailabilityParameters,
|
|
41
|
-
options?: WorkspaceCheckNameAvailabilityOptionalParams
|
|
42
|
-
): Promise<WorkspaceCheckNameAvailabilityResponse> {
|
|
43
|
-
return this.client.sendOperationRequest(
|
|
44
|
-
{ locationName, checkNameAvailabilityParameters, options },
|
|
45
|
-
checkNameAvailabilityOperationSpec
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
// Operation Specifications
|
|
50
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
51
|
-
|
|
52
|
-
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
53
|
-
path:
|
|
54
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability",
|
|
55
|
-
httpMethod: "POST",
|
|
56
|
-
responses: {
|
|
57
|
-
200: {
|
|
58
|
-
bodyMapper: Mappers.CheckNameAvailabilityResult
|
|
59
|
-
},
|
|
60
|
-
default: {
|
|
61
|
-
bodyMapper: Mappers.ErrorResponse
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
requestBody: Parameters.checkNameAvailabilityParameters,
|
|
65
|
-
queryParameters: [Parameters.apiVersion],
|
|
66
|
-
urlParameters: [
|
|
67
|
-
Parameters.$host,
|
|
68
|
-
Parameters.subscriptionId,
|
|
69
|
-
Parameters.locationName
|
|
70
|
-
],
|
|
71
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
72
|
-
mediaType: "json",
|
|
73
|
-
serializer
|
|
74
|
-
};
|