@azure/quantum-jobs 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{LICENSE.txt → LICENSE} +4 -4
- package/README.md +247 -98
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +11 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.d.ts +320 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +58 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +13 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +141 -140
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +12 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +37 -37
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +5 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +12 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operations/jobs.d.ts +51 -0
- package/dist/browser/operations/jobs.d.ts.map +1 -0
- package/dist/browser/operations/jobs.js +209 -0
- package/dist/browser/operations/jobs.js.map +1 -0
- package/dist/browser/operations/providers.d.ts +32 -0
- package/dist/browser/operations/providers.d.ts.map +1 -0
- package/dist/browser/operations/providers.js +118 -0
- package/dist/browser/operations/providers.js.map +1 -0
- package/dist/browser/operations/quotas.d.ts +32 -0
- package/dist/browser/operations/quotas.d.ts.map +1 -0
- package/dist/browser/operations/quotas.js +118 -0
- package/dist/browser/operations/quotas.js.map +1 -0
- package/dist/browser/operations/storage.d.ts +20 -0
- package/dist/browser/operations/storage.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/storage.js +33 -35
- package/dist/browser/operations/storage.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +5 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +12 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/jobs.d.ts +30 -0
- package/dist/browser/operationsInterfaces/jobs.d.ts.map +1 -0
- package/{dist-esm/src/models/index.js → dist/browser/operationsInterfaces/jobs.js} +1 -1
- package/dist/browser/operationsInterfaces/jobs.js.map +1 -0
- package/dist/browser/operationsInterfaces/providers.d.ts +11 -0
- package/dist/browser/operationsInterfaces/providers.d.ts.map +1 -0
- package/{dist-esm/src/operations/index.js → dist/browser/operationsInterfaces/providers.js} +2 -5
- package/dist/browser/operationsInterfaces/providers.js.map +1 -0
- package/dist/browser/operationsInterfaces/quotas.d.ts +11 -0
- package/dist/browser/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/quotas.js +9 -0
- package/dist/browser/operationsInterfaces/quotas.js.map +1 -0
- package/dist/browser/operationsInterfaces/storage.d.ts +12 -0
- package/dist/browser/operationsInterfaces/storage.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/storage.js +9 -0
- package/dist/browser/operationsInterfaces/storage.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +30 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/browser/quantumJobClient.d.ts +25 -0
- package/dist/browser/quantumJobClient.d.ts.map +1 -0
- package/dist/browser/quantumJobClient.js +93 -0
- package/dist/browser/quantumJobClient.js.map +1 -0
- package/dist/browser/tracing.d.ts +2 -0
- package/dist/browser/tracing.d.ts.map +1 -0
- package/dist/browser/tracing.js +14 -0
- package/dist/browser/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +320 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +61 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +13 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +414 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +12 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +104 -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/jobs.d.ts +51 -0
- package/dist/commonjs/operations/jobs.d.ts.map +1 -0
- package/dist/commonjs/operations/jobs.js +214 -0
- package/dist/commonjs/operations/jobs.js.map +1 -0
- package/dist/commonjs/operations/providers.d.ts +32 -0
- package/dist/commonjs/operations/providers.d.ts.map +1 -0
- package/dist/commonjs/operations/providers.js +123 -0
- package/dist/commonjs/operations/providers.js.map +1 -0
- package/dist/commonjs/operations/quotas.d.ts +32 -0
- package/dist/commonjs/operations/quotas.d.ts.map +1 -0
- package/dist/commonjs/operations/quotas.js +123 -0
- package/dist/commonjs/operations/quotas.js.map +1 -0
- package/dist/commonjs/operations/storage.d.ts +20 -0
- package/dist/commonjs/operations/storage.d.ts.map +1 -0
- package/dist/commonjs/operations/storage.js +63 -0
- package/dist/commonjs/operations/storage.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/jobs.d.ts +30 -0
- package/dist/commonjs/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/jobs.js +10 -0
- package/dist/commonjs/operationsInterfaces/jobs.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/providers.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/providers.js +10 -0
- package/dist/commonjs/operationsInterfaces/providers.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotas.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotas.js +10 -0
- package/dist/commonjs/operationsInterfaces/quotas.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/storage.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/storage.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/storage.js +10 -0
- package/dist/commonjs/operationsInterfaces/storage.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/dist/commonjs/quantumJobClient.d.ts +25 -0
- package/dist/commonjs/quantumJobClient.d.ts.map +1 -0
- package/dist/commonjs/quantumJobClient.js +98 -0
- package/dist/commonjs/quantumJobClient.js.map +1 -0
- package/dist/commonjs/tracing.d.ts +2 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +17 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +320 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +58 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +13 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +411 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +12 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +101 -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/jobs.d.ts +51 -0
- package/dist/esm/operations/jobs.d.ts.map +1 -0
- package/dist/esm/operations/jobs.js +209 -0
- package/dist/esm/operations/jobs.js.map +1 -0
- package/dist/esm/operations/providers.d.ts +32 -0
- package/dist/esm/operations/providers.d.ts.map +1 -0
- package/dist/esm/operations/providers.js +118 -0
- package/dist/esm/operations/providers.js.map +1 -0
- package/dist/esm/operations/quotas.d.ts +32 -0
- package/dist/esm/operations/quotas.d.ts.map +1 -0
- package/dist/esm/operations/quotas.js +118 -0
- package/dist/esm/operations/quotas.js.map +1 -0
- package/dist/esm/operations/storage.d.ts +20 -0
- package/dist/esm/operations/storage.d.ts.map +1 -0
- package/dist/esm/operations/storage.js +58 -0
- package/dist/esm/operations/storage.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/jobs.d.ts +30 -0
- package/dist/esm/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/jobs.js +9 -0
- package/dist/esm/operationsInterfaces/jobs.js.map +1 -0
- package/dist/esm/operationsInterfaces/providers.d.ts +11 -0
- package/dist/esm/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/providers.js +9 -0
- package/dist/esm/operationsInterfaces/providers.js.map +1 -0
- package/dist/esm/operationsInterfaces/quotas.d.ts +11 -0
- package/dist/esm/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/quotas.js +9 -0
- package/dist/esm/operationsInterfaces/quotas.js.map +1 -0
- package/dist/esm/operationsInterfaces/storage.d.ts +12 -0
- package/dist/esm/operationsInterfaces/storage.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/storage.js +9 -0
- package/dist/esm/operationsInterfaces/storage.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/esm/quantumJobClient.d.ts +25 -0
- package/dist/esm/quantumJobClient.d.ts.map +1 -0
- package/dist/esm/quantumJobClient.js +93 -0
- package/dist/esm/quantumJobClient.js.map +1 -0
- package/dist/esm/tracing.d.ts +2 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/tracing.js +14 -0
- package/dist/esm/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +11 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +320 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +58 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +13 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +411 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +12 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +101 -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/jobs.d.ts +51 -0
- package/dist/react-native/operations/jobs.d.ts.map +1 -0
- package/dist/react-native/operations/jobs.js +209 -0
- package/dist/react-native/operations/jobs.js.map +1 -0
- package/dist/react-native/operations/providers.d.ts +32 -0
- package/dist/react-native/operations/providers.d.ts.map +1 -0
- package/dist/react-native/operations/providers.js +118 -0
- package/dist/react-native/operations/providers.js.map +1 -0
- package/dist/react-native/operations/quotas.d.ts +32 -0
- package/dist/react-native/operations/quotas.d.ts.map +1 -0
- package/dist/react-native/operations/quotas.js +118 -0
- package/dist/react-native/operations/quotas.js.map +1 -0
- package/dist/react-native/operations/storage.d.ts +20 -0
- package/dist/react-native/operations/storage.d.ts.map +1 -0
- package/dist/react-native/operations/storage.js +58 -0
- package/dist/react-native/operations/storage.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/jobs.d.ts +30 -0
- package/dist/react-native/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/jobs.js +9 -0
- package/dist/react-native/operationsInterfaces/jobs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/providers.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/providers.js +9 -0
- package/dist/react-native/operationsInterfaces/providers.js.map +1 -0
- package/dist/react-native/operationsInterfaces/quotas.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/quotas.js +9 -0
- package/dist/react-native/operationsInterfaces/quotas.js.map +1 -0
- package/dist/react-native/operationsInterfaces/storage.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/storage.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/storage.js +9 -0
- package/dist/react-native/operationsInterfaces/storage.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/dist/react-native/quantumJobClient.d.ts +25 -0
- package/dist/react-native/quantumJobClient.d.ts.map +1 -0
- package/dist/react-native/quantumJobClient.js +93 -0
- package/dist/react-native/quantumJobClient.js.map +1 -0
- package/dist/react-native/tracing.d.ts +2 -0
- package/dist/react-native/tracing.d.ts.map +1 -0
- package/dist/react-native/tracing.js +14 -0
- package/dist/react-native/tracing.js.map +1 -0
- package/package.json +90 -92
- package/CHANGELOG.md +0 -5
- package/dist/index.js +0 -1309
- package/dist/index.js.map +0 -1
- package/dist-esm/src/index.js +0 -13
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.js.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.js.map +0 -1
- package/dist-esm/src/operations/jobs.js +0 -280
- package/dist-esm/src/operations/jobs.js.map +0 -1
- package/dist-esm/src/operations/providers.js +0 -182
- package/dist-esm/src/operations/providers.js.map +0 -1
- package/dist-esm/src/operations/quotas.js +0 -182
- package/dist-esm/src/operations/quotas.js.map +0 -1
- package/dist-esm/src/operations/storage.js.map +0 -1
- package/dist-esm/src/quantumJobClient.js +0 -33
- package/dist-esm/src/quantumJobClient.js.map +0 -1
- package/dist-esm/src/quantumJobClientContext.js +0 -59
- package/dist-esm/src/quantumJobClientContext.js.map +0 -1
- package/types/latest/quantum-jobs.d.ts +0 -534
package/dist/index.js
DELETED
|
@@ -1,1309 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreHttp = require('@azure/core-http');
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
* Copyright (c) Microsoft Corporation.
|
|
10
|
-
* Licensed under the MIT License.
|
|
11
|
-
*
|
|
12
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
|
-
*/
|
|
15
|
-
var JobDetailsList = {
|
|
16
|
-
type: {
|
|
17
|
-
name: "Composite",
|
|
18
|
-
className: "JobDetailsList",
|
|
19
|
-
modelProperties: {
|
|
20
|
-
value: {
|
|
21
|
-
serializedName: "value",
|
|
22
|
-
readOnly: true,
|
|
23
|
-
type: {
|
|
24
|
-
name: "Sequence",
|
|
25
|
-
element: {
|
|
26
|
-
type: {
|
|
27
|
-
name: "Composite",
|
|
28
|
-
className: "JobDetails"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
count: {
|
|
34
|
-
serializedName: "count",
|
|
35
|
-
type: {
|
|
36
|
-
name: "Number"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
nextLink: {
|
|
40
|
-
serializedName: "nextLink",
|
|
41
|
-
readOnly: true,
|
|
42
|
-
type: {
|
|
43
|
-
name: "String"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var JobDetails = {
|
|
50
|
-
type: {
|
|
51
|
-
name: "Composite",
|
|
52
|
-
className: "JobDetails",
|
|
53
|
-
modelProperties: {
|
|
54
|
-
id: {
|
|
55
|
-
serializedName: "id",
|
|
56
|
-
type: {
|
|
57
|
-
name: "String"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
name: {
|
|
61
|
-
serializedName: "name",
|
|
62
|
-
type: {
|
|
63
|
-
name: "String"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
containerUri: {
|
|
67
|
-
serializedName: "containerUri",
|
|
68
|
-
required: true,
|
|
69
|
-
type: {
|
|
70
|
-
name: "String"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
inputDataUri: {
|
|
74
|
-
serializedName: "inputDataUri",
|
|
75
|
-
type: {
|
|
76
|
-
name: "String"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
inputDataFormat: {
|
|
80
|
-
serializedName: "inputDataFormat",
|
|
81
|
-
required: true,
|
|
82
|
-
type: {
|
|
83
|
-
name: "String"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
inputParams: {
|
|
87
|
-
serializedName: "inputParams",
|
|
88
|
-
type: {
|
|
89
|
-
name: "any"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
providerId: {
|
|
93
|
-
serializedName: "providerId",
|
|
94
|
-
required: true,
|
|
95
|
-
type: {
|
|
96
|
-
name: "String"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
target: {
|
|
100
|
-
serializedName: "target",
|
|
101
|
-
required: true,
|
|
102
|
-
type: {
|
|
103
|
-
name: "String"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
metadata: {
|
|
107
|
-
serializedName: "metadata",
|
|
108
|
-
type: {
|
|
109
|
-
name: "Dictionary",
|
|
110
|
-
value: { type: { name: "String" } }
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
outputDataUri: {
|
|
114
|
-
serializedName: "outputDataUri",
|
|
115
|
-
type: {
|
|
116
|
-
name: "String"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
outputDataFormat: {
|
|
120
|
-
serializedName: "outputDataFormat",
|
|
121
|
-
type: {
|
|
122
|
-
name: "String"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
status: {
|
|
126
|
-
serializedName: "status",
|
|
127
|
-
readOnly: true,
|
|
128
|
-
type: {
|
|
129
|
-
name: "String"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
creationTime: {
|
|
133
|
-
serializedName: "creationTime",
|
|
134
|
-
readOnly: true,
|
|
135
|
-
type: {
|
|
136
|
-
name: "DateTime"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
beginExecutionTime: {
|
|
140
|
-
serializedName: "beginExecutionTime",
|
|
141
|
-
readOnly: true,
|
|
142
|
-
type: {
|
|
143
|
-
name: "DateTime"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
endExecutionTime: {
|
|
147
|
-
serializedName: "endExecutionTime",
|
|
148
|
-
readOnly: true,
|
|
149
|
-
type: {
|
|
150
|
-
name: "DateTime"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
cancellationTime: {
|
|
154
|
-
serializedName: "cancellationTime",
|
|
155
|
-
readOnly: true,
|
|
156
|
-
type: {
|
|
157
|
-
name: "DateTime"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
errorData: {
|
|
161
|
-
serializedName: "errorData",
|
|
162
|
-
type: {
|
|
163
|
-
name: "Composite",
|
|
164
|
-
className: "ErrorData"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
var ErrorData = {
|
|
171
|
-
type: {
|
|
172
|
-
name: "Composite",
|
|
173
|
-
className: "ErrorData",
|
|
174
|
-
modelProperties: {
|
|
175
|
-
code: {
|
|
176
|
-
serializedName: "code",
|
|
177
|
-
type: {
|
|
178
|
-
name: "String"
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
message: {
|
|
182
|
-
serializedName: "message",
|
|
183
|
-
type: {
|
|
184
|
-
name: "String"
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
var RestError = {
|
|
191
|
-
type: {
|
|
192
|
-
name: "Composite",
|
|
193
|
-
className: "RestError",
|
|
194
|
-
modelProperties: {
|
|
195
|
-
error: {
|
|
196
|
-
serializedName: "error",
|
|
197
|
-
type: {
|
|
198
|
-
name: "Composite",
|
|
199
|
-
className: "ErrorData"
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
var ProviderStatusList = {
|
|
206
|
-
type: {
|
|
207
|
-
name: "Composite",
|
|
208
|
-
className: "ProviderStatusList",
|
|
209
|
-
modelProperties: {
|
|
210
|
-
value: {
|
|
211
|
-
serializedName: "value",
|
|
212
|
-
readOnly: true,
|
|
213
|
-
type: {
|
|
214
|
-
name: "Sequence",
|
|
215
|
-
element: {
|
|
216
|
-
type: {
|
|
217
|
-
name: "Composite",
|
|
218
|
-
className: "ProviderStatus"
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
nextLink: {
|
|
224
|
-
serializedName: "nextLink",
|
|
225
|
-
readOnly: true,
|
|
226
|
-
type: {
|
|
227
|
-
name: "String"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
var ProviderStatus = {
|
|
234
|
-
type: {
|
|
235
|
-
name: "Composite",
|
|
236
|
-
className: "ProviderStatus",
|
|
237
|
-
modelProperties: {
|
|
238
|
-
id: {
|
|
239
|
-
serializedName: "id",
|
|
240
|
-
readOnly: true,
|
|
241
|
-
type: {
|
|
242
|
-
name: "String"
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
currentAvailability: {
|
|
246
|
-
serializedName: "currentAvailability",
|
|
247
|
-
readOnly: true,
|
|
248
|
-
type: {
|
|
249
|
-
name: "String"
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
targets: {
|
|
253
|
-
serializedName: "targets",
|
|
254
|
-
readOnly: true,
|
|
255
|
-
type: {
|
|
256
|
-
name: "Sequence",
|
|
257
|
-
element: {
|
|
258
|
-
type: {
|
|
259
|
-
name: "Composite",
|
|
260
|
-
className: "TargetStatus"
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
var TargetStatus = {
|
|
269
|
-
type: {
|
|
270
|
-
name: "Composite",
|
|
271
|
-
className: "TargetStatus",
|
|
272
|
-
modelProperties: {
|
|
273
|
-
id: {
|
|
274
|
-
serializedName: "id",
|
|
275
|
-
readOnly: true,
|
|
276
|
-
type: {
|
|
277
|
-
name: "String"
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
currentAvailability: {
|
|
281
|
-
serializedName: "currentAvailability",
|
|
282
|
-
readOnly: true,
|
|
283
|
-
type: {
|
|
284
|
-
name: "String"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
averageQueueTime: {
|
|
288
|
-
serializedName: "averageQueueTime",
|
|
289
|
-
readOnly: true,
|
|
290
|
-
type: {
|
|
291
|
-
name: "Number"
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
statusPage: {
|
|
295
|
-
serializedName: "statusPage",
|
|
296
|
-
readOnly: true,
|
|
297
|
-
type: {
|
|
298
|
-
name: "String"
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
var BlobDetails = {
|
|
305
|
-
type: {
|
|
306
|
-
name: "Composite",
|
|
307
|
-
className: "BlobDetails",
|
|
308
|
-
modelProperties: {
|
|
309
|
-
containerName: {
|
|
310
|
-
serializedName: "containerName",
|
|
311
|
-
required: true,
|
|
312
|
-
type: {
|
|
313
|
-
name: "String"
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
blobName: {
|
|
317
|
-
serializedName: "blobName",
|
|
318
|
-
type: {
|
|
319
|
-
name: "String"
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
var SasUriResponse = {
|
|
326
|
-
type: {
|
|
327
|
-
name: "Composite",
|
|
328
|
-
className: "SasUriResponse",
|
|
329
|
-
modelProperties: {
|
|
330
|
-
sasUri: {
|
|
331
|
-
serializedName: "sasUri",
|
|
332
|
-
type: {
|
|
333
|
-
name: "String"
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
var QuotaList = {
|
|
340
|
-
type: {
|
|
341
|
-
name: "Composite",
|
|
342
|
-
className: "QuotaList",
|
|
343
|
-
modelProperties: {
|
|
344
|
-
value: {
|
|
345
|
-
serializedName: "value",
|
|
346
|
-
readOnly: true,
|
|
347
|
-
type: {
|
|
348
|
-
name: "Sequence",
|
|
349
|
-
element: {
|
|
350
|
-
type: {
|
|
351
|
-
name: "Composite",
|
|
352
|
-
className: "Quota"
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
nextLink: {
|
|
358
|
-
serializedName: "nextLink",
|
|
359
|
-
readOnly: true,
|
|
360
|
-
type: {
|
|
361
|
-
name: "String"
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
var Quota = {
|
|
368
|
-
type: {
|
|
369
|
-
name: "Composite",
|
|
370
|
-
className: "Quota",
|
|
371
|
-
modelProperties: {
|
|
372
|
-
dimension: {
|
|
373
|
-
serializedName: "dimension",
|
|
374
|
-
type: {
|
|
375
|
-
name: "String"
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
scope: {
|
|
379
|
-
serializedName: "scope",
|
|
380
|
-
type: {
|
|
381
|
-
name: "String"
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
providerId: {
|
|
385
|
-
serializedName: "providerId",
|
|
386
|
-
type: {
|
|
387
|
-
name: "String"
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
utilization: {
|
|
391
|
-
serializedName: "utilization",
|
|
392
|
-
type: {
|
|
393
|
-
name: "Number"
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
holds: {
|
|
397
|
-
serializedName: "holds",
|
|
398
|
-
type: {
|
|
399
|
-
name: "Number"
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
limit: {
|
|
403
|
-
serializedName: "limit",
|
|
404
|
-
type: {
|
|
405
|
-
name: "Number"
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
period: {
|
|
409
|
-
serializedName: "period",
|
|
410
|
-
type: {
|
|
411
|
-
name: "String"
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
419
|
-
__proto__: null,
|
|
420
|
-
JobDetailsList: JobDetailsList,
|
|
421
|
-
JobDetails: JobDetails,
|
|
422
|
-
ErrorData: ErrorData,
|
|
423
|
-
RestError: RestError,
|
|
424
|
-
ProviderStatusList: ProviderStatusList,
|
|
425
|
-
ProviderStatus: ProviderStatus,
|
|
426
|
-
TargetStatus: TargetStatus,
|
|
427
|
-
BlobDetails: BlobDetails,
|
|
428
|
-
SasUriResponse: SasUriResponse,
|
|
429
|
-
QuotaList: QuotaList,
|
|
430
|
-
Quota: Quota
|
|
431
|
-
});
|
|
432
|
-
|
|
433
|
-
/*
|
|
434
|
-
* Copyright (c) Microsoft Corporation.
|
|
435
|
-
* Licensed under the MIT License.
|
|
436
|
-
*
|
|
437
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
438
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
439
|
-
*/
|
|
440
|
-
var accept = {
|
|
441
|
-
parameterPath: "accept",
|
|
442
|
-
mapper: {
|
|
443
|
-
defaultValue: "application/json",
|
|
444
|
-
isConstant: true,
|
|
445
|
-
serializedName: "Accept",
|
|
446
|
-
type: {
|
|
447
|
-
name: "String"
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
var $host = {
|
|
452
|
-
parameterPath: "$host",
|
|
453
|
-
mapper: {
|
|
454
|
-
serializedName: "$host",
|
|
455
|
-
required: true,
|
|
456
|
-
type: {
|
|
457
|
-
name: "String"
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
skipEncoding: true
|
|
461
|
-
};
|
|
462
|
-
var subscriptionId = {
|
|
463
|
-
parameterPath: "subscriptionId",
|
|
464
|
-
mapper: {
|
|
465
|
-
serializedName: "subscriptionId",
|
|
466
|
-
required: true,
|
|
467
|
-
type: {
|
|
468
|
-
name: "String"
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
var resourceGroupName = {
|
|
473
|
-
parameterPath: "resourceGroupName",
|
|
474
|
-
mapper: {
|
|
475
|
-
serializedName: "resourceGroupName",
|
|
476
|
-
required: true,
|
|
477
|
-
type: {
|
|
478
|
-
name: "String"
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
var workspaceName = {
|
|
483
|
-
parameterPath: "workspaceName",
|
|
484
|
-
mapper: {
|
|
485
|
-
serializedName: "workspaceName",
|
|
486
|
-
required: true,
|
|
487
|
-
type: {
|
|
488
|
-
name: "String"
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
var jobId = {
|
|
493
|
-
parameterPath: "jobId",
|
|
494
|
-
mapper: {
|
|
495
|
-
serializedName: "jobId",
|
|
496
|
-
required: true,
|
|
497
|
-
type: {
|
|
498
|
-
name: "String"
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
|
-
var contentType = {
|
|
503
|
-
parameterPath: ["options", "contentType"],
|
|
504
|
-
mapper: {
|
|
505
|
-
defaultValue: "application/json",
|
|
506
|
-
isConstant: true,
|
|
507
|
-
serializedName: "Content-Type",
|
|
508
|
-
type: {
|
|
509
|
-
name: "String"
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
};
|
|
513
|
-
var job = {
|
|
514
|
-
parameterPath: "job",
|
|
515
|
-
mapper: JobDetails
|
|
516
|
-
};
|
|
517
|
-
var nextLink = {
|
|
518
|
-
parameterPath: "nextLink",
|
|
519
|
-
mapper: {
|
|
520
|
-
serializedName: "nextLink",
|
|
521
|
-
required: true,
|
|
522
|
-
type: {
|
|
523
|
-
name: "String"
|
|
524
|
-
}
|
|
525
|
-
},
|
|
526
|
-
skipEncoding: true
|
|
527
|
-
};
|
|
528
|
-
var blobDetails = {
|
|
529
|
-
parameterPath: "blobDetails",
|
|
530
|
-
mapper: BlobDetails
|
|
531
|
-
};
|
|
532
|
-
|
|
533
|
-
/*
|
|
534
|
-
* Copyright (c) Microsoft Corporation.
|
|
535
|
-
* Licensed under the MIT License.
|
|
536
|
-
*
|
|
537
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
538
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
539
|
-
*/
|
|
540
|
-
/** Class representing a Jobs. */
|
|
541
|
-
var Jobs = /** @class */ (function () {
|
|
542
|
-
/**
|
|
543
|
-
* Initialize a new instance of the class Jobs class.
|
|
544
|
-
* @param client Reference to the service client
|
|
545
|
-
*/
|
|
546
|
-
function Jobs(client) {
|
|
547
|
-
this.client = client;
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* List jobs.
|
|
551
|
-
* @param options The options parameters.
|
|
552
|
-
*/
|
|
553
|
-
Jobs.prototype.list = function (options) {
|
|
554
|
-
var _a;
|
|
555
|
-
var _this = this;
|
|
556
|
-
var iter = this.listPagingAll(options);
|
|
557
|
-
return _a = {
|
|
558
|
-
next: function () {
|
|
559
|
-
return iter.next();
|
|
560
|
-
}
|
|
561
|
-
},
|
|
562
|
-
_a[Symbol.asyncIterator] = function () {
|
|
563
|
-
return this;
|
|
564
|
-
},
|
|
565
|
-
_a.byPage = function () {
|
|
566
|
-
return _this.listPagingPage(options);
|
|
567
|
-
},
|
|
568
|
-
_a;
|
|
569
|
-
};
|
|
570
|
-
Jobs.prototype.listPagingPage = function (options) {
|
|
571
|
-
return tslib.__asyncGenerator(this, arguments, function listPagingPage_1() {
|
|
572
|
-
var result, continuationToken;
|
|
573
|
-
return tslib.__generator(this, function (_a) {
|
|
574
|
-
switch (_a.label) {
|
|
575
|
-
case 0: return [4 /*yield*/, tslib.__await(this._list(options))];
|
|
576
|
-
case 1:
|
|
577
|
-
result = _a.sent();
|
|
578
|
-
return [4 /*yield*/, tslib.__await(result.value || [])];
|
|
579
|
-
case 2: return [4 /*yield*/, _a.sent()];
|
|
580
|
-
case 3:
|
|
581
|
-
_a.sent();
|
|
582
|
-
continuationToken = result.nextLink;
|
|
583
|
-
_a.label = 4;
|
|
584
|
-
case 4:
|
|
585
|
-
if (!continuationToken) return [3 /*break*/, 8];
|
|
586
|
-
return [4 /*yield*/, tslib.__await(this._listNext(continuationToken, options))];
|
|
587
|
-
case 5:
|
|
588
|
-
result = _a.sent();
|
|
589
|
-
continuationToken = result.nextLink;
|
|
590
|
-
return [4 /*yield*/, tslib.__await(result.value || [])];
|
|
591
|
-
case 6: return [4 /*yield*/, _a.sent()];
|
|
592
|
-
case 7:
|
|
593
|
-
_a.sent();
|
|
594
|
-
return [3 /*break*/, 4];
|
|
595
|
-
case 8: return [2 /*return*/];
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
});
|
|
599
|
-
};
|
|
600
|
-
Jobs.prototype.listPagingAll = function (options) {
|
|
601
|
-
return tslib.__asyncGenerator(this, arguments, function listPagingAll_1() {
|
|
602
|
-
var _a, _b, page, e_1_1;
|
|
603
|
-
var e_1, _c;
|
|
604
|
-
return tslib.__generator(this, function (_d) {
|
|
605
|
-
switch (_d.label) {
|
|
606
|
-
case 0:
|
|
607
|
-
_d.trys.push([0, 7, 8, 13]);
|
|
608
|
-
_a = tslib.__asyncValues(this.listPagingPage(options));
|
|
609
|
-
_d.label = 1;
|
|
610
|
-
case 1: return [4 /*yield*/, tslib.__await(_a.next())];
|
|
611
|
-
case 2:
|
|
612
|
-
if (!(_b = _d.sent(), !_b.done)) return [3 /*break*/, 6];
|
|
613
|
-
page = _b.value;
|
|
614
|
-
return [5 /*yield**/, tslib.__values(tslib.__asyncDelegator(tslib.__asyncValues(page)))];
|
|
615
|
-
case 3: return [4 /*yield*/, tslib.__await.apply(void 0, [_d.sent()])];
|
|
616
|
-
case 4:
|
|
617
|
-
_d.sent();
|
|
618
|
-
_d.label = 5;
|
|
619
|
-
case 5: return [3 /*break*/, 1];
|
|
620
|
-
case 6: return [3 /*break*/, 13];
|
|
621
|
-
case 7:
|
|
622
|
-
e_1_1 = _d.sent();
|
|
623
|
-
e_1 = { error: e_1_1 };
|
|
624
|
-
return [3 /*break*/, 13];
|
|
625
|
-
case 8:
|
|
626
|
-
_d.trys.push([8, , 11, 12]);
|
|
627
|
-
if (!(_b && !_b.done && (_c = _a.return))) return [3 /*break*/, 10];
|
|
628
|
-
return [4 /*yield*/, tslib.__await(_c.call(_a))];
|
|
629
|
-
case 9:
|
|
630
|
-
_d.sent();
|
|
631
|
-
_d.label = 10;
|
|
632
|
-
case 10: return [3 /*break*/, 12];
|
|
633
|
-
case 11:
|
|
634
|
-
if (e_1) throw e_1.error;
|
|
635
|
-
return [7 /*endfinally*/];
|
|
636
|
-
case 12: return [7 /*endfinally*/];
|
|
637
|
-
case 13: return [2 /*return*/];
|
|
638
|
-
}
|
|
639
|
-
});
|
|
640
|
-
});
|
|
641
|
-
};
|
|
642
|
-
/**
|
|
643
|
-
* List jobs.
|
|
644
|
-
* @param options The options parameters.
|
|
645
|
-
*/
|
|
646
|
-
Jobs.prototype._list = function (options) {
|
|
647
|
-
var operationArguments = {
|
|
648
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
649
|
-
};
|
|
650
|
-
return this.client.sendOperationRequest(operationArguments, listOperationSpec);
|
|
651
|
-
};
|
|
652
|
-
/**
|
|
653
|
-
* Get job by id
|
|
654
|
-
* @param jobId Id of the job.
|
|
655
|
-
* @param options The options parameters.
|
|
656
|
-
*/
|
|
657
|
-
Jobs.prototype.get = function (jobId, options) {
|
|
658
|
-
var operationArguments = {
|
|
659
|
-
jobId: jobId,
|
|
660
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
661
|
-
};
|
|
662
|
-
return this.client.sendOperationRequest(operationArguments, getOperationSpec);
|
|
663
|
-
};
|
|
664
|
-
/**
|
|
665
|
-
* Create a job.
|
|
666
|
-
* @param jobId Id of the job.
|
|
667
|
-
* @param job The complete metadata of the job to submit.
|
|
668
|
-
* @param options The options parameters.
|
|
669
|
-
*/
|
|
670
|
-
Jobs.prototype.create = function (jobId, job, options) {
|
|
671
|
-
var operationArguments = {
|
|
672
|
-
jobId: jobId,
|
|
673
|
-
job: job,
|
|
674
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
675
|
-
};
|
|
676
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
|
677
|
-
};
|
|
678
|
-
/**
|
|
679
|
-
* Cancel a job.
|
|
680
|
-
* @param jobId Id of the job.
|
|
681
|
-
* @param options The options parameters.
|
|
682
|
-
*/
|
|
683
|
-
Jobs.prototype.cancel = function (jobId, options) {
|
|
684
|
-
var operationArguments = {
|
|
685
|
-
jobId: jobId,
|
|
686
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
687
|
-
};
|
|
688
|
-
return this.client.sendOperationRequest(operationArguments, cancelOperationSpec);
|
|
689
|
-
};
|
|
690
|
-
/**
|
|
691
|
-
* ListNext
|
|
692
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
693
|
-
* @param options The options parameters.
|
|
694
|
-
*/
|
|
695
|
-
Jobs.prototype._listNext = function (nextLink, options) {
|
|
696
|
-
var operationArguments = {
|
|
697
|
-
nextLink: nextLink,
|
|
698
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
699
|
-
};
|
|
700
|
-
return this.client.sendOperationRequest(operationArguments, listNextOperationSpec);
|
|
701
|
-
};
|
|
702
|
-
return Jobs;
|
|
703
|
-
}());
|
|
704
|
-
// Operation Specifications
|
|
705
|
-
var serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
|
|
706
|
-
var listOperationSpec = {
|
|
707
|
-
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs",
|
|
708
|
-
httpMethod: "GET",
|
|
709
|
-
responses: {
|
|
710
|
-
200: {
|
|
711
|
-
bodyMapper: JobDetailsList
|
|
712
|
-
}
|
|
713
|
-
},
|
|
714
|
-
urlParameters: [
|
|
715
|
-
$host,
|
|
716
|
-
subscriptionId,
|
|
717
|
-
resourceGroupName,
|
|
718
|
-
workspaceName
|
|
719
|
-
],
|
|
720
|
-
headerParameters: [accept],
|
|
721
|
-
serializer: serializer
|
|
722
|
-
};
|
|
723
|
-
var getOperationSpec = {
|
|
724
|
-
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
|
|
725
|
-
httpMethod: "GET",
|
|
726
|
-
responses: {
|
|
727
|
-
200: {
|
|
728
|
-
bodyMapper: JobDetails
|
|
729
|
-
},
|
|
730
|
-
default: {
|
|
731
|
-
bodyMapper: RestError
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
urlParameters: [
|
|
735
|
-
$host,
|
|
736
|
-
subscriptionId,
|
|
737
|
-
resourceGroupName,
|
|
738
|
-
workspaceName,
|
|
739
|
-
jobId
|
|
740
|
-
],
|
|
741
|
-
headerParameters: [accept],
|
|
742
|
-
serializer: serializer
|
|
743
|
-
};
|
|
744
|
-
var createOperationSpec = {
|
|
745
|
-
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
|
|
746
|
-
httpMethod: "PUT",
|
|
747
|
-
responses: {
|
|
748
|
-
200: {
|
|
749
|
-
bodyMapper: JobDetails
|
|
750
|
-
},
|
|
751
|
-
201: {
|
|
752
|
-
bodyMapper: JobDetails
|
|
753
|
-
},
|
|
754
|
-
default: {
|
|
755
|
-
bodyMapper: RestError
|
|
756
|
-
}
|
|
757
|
-
},
|
|
758
|
-
requestBody: job,
|
|
759
|
-
urlParameters: [
|
|
760
|
-
$host,
|
|
761
|
-
subscriptionId,
|
|
762
|
-
resourceGroupName,
|
|
763
|
-
workspaceName,
|
|
764
|
-
jobId
|
|
765
|
-
],
|
|
766
|
-
headerParameters: [accept, contentType],
|
|
767
|
-
mediaType: "json",
|
|
768
|
-
serializer: serializer
|
|
769
|
-
};
|
|
770
|
-
var cancelOperationSpec = {
|
|
771
|
-
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
|
|
772
|
-
httpMethod: "DELETE",
|
|
773
|
-
responses: {
|
|
774
|
-
204: {},
|
|
775
|
-
default: {
|
|
776
|
-
bodyMapper: RestError
|
|
777
|
-
}
|
|
778
|
-
},
|
|
779
|
-
urlParameters: [
|
|
780
|
-
$host,
|
|
781
|
-
subscriptionId,
|
|
782
|
-
resourceGroupName,
|
|
783
|
-
workspaceName,
|
|
784
|
-
jobId
|
|
785
|
-
],
|
|
786
|
-
headerParameters: [accept],
|
|
787
|
-
serializer: serializer
|
|
788
|
-
};
|
|
789
|
-
var listNextOperationSpec = {
|
|
790
|
-
path: "{nextLink}",
|
|
791
|
-
httpMethod: "GET",
|
|
792
|
-
responses: {
|
|
793
|
-
200: {
|
|
794
|
-
bodyMapper: JobDetailsList
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
urlParameters: [
|
|
798
|
-
$host,
|
|
799
|
-
subscriptionId,
|
|
800
|
-
resourceGroupName,
|
|
801
|
-
workspaceName,
|
|
802
|
-
nextLink
|
|
803
|
-
],
|
|
804
|
-
headerParameters: [accept],
|
|
805
|
-
serializer: serializer
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
/*
|
|
809
|
-
* Copyright (c) Microsoft Corporation.
|
|
810
|
-
* Licensed under the MIT License.
|
|
811
|
-
*
|
|
812
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
813
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
814
|
-
*/
|
|
815
|
-
/** Class representing a Providers. */
|
|
816
|
-
var Providers = /** @class */ (function () {
|
|
817
|
-
/**
|
|
818
|
-
* Initialize a new instance of the class Providers class.
|
|
819
|
-
* @param client Reference to the service client
|
|
820
|
-
*/
|
|
821
|
-
function Providers(client) {
|
|
822
|
-
this.client = client;
|
|
823
|
-
}
|
|
824
|
-
/**
|
|
825
|
-
* Get provider status.
|
|
826
|
-
* @param options The options parameters.
|
|
827
|
-
*/
|
|
828
|
-
Providers.prototype.listStatus = function (options) {
|
|
829
|
-
var _a;
|
|
830
|
-
var _this = this;
|
|
831
|
-
var iter = this.getStatusPagingAll(options);
|
|
832
|
-
return _a = {
|
|
833
|
-
next: function () {
|
|
834
|
-
return iter.next();
|
|
835
|
-
}
|
|
836
|
-
},
|
|
837
|
-
_a[Symbol.asyncIterator] = function () {
|
|
838
|
-
return this;
|
|
839
|
-
},
|
|
840
|
-
_a.byPage = function () {
|
|
841
|
-
return _this.getStatusPagingPage(options);
|
|
842
|
-
},
|
|
843
|
-
_a;
|
|
844
|
-
};
|
|
845
|
-
Providers.prototype.getStatusPagingPage = function (options) {
|
|
846
|
-
return tslib.__asyncGenerator(this, arguments, function getStatusPagingPage_1() {
|
|
847
|
-
var result, continuationToken;
|
|
848
|
-
return tslib.__generator(this, function (_a) {
|
|
849
|
-
switch (_a.label) {
|
|
850
|
-
case 0: return [4 /*yield*/, tslib.__await(this._getStatus(options))];
|
|
851
|
-
case 1:
|
|
852
|
-
result = _a.sent();
|
|
853
|
-
return [4 /*yield*/, tslib.__await(result.value || [])];
|
|
854
|
-
case 2: return [4 /*yield*/, _a.sent()];
|
|
855
|
-
case 3:
|
|
856
|
-
_a.sent();
|
|
857
|
-
continuationToken = result.nextLink;
|
|
858
|
-
_a.label = 4;
|
|
859
|
-
case 4:
|
|
860
|
-
if (!continuationToken) return [3 /*break*/, 8];
|
|
861
|
-
return [4 /*yield*/, tslib.__await(this._getStatusNext(continuationToken, options))];
|
|
862
|
-
case 5:
|
|
863
|
-
result = _a.sent();
|
|
864
|
-
continuationToken = result.nextLink;
|
|
865
|
-
return [4 /*yield*/, tslib.__await(result.value || [])];
|
|
866
|
-
case 6: return [4 /*yield*/, _a.sent()];
|
|
867
|
-
case 7:
|
|
868
|
-
_a.sent();
|
|
869
|
-
return [3 /*break*/, 4];
|
|
870
|
-
case 8: return [2 /*return*/];
|
|
871
|
-
}
|
|
872
|
-
});
|
|
873
|
-
});
|
|
874
|
-
};
|
|
875
|
-
Providers.prototype.getStatusPagingAll = function (options) {
|
|
876
|
-
return tslib.__asyncGenerator(this, arguments, function getStatusPagingAll_1() {
|
|
877
|
-
var _a, _b, page, e_1_1;
|
|
878
|
-
var e_1, _c;
|
|
879
|
-
return tslib.__generator(this, function (_d) {
|
|
880
|
-
switch (_d.label) {
|
|
881
|
-
case 0:
|
|
882
|
-
_d.trys.push([0, 7, 8, 13]);
|
|
883
|
-
_a = tslib.__asyncValues(this.getStatusPagingPage(options));
|
|
884
|
-
_d.label = 1;
|
|
885
|
-
case 1: return [4 /*yield*/, tslib.__await(_a.next())];
|
|
886
|
-
case 2:
|
|
887
|
-
if (!(_b = _d.sent(), !_b.done)) return [3 /*break*/, 6];
|
|
888
|
-
page = _b.value;
|
|
889
|
-
return [5 /*yield**/, tslib.__values(tslib.__asyncDelegator(tslib.__asyncValues(page)))];
|
|
890
|
-
case 3: return [4 /*yield*/, tslib.__await.apply(void 0, [_d.sent()])];
|
|
891
|
-
case 4:
|
|
892
|
-
_d.sent();
|
|
893
|
-
_d.label = 5;
|
|
894
|
-
case 5: return [3 /*break*/, 1];
|
|
895
|
-
case 6: return [3 /*break*/, 13];
|
|
896
|
-
case 7:
|
|
897
|
-
e_1_1 = _d.sent();
|
|
898
|
-
e_1 = { error: e_1_1 };
|
|
899
|
-
return [3 /*break*/, 13];
|
|
900
|
-
case 8:
|
|
901
|
-
_d.trys.push([8, , 11, 12]);
|
|
902
|
-
if (!(_b && !_b.done && (_c = _a.return))) return [3 /*break*/, 10];
|
|
903
|
-
return [4 /*yield*/, tslib.__await(_c.call(_a))];
|
|
904
|
-
case 9:
|
|
905
|
-
_d.sent();
|
|
906
|
-
_d.label = 10;
|
|
907
|
-
case 10: return [3 /*break*/, 12];
|
|
908
|
-
case 11:
|
|
909
|
-
if (e_1) throw e_1.error;
|
|
910
|
-
return [7 /*endfinally*/];
|
|
911
|
-
case 12: return [7 /*endfinally*/];
|
|
912
|
-
case 13: return [2 /*return*/];
|
|
913
|
-
}
|
|
914
|
-
});
|
|
915
|
-
});
|
|
916
|
-
};
|
|
917
|
-
/**
|
|
918
|
-
* Get provider status.
|
|
919
|
-
* @param options The options parameters.
|
|
920
|
-
*/
|
|
921
|
-
Providers.prototype._getStatus = function (options) {
|
|
922
|
-
var operationArguments = {
|
|
923
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
924
|
-
};
|
|
925
|
-
return this.client.sendOperationRequest(operationArguments, getStatusOperationSpec);
|
|
926
|
-
};
|
|
927
|
-
/**
|
|
928
|
-
* GetStatusNext
|
|
929
|
-
* @param nextLink The nextLink from the previous successful call to the GetStatus method.
|
|
930
|
-
* @param options The options parameters.
|
|
931
|
-
*/
|
|
932
|
-
Providers.prototype._getStatusNext = function (nextLink, options) {
|
|
933
|
-
var operationArguments = {
|
|
934
|
-
nextLink: nextLink,
|
|
935
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
936
|
-
};
|
|
937
|
-
return this.client.sendOperationRequest(operationArguments, getStatusNextOperationSpec);
|
|
938
|
-
};
|
|
939
|
-
return Providers;
|
|
940
|
-
}());
|
|
941
|
-
// Operation Specifications
|
|
942
|
-
var serializer$1 = new coreHttp.Serializer(Mappers, /* isXml */ false);
|
|
943
|
-
var getStatusOperationSpec = {
|
|
944
|
-
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/providerStatus",
|
|
945
|
-
httpMethod: "GET",
|
|
946
|
-
responses: {
|
|
947
|
-
200: {
|
|
948
|
-
bodyMapper: ProviderStatusList
|
|
949
|
-
},
|
|
950
|
-
default: {
|
|
951
|
-
bodyMapper: RestError
|
|
952
|
-
}
|
|
953
|
-
},
|
|
954
|
-
urlParameters: [
|
|
955
|
-
$host,
|
|
956
|
-
subscriptionId,
|
|
957
|
-
resourceGroupName,
|
|
958
|
-
workspaceName
|
|
959
|
-
],
|
|
960
|
-
headerParameters: [accept],
|
|
961
|
-
serializer: serializer$1
|
|
962
|
-
};
|
|
963
|
-
var getStatusNextOperationSpec = {
|
|
964
|
-
path: "{nextLink}",
|
|
965
|
-
httpMethod: "GET",
|
|
966
|
-
responses: {
|
|
967
|
-
200: {
|
|
968
|
-
bodyMapper: ProviderStatusList
|
|
969
|
-
},
|
|
970
|
-
default: {
|
|
971
|
-
bodyMapper: RestError
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
urlParameters: [
|
|
975
|
-
$host,
|
|
976
|
-
subscriptionId,
|
|
977
|
-
resourceGroupName,
|
|
978
|
-
workspaceName,
|
|
979
|
-
nextLink
|
|
980
|
-
],
|
|
981
|
-
headerParameters: [accept],
|
|
982
|
-
serializer: serializer$1
|
|
983
|
-
};
|
|
984
|
-
|
|
985
|
-
/*
|
|
986
|
-
* Copyright (c) Microsoft Corporation.
|
|
987
|
-
* Licensed under the MIT License.
|
|
988
|
-
*
|
|
989
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
990
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
991
|
-
*/
|
|
992
|
-
/** Class representing a Storage. */
|
|
993
|
-
var Storage = /** @class */ (function () {
|
|
994
|
-
/**
|
|
995
|
-
* Initialize a new instance of the class Storage class.
|
|
996
|
-
* @param client Reference to the service client
|
|
997
|
-
*/
|
|
998
|
-
function Storage(client) {
|
|
999
|
-
this.client = client;
|
|
1000
|
-
}
|
|
1001
|
-
/**
|
|
1002
|
-
* Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.
|
|
1003
|
-
* The SAS URL can be used to upload job input and/or download job output.
|
|
1004
|
-
* @param blobDetails The details (name and container) of the blob to store or download data.
|
|
1005
|
-
* @param options The options parameters.
|
|
1006
|
-
*/
|
|
1007
|
-
Storage.prototype.sasUri = function (blobDetails, options) {
|
|
1008
|
-
var operationArguments = {
|
|
1009
|
-
blobDetails: blobDetails,
|
|
1010
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1011
|
-
};
|
|
1012
|
-
return this.client.sendOperationRequest(operationArguments, sasUriOperationSpec);
|
|
1013
|
-
};
|
|
1014
|
-
return Storage;
|
|
1015
|
-
}());
|
|
1016
|
-
// Operation Specifications
|
|
1017
|
-
var serializer$2 = new coreHttp.Serializer(Mappers, /* isXml */ false);
|
|
1018
|
-
var sasUriOperationSpec = {
|
|
1019
|
-
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/storage/sasUri",
|
|
1020
|
-
httpMethod: "POST",
|
|
1021
|
-
responses: {
|
|
1022
|
-
200: {
|
|
1023
|
-
bodyMapper: SasUriResponse
|
|
1024
|
-
},
|
|
1025
|
-
default: {
|
|
1026
|
-
bodyMapper: RestError
|
|
1027
|
-
}
|
|
1028
|
-
},
|
|
1029
|
-
requestBody: blobDetails,
|
|
1030
|
-
urlParameters: [
|
|
1031
|
-
$host,
|
|
1032
|
-
subscriptionId,
|
|
1033
|
-
resourceGroupName,
|
|
1034
|
-
workspaceName
|
|
1035
|
-
],
|
|
1036
|
-
headerParameters: [accept, contentType],
|
|
1037
|
-
mediaType: "json",
|
|
1038
|
-
serializer: serializer$2
|
|
1039
|
-
};
|
|
1040
|
-
|
|
1041
|
-
/*
|
|
1042
|
-
* Copyright (c) Microsoft Corporation.
|
|
1043
|
-
* Licensed under the MIT License.
|
|
1044
|
-
*
|
|
1045
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1046
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1047
|
-
*/
|
|
1048
|
-
/** Class representing a Quotas. */
|
|
1049
|
-
var Quotas = /** @class */ (function () {
|
|
1050
|
-
/**
|
|
1051
|
-
* Initialize a new instance of the class Quotas class.
|
|
1052
|
-
* @param client Reference to the service client
|
|
1053
|
-
*/
|
|
1054
|
-
function Quotas(client) {
|
|
1055
|
-
this.client = client;
|
|
1056
|
-
}
|
|
1057
|
-
/**
|
|
1058
|
-
* List quotas for the given workspace.
|
|
1059
|
-
* @param options The options parameters.
|
|
1060
|
-
*/
|
|
1061
|
-
Quotas.prototype.list = function (options) {
|
|
1062
|
-
var _a;
|
|
1063
|
-
var _this = this;
|
|
1064
|
-
var iter = this.listPagingAll(options);
|
|
1065
|
-
return _a = {
|
|
1066
|
-
next: function () {
|
|
1067
|
-
return iter.next();
|
|
1068
|
-
}
|
|
1069
|
-
},
|
|
1070
|
-
_a[Symbol.asyncIterator] = function () {
|
|
1071
|
-
return this;
|
|
1072
|
-
},
|
|
1073
|
-
_a.byPage = function () {
|
|
1074
|
-
return _this.listPagingPage(options);
|
|
1075
|
-
},
|
|
1076
|
-
_a;
|
|
1077
|
-
};
|
|
1078
|
-
Quotas.prototype.listPagingPage = function (options) {
|
|
1079
|
-
return tslib.__asyncGenerator(this, arguments, function listPagingPage_1() {
|
|
1080
|
-
var result, continuationToken;
|
|
1081
|
-
return tslib.__generator(this, function (_a) {
|
|
1082
|
-
switch (_a.label) {
|
|
1083
|
-
case 0: return [4 /*yield*/, tslib.__await(this._list(options))];
|
|
1084
|
-
case 1:
|
|
1085
|
-
result = _a.sent();
|
|
1086
|
-
return [4 /*yield*/, tslib.__await(result.value || [])];
|
|
1087
|
-
case 2: return [4 /*yield*/, _a.sent()];
|
|
1088
|
-
case 3:
|
|
1089
|
-
_a.sent();
|
|
1090
|
-
continuationToken = result.nextLink;
|
|
1091
|
-
_a.label = 4;
|
|
1092
|
-
case 4:
|
|
1093
|
-
if (!continuationToken) return [3 /*break*/, 8];
|
|
1094
|
-
return [4 /*yield*/, tslib.__await(this._listNext(continuationToken, options))];
|
|
1095
|
-
case 5:
|
|
1096
|
-
result = _a.sent();
|
|
1097
|
-
continuationToken = result.nextLink;
|
|
1098
|
-
return [4 /*yield*/, tslib.__await(result.value || [])];
|
|
1099
|
-
case 6: return [4 /*yield*/, _a.sent()];
|
|
1100
|
-
case 7:
|
|
1101
|
-
_a.sent();
|
|
1102
|
-
return [3 /*break*/, 4];
|
|
1103
|
-
case 8: return [2 /*return*/];
|
|
1104
|
-
}
|
|
1105
|
-
});
|
|
1106
|
-
});
|
|
1107
|
-
};
|
|
1108
|
-
Quotas.prototype.listPagingAll = function (options) {
|
|
1109
|
-
return tslib.__asyncGenerator(this, arguments, function listPagingAll_1() {
|
|
1110
|
-
var _a, _b, page, e_1_1;
|
|
1111
|
-
var e_1, _c;
|
|
1112
|
-
return tslib.__generator(this, function (_d) {
|
|
1113
|
-
switch (_d.label) {
|
|
1114
|
-
case 0:
|
|
1115
|
-
_d.trys.push([0, 7, 8, 13]);
|
|
1116
|
-
_a = tslib.__asyncValues(this.listPagingPage(options));
|
|
1117
|
-
_d.label = 1;
|
|
1118
|
-
case 1: return [4 /*yield*/, tslib.__await(_a.next())];
|
|
1119
|
-
case 2:
|
|
1120
|
-
if (!(_b = _d.sent(), !_b.done)) return [3 /*break*/, 6];
|
|
1121
|
-
page = _b.value;
|
|
1122
|
-
return [5 /*yield**/, tslib.__values(tslib.__asyncDelegator(tslib.__asyncValues(page)))];
|
|
1123
|
-
case 3: return [4 /*yield*/, tslib.__await.apply(void 0, [_d.sent()])];
|
|
1124
|
-
case 4:
|
|
1125
|
-
_d.sent();
|
|
1126
|
-
_d.label = 5;
|
|
1127
|
-
case 5: return [3 /*break*/, 1];
|
|
1128
|
-
case 6: return [3 /*break*/, 13];
|
|
1129
|
-
case 7:
|
|
1130
|
-
e_1_1 = _d.sent();
|
|
1131
|
-
e_1 = { error: e_1_1 };
|
|
1132
|
-
return [3 /*break*/, 13];
|
|
1133
|
-
case 8:
|
|
1134
|
-
_d.trys.push([8, , 11, 12]);
|
|
1135
|
-
if (!(_b && !_b.done && (_c = _a.return))) return [3 /*break*/, 10];
|
|
1136
|
-
return [4 /*yield*/, tslib.__await(_c.call(_a))];
|
|
1137
|
-
case 9:
|
|
1138
|
-
_d.sent();
|
|
1139
|
-
_d.label = 10;
|
|
1140
|
-
case 10: return [3 /*break*/, 12];
|
|
1141
|
-
case 11:
|
|
1142
|
-
if (e_1) throw e_1.error;
|
|
1143
|
-
return [7 /*endfinally*/];
|
|
1144
|
-
case 12: return [7 /*endfinally*/];
|
|
1145
|
-
case 13: return [2 /*return*/];
|
|
1146
|
-
}
|
|
1147
|
-
});
|
|
1148
|
-
});
|
|
1149
|
-
};
|
|
1150
|
-
/**
|
|
1151
|
-
* List quotas for the given workspace.
|
|
1152
|
-
* @param options The options parameters.
|
|
1153
|
-
*/
|
|
1154
|
-
Quotas.prototype._list = function (options) {
|
|
1155
|
-
var operationArguments = {
|
|
1156
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1157
|
-
};
|
|
1158
|
-
return this.client.sendOperationRequest(operationArguments, listOperationSpec$1);
|
|
1159
|
-
};
|
|
1160
|
-
/**
|
|
1161
|
-
* ListNext
|
|
1162
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1163
|
-
* @param options The options parameters.
|
|
1164
|
-
*/
|
|
1165
|
-
Quotas.prototype._listNext = function (nextLink, options) {
|
|
1166
|
-
var operationArguments = {
|
|
1167
|
-
nextLink: nextLink,
|
|
1168
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
1169
|
-
};
|
|
1170
|
-
return this.client.sendOperationRequest(operationArguments, listNextOperationSpec$1);
|
|
1171
|
-
};
|
|
1172
|
-
return Quotas;
|
|
1173
|
-
}());
|
|
1174
|
-
// Operation Specifications
|
|
1175
|
-
var serializer$3 = new coreHttp.Serializer(Mappers, /* isXml */ false);
|
|
1176
|
-
var listOperationSpec$1 = {
|
|
1177
|
-
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/quotas",
|
|
1178
|
-
httpMethod: "GET",
|
|
1179
|
-
responses: {
|
|
1180
|
-
200: {
|
|
1181
|
-
bodyMapper: QuotaList
|
|
1182
|
-
},
|
|
1183
|
-
default: {
|
|
1184
|
-
bodyMapper: RestError
|
|
1185
|
-
}
|
|
1186
|
-
},
|
|
1187
|
-
urlParameters: [
|
|
1188
|
-
$host,
|
|
1189
|
-
subscriptionId,
|
|
1190
|
-
resourceGroupName,
|
|
1191
|
-
workspaceName
|
|
1192
|
-
],
|
|
1193
|
-
headerParameters: [accept],
|
|
1194
|
-
serializer: serializer$3
|
|
1195
|
-
};
|
|
1196
|
-
var listNextOperationSpec$1 = {
|
|
1197
|
-
path: "{nextLink}",
|
|
1198
|
-
httpMethod: "GET",
|
|
1199
|
-
responses: {
|
|
1200
|
-
200: {
|
|
1201
|
-
bodyMapper: QuotaList
|
|
1202
|
-
},
|
|
1203
|
-
default: {
|
|
1204
|
-
bodyMapper: RestError
|
|
1205
|
-
}
|
|
1206
|
-
},
|
|
1207
|
-
urlParameters: [
|
|
1208
|
-
$host,
|
|
1209
|
-
subscriptionId,
|
|
1210
|
-
resourceGroupName,
|
|
1211
|
-
workspaceName,
|
|
1212
|
-
nextLink
|
|
1213
|
-
],
|
|
1214
|
-
headerParameters: [accept],
|
|
1215
|
-
serializer: serializer$3
|
|
1216
|
-
};
|
|
1217
|
-
|
|
1218
|
-
/*
|
|
1219
|
-
* Copyright (c) Microsoft Corporation.
|
|
1220
|
-
* Licensed under the MIT License.
|
|
1221
|
-
*
|
|
1222
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1223
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1224
|
-
*/
|
|
1225
|
-
var packageName = "@azure/quantum-jobs";
|
|
1226
|
-
var packageVersion = "1.0.0-beta.1";
|
|
1227
|
-
var QuantumJobClientContext = /** @class */ (function (_super) {
|
|
1228
|
-
tslib.__extends(QuantumJobClientContext, _super);
|
|
1229
|
-
/**
|
|
1230
|
-
* Initializes a new instance of the QuantumJobClientContext class.
|
|
1231
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1232
|
-
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
1233
|
-
* 00000000-0000-0000-0000-000000000000)
|
|
1234
|
-
* @param resourceGroupName Name of an Azure resource group.
|
|
1235
|
-
* @param workspaceName Name of the workspace.
|
|
1236
|
-
* @param options The parameter options
|
|
1237
|
-
*/
|
|
1238
|
-
function QuantumJobClientContext(credentials, subscriptionId, resourceGroupName, workspaceName, options) {
|
|
1239
|
-
var _this = this;
|
|
1240
|
-
if (credentials === undefined) {
|
|
1241
|
-
throw new Error("'credentials' cannot be null");
|
|
1242
|
-
}
|
|
1243
|
-
if (subscriptionId === undefined) {
|
|
1244
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
1245
|
-
}
|
|
1246
|
-
if (resourceGroupName === undefined) {
|
|
1247
|
-
throw new Error("'resourceGroupName' cannot be null");
|
|
1248
|
-
}
|
|
1249
|
-
if (workspaceName === undefined) {
|
|
1250
|
-
throw new Error("'workspaceName' cannot be null");
|
|
1251
|
-
}
|
|
1252
|
-
// Initializing default values for options
|
|
1253
|
-
if (!options) {
|
|
1254
|
-
options = {};
|
|
1255
|
-
}
|
|
1256
|
-
if (!options.userAgent) {
|
|
1257
|
-
var defaultUserAgent = coreHttp.getDefaultUserAgentValue();
|
|
1258
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1259
|
-
}
|
|
1260
|
-
_this = _super.call(this, credentials, options) || this;
|
|
1261
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
1262
|
-
_this.baseUri = options.endpoint || "https://quantum.azure.com";
|
|
1263
|
-
// Parameter assignments
|
|
1264
|
-
_this.subscriptionId = subscriptionId;
|
|
1265
|
-
_this.resourceGroupName = resourceGroupName;
|
|
1266
|
-
_this.workspaceName = workspaceName;
|
|
1267
|
-
// Assigning values to Constant parameters
|
|
1268
|
-
_this.$host = options.$host || "https://quantum.azure.com";
|
|
1269
|
-
return _this;
|
|
1270
|
-
}
|
|
1271
|
-
return QuantumJobClientContext;
|
|
1272
|
-
}(coreHttp.ServiceClient));
|
|
1273
|
-
|
|
1274
|
-
/*
|
|
1275
|
-
* Copyright (c) Microsoft Corporation.
|
|
1276
|
-
* Licensed under the MIT License.
|
|
1277
|
-
*
|
|
1278
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1279
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1280
|
-
*/
|
|
1281
|
-
var QuantumJobClient = /** @class */ (function (_super) {
|
|
1282
|
-
tslib.__extends(QuantumJobClient, _super);
|
|
1283
|
-
/**
|
|
1284
|
-
* Initializes a new instance of the QuantumJobClient class.
|
|
1285
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1286
|
-
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
1287
|
-
* 00000000-0000-0000-0000-000000000000)
|
|
1288
|
-
* @param resourceGroupName Name of an Azure resource group.
|
|
1289
|
-
* @param workspaceName Name of the workspace.
|
|
1290
|
-
* @param options The parameter options
|
|
1291
|
-
*/
|
|
1292
|
-
function QuantumJobClient(credentials, subscriptionId, resourceGroupName, workspaceName, options) {
|
|
1293
|
-
var _this = _super.call(this, credentials, subscriptionId, resourceGroupName, workspaceName, options) || this;
|
|
1294
|
-
_this.jobs = new Jobs(_this);
|
|
1295
|
-
_this.providers = new Providers(_this);
|
|
1296
|
-
_this.storage = new Storage(_this);
|
|
1297
|
-
_this.quotas = new Quotas(_this);
|
|
1298
|
-
return _this;
|
|
1299
|
-
}
|
|
1300
|
-
return QuantumJobClient;
|
|
1301
|
-
}(QuantumJobClientContext));
|
|
1302
|
-
|
|
1303
|
-
exports.Jobs = Jobs;
|
|
1304
|
-
exports.Providers = Providers;
|
|
1305
|
-
exports.QuantumJobClient = QuantumJobClient;
|
|
1306
|
-
exports.QuantumJobClientContext = QuantumJobClientContext;
|
|
1307
|
-
exports.Quotas = Quotas;
|
|
1308
|
-
exports.Storage = Storage;
|
|
1309
|
-
//# sourceMappingURL=index.js.map
|