@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/dist/index.js
DELETED
|
@@ -1,2131 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n["default"] = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
-
|
|
31
|
-
/*
|
|
32
|
-
* Copyright (c) Microsoft Corporation.
|
|
33
|
-
* Licensed under the MIT License.
|
|
34
|
-
*
|
|
35
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
-
*/
|
|
38
|
-
const pageMap = new WeakMap();
|
|
39
|
-
/**
|
|
40
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
-
* returns a continuation token that can be used to begin paging from
|
|
42
|
-
* that point later.
|
|
43
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
-
*/
|
|
46
|
-
function getContinuationToken(page) {
|
|
47
|
-
var _a;
|
|
48
|
-
if (typeof page !== "object" || page === null) {
|
|
49
|
-
return undefined;
|
|
50
|
-
}
|
|
51
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
-
}
|
|
53
|
-
function setContinuationToken(page, continuationToken) {
|
|
54
|
-
var _a;
|
|
55
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
-
pageInfo.continuationToken = continuationToken;
|
|
60
|
-
pageMap.set(page, pageInfo);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/*
|
|
64
|
-
* Copyright (c) Microsoft Corporation.
|
|
65
|
-
* Licensed under the MIT License.
|
|
66
|
-
*
|
|
67
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
68
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
69
|
-
*/
|
|
70
|
-
/** Known values of {@link Status} that the service accepts. */
|
|
71
|
-
exports.KnownStatus = void 0;
|
|
72
|
-
(function (KnownStatus) {
|
|
73
|
-
/** Succeeded */
|
|
74
|
-
KnownStatus["Succeeded"] = "Succeeded";
|
|
75
|
-
/** Launching */
|
|
76
|
-
KnownStatus["Launching"] = "Launching";
|
|
77
|
-
/** Updating */
|
|
78
|
-
KnownStatus["Updating"] = "Updating";
|
|
79
|
-
/** Deleting */
|
|
80
|
-
KnownStatus["Deleting"] = "Deleting";
|
|
81
|
-
/** Deleted */
|
|
82
|
-
KnownStatus["Deleted"] = "Deleted";
|
|
83
|
-
/** Failed */
|
|
84
|
-
KnownStatus["Failed"] = "Failed";
|
|
85
|
-
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
|
86
|
-
/** Known values of {@link UsableStatus} that the service accepts. */
|
|
87
|
-
exports.KnownUsableStatus = void 0;
|
|
88
|
-
(function (KnownUsableStatus) {
|
|
89
|
-
/** Yes */
|
|
90
|
-
KnownUsableStatus["Yes"] = "Yes";
|
|
91
|
-
/** No */
|
|
92
|
-
KnownUsableStatus["No"] = "No";
|
|
93
|
-
/** Partial */
|
|
94
|
-
KnownUsableStatus["Partial"] = "Partial";
|
|
95
|
-
})(exports.KnownUsableStatus || (exports.KnownUsableStatus = {}));
|
|
96
|
-
/** Known values of {@link ProvisioningStatus} that the service accepts. */
|
|
97
|
-
exports.KnownProvisioningStatus = void 0;
|
|
98
|
-
(function (KnownProvisioningStatus) {
|
|
99
|
-
/** Succeeded */
|
|
100
|
-
KnownProvisioningStatus["Succeeded"] = "Succeeded";
|
|
101
|
-
/** ProviderLaunching */
|
|
102
|
-
KnownProvisioningStatus["ProviderLaunching"] = "ProviderLaunching";
|
|
103
|
-
/** ProviderUpdating */
|
|
104
|
-
KnownProvisioningStatus["ProviderUpdating"] = "ProviderUpdating";
|
|
105
|
-
/** ProviderDeleting */
|
|
106
|
-
KnownProvisioningStatus["ProviderDeleting"] = "ProviderDeleting";
|
|
107
|
-
/** ProviderProvisioning */
|
|
108
|
-
KnownProvisioningStatus["ProviderProvisioning"] = "ProviderProvisioning";
|
|
109
|
-
/** Failed */
|
|
110
|
-
KnownProvisioningStatus["Failed"] = "Failed";
|
|
111
|
-
})(exports.KnownProvisioningStatus || (exports.KnownProvisioningStatus = {}));
|
|
112
|
-
/** Known values of {@link ResourceIdentityType} that the service accepts. */
|
|
113
|
-
exports.KnownResourceIdentityType = void 0;
|
|
114
|
-
(function (KnownResourceIdentityType) {
|
|
115
|
-
/** SystemAssigned */
|
|
116
|
-
KnownResourceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
117
|
-
/** None */
|
|
118
|
-
KnownResourceIdentityType["None"] = "None";
|
|
119
|
-
})(exports.KnownResourceIdentityType || (exports.KnownResourceIdentityType = {}));
|
|
120
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
121
|
-
exports.KnownCreatedByType = void 0;
|
|
122
|
-
(function (KnownCreatedByType) {
|
|
123
|
-
/** User */
|
|
124
|
-
KnownCreatedByType["User"] = "User";
|
|
125
|
-
/** Application */
|
|
126
|
-
KnownCreatedByType["Application"] = "Application";
|
|
127
|
-
/** ManagedIdentity */
|
|
128
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
129
|
-
/** Key */
|
|
130
|
-
KnownCreatedByType["Key"] = "Key";
|
|
131
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
132
|
-
|
|
133
|
-
/*
|
|
134
|
-
* Copyright (c) Microsoft Corporation.
|
|
135
|
-
* Licensed under the MIT License.
|
|
136
|
-
*
|
|
137
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
138
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
139
|
-
*/
|
|
140
|
-
const Provider = {
|
|
141
|
-
type: {
|
|
142
|
-
name: "Composite",
|
|
143
|
-
className: "Provider",
|
|
144
|
-
modelProperties: {
|
|
145
|
-
providerId: {
|
|
146
|
-
serializedName: "providerId",
|
|
147
|
-
type: {
|
|
148
|
-
name: "String"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
providerSku: {
|
|
152
|
-
serializedName: "providerSku",
|
|
153
|
-
type: {
|
|
154
|
-
name: "String"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
instanceUri: {
|
|
158
|
-
serializedName: "instanceUri",
|
|
159
|
-
type: {
|
|
160
|
-
name: "String"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
applicationName: {
|
|
164
|
-
serializedName: "applicationName",
|
|
165
|
-
type: {
|
|
166
|
-
name: "String"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
provisioningState: {
|
|
170
|
-
serializedName: "provisioningState",
|
|
171
|
-
type: {
|
|
172
|
-
name: "String"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
resourceUsageId: {
|
|
176
|
-
serializedName: "resourceUsageId",
|
|
177
|
-
type: {
|
|
178
|
-
name: "String"
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
const QuantumWorkspaceIdentity = {
|
|
185
|
-
type: {
|
|
186
|
-
name: "Composite",
|
|
187
|
-
className: "QuantumWorkspaceIdentity",
|
|
188
|
-
modelProperties: {
|
|
189
|
-
principalId: {
|
|
190
|
-
serializedName: "principalId",
|
|
191
|
-
readOnly: true,
|
|
192
|
-
type: {
|
|
193
|
-
name: "String"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
tenantId: {
|
|
197
|
-
serializedName: "tenantId",
|
|
198
|
-
readOnly: true,
|
|
199
|
-
type: {
|
|
200
|
-
name: "String"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
type: {
|
|
204
|
-
serializedName: "type",
|
|
205
|
-
type: {
|
|
206
|
-
name: "String"
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
const SystemData = {
|
|
213
|
-
type: {
|
|
214
|
-
name: "Composite",
|
|
215
|
-
className: "SystemData",
|
|
216
|
-
modelProperties: {
|
|
217
|
-
createdBy: {
|
|
218
|
-
serializedName: "createdBy",
|
|
219
|
-
type: {
|
|
220
|
-
name: "String"
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
createdByType: {
|
|
224
|
-
serializedName: "createdByType",
|
|
225
|
-
type: {
|
|
226
|
-
name: "String"
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
createdAt: {
|
|
230
|
-
serializedName: "createdAt",
|
|
231
|
-
type: {
|
|
232
|
-
name: "DateTime"
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
lastModifiedBy: {
|
|
236
|
-
serializedName: "lastModifiedBy",
|
|
237
|
-
type: {
|
|
238
|
-
name: "String"
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
lastModifiedByType: {
|
|
242
|
-
serializedName: "lastModifiedByType",
|
|
243
|
-
type: {
|
|
244
|
-
name: "String"
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
lastModifiedAt: {
|
|
248
|
-
serializedName: "lastModifiedAt",
|
|
249
|
-
type: {
|
|
250
|
-
name: "DateTime"
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
const Resource = {
|
|
257
|
-
type: {
|
|
258
|
-
name: "Composite",
|
|
259
|
-
className: "Resource",
|
|
260
|
-
modelProperties: {
|
|
261
|
-
id: {
|
|
262
|
-
serializedName: "id",
|
|
263
|
-
readOnly: true,
|
|
264
|
-
type: {
|
|
265
|
-
name: "String"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
name: {
|
|
269
|
-
serializedName: "name",
|
|
270
|
-
readOnly: true,
|
|
271
|
-
type: {
|
|
272
|
-
name: "String"
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
type: {
|
|
276
|
-
serializedName: "type",
|
|
277
|
-
readOnly: true,
|
|
278
|
-
type: {
|
|
279
|
-
name: "String"
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
const ErrorResponse = {
|
|
286
|
-
type: {
|
|
287
|
-
name: "Composite",
|
|
288
|
-
className: "ErrorResponse",
|
|
289
|
-
modelProperties: {
|
|
290
|
-
error: {
|
|
291
|
-
serializedName: "error",
|
|
292
|
-
type: {
|
|
293
|
-
name: "Composite",
|
|
294
|
-
className: "ErrorDetail"
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
const ErrorDetail = {
|
|
301
|
-
type: {
|
|
302
|
-
name: "Composite",
|
|
303
|
-
className: "ErrorDetail",
|
|
304
|
-
modelProperties: {
|
|
305
|
-
code: {
|
|
306
|
-
serializedName: "code",
|
|
307
|
-
readOnly: true,
|
|
308
|
-
type: {
|
|
309
|
-
name: "String"
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
message: {
|
|
313
|
-
serializedName: "message",
|
|
314
|
-
readOnly: true,
|
|
315
|
-
type: {
|
|
316
|
-
name: "String"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
target: {
|
|
320
|
-
serializedName: "target",
|
|
321
|
-
readOnly: true,
|
|
322
|
-
type: {
|
|
323
|
-
name: "String"
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
details: {
|
|
327
|
-
serializedName: "details",
|
|
328
|
-
readOnly: true,
|
|
329
|
-
type: {
|
|
330
|
-
name: "Sequence",
|
|
331
|
-
element: {
|
|
332
|
-
type: {
|
|
333
|
-
name: "Composite",
|
|
334
|
-
className: "ErrorDetail"
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
additionalInfo: {
|
|
340
|
-
serializedName: "additionalInfo",
|
|
341
|
-
readOnly: true,
|
|
342
|
-
type: {
|
|
343
|
-
name: "Sequence",
|
|
344
|
-
element: {
|
|
345
|
-
type: {
|
|
346
|
-
name: "Composite",
|
|
347
|
-
className: "ErrorAdditionalInfo"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
const ErrorAdditionalInfo = {
|
|
356
|
-
type: {
|
|
357
|
-
name: "Composite",
|
|
358
|
-
className: "ErrorAdditionalInfo",
|
|
359
|
-
modelProperties: {
|
|
360
|
-
type: {
|
|
361
|
-
serializedName: "type",
|
|
362
|
-
readOnly: true,
|
|
363
|
-
type: {
|
|
364
|
-
name: "String"
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
info: {
|
|
368
|
-
serializedName: "info",
|
|
369
|
-
readOnly: true,
|
|
370
|
-
type: {
|
|
371
|
-
name: "Dictionary",
|
|
372
|
-
value: { type: { name: "any" } }
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
const TagsObject = {
|
|
379
|
-
type: {
|
|
380
|
-
name: "Composite",
|
|
381
|
-
className: "TagsObject",
|
|
382
|
-
modelProperties: {
|
|
383
|
-
tags: {
|
|
384
|
-
serializedName: "tags",
|
|
385
|
-
type: {
|
|
386
|
-
name: "Dictionary",
|
|
387
|
-
value: { type: { name: "String" } }
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
const WorkspaceListResult = {
|
|
394
|
-
type: {
|
|
395
|
-
name: "Composite",
|
|
396
|
-
className: "WorkspaceListResult",
|
|
397
|
-
modelProperties: {
|
|
398
|
-
value: {
|
|
399
|
-
serializedName: "value",
|
|
400
|
-
type: {
|
|
401
|
-
name: "Sequence",
|
|
402
|
-
element: {
|
|
403
|
-
type: {
|
|
404
|
-
name: "Composite",
|
|
405
|
-
className: "QuantumWorkspace"
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
nextLink: {
|
|
411
|
-
serializedName: "nextLink",
|
|
412
|
-
type: {
|
|
413
|
-
name: "String"
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
const OfferingsListResult = {
|
|
420
|
-
type: {
|
|
421
|
-
name: "Composite",
|
|
422
|
-
className: "OfferingsListResult",
|
|
423
|
-
modelProperties: {
|
|
424
|
-
value: {
|
|
425
|
-
serializedName: "value",
|
|
426
|
-
type: {
|
|
427
|
-
name: "Sequence",
|
|
428
|
-
element: {
|
|
429
|
-
type: {
|
|
430
|
-
name: "Composite",
|
|
431
|
-
className: "ProviderDescription"
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
nextLink: {
|
|
437
|
-
serializedName: "nextLink",
|
|
438
|
-
type: {
|
|
439
|
-
name: "String"
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
const ProviderDescription = {
|
|
446
|
-
type: {
|
|
447
|
-
name: "Composite",
|
|
448
|
-
className: "ProviderDescription",
|
|
449
|
-
modelProperties: {
|
|
450
|
-
id: {
|
|
451
|
-
serializedName: "id",
|
|
452
|
-
type: {
|
|
453
|
-
name: "String"
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
name: {
|
|
457
|
-
serializedName: "name",
|
|
458
|
-
readOnly: true,
|
|
459
|
-
type: {
|
|
460
|
-
name: "String"
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
|
-
properties: {
|
|
464
|
-
serializedName: "properties",
|
|
465
|
-
type: {
|
|
466
|
-
name: "Composite",
|
|
467
|
-
className: "ProviderProperties"
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
const ProviderProperties = {
|
|
474
|
-
type: {
|
|
475
|
-
name: "Composite",
|
|
476
|
-
className: "ProviderProperties",
|
|
477
|
-
modelProperties: {
|
|
478
|
-
description: {
|
|
479
|
-
serializedName: "description",
|
|
480
|
-
readOnly: true,
|
|
481
|
-
type: {
|
|
482
|
-
name: "String"
|
|
483
|
-
}
|
|
484
|
-
},
|
|
485
|
-
providerType: {
|
|
486
|
-
serializedName: "providerType",
|
|
487
|
-
readOnly: true,
|
|
488
|
-
type: {
|
|
489
|
-
name: "String"
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
company: {
|
|
493
|
-
serializedName: "company",
|
|
494
|
-
readOnly: true,
|
|
495
|
-
type: {
|
|
496
|
-
name: "String"
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
defaultEndpoint: {
|
|
500
|
-
serializedName: "defaultEndpoint",
|
|
501
|
-
readOnly: true,
|
|
502
|
-
type: {
|
|
503
|
-
name: "String"
|
|
504
|
-
}
|
|
505
|
-
},
|
|
506
|
-
aad: {
|
|
507
|
-
serializedName: "aad",
|
|
508
|
-
type: {
|
|
509
|
-
name: "Composite",
|
|
510
|
-
className: "ProviderPropertiesAad"
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
managedApplication: {
|
|
514
|
-
serializedName: "managedApplication",
|
|
515
|
-
type: {
|
|
516
|
-
name: "Composite",
|
|
517
|
-
className: "ProviderPropertiesManagedApplication"
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
targets: {
|
|
521
|
-
serializedName: "targets",
|
|
522
|
-
type: {
|
|
523
|
-
name: "Sequence",
|
|
524
|
-
element: {
|
|
525
|
-
type: {
|
|
526
|
-
name: "Composite",
|
|
527
|
-
className: "TargetDescription"
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
skus: {
|
|
533
|
-
serializedName: "skus",
|
|
534
|
-
type: {
|
|
535
|
-
name: "Sequence",
|
|
536
|
-
element: {
|
|
537
|
-
type: {
|
|
538
|
-
name: "Composite",
|
|
539
|
-
className: "SkuDescription"
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
},
|
|
544
|
-
quotaDimensions: {
|
|
545
|
-
serializedName: "quotaDimensions",
|
|
546
|
-
type: {
|
|
547
|
-
name: "Sequence",
|
|
548
|
-
element: {
|
|
549
|
-
type: {
|
|
550
|
-
name: "Composite",
|
|
551
|
-
className: "QuotaDimension"
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
pricingDimensions: {
|
|
557
|
-
serializedName: "pricingDimensions",
|
|
558
|
-
type: {
|
|
559
|
-
name: "Sequence",
|
|
560
|
-
element: {
|
|
561
|
-
type: {
|
|
562
|
-
name: "Composite",
|
|
563
|
-
className: "PricingDimension"
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
|
-
const ProviderPropertiesAad = {
|
|
572
|
-
type: {
|
|
573
|
-
name: "Composite",
|
|
574
|
-
className: "ProviderPropertiesAad",
|
|
575
|
-
modelProperties: {
|
|
576
|
-
applicationId: {
|
|
577
|
-
serializedName: "applicationId",
|
|
578
|
-
readOnly: true,
|
|
579
|
-
type: {
|
|
580
|
-
name: "String"
|
|
581
|
-
}
|
|
582
|
-
},
|
|
583
|
-
tenantId: {
|
|
584
|
-
serializedName: "tenantId",
|
|
585
|
-
readOnly: true,
|
|
586
|
-
type: {
|
|
587
|
-
name: "String"
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
const ProviderPropertiesManagedApplication = {
|
|
594
|
-
type: {
|
|
595
|
-
name: "Composite",
|
|
596
|
-
className: "ProviderPropertiesManagedApplication",
|
|
597
|
-
modelProperties: {
|
|
598
|
-
publisherId: {
|
|
599
|
-
serializedName: "publisherId",
|
|
600
|
-
readOnly: true,
|
|
601
|
-
type: {
|
|
602
|
-
name: "String"
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
offerId: {
|
|
606
|
-
serializedName: "offerId",
|
|
607
|
-
readOnly: true,
|
|
608
|
-
type: {
|
|
609
|
-
name: "String"
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
const TargetDescription = {
|
|
616
|
-
type: {
|
|
617
|
-
name: "Composite",
|
|
618
|
-
className: "TargetDescription",
|
|
619
|
-
modelProperties: {
|
|
620
|
-
id: {
|
|
621
|
-
serializedName: "id",
|
|
622
|
-
type: {
|
|
623
|
-
name: "String"
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
name: {
|
|
627
|
-
serializedName: "name",
|
|
628
|
-
type: {
|
|
629
|
-
name: "String"
|
|
630
|
-
}
|
|
631
|
-
},
|
|
632
|
-
description: {
|
|
633
|
-
serializedName: "description",
|
|
634
|
-
type: {
|
|
635
|
-
name: "String"
|
|
636
|
-
}
|
|
637
|
-
},
|
|
638
|
-
acceptedDataFormats: {
|
|
639
|
-
serializedName: "acceptedDataFormats",
|
|
640
|
-
type: {
|
|
641
|
-
name: "Sequence",
|
|
642
|
-
element: {
|
|
643
|
-
type: {
|
|
644
|
-
name: "String"
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
acceptedContentEncodings: {
|
|
650
|
-
serializedName: "acceptedContentEncodings",
|
|
651
|
-
type: {
|
|
652
|
-
name: "Sequence",
|
|
653
|
-
element: {
|
|
654
|
-
type: {
|
|
655
|
-
name: "String"
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
const SkuDescription = {
|
|
664
|
-
type: {
|
|
665
|
-
name: "Composite",
|
|
666
|
-
className: "SkuDescription",
|
|
667
|
-
modelProperties: {
|
|
668
|
-
id: {
|
|
669
|
-
serializedName: "id",
|
|
670
|
-
type: {
|
|
671
|
-
name: "String"
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
name: {
|
|
675
|
-
serializedName: "name",
|
|
676
|
-
type: {
|
|
677
|
-
name: "String"
|
|
678
|
-
}
|
|
679
|
-
},
|
|
680
|
-
version: {
|
|
681
|
-
serializedName: "version",
|
|
682
|
-
type: {
|
|
683
|
-
name: "String"
|
|
684
|
-
}
|
|
685
|
-
},
|
|
686
|
-
description: {
|
|
687
|
-
serializedName: "description",
|
|
688
|
-
type: {
|
|
689
|
-
name: "String"
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
restrictedAccessUri: {
|
|
693
|
-
serializedName: "restrictedAccessUri",
|
|
694
|
-
type: {
|
|
695
|
-
name: "String"
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
autoAdd: {
|
|
699
|
-
serializedName: "autoAdd",
|
|
700
|
-
type: {
|
|
701
|
-
name: "Boolean"
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
targets: {
|
|
705
|
-
serializedName: "targets",
|
|
706
|
-
type: {
|
|
707
|
-
name: "Sequence",
|
|
708
|
-
element: {
|
|
709
|
-
type: {
|
|
710
|
-
name: "String"
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
quotaDimensions: {
|
|
716
|
-
serializedName: "quotaDimensions",
|
|
717
|
-
type: {
|
|
718
|
-
name: "Sequence",
|
|
719
|
-
element: {
|
|
720
|
-
type: {
|
|
721
|
-
name: "Composite",
|
|
722
|
-
className: "QuotaDimension"
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
pricingDetails: {
|
|
728
|
-
serializedName: "pricingDetails",
|
|
729
|
-
type: {
|
|
730
|
-
name: "Sequence",
|
|
731
|
-
element: {
|
|
732
|
-
type: {
|
|
733
|
-
name: "Composite",
|
|
734
|
-
className: "PricingDetail"
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
const QuotaDimension = {
|
|
743
|
-
type: {
|
|
744
|
-
name: "Composite",
|
|
745
|
-
className: "QuotaDimension",
|
|
746
|
-
modelProperties: {
|
|
747
|
-
id: {
|
|
748
|
-
serializedName: "id",
|
|
749
|
-
type: {
|
|
750
|
-
name: "String"
|
|
751
|
-
}
|
|
752
|
-
},
|
|
753
|
-
scope: {
|
|
754
|
-
serializedName: "scope",
|
|
755
|
-
type: {
|
|
756
|
-
name: "String"
|
|
757
|
-
}
|
|
758
|
-
},
|
|
759
|
-
period: {
|
|
760
|
-
serializedName: "period",
|
|
761
|
-
type: {
|
|
762
|
-
name: "String"
|
|
763
|
-
}
|
|
764
|
-
},
|
|
765
|
-
quota: {
|
|
766
|
-
serializedName: "quota",
|
|
767
|
-
type: {
|
|
768
|
-
name: "Number"
|
|
769
|
-
}
|
|
770
|
-
},
|
|
771
|
-
name: {
|
|
772
|
-
serializedName: "name",
|
|
773
|
-
type: {
|
|
774
|
-
name: "String"
|
|
775
|
-
}
|
|
776
|
-
},
|
|
777
|
-
description: {
|
|
778
|
-
serializedName: "description",
|
|
779
|
-
type: {
|
|
780
|
-
name: "String"
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
unit: {
|
|
784
|
-
serializedName: "unit",
|
|
785
|
-
type: {
|
|
786
|
-
name: "String"
|
|
787
|
-
}
|
|
788
|
-
},
|
|
789
|
-
unitPlural: {
|
|
790
|
-
serializedName: "unitPlural",
|
|
791
|
-
type: {
|
|
792
|
-
name: "String"
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
|
-
const PricingDetail = {
|
|
799
|
-
type: {
|
|
800
|
-
name: "Composite",
|
|
801
|
-
className: "PricingDetail",
|
|
802
|
-
modelProperties: {
|
|
803
|
-
id: {
|
|
804
|
-
serializedName: "id",
|
|
805
|
-
type: {
|
|
806
|
-
name: "String"
|
|
807
|
-
}
|
|
808
|
-
},
|
|
809
|
-
value: {
|
|
810
|
-
serializedName: "value",
|
|
811
|
-
type: {
|
|
812
|
-
name: "String"
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
const PricingDimension = {
|
|
819
|
-
type: {
|
|
820
|
-
name: "Composite",
|
|
821
|
-
className: "PricingDimension",
|
|
822
|
-
modelProperties: {
|
|
823
|
-
id: {
|
|
824
|
-
serializedName: "id",
|
|
825
|
-
type: {
|
|
826
|
-
name: "String"
|
|
827
|
-
}
|
|
828
|
-
},
|
|
829
|
-
name: {
|
|
830
|
-
serializedName: "name",
|
|
831
|
-
type: {
|
|
832
|
-
name: "String"
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
|
-
const OperationsList = {
|
|
839
|
-
type: {
|
|
840
|
-
name: "Composite",
|
|
841
|
-
className: "OperationsList",
|
|
842
|
-
modelProperties: {
|
|
843
|
-
nextLink: {
|
|
844
|
-
serializedName: "nextLink",
|
|
845
|
-
type: {
|
|
846
|
-
name: "String"
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
|
-
value: {
|
|
850
|
-
serializedName: "value",
|
|
851
|
-
required: true,
|
|
852
|
-
type: {
|
|
853
|
-
name: "Sequence",
|
|
854
|
-
element: {
|
|
855
|
-
type: {
|
|
856
|
-
name: "Composite",
|
|
857
|
-
className: "Operation"
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
};
|
|
865
|
-
const Operation = {
|
|
866
|
-
type: {
|
|
867
|
-
name: "Composite",
|
|
868
|
-
className: "Operation",
|
|
869
|
-
modelProperties: {
|
|
870
|
-
name: {
|
|
871
|
-
serializedName: "name",
|
|
872
|
-
type: {
|
|
873
|
-
name: "String"
|
|
874
|
-
}
|
|
875
|
-
},
|
|
876
|
-
isDataAction: {
|
|
877
|
-
serializedName: "isDataAction",
|
|
878
|
-
type: {
|
|
879
|
-
name: "Boolean"
|
|
880
|
-
}
|
|
881
|
-
},
|
|
882
|
-
display: {
|
|
883
|
-
serializedName: "display",
|
|
884
|
-
type: {
|
|
885
|
-
name: "Composite",
|
|
886
|
-
className: "OperationDisplay"
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
};
|
|
892
|
-
const OperationDisplay = {
|
|
893
|
-
type: {
|
|
894
|
-
name: "Composite",
|
|
895
|
-
className: "OperationDisplay",
|
|
896
|
-
modelProperties: {
|
|
897
|
-
provider: {
|
|
898
|
-
serializedName: "provider",
|
|
899
|
-
type: {
|
|
900
|
-
name: "String"
|
|
901
|
-
}
|
|
902
|
-
},
|
|
903
|
-
resource: {
|
|
904
|
-
serializedName: "resource",
|
|
905
|
-
type: {
|
|
906
|
-
name: "String"
|
|
907
|
-
}
|
|
908
|
-
},
|
|
909
|
-
operation: {
|
|
910
|
-
serializedName: "operation",
|
|
911
|
-
type: {
|
|
912
|
-
name: "String"
|
|
913
|
-
}
|
|
914
|
-
},
|
|
915
|
-
description: {
|
|
916
|
-
serializedName: "description",
|
|
917
|
-
type: {
|
|
918
|
-
name: "String"
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
const CheckNameAvailabilityParameters = {
|
|
925
|
-
type: {
|
|
926
|
-
name: "Composite",
|
|
927
|
-
className: "CheckNameAvailabilityParameters",
|
|
928
|
-
modelProperties: {
|
|
929
|
-
name: {
|
|
930
|
-
serializedName: "name",
|
|
931
|
-
type: {
|
|
932
|
-
name: "String"
|
|
933
|
-
}
|
|
934
|
-
},
|
|
935
|
-
type: {
|
|
936
|
-
defaultValue: "Microsoft.Quantum/Workspaces",
|
|
937
|
-
serializedName: "type",
|
|
938
|
-
type: {
|
|
939
|
-
name: "String"
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
const CheckNameAvailabilityResult = {
|
|
946
|
-
type: {
|
|
947
|
-
name: "Composite",
|
|
948
|
-
className: "CheckNameAvailabilityResult",
|
|
949
|
-
modelProperties: {
|
|
950
|
-
nameAvailable: {
|
|
951
|
-
serializedName: "nameAvailable",
|
|
952
|
-
type: {
|
|
953
|
-
name: "Boolean"
|
|
954
|
-
}
|
|
955
|
-
},
|
|
956
|
-
reason: {
|
|
957
|
-
serializedName: "reason",
|
|
958
|
-
type: {
|
|
959
|
-
name: "String"
|
|
960
|
-
}
|
|
961
|
-
},
|
|
962
|
-
message: {
|
|
963
|
-
serializedName: "message",
|
|
964
|
-
readOnly: true,
|
|
965
|
-
type: {
|
|
966
|
-
name: "String"
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
const TrackedResource = {
|
|
973
|
-
type: {
|
|
974
|
-
name: "Composite",
|
|
975
|
-
className: "TrackedResource",
|
|
976
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
977
|
-
serializedName: "tags",
|
|
978
|
-
type: {
|
|
979
|
-
name: "Dictionary",
|
|
980
|
-
value: { type: { name: "String" } }
|
|
981
|
-
}
|
|
982
|
-
}, location: {
|
|
983
|
-
serializedName: "location",
|
|
984
|
-
required: true,
|
|
985
|
-
type: {
|
|
986
|
-
name: "String"
|
|
987
|
-
}
|
|
988
|
-
} })
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
|
-
const QuantumWorkspace = {
|
|
992
|
-
type: {
|
|
993
|
-
name: "Composite",
|
|
994
|
-
className: "QuantumWorkspace",
|
|
995
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
996
|
-
serializedName: "identity",
|
|
997
|
-
type: {
|
|
998
|
-
name: "Composite",
|
|
999
|
-
className: "QuantumWorkspaceIdentity"
|
|
1000
|
-
}
|
|
1001
|
-
}, systemData: {
|
|
1002
|
-
serializedName: "systemData",
|
|
1003
|
-
type: {
|
|
1004
|
-
name: "Composite",
|
|
1005
|
-
className: "SystemData"
|
|
1006
|
-
}
|
|
1007
|
-
}, providers: {
|
|
1008
|
-
serializedName: "properties.providers",
|
|
1009
|
-
type: {
|
|
1010
|
-
name: "Sequence",
|
|
1011
|
-
element: {
|
|
1012
|
-
type: {
|
|
1013
|
-
name: "Composite",
|
|
1014
|
-
className: "Provider"
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
}, usable: {
|
|
1019
|
-
serializedName: "properties.usable",
|
|
1020
|
-
readOnly: true,
|
|
1021
|
-
type: {
|
|
1022
|
-
name: "String"
|
|
1023
|
-
}
|
|
1024
|
-
}, provisioningState: {
|
|
1025
|
-
serializedName: "properties.provisioningState",
|
|
1026
|
-
readOnly: true,
|
|
1027
|
-
type: {
|
|
1028
|
-
name: "String"
|
|
1029
|
-
}
|
|
1030
|
-
}, storageAccount: {
|
|
1031
|
-
serializedName: "properties.storageAccount",
|
|
1032
|
-
type: {
|
|
1033
|
-
name: "String"
|
|
1034
|
-
}
|
|
1035
|
-
}, endpointUri: {
|
|
1036
|
-
serializedName: "properties.endpointUri",
|
|
1037
|
-
readOnly: true,
|
|
1038
|
-
type: {
|
|
1039
|
-
name: "String"
|
|
1040
|
-
}
|
|
1041
|
-
} })
|
|
1042
|
-
}
|
|
1043
|
-
};
|
|
1044
|
-
|
|
1045
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1046
|
-
__proto__: null,
|
|
1047
|
-
Provider: Provider,
|
|
1048
|
-
QuantumWorkspaceIdentity: QuantumWorkspaceIdentity,
|
|
1049
|
-
SystemData: SystemData,
|
|
1050
|
-
Resource: Resource,
|
|
1051
|
-
ErrorResponse: ErrorResponse,
|
|
1052
|
-
ErrorDetail: ErrorDetail,
|
|
1053
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1054
|
-
TagsObject: TagsObject,
|
|
1055
|
-
WorkspaceListResult: WorkspaceListResult,
|
|
1056
|
-
OfferingsListResult: OfferingsListResult,
|
|
1057
|
-
ProviderDescription: ProviderDescription,
|
|
1058
|
-
ProviderProperties: ProviderProperties,
|
|
1059
|
-
ProviderPropertiesAad: ProviderPropertiesAad,
|
|
1060
|
-
ProviderPropertiesManagedApplication: ProviderPropertiesManagedApplication,
|
|
1061
|
-
TargetDescription: TargetDescription,
|
|
1062
|
-
SkuDescription: SkuDescription,
|
|
1063
|
-
QuotaDimension: QuotaDimension,
|
|
1064
|
-
PricingDetail: PricingDetail,
|
|
1065
|
-
PricingDimension: PricingDimension,
|
|
1066
|
-
OperationsList: OperationsList,
|
|
1067
|
-
Operation: Operation,
|
|
1068
|
-
OperationDisplay: OperationDisplay,
|
|
1069
|
-
CheckNameAvailabilityParameters: CheckNameAvailabilityParameters,
|
|
1070
|
-
CheckNameAvailabilityResult: CheckNameAvailabilityResult,
|
|
1071
|
-
TrackedResource: TrackedResource,
|
|
1072
|
-
QuantumWorkspace: QuantumWorkspace
|
|
1073
|
-
});
|
|
1074
|
-
|
|
1075
|
-
/*
|
|
1076
|
-
* Copyright (c) Microsoft Corporation.
|
|
1077
|
-
* Licensed under the MIT License.
|
|
1078
|
-
*
|
|
1079
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1080
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1081
|
-
*/
|
|
1082
|
-
const accept = {
|
|
1083
|
-
parameterPath: "accept",
|
|
1084
|
-
mapper: {
|
|
1085
|
-
defaultValue: "application/json",
|
|
1086
|
-
isConstant: true,
|
|
1087
|
-
serializedName: "Accept",
|
|
1088
|
-
type: {
|
|
1089
|
-
name: "String"
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
const $host = {
|
|
1094
|
-
parameterPath: "$host",
|
|
1095
|
-
mapper: {
|
|
1096
|
-
serializedName: "$host",
|
|
1097
|
-
required: true,
|
|
1098
|
-
type: {
|
|
1099
|
-
name: "String"
|
|
1100
|
-
}
|
|
1101
|
-
},
|
|
1102
|
-
skipEncoding: true
|
|
1103
|
-
};
|
|
1104
|
-
const resourceGroupName = {
|
|
1105
|
-
parameterPath: "resourceGroupName",
|
|
1106
|
-
mapper: {
|
|
1107
|
-
serializedName: "resourceGroupName",
|
|
1108
|
-
required: true,
|
|
1109
|
-
type: {
|
|
1110
|
-
name: "String"
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
const apiVersion = {
|
|
1115
|
-
parameterPath: "apiVersion",
|
|
1116
|
-
mapper: {
|
|
1117
|
-
defaultValue: "2022-01-10-preview",
|
|
1118
|
-
isConstant: true,
|
|
1119
|
-
serializedName: "api-version",
|
|
1120
|
-
type: {
|
|
1121
|
-
name: "String"
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
|
-
const subscriptionId = {
|
|
1126
|
-
parameterPath: "subscriptionId",
|
|
1127
|
-
mapper: {
|
|
1128
|
-
serializedName: "subscriptionId",
|
|
1129
|
-
required: true,
|
|
1130
|
-
type: {
|
|
1131
|
-
name: "String"
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
const workspaceName = {
|
|
1136
|
-
parameterPath: "workspaceName",
|
|
1137
|
-
mapper: {
|
|
1138
|
-
serializedName: "workspaceName",
|
|
1139
|
-
required: true,
|
|
1140
|
-
type: {
|
|
1141
|
-
name: "String"
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
|
-
const contentType = {
|
|
1146
|
-
parameterPath: ["options", "contentType"],
|
|
1147
|
-
mapper: {
|
|
1148
|
-
defaultValue: "application/json",
|
|
1149
|
-
isConstant: true,
|
|
1150
|
-
serializedName: "Content-Type",
|
|
1151
|
-
type: {
|
|
1152
|
-
name: "String"
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
|
-
const quantumWorkspace = {
|
|
1157
|
-
parameterPath: "quantumWorkspace",
|
|
1158
|
-
mapper: QuantumWorkspace
|
|
1159
|
-
};
|
|
1160
|
-
const workspaceTags = {
|
|
1161
|
-
parameterPath: "workspaceTags",
|
|
1162
|
-
mapper: TagsObject
|
|
1163
|
-
};
|
|
1164
|
-
const nextLink = {
|
|
1165
|
-
parameterPath: "nextLink",
|
|
1166
|
-
mapper: {
|
|
1167
|
-
serializedName: "nextLink",
|
|
1168
|
-
required: true,
|
|
1169
|
-
type: {
|
|
1170
|
-
name: "String"
|
|
1171
|
-
}
|
|
1172
|
-
},
|
|
1173
|
-
skipEncoding: true
|
|
1174
|
-
};
|
|
1175
|
-
const locationName = {
|
|
1176
|
-
parameterPath: "locationName",
|
|
1177
|
-
mapper: {
|
|
1178
|
-
serializedName: "locationName",
|
|
1179
|
-
required: true,
|
|
1180
|
-
type: {
|
|
1181
|
-
name: "String"
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
const checkNameAvailabilityParameters = {
|
|
1186
|
-
parameterPath: "checkNameAvailabilityParameters",
|
|
1187
|
-
mapper: CheckNameAvailabilityParameters
|
|
1188
|
-
};
|
|
1189
|
-
|
|
1190
|
-
/*
|
|
1191
|
-
* Copyright (c) Microsoft Corporation.
|
|
1192
|
-
* Licensed under the MIT License.
|
|
1193
|
-
*
|
|
1194
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1195
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1196
|
-
*/
|
|
1197
|
-
function createLroSpec(inputs) {
|
|
1198
|
-
const { args, spec, sendOperationFn } = inputs;
|
|
1199
|
-
return {
|
|
1200
|
-
requestMethod: spec.httpMethod,
|
|
1201
|
-
requestPath: spec.path,
|
|
1202
|
-
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1203
|
-
sendPollRequest: (path, options) => {
|
|
1204
|
-
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1205
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1206
|
-
}
|
|
1207
|
-
};
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
/*
|
|
1211
|
-
* Copyright (c) Microsoft Corporation.
|
|
1212
|
-
* Licensed under the MIT License.
|
|
1213
|
-
*
|
|
1214
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1215
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1216
|
-
*/
|
|
1217
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1218
|
-
/** Class containing Workspaces operations. */
|
|
1219
|
-
class WorkspacesImpl {
|
|
1220
|
-
/**
|
|
1221
|
-
* Initialize a new instance of the class Workspaces class.
|
|
1222
|
-
* @param client Reference to the service client
|
|
1223
|
-
*/
|
|
1224
|
-
constructor(client) {
|
|
1225
|
-
this.client = client;
|
|
1226
|
-
}
|
|
1227
|
-
/**
|
|
1228
|
-
* Gets the list of Workspaces within a Subscription.
|
|
1229
|
-
* @param options The options parameters.
|
|
1230
|
-
*/
|
|
1231
|
-
listBySubscription(options) {
|
|
1232
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
1233
|
-
return {
|
|
1234
|
-
next() {
|
|
1235
|
-
return iter.next();
|
|
1236
|
-
},
|
|
1237
|
-
[Symbol.asyncIterator]() {
|
|
1238
|
-
return this;
|
|
1239
|
-
},
|
|
1240
|
-
byPage: (settings) => {
|
|
1241
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1242
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1243
|
-
}
|
|
1244
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
1245
|
-
}
|
|
1246
|
-
};
|
|
1247
|
-
}
|
|
1248
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
1249
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1250
|
-
let result;
|
|
1251
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1252
|
-
if (!continuationToken) {
|
|
1253
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
1254
|
-
let page = result.value || [];
|
|
1255
|
-
continuationToken = result.nextLink;
|
|
1256
|
-
setContinuationToken(page, continuationToken);
|
|
1257
|
-
yield yield tslib.__await(page);
|
|
1258
|
-
}
|
|
1259
|
-
while (continuationToken) {
|
|
1260
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1261
|
-
continuationToken = result.nextLink;
|
|
1262
|
-
let page = result.value || [];
|
|
1263
|
-
setContinuationToken(page, continuationToken);
|
|
1264
|
-
yield yield tslib.__await(page);
|
|
1265
|
-
}
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
listBySubscriptionPagingAll(options) {
|
|
1269
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1270
|
-
var _a, e_1, _b, _c;
|
|
1271
|
-
try {
|
|
1272
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1273
|
-
_c = _f.value;
|
|
1274
|
-
_d = false;
|
|
1275
|
-
try {
|
|
1276
|
-
const page = _c;
|
|
1277
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1278
|
-
}
|
|
1279
|
-
finally {
|
|
1280
|
-
_d = true;
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1285
|
-
finally {
|
|
1286
|
-
try {
|
|
1287
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1288
|
-
}
|
|
1289
|
-
finally { if (e_1) throw e_1.error; }
|
|
1290
|
-
}
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
/**
|
|
1294
|
-
* Gets the list of Workspaces within a resource group.
|
|
1295
|
-
* @param resourceGroupName The name of the resource group.
|
|
1296
|
-
* @param options The options parameters.
|
|
1297
|
-
*/
|
|
1298
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
1299
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1300
|
-
return {
|
|
1301
|
-
next() {
|
|
1302
|
-
return iter.next();
|
|
1303
|
-
},
|
|
1304
|
-
[Symbol.asyncIterator]() {
|
|
1305
|
-
return this;
|
|
1306
|
-
},
|
|
1307
|
-
byPage: (settings) => {
|
|
1308
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1309
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1310
|
-
}
|
|
1311
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1312
|
-
}
|
|
1313
|
-
};
|
|
1314
|
-
}
|
|
1315
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1316
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1317
|
-
let result;
|
|
1318
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1319
|
-
if (!continuationToken) {
|
|
1320
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1321
|
-
let page = result.value || [];
|
|
1322
|
-
continuationToken = result.nextLink;
|
|
1323
|
-
setContinuationToken(page, continuationToken);
|
|
1324
|
-
yield yield tslib.__await(page);
|
|
1325
|
-
}
|
|
1326
|
-
while (continuationToken) {
|
|
1327
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1328
|
-
continuationToken = result.nextLink;
|
|
1329
|
-
let page = result.value || [];
|
|
1330
|
-
setContinuationToken(page, continuationToken);
|
|
1331
|
-
yield yield tslib.__await(page);
|
|
1332
|
-
}
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1336
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1337
|
-
var _a, e_2, _b, _c;
|
|
1338
|
-
try {
|
|
1339
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1340
|
-
_c = _f.value;
|
|
1341
|
-
_d = false;
|
|
1342
|
-
try {
|
|
1343
|
-
const page = _c;
|
|
1344
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1345
|
-
}
|
|
1346
|
-
finally {
|
|
1347
|
-
_d = true;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1352
|
-
finally {
|
|
1353
|
-
try {
|
|
1354
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1355
|
-
}
|
|
1356
|
-
finally { if (e_2) throw e_2.error; }
|
|
1357
|
-
}
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
/**
|
|
1361
|
-
* Returns the Workspace resource associated with the given name.
|
|
1362
|
-
* @param resourceGroupName The name of the resource group.
|
|
1363
|
-
* @param workspaceName The name of the quantum workspace resource.
|
|
1364
|
-
* @param options The options parameters.
|
|
1365
|
-
*/
|
|
1366
|
-
get(resourceGroupName, workspaceName, options) {
|
|
1367
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
|
|
1368
|
-
}
|
|
1369
|
-
/**
|
|
1370
|
-
* Creates or updates a workspace resource.
|
|
1371
|
-
* @param resourceGroupName The name of the resource group.
|
|
1372
|
-
* @param workspaceName The name of the quantum workspace resource.
|
|
1373
|
-
* @param quantumWorkspace Workspace details.
|
|
1374
|
-
* @param options The options parameters.
|
|
1375
|
-
*/
|
|
1376
|
-
beginCreateOrUpdate(resourceGroupName, workspaceName, quantumWorkspace, options) {
|
|
1377
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1378
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1379
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1380
|
-
});
|
|
1381
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1382
|
-
var _a;
|
|
1383
|
-
let currentRawResponse = undefined;
|
|
1384
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1385
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1386
|
-
currentRawResponse = rawResponse;
|
|
1387
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1388
|
-
};
|
|
1389
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1390
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1391
|
-
return {
|
|
1392
|
-
flatResponse,
|
|
1393
|
-
rawResponse: {
|
|
1394
|
-
statusCode: currentRawResponse.status,
|
|
1395
|
-
body: currentRawResponse.parsedBody,
|
|
1396
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
});
|
|
1400
|
-
const lro = createLroSpec({
|
|
1401
|
-
sendOperationFn,
|
|
1402
|
-
args: { resourceGroupName, workspaceName, quantumWorkspace, options },
|
|
1403
|
-
spec: createOrUpdateOperationSpec
|
|
1404
|
-
});
|
|
1405
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1406
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1407
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1408
|
-
resourceLocationConfig: "azure-async-operation"
|
|
1409
|
-
});
|
|
1410
|
-
yield poller.poll();
|
|
1411
|
-
return poller;
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
/**
|
|
1415
|
-
* Creates or updates a workspace resource.
|
|
1416
|
-
* @param resourceGroupName The name of the resource group.
|
|
1417
|
-
* @param workspaceName The name of the quantum workspace resource.
|
|
1418
|
-
* @param quantumWorkspace Workspace details.
|
|
1419
|
-
* @param options The options parameters.
|
|
1420
|
-
*/
|
|
1421
|
-
beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, quantumWorkspace, options) {
|
|
1422
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1423
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, quantumWorkspace, options);
|
|
1424
|
-
return poller.pollUntilDone();
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
/**
|
|
1428
|
-
* Updates an existing workspace's tags.
|
|
1429
|
-
* @param resourceGroupName The name of the resource group.
|
|
1430
|
-
* @param workspaceName The name of the quantum workspace resource.
|
|
1431
|
-
* @param workspaceTags Parameters supplied to update tags.
|
|
1432
|
-
* @param options The options parameters.
|
|
1433
|
-
*/
|
|
1434
|
-
updateTags(resourceGroupName, workspaceName, workspaceTags, options) {
|
|
1435
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, workspaceTags, options }, updateTagsOperationSpec);
|
|
1436
|
-
}
|
|
1437
|
-
/**
|
|
1438
|
-
* Deletes a Workspace resource.
|
|
1439
|
-
* @param resourceGroupName The name of the resource group.
|
|
1440
|
-
* @param workspaceName The name of the quantum workspace resource.
|
|
1441
|
-
* @param options The options parameters.
|
|
1442
|
-
*/
|
|
1443
|
-
beginDelete(resourceGroupName, workspaceName, options) {
|
|
1444
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1445
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1446
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1447
|
-
});
|
|
1448
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1449
|
-
var _a;
|
|
1450
|
-
let currentRawResponse = undefined;
|
|
1451
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1452
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1453
|
-
currentRawResponse = rawResponse;
|
|
1454
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1455
|
-
};
|
|
1456
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1457
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1458
|
-
return {
|
|
1459
|
-
flatResponse,
|
|
1460
|
-
rawResponse: {
|
|
1461
|
-
statusCode: currentRawResponse.status,
|
|
1462
|
-
body: currentRawResponse.parsedBody,
|
|
1463
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1464
|
-
}
|
|
1465
|
-
};
|
|
1466
|
-
});
|
|
1467
|
-
const lro = createLroSpec({
|
|
1468
|
-
sendOperationFn,
|
|
1469
|
-
args: { resourceGroupName, workspaceName, options },
|
|
1470
|
-
spec: deleteOperationSpec
|
|
1471
|
-
});
|
|
1472
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1473
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1474
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1475
|
-
});
|
|
1476
|
-
yield poller.poll();
|
|
1477
|
-
return poller;
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
/**
|
|
1481
|
-
* Deletes a Workspace resource.
|
|
1482
|
-
* @param resourceGroupName The name of the resource group.
|
|
1483
|
-
* @param workspaceName The name of the quantum workspace resource.
|
|
1484
|
-
* @param options The options parameters.
|
|
1485
|
-
*/
|
|
1486
|
-
beginDeleteAndWait(resourceGroupName, workspaceName, options) {
|
|
1487
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1488
|
-
const poller = yield this.beginDelete(resourceGroupName, workspaceName, options);
|
|
1489
|
-
return poller.pollUntilDone();
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1493
|
-
* Gets the list of Workspaces within a Subscription.
|
|
1494
|
-
* @param options The options parameters.
|
|
1495
|
-
*/
|
|
1496
|
-
_listBySubscription(options) {
|
|
1497
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1498
|
-
}
|
|
1499
|
-
/**
|
|
1500
|
-
* Gets the list of Workspaces within a resource group.
|
|
1501
|
-
* @param resourceGroupName The name of the resource group.
|
|
1502
|
-
* @param options The options parameters.
|
|
1503
|
-
*/
|
|
1504
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
1505
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1506
|
-
}
|
|
1507
|
-
/**
|
|
1508
|
-
* ListBySubscriptionNext
|
|
1509
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1510
|
-
* @param options The options parameters.
|
|
1511
|
-
*/
|
|
1512
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
1513
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1514
|
-
}
|
|
1515
|
-
/**
|
|
1516
|
-
* ListByResourceGroupNext
|
|
1517
|
-
* @param resourceGroupName The name of the resource group.
|
|
1518
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1519
|
-
* @param options The options parameters.
|
|
1520
|
-
*/
|
|
1521
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1522
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
// Operation Specifications
|
|
1526
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1527
|
-
const getOperationSpec = {
|
|
1528
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}",
|
|
1529
|
-
httpMethod: "GET",
|
|
1530
|
-
responses: {
|
|
1531
|
-
200: {
|
|
1532
|
-
bodyMapper: QuantumWorkspace
|
|
1533
|
-
},
|
|
1534
|
-
default: {
|
|
1535
|
-
bodyMapper: ErrorResponse
|
|
1536
|
-
}
|
|
1537
|
-
},
|
|
1538
|
-
queryParameters: [apiVersion],
|
|
1539
|
-
urlParameters: [
|
|
1540
|
-
$host,
|
|
1541
|
-
resourceGroupName,
|
|
1542
|
-
subscriptionId,
|
|
1543
|
-
workspaceName
|
|
1544
|
-
],
|
|
1545
|
-
headerParameters: [accept],
|
|
1546
|
-
serializer: serializer$3
|
|
1547
|
-
};
|
|
1548
|
-
const createOrUpdateOperationSpec = {
|
|
1549
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}",
|
|
1550
|
-
httpMethod: "PUT",
|
|
1551
|
-
responses: {
|
|
1552
|
-
200: {
|
|
1553
|
-
bodyMapper: QuantumWorkspace
|
|
1554
|
-
},
|
|
1555
|
-
201: {
|
|
1556
|
-
bodyMapper: QuantumWorkspace
|
|
1557
|
-
},
|
|
1558
|
-
202: {
|
|
1559
|
-
bodyMapper: QuantumWorkspace
|
|
1560
|
-
},
|
|
1561
|
-
204: {
|
|
1562
|
-
bodyMapper: QuantumWorkspace
|
|
1563
|
-
},
|
|
1564
|
-
default: {
|
|
1565
|
-
bodyMapper: ErrorResponse
|
|
1566
|
-
}
|
|
1567
|
-
},
|
|
1568
|
-
requestBody: quantumWorkspace,
|
|
1569
|
-
queryParameters: [apiVersion],
|
|
1570
|
-
urlParameters: [
|
|
1571
|
-
$host,
|
|
1572
|
-
resourceGroupName,
|
|
1573
|
-
subscriptionId,
|
|
1574
|
-
workspaceName
|
|
1575
|
-
],
|
|
1576
|
-
headerParameters: [accept, contentType],
|
|
1577
|
-
mediaType: "json",
|
|
1578
|
-
serializer: serializer$3
|
|
1579
|
-
};
|
|
1580
|
-
const updateTagsOperationSpec = {
|
|
1581
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}",
|
|
1582
|
-
httpMethod: "PATCH",
|
|
1583
|
-
responses: {
|
|
1584
|
-
200: {
|
|
1585
|
-
bodyMapper: QuantumWorkspace
|
|
1586
|
-
},
|
|
1587
|
-
default: {
|
|
1588
|
-
bodyMapper: ErrorResponse
|
|
1589
|
-
}
|
|
1590
|
-
},
|
|
1591
|
-
requestBody: workspaceTags,
|
|
1592
|
-
queryParameters: [apiVersion],
|
|
1593
|
-
urlParameters: [
|
|
1594
|
-
$host,
|
|
1595
|
-
resourceGroupName,
|
|
1596
|
-
subscriptionId,
|
|
1597
|
-
workspaceName
|
|
1598
|
-
],
|
|
1599
|
-
headerParameters: [accept, contentType],
|
|
1600
|
-
mediaType: "json",
|
|
1601
|
-
serializer: serializer$3
|
|
1602
|
-
};
|
|
1603
|
-
const deleteOperationSpec = {
|
|
1604
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}",
|
|
1605
|
-
httpMethod: "DELETE",
|
|
1606
|
-
responses: {
|
|
1607
|
-
200: {},
|
|
1608
|
-
201: {},
|
|
1609
|
-
202: {},
|
|
1610
|
-
204: {},
|
|
1611
|
-
default: {
|
|
1612
|
-
bodyMapper: ErrorResponse
|
|
1613
|
-
}
|
|
1614
|
-
},
|
|
1615
|
-
queryParameters: [apiVersion],
|
|
1616
|
-
urlParameters: [
|
|
1617
|
-
$host,
|
|
1618
|
-
resourceGroupName,
|
|
1619
|
-
subscriptionId,
|
|
1620
|
-
workspaceName
|
|
1621
|
-
],
|
|
1622
|
-
headerParameters: [accept],
|
|
1623
|
-
serializer: serializer$3
|
|
1624
|
-
};
|
|
1625
|
-
const listBySubscriptionOperationSpec = {
|
|
1626
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces",
|
|
1627
|
-
httpMethod: "GET",
|
|
1628
|
-
responses: {
|
|
1629
|
-
200: {
|
|
1630
|
-
bodyMapper: WorkspaceListResult
|
|
1631
|
-
},
|
|
1632
|
-
default: {
|
|
1633
|
-
bodyMapper: ErrorResponse
|
|
1634
|
-
}
|
|
1635
|
-
},
|
|
1636
|
-
queryParameters: [apiVersion],
|
|
1637
|
-
urlParameters: [$host, subscriptionId],
|
|
1638
|
-
headerParameters: [accept],
|
|
1639
|
-
serializer: serializer$3
|
|
1640
|
-
};
|
|
1641
|
-
const listByResourceGroupOperationSpec = {
|
|
1642
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces",
|
|
1643
|
-
httpMethod: "GET",
|
|
1644
|
-
responses: {
|
|
1645
|
-
200: {
|
|
1646
|
-
bodyMapper: WorkspaceListResult
|
|
1647
|
-
},
|
|
1648
|
-
default: {
|
|
1649
|
-
bodyMapper: ErrorResponse
|
|
1650
|
-
}
|
|
1651
|
-
},
|
|
1652
|
-
queryParameters: [apiVersion],
|
|
1653
|
-
urlParameters: [
|
|
1654
|
-
$host,
|
|
1655
|
-
resourceGroupName,
|
|
1656
|
-
subscriptionId
|
|
1657
|
-
],
|
|
1658
|
-
headerParameters: [accept],
|
|
1659
|
-
serializer: serializer$3
|
|
1660
|
-
};
|
|
1661
|
-
const listBySubscriptionNextOperationSpec = {
|
|
1662
|
-
path: "{nextLink}",
|
|
1663
|
-
httpMethod: "GET",
|
|
1664
|
-
responses: {
|
|
1665
|
-
200: {
|
|
1666
|
-
bodyMapper: WorkspaceListResult
|
|
1667
|
-
},
|
|
1668
|
-
default: {
|
|
1669
|
-
bodyMapper: ErrorResponse
|
|
1670
|
-
}
|
|
1671
|
-
},
|
|
1672
|
-
urlParameters: [
|
|
1673
|
-
$host,
|
|
1674
|
-
subscriptionId,
|
|
1675
|
-
nextLink
|
|
1676
|
-
],
|
|
1677
|
-
headerParameters: [accept],
|
|
1678
|
-
serializer: serializer$3
|
|
1679
|
-
};
|
|
1680
|
-
const listByResourceGroupNextOperationSpec = {
|
|
1681
|
-
path: "{nextLink}",
|
|
1682
|
-
httpMethod: "GET",
|
|
1683
|
-
responses: {
|
|
1684
|
-
200: {
|
|
1685
|
-
bodyMapper: WorkspaceListResult
|
|
1686
|
-
},
|
|
1687
|
-
default: {
|
|
1688
|
-
bodyMapper: ErrorResponse
|
|
1689
|
-
}
|
|
1690
|
-
},
|
|
1691
|
-
urlParameters: [
|
|
1692
|
-
$host,
|
|
1693
|
-
resourceGroupName,
|
|
1694
|
-
subscriptionId,
|
|
1695
|
-
nextLink
|
|
1696
|
-
],
|
|
1697
|
-
headerParameters: [accept],
|
|
1698
|
-
serializer: serializer$3
|
|
1699
|
-
};
|
|
1700
|
-
|
|
1701
|
-
/*
|
|
1702
|
-
* Copyright (c) Microsoft Corporation.
|
|
1703
|
-
* Licensed under the MIT License.
|
|
1704
|
-
*
|
|
1705
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1706
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1707
|
-
*/
|
|
1708
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1709
|
-
/** Class containing Offerings operations. */
|
|
1710
|
-
class OfferingsImpl {
|
|
1711
|
-
/**
|
|
1712
|
-
* Initialize a new instance of the class Offerings class.
|
|
1713
|
-
* @param client Reference to the service client
|
|
1714
|
-
*/
|
|
1715
|
-
constructor(client) {
|
|
1716
|
-
this.client = client;
|
|
1717
|
-
}
|
|
1718
|
-
/**
|
|
1719
|
-
* Returns the list of all provider offerings available for the given location.
|
|
1720
|
-
* @param locationName Location.
|
|
1721
|
-
* @param options The options parameters.
|
|
1722
|
-
*/
|
|
1723
|
-
list(locationName, options) {
|
|
1724
|
-
const iter = this.listPagingAll(locationName, options);
|
|
1725
|
-
return {
|
|
1726
|
-
next() {
|
|
1727
|
-
return iter.next();
|
|
1728
|
-
},
|
|
1729
|
-
[Symbol.asyncIterator]() {
|
|
1730
|
-
return this;
|
|
1731
|
-
},
|
|
1732
|
-
byPage: (settings) => {
|
|
1733
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1734
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1735
|
-
}
|
|
1736
|
-
return this.listPagingPage(locationName, options, settings);
|
|
1737
|
-
}
|
|
1738
|
-
};
|
|
1739
|
-
}
|
|
1740
|
-
listPagingPage(locationName, options, settings) {
|
|
1741
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1742
|
-
let result;
|
|
1743
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1744
|
-
if (!continuationToken) {
|
|
1745
|
-
result = yield tslib.__await(this._list(locationName, options));
|
|
1746
|
-
let page = result.value || [];
|
|
1747
|
-
continuationToken = result.nextLink;
|
|
1748
|
-
setContinuationToken(page, continuationToken);
|
|
1749
|
-
yield yield tslib.__await(page);
|
|
1750
|
-
}
|
|
1751
|
-
while (continuationToken) {
|
|
1752
|
-
result = yield tslib.__await(this._listNext(locationName, continuationToken, options));
|
|
1753
|
-
continuationToken = result.nextLink;
|
|
1754
|
-
let page = result.value || [];
|
|
1755
|
-
setContinuationToken(page, continuationToken);
|
|
1756
|
-
yield yield tslib.__await(page);
|
|
1757
|
-
}
|
|
1758
|
-
});
|
|
1759
|
-
}
|
|
1760
|
-
listPagingAll(locationName, options) {
|
|
1761
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1762
|
-
var _a, e_1, _b, _c;
|
|
1763
|
-
try {
|
|
1764
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(locationName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1765
|
-
_c = _f.value;
|
|
1766
|
-
_d = false;
|
|
1767
|
-
try {
|
|
1768
|
-
const page = _c;
|
|
1769
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1770
|
-
}
|
|
1771
|
-
finally {
|
|
1772
|
-
_d = true;
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1777
|
-
finally {
|
|
1778
|
-
try {
|
|
1779
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1780
|
-
}
|
|
1781
|
-
finally { if (e_1) throw e_1.error; }
|
|
1782
|
-
}
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
/**
|
|
1786
|
-
* Returns the list of all provider offerings available for the given location.
|
|
1787
|
-
* @param locationName Location.
|
|
1788
|
-
* @param options The options parameters.
|
|
1789
|
-
*/
|
|
1790
|
-
_list(locationName, options) {
|
|
1791
|
-
return this.client.sendOperationRequest({ locationName, options }, listOperationSpec$1);
|
|
1792
|
-
}
|
|
1793
|
-
/**
|
|
1794
|
-
* ListNext
|
|
1795
|
-
* @param locationName Location.
|
|
1796
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1797
|
-
* @param options The options parameters.
|
|
1798
|
-
*/
|
|
1799
|
-
_listNext(locationName, nextLink, options) {
|
|
1800
|
-
return this.client.sendOperationRequest({ locationName, nextLink, options }, listNextOperationSpec$1);
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
// Operation Specifications
|
|
1804
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1805
|
-
const listOperationSpec$1 = {
|
|
1806
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings",
|
|
1807
|
-
httpMethod: "GET",
|
|
1808
|
-
responses: {
|
|
1809
|
-
200: {
|
|
1810
|
-
bodyMapper: OfferingsListResult
|
|
1811
|
-
},
|
|
1812
|
-
default: {
|
|
1813
|
-
bodyMapper: ErrorResponse
|
|
1814
|
-
}
|
|
1815
|
-
},
|
|
1816
|
-
queryParameters: [apiVersion],
|
|
1817
|
-
urlParameters: [
|
|
1818
|
-
$host,
|
|
1819
|
-
subscriptionId,
|
|
1820
|
-
locationName
|
|
1821
|
-
],
|
|
1822
|
-
headerParameters: [accept],
|
|
1823
|
-
serializer: serializer$2
|
|
1824
|
-
};
|
|
1825
|
-
const listNextOperationSpec$1 = {
|
|
1826
|
-
path: "{nextLink}",
|
|
1827
|
-
httpMethod: "GET",
|
|
1828
|
-
responses: {
|
|
1829
|
-
200: {
|
|
1830
|
-
bodyMapper: OfferingsListResult
|
|
1831
|
-
},
|
|
1832
|
-
default: {
|
|
1833
|
-
bodyMapper: ErrorResponse
|
|
1834
|
-
}
|
|
1835
|
-
},
|
|
1836
|
-
urlParameters: [
|
|
1837
|
-
$host,
|
|
1838
|
-
subscriptionId,
|
|
1839
|
-
nextLink,
|
|
1840
|
-
locationName
|
|
1841
|
-
],
|
|
1842
|
-
headerParameters: [accept],
|
|
1843
|
-
serializer: serializer$2
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
|
-
/*
|
|
1847
|
-
* Copyright (c) Microsoft Corporation.
|
|
1848
|
-
* Licensed under the MIT License.
|
|
1849
|
-
*
|
|
1850
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1851
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1852
|
-
*/
|
|
1853
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1854
|
-
/** Class containing Operations operations. */
|
|
1855
|
-
class OperationsImpl {
|
|
1856
|
-
/**
|
|
1857
|
-
* Initialize a new instance of the class Operations class.
|
|
1858
|
-
* @param client Reference to the service client
|
|
1859
|
-
*/
|
|
1860
|
-
constructor(client) {
|
|
1861
|
-
this.client = client;
|
|
1862
|
-
}
|
|
1863
|
-
/**
|
|
1864
|
-
* Returns list of operations.
|
|
1865
|
-
* @param options The options parameters.
|
|
1866
|
-
*/
|
|
1867
|
-
list(options) {
|
|
1868
|
-
const iter = this.listPagingAll(options);
|
|
1869
|
-
return {
|
|
1870
|
-
next() {
|
|
1871
|
-
return iter.next();
|
|
1872
|
-
},
|
|
1873
|
-
[Symbol.asyncIterator]() {
|
|
1874
|
-
return this;
|
|
1875
|
-
},
|
|
1876
|
-
byPage: (settings) => {
|
|
1877
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1878
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1879
|
-
}
|
|
1880
|
-
return this.listPagingPage(options, settings);
|
|
1881
|
-
}
|
|
1882
|
-
};
|
|
1883
|
-
}
|
|
1884
|
-
listPagingPage(options, settings) {
|
|
1885
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1886
|
-
let result;
|
|
1887
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1888
|
-
if (!continuationToken) {
|
|
1889
|
-
result = yield tslib.__await(this._list(options));
|
|
1890
|
-
let page = result.value || [];
|
|
1891
|
-
continuationToken = result.nextLink;
|
|
1892
|
-
setContinuationToken(page, continuationToken);
|
|
1893
|
-
yield yield tslib.__await(page);
|
|
1894
|
-
}
|
|
1895
|
-
while (continuationToken) {
|
|
1896
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1897
|
-
continuationToken = result.nextLink;
|
|
1898
|
-
let page = result.value || [];
|
|
1899
|
-
setContinuationToken(page, continuationToken);
|
|
1900
|
-
yield yield tslib.__await(page);
|
|
1901
|
-
}
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
listPagingAll(options) {
|
|
1905
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1906
|
-
var _a, e_1, _b, _c;
|
|
1907
|
-
try {
|
|
1908
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1909
|
-
_c = _f.value;
|
|
1910
|
-
_d = false;
|
|
1911
|
-
try {
|
|
1912
|
-
const page = _c;
|
|
1913
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1914
|
-
}
|
|
1915
|
-
finally {
|
|
1916
|
-
_d = true;
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1921
|
-
finally {
|
|
1922
|
-
try {
|
|
1923
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1924
|
-
}
|
|
1925
|
-
finally { if (e_1) throw e_1.error; }
|
|
1926
|
-
}
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
/**
|
|
1930
|
-
* Returns list of operations.
|
|
1931
|
-
* @param options The options parameters.
|
|
1932
|
-
*/
|
|
1933
|
-
_list(options) {
|
|
1934
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1935
|
-
}
|
|
1936
|
-
/**
|
|
1937
|
-
* ListNext
|
|
1938
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1939
|
-
* @param options The options parameters.
|
|
1940
|
-
*/
|
|
1941
|
-
_listNext(nextLink, options) {
|
|
1942
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1943
|
-
}
|
|
1944
|
-
}
|
|
1945
|
-
// Operation Specifications
|
|
1946
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1947
|
-
const listOperationSpec = {
|
|
1948
|
-
path: "/providers/Microsoft.Quantum/operations",
|
|
1949
|
-
httpMethod: "GET",
|
|
1950
|
-
responses: {
|
|
1951
|
-
200: {
|
|
1952
|
-
bodyMapper: OperationsList
|
|
1953
|
-
},
|
|
1954
|
-
default: {
|
|
1955
|
-
bodyMapper: ErrorResponse
|
|
1956
|
-
}
|
|
1957
|
-
},
|
|
1958
|
-
queryParameters: [apiVersion],
|
|
1959
|
-
urlParameters: [$host],
|
|
1960
|
-
headerParameters: [accept],
|
|
1961
|
-
serializer: serializer$1
|
|
1962
|
-
};
|
|
1963
|
-
const listNextOperationSpec = {
|
|
1964
|
-
path: "{nextLink}",
|
|
1965
|
-
httpMethod: "GET",
|
|
1966
|
-
responses: {
|
|
1967
|
-
200: {
|
|
1968
|
-
bodyMapper: OperationsList
|
|
1969
|
-
},
|
|
1970
|
-
default: {
|
|
1971
|
-
bodyMapper: ErrorResponse
|
|
1972
|
-
}
|
|
1973
|
-
},
|
|
1974
|
-
urlParameters: [$host, nextLink],
|
|
1975
|
-
headerParameters: [accept],
|
|
1976
|
-
serializer: serializer$1
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
/*
|
|
1980
|
-
* Copyright (c) Microsoft Corporation.
|
|
1981
|
-
* Licensed under the MIT License.
|
|
1982
|
-
*
|
|
1983
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1984
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1985
|
-
*/
|
|
1986
|
-
/** Class containing Workspace operations. */
|
|
1987
|
-
class WorkspaceImpl {
|
|
1988
|
-
/**
|
|
1989
|
-
* Initialize a new instance of the class Workspace class.
|
|
1990
|
-
* @param client Reference to the service client
|
|
1991
|
-
*/
|
|
1992
|
-
constructor(client) {
|
|
1993
|
-
this.client = client;
|
|
1994
|
-
}
|
|
1995
|
-
/**
|
|
1996
|
-
* Check the availability of the resource name.
|
|
1997
|
-
* @param locationName Location.
|
|
1998
|
-
* @param checkNameAvailabilityParameters The name and type of the resource.
|
|
1999
|
-
* @param options The options parameters.
|
|
2000
|
-
*/
|
|
2001
|
-
checkNameAvailability(locationName, checkNameAvailabilityParameters, options) {
|
|
2002
|
-
return this.client.sendOperationRequest({ locationName, checkNameAvailabilityParameters, options }, checkNameAvailabilityOperationSpec);
|
|
2003
|
-
}
|
|
2004
|
-
}
|
|
2005
|
-
// Operation Specifications
|
|
2006
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2007
|
-
const checkNameAvailabilityOperationSpec = {
|
|
2008
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability",
|
|
2009
|
-
httpMethod: "POST",
|
|
2010
|
-
responses: {
|
|
2011
|
-
200: {
|
|
2012
|
-
bodyMapper: CheckNameAvailabilityResult
|
|
2013
|
-
},
|
|
2014
|
-
default: {
|
|
2015
|
-
bodyMapper: ErrorResponse
|
|
2016
|
-
}
|
|
2017
|
-
},
|
|
2018
|
-
requestBody: checkNameAvailabilityParameters,
|
|
2019
|
-
queryParameters: [apiVersion],
|
|
2020
|
-
urlParameters: [
|
|
2021
|
-
$host,
|
|
2022
|
-
subscriptionId,
|
|
2023
|
-
locationName
|
|
2024
|
-
],
|
|
2025
|
-
headerParameters: [accept, contentType],
|
|
2026
|
-
mediaType: "json",
|
|
2027
|
-
serializer
|
|
2028
|
-
};
|
|
2029
|
-
|
|
2030
|
-
/*
|
|
2031
|
-
* Copyright (c) Microsoft Corporation.
|
|
2032
|
-
* Licensed under the MIT License.
|
|
2033
|
-
*
|
|
2034
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2035
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2036
|
-
*/
|
|
2037
|
-
class AzureQuantumManagementClient extends coreClient__namespace.ServiceClient {
|
|
2038
|
-
/**
|
|
2039
|
-
* Initializes a new instance of the AzureQuantumManagementClient class.
|
|
2040
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2041
|
-
* @param subscriptionId The Azure subscription ID.
|
|
2042
|
-
* @param options The parameter options
|
|
2043
|
-
*/
|
|
2044
|
-
constructor(credentials, subscriptionId, options) {
|
|
2045
|
-
var _a, _b, _c;
|
|
2046
|
-
if (credentials === undefined) {
|
|
2047
|
-
throw new Error("'credentials' cannot be null");
|
|
2048
|
-
}
|
|
2049
|
-
if (subscriptionId === undefined) {
|
|
2050
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
2051
|
-
}
|
|
2052
|
-
// Initializing default values for options
|
|
2053
|
-
if (!options) {
|
|
2054
|
-
options = {};
|
|
2055
|
-
}
|
|
2056
|
-
const defaults = {
|
|
2057
|
-
requestContentType: "application/json; charset=utf-8",
|
|
2058
|
-
credential: credentials
|
|
2059
|
-
};
|
|
2060
|
-
const packageDetails = `azsdk-js-arm-quantum/1.0.0-beta.1`;
|
|
2061
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2062
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2063
|
-
: `${packageDetails}`;
|
|
2064
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2065
|
-
userAgentPrefix
|
|
2066
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2067
|
-
super(optionsWithDefaults);
|
|
2068
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
2069
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2070
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2071
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2072
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2073
|
-
}
|
|
2074
|
-
if (!options ||
|
|
2075
|
-
!options.pipeline ||
|
|
2076
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
2077
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
2078
|
-
this.pipeline.removePolicy({
|
|
2079
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
2080
|
-
});
|
|
2081
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2082
|
-
credential: credentials,
|
|
2083
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
2084
|
-
challengeCallbacks: {
|
|
2085
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
2086
|
-
}
|
|
2087
|
-
}));
|
|
2088
|
-
}
|
|
2089
|
-
// Parameter assignments
|
|
2090
|
-
this.subscriptionId = subscriptionId;
|
|
2091
|
-
// Assigning values to Constant parameters
|
|
2092
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
2093
|
-
this.apiVersion = options.apiVersion || "2022-01-10-preview";
|
|
2094
|
-
this.workspaces = new WorkspacesImpl(this);
|
|
2095
|
-
this.offerings = new OfferingsImpl(this);
|
|
2096
|
-
this.operations = new OperationsImpl(this);
|
|
2097
|
-
this.workspace = new WorkspaceImpl(this);
|
|
2098
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
2099
|
-
}
|
|
2100
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2101
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
2102
|
-
if (!apiVersion) {
|
|
2103
|
-
return;
|
|
2104
|
-
}
|
|
2105
|
-
const apiVersionPolicy = {
|
|
2106
|
-
name: "CustomApiVersionPolicy",
|
|
2107
|
-
sendRequest(request, next) {
|
|
2108
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2109
|
-
const param = request.url.split("?");
|
|
2110
|
-
if (param.length > 1) {
|
|
2111
|
-
const newParams = param[1].split("&").map((item) => {
|
|
2112
|
-
if (item.indexOf("api-version") > -1) {
|
|
2113
|
-
return "api-version=" + apiVersion;
|
|
2114
|
-
}
|
|
2115
|
-
else {
|
|
2116
|
-
return item;
|
|
2117
|
-
}
|
|
2118
|
-
});
|
|
2119
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
2120
|
-
}
|
|
2121
|
-
return next(request);
|
|
2122
|
-
});
|
|
2123
|
-
}
|
|
2124
|
-
};
|
|
2125
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
exports.AzureQuantumManagementClient = AzureQuantumManagementClient;
|
|
2130
|
-
exports.getContinuationToken = getContinuationToken;
|
|
2131
|
-
//# sourceMappingURL=index.js.map
|