@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { Quotas } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { QuantumJobClient } from "../quantumJobClient.js";
|
|
4
|
+
import type { Quota, QuotasListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Quotas operations. */
|
|
6
|
+
export declare class QuotasImpl implements Quotas {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Quotas class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: QuantumJobClient);
|
|
13
|
+
/**
|
|
14
|
+
* List quotas for the given workspace.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: QuotasListOptionalParams): PagedAsyncIterableIterator<Quota>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* List quotas for the given workspace.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=quotas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotas.d.ts","sourceRoot":"","sources":["../../../src/operations/quotas.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,KAAK,EAEL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AA+C5B,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,0BAA0B,CAAC,KAAK,CAAC;YAenE,cAAc;YAad,aAAa;IAM5B;;;OAGG;YACW,KAAK;IAanB;;;;OAIG;YACW,SAAS;CAexB"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { tracingClient } from "../tracing.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
// Operation Specifications
|
|
13
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
14
|
+
const listOperationSpec = {
|
|
15
|
+
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/quotas",
|
|
16
|
+
httpMethod: "GET",
|
|
17
|
+
responses: {
|
|
18
|
+
200: {
|
|
19
|
+
bodyMapper: Mappers.QuotaList,
|
|
20
|
+
},
|
|
21
|
+
default: {
|
|
22
|
+
bodyMapper: Mappers.RestError,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
urlParameters: [
|
|
26
|
+
Parameters.$host,
|
|
27
|
+
Parameters.subscriptionId,
|
|
28
|
+
Parameters.resourceGroupName,
|
|
29
|
+
Parameters.workspaceName,
|
|
30
|
+
],
|
|
31
|
+
headerParameters: [Parameters.accept],
|
|
32
|
+
serializer,
|
|
33
|
+
};
|
|
34
|
+
const listNextOperationSpec = {
|
|
35
|
+
path: "{nextLink}",
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
responses: {
|
|
38
|
+
200: {
|
|
39
|
+
bodyMapper: Mappers.QuotaList,
|
|
40
|
+
},
|
|
41
|
+
default: {
|
|
42
|
+
bodyMapper: Mappers.RestError,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
urlParameters: [
|
|
46
|
+
Parameters.$host,
|
|
47
|
+
Parameters.subscriptionId,
|
|
48
|
+
Parameters.resourceGroupName,
|
|
49
|
+
Parameters.workspaceName,
|
|
50
|
+
Parameters.nextLink,
|
|
51
|
+
],
|
|
52
|
+
headerParameters: [Parameters.accept],
|
|
53
|
+
serializer,
|
|
54
|
+
};
|
|
55
|
+
/** Class containing Quotas operations. */
|
|
56
|
+
export class QuotasImpl {
|
|
57
|
+
client;
|
|
58
|
+
/**
|
|
59
|
+
* Initialize a new instance of the class Quotas class.
|
|
60
|
+
* @param client Reference to the service client
|
|
61
|
+
*/
|
|
62
|
+
constructor(client) {
|
|
63
|
+
this.client = client;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* List quotas for the given workspace.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
list(options) {
|
|
70
|
+
const iter = this.listPagingAll(options);
|
|
71
|
+
return {
|
|
72
|
+
next() {
|
|
73
|
+
return iter.next();
|
|
74
|
+
},
|
|
75
|
+
[Symbol.asyncIterator]() {
|
|
76
|
+
return this;
|
|
77
|
+
},
|
|
78
|
+
byPage: () => {
|
|
79
|
+
return this.listPagingPage(options);
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
async *listPagingPage(options) {
|
|
84
|
+
let result = await this._list(options);
|
|
85
|
+
yield result.value || [];
|
|
86
|
+
let continuationToken = result.nextLink;
|
|
87
|
+
while (continuationToken) {
|
|
88
|
+
result = await this._listNext(continuationToken, options);
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async *listPagingAll(options) {
|
|
94
|
+
for await (const page of this.listPagingPage(options)) {
|
|
95
|
+
yield* page;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* List quotas for the given workspace.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
async _list(options) {
|
|
103
|
+
return tracingClient.withSpan("QuantumJobClient._list", options ?? {}, async (updatedOptions) => {
|
|
104
|
+
return this.client.sendOperationRequest({ updatedOptions }, listOperationSpec);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* ListNext
|
|
109
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
110
|
+
* @param options The options parameters.
|
|
111
|
+
*/
|
|
112
|
+
async _listNext(nextLink, options) {
|
|
113
|
+
return tracingClient.withSpan("QuantumJobClient._listNext", options ?? {}, async (updatedOptions) => {
|
|
114
|
+
return this.client.sendOperationRequest({ nextLink, updatedOptions }, listNextOperationSpec);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=quotas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotas.js","sourceRoot":"","sources":["../../../src/operations/quotas.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { Quotas } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { QuantumJobClient } from \"../quantumJobClient.js\";\nimport type {\n Quota,\n QuotasListNextOptionalParams,\n QuotasListOptionalParams,\n QuotasListResponse,\n QuotasListNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/quotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaList,\n },\n default: {\n bodyMapper: Mappers.RestError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaList,\n },\n default: {\n bodyMapper: Mappers.RestError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing Quotas operations. */\nexport class QuotasImpl implements Quotas {\n private readonly client: QuantumJobClient;\n\n /**\n * Initialize a new instance of the class Quotas class.\n * @param client Reference to the service client\n */\n constructor(client: QuantumJobClient) {\n this.client = client;\n }\n\n /**\n * List quotas for the given workspace.\n * @param options The options parameters.\n */\n public list(options?: QuotasListOptionalParams): PagedAsyncIterableIterator<Quota> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n },\n };\n }\n\n private async *listPagingPage(\n options?: QuotasListOptionalParams,\n ): AsyncIterableIterator<Quota[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(options?: QuotasListOptionalParams): AsyncIterableIterator<Quota> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List quotas for the given workspace.\n * @param options The options parameters.\n */\n private async _list(options?: QuotasListOptionalParams): Promise<QuotasListResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient._list\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<QuotasListResponse>;\n },\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private async _listNext(\n nextLink: string,\n options?: QuotasListNextOptionalParams,\n ): Promise<QuotasListNextResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient._listNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n listNextOperationSpec,\n ) as Promise<QuotasListNextResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Storage } from "../operationsInterfaces/index.js";
|
|
2
|
+
import type { QuantumJobClient } from "../quantumJobClient.js";
|
|
3
|
+
import type { BlobDetails, StorageSasUriOptionalParams, StorageSasUriResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing Storage operations. */
|
|
5
|
+
export declare class StorageImpl implements Storage {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class Storage class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: QuantumJobClient);
|
|
12
|
+
/**
|
|
13
|
+
* Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.
|
|
14
|
+
* The SAS URL can be used to upload job input and/or download job output.
|
|
15
|
+
* @param blobDetails The details (name and container) of the blob to store or download data.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
sasUri(blobDetails: BlobDetails, options?: StorageSasUriOptionalParams): Promise<StorageSasUriResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/operations/storage.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,WAAW,EACX,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AA4B5B,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;;;OAKG;IACG,MAAM,CACV,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;CAYlC"}
|
|
@@ -5,56 +5,54 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
|
|
12
|
-
var Storage = /** @class */ (function () {
|
|
13
|
-
/**
|
|
14
|
-
* Initialize a new instance of the class Storage class.
|
|
15
|
-
* @param client Reference to the service client
|
|
16
|
-
*/
|
|
17
|
-
function Storage(client) {
|
|
18
|
-
this.client = client;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.
|
|
22
|
-
* The SAS URL can be used to upload job input and/or download job output.
|
|
23
|
-
* @param blobDetails The details (name and container) of the blob to store or download data.
|
|
24
|
-
* @param options The options parameters.
|
|
25
|
-
*/
|
|
26
|
-
Storage.prototype.sasUri = function (blobDetails, options) {
|
|
27
|
-
var operationArguments = {
|
|
28
|
-
blobDetails: blobDetails,
|
|
29
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
30
|
-
};
|
|
31
|
-
return this.client.sendOperationRequest(operationArguments, sasUriOperationSpec);
|
|
32
|
-
};
|
|
33
|
-
return Storage;
|
|
34
|
-
}());
|
|
35
|
-
export { Storage };
|
|
8
|
+
import { tracingClient } from "../tracing.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
36
12
|
// Operation Specifications
|
|
37
|
-
|
|
38
|
-
|
|
13
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
14
|
+
const sasUriOperationSpec = {
|
|
39
15
|
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/storage/sasUri",
|
|
40
16
|
httpMethod: "POST",
|
|
41
17
|
responses: {
|
|
42
18
|
200: {
|
|
43
|
-
bodyMapper: Mappers.SasUriResponse
|
|
19
|
+
bodyMapper: Mappers.SasUriResponse,
|
|
44
20
|
},
|
|
45
21
|
default: {
|
|
46
|
-
bodyMapper: Mappers.RestError
|
|
47
|
-
}
|
|
22
|
+
bodyMapper: Mappers.RestError,
|
|
23
|
+
},
|
|
48
24
|
},
|
|
49
25
|
requestBody: Parameters.blobDetails,
|
|
50
26
|
urlParameters: [
|
|
51
27
|
Parameters.$host,
|
|
52
28
|
Parameters.subscriptionId,
|
|
53
29
|
Parameters.resourceGroupName,
|
|
54
|
-
Parameters.workspaceName
|
|
30
|
+
Parameters.workspaceName,
|
|
55
31
|
],
|
|
56
32
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
57
33
|
mediaType: "json",
|
|
58
|
-
serializer
|
|
34
|
+
serializer,
|
|
59
35
|
};
|
|
36
|
+
/** Class containing Storage operations. */
|
|
37
|
+
export class StorageImpl {
|
|
38
|
+
client;
|
|
39
|
+
/**
|
|
40
|
+
* Initialize a new instance of the class Storage class.
|
|
41
|
+
* @param client Reference to the service client
|
|
42
|
+
*/
|
|
43
|
+
constructor(client) {
|
|
44
|
+
this.client = client;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.
|
|
48
|
+
* The SAS URL can be used to upload job input and/or download job output.
|
|
49
|
+
* @param blobDetails The details (name and container) of the blob to store or download data.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
async sasUri(blobDetails, options) {
|
|
53
|
+
return tracingClient.withSpan("QuantumJobClient.sasUri", options ?? {}, async (updatedOptions) => {
|
|
54
|
+
return this.client.sendOperationRequest({ blobDetails, updatedOptions }, sasUriOperationSpec);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
60
58
|
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/operations/storage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,+IAA+I;IACrJ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AAEF,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,WAAwB,EACxB,OAAqC;QAErC,OAAO,aAAa,CAAC,QAAQ,CAC3B,yBAAyB,EACzB,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,cAAc,EAAE,EAC/B,mBAAmB,CACc,CAAC;QACtC,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { Storage } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { QuantumJobClient } from \"../quantumJobClient.js\";\nimport type {\n BlobDetails,\n StorageSasUriOptionalParams,\n StorageSasUriResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst sasUriOperationSpec: coreClient.OperationSpec = {\n path: \"/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/storage/sasUri\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SasUriResponse,\n },\n default: {\n bodyMapper: Mappers.RestError,\n },\n },\n requestBody: Parameters.blobDetails,\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n\n/** Class containing Storage operations. */\nexport class StorageImpl implements Storage {\n private readonly client: QuantumJobClient;\n\n /**\n * Initialize a new instance of the class Storage class.\n * @param client Reference to the service client\n */\n constructor(client: QuantumJobClient) {\n this.client = client;\n }\n\n /**\n * Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.\n * The SAS URL can be used to upload job input and/or download job output.\n * @param blobDetails The details (name and container) of the blob to store or download data.\n * @param options The options parameters.\n */\n async sasUri(\n blobDetails: BlobDetails,\n options?: StorageSasUriOptionalParams,\n ): Promise<StorageSasUriResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient.sasUri\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { blobDetails, updatedOptions },\n sasUriOperationSpec,\n ) as Promise<StorageSasUriResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./jobs.js";
|
|
9
|
+
export * from "./providers.js";
|
|
10
|
+
export * from "./storage.js";
|
|
11
|
+
export * from "./quotas.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./jobs.js\";\nexport * from \"./providers.js\";\nexport * from \"./storage.js\";\nexport * from \"./quotas.js\";\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { JobDetails, JobsListOptionalParams, JobsGetOptionalParams, JobsGetResponse, JobsCreateOptionalParams, JobsCreateResponse, JobsCancelOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Jobs. */
|
|
4
|
+
export interface Jobs {
|
|
5
|
+
/**
|
|
6
|
+
* List jobs.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: JobsListOptionalParams): PagedAsyncIterableIterator<JobDetails>;
|
|
10
|
+
/**
|
|
11
|
+
* Get job by id
|
|
12
|
+
* @param jobId Id of the job.
|
|
13
|
+
* @param options The options parameters.
|
|
14
|
+
*/
|
|
15
|
+
get(jobId: string, options?: JobsGetOptionalParams): Promise<JobsGetResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Create a job.
|
|
18
|
+
* @param jobId Id of the job.
|
|
19
|
+
* @param job The complete metadata of the job to submit.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
create(jobId: string, job: JobDetails, options?: JobsCreateOptionalParams): Promise<JobsCreateResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Cancel a job.
|
|
25
|
+
* @param jobId Id of the job.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
cancel(jobId: string, options?: JobsCancelOptionalParams): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/jobs.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EACV,UAAU,EACV,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAG5B,qCAAqC;AACrC,MAAM,WAAW,IAAI;IACnB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,0BAA0B,CAAC,UAAU,CAAC,CAAC;IAC/E;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9E;;;;;OAKG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,UAAU,EACf,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type {\n JobDetails,\n JobsListOptionalParams,\n JobsGetOptionalParams,\n JobsGetResponse,\n JobsCreateOptionalParams,\n JobsCreateResponse,\n JobsCancelOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Jobs. */\nexport interface Jobs {\n /**\n * List jobs.\n * @param options The options parameters.\n */\n list(options?: JobsListOptionalParams): PagedAsyncIterableIterator<JobDetails>;\n /**\n * Get job by id\n * @param jobId Id of the job.\n * @param options The options parameters.\n */\n get(jobId: string, options?: JobsGetOptionalParams): Promise<JobsGetResponse>;\n /**\n * Create a job.\n * @param jobId Id of the job.\n * @param job The complete metadata of the job to submit.\n * @param options The options parameters.\n */\n create(\n jobId: string,\n job: JobDetails,\n options?: JobsCreateOptionalParams,\n ): Promise<JobsCreateResponse>;\n /**\n * Cancel a job.\n * @param jobId Id of the job.\n * @param options The options parameters.\n */\n cancel(jobId: string, options?: JobsCancelOptionalParams): Promise<void>;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { ProviderStatus, ProvidersGetStatusOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Providers. */
|
|
4
|
+
export interface Providers {
|
|
5
|
+
/**
|
|
6
|
+
* Get provider status.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
listStatus(options?: ProvidersGetStatusOptionalParams): PagedAsyncIterableIterator<ProviderStatus>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/providers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAG3F,0CAA0C;AAC1C,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,UAAU,CACR,OAAO,CAAC,EAAE,gCAAgC,GACzC,0BAA0B,CAAC,cAAc,CAAC,CAAC;CAC/C"}
|
|
@@ -5,8 +5,5 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
export * from "./storage";
|
|
11
|
-
export * from "./quotas";
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/providers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { ProviderStatus, ProvidersGetStatusOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Providers. */\nexport interface Providers {\n /**\n * Get provider status.\n * @param options The options parameters.\n */\n listStatus(\n options?: ProvidersGetStatusOptionalParams,\n ): PagedAsyncIterableIterator<ProviderStatus>;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { Quota, QuotasListOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Quotas. */
|
|
4
|
+
export interface Quotas {
|
|
5
|
+
/**
|
|
6
|
+
* List quotas for the given workspace.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: QuotasListOptionalParams): PagedAsyncIterableIterator<Quota>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=quotas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotas.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/quotas.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAG1E,uCAAuC;AACvC,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAC;CAC7E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=quotas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotas.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/quotas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { Quota, QuotasListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Quotas. */\nexport interface Quotas {\n /**\n * List quotas for the given workspace.\n * @param options The options parameters.\n */\n list(options?: QuotasListOptionalParams): PagedAsyncIterableIterator<Quota>;\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BlobDetails, StorageSasUriOptionalParams, StorageSasUriResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a Storage. */
|
|
3
|
+
export interface Storage {
|
|
4
|
+
/**
|
|
5
|
+
* Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.
|
|
6
|
+
* The SAS URL can be used to upload job input and/or download job output.
|
|
7
|
+
* @param blobDetails The details (name and container) of the blob to store or download data.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
sasUri(blobDetails: BlobDetails, options?: StorageSasUriOptionalParams): Promise<StorageSasUriResponse>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/storage.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,WAAW,EACX,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,wCAAwC;AACxC,MAAM,WAAW,OAAO;IACtB;;;;;OAKG;IACH,MAAM,CACJ,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACnC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/storage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type {\n BlobDetails,\n StorageSasUriOptionalParams,\n StorageSasUriResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Storage. */\nexport interface Storage {\n /**\n * Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.\n * The SAS URL can be used to upload job input and/or download job output.\n * @param blobDetails The details (name and container) of the blob to store or download data.\n * @param options The options parameters.\n */\n sasUri(\n blobDetails: BlobDetails,\n options?: StorageSasUriOptionalParams,\n ): Promise<StorageSasUriResponse>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAO/F"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
const pageMap = new WeakMap();
|
|
9
|
+
/**
|
|
10
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
11
|
+
* returns a continuation token that can be used to begin paging from
|
|
12
|
+
* that point later.
|
|
13
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
14
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
|
+
*/
|
|
16
|
+
export function getContinuationToken(page) {
|
|
17
|
+
if (typeof page !== "object" || page === null) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
21
|
+
}
|
|
22
|
+
export function setContinuationToken(page, continuationToken) {
|
|
23
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
27
|
+
pageInfo.continuationToken = continuationToken;
|
|
28
|
+
pageMap.set(page, pageInfo);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;IACvF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(page: unknown, continuationToken: string | undefined): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import type * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import type { Jobs, Providers, Storage, Quotas } from "./operationsInterfaces/index.js";
|
|
4
|
+
import type { QuantumJobClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class QuantumJobClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
resourceGroupName: string;
|
|
9
|
+
workspaceName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Initializes a new instance of the QuantumJobClient class.
|
|
12
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
13
|
+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
14
|
+
* 00000000-0000-0000-0000-000000000000)
|
|
15
|
+
* @param resourceGroupName Name of an Azure resource group.
|
|
16
|
+
* @param workspaceName Name of the workspace.
|
|
17
|
+
* @param options The parameter options
|
|
18
|
+
*/
|
|
19
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, resourceGroupName: string, workspaceName: string, options?: QuantumJobClientOptionalParams);
|
|
20
|
+
jobs: Jobs;
|
|
21
|
+
providers: Providers;
|
|
22
|
+
storage: Storage;
|
|
23
|
+
quotas: Quotas;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=quantumJobClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quantumJobClient.d.ts","sourceRoot":"","sources":["../../src/quantumJobClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,qBAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;;OAQG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,8BAA8B;IA6E1C,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|