@azure/arm-quantum 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/CHANGELOG.md +29 -1
- package/LICENSE +1 -1
- package/dist/index.js +702 -526
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/offeringsListSample.js +4 -9
- package/dist-esm/samples-dev/offeringsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +4 -9
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/workspaceListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceListKeysSample.js +39 -0
- package/dist-esm/samples-dev/workspaceListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/workspaceRegenerateKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceRegenerateKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceRegenerateKeysSample.js +40 -0
- package/dist-esm/samples-dev/workspaceRegenerateKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +10 -8
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/workspacesGetSample.js +1 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +4 -9
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +4 -9
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesUpdateTagsSample.js +2 -2
- package/dist-esm/src/azureQuantumManagementClient.d.ts +1 -1
- package/dist-esm/src/azureQuantumManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureQuantumManagementClient.js +10 -10
- package/dist-esm/src/azureQuantumManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +106 -41
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +5 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +454 -345
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +43 -32
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/offerings.js +14 -19
- package/dist-esm/src/operations/offerings.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -17
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/workspace.d.ts +19 -1
- package/dist-esm/src/operations/workspace.d.ts.map +1 -1
- package/dist-esm/src/operations/workspace.js +69 -5
- package/dist-esm/src/operations/workspace.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts +9 -9
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +68 -77
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/workspace.d.ts +19 -1
- package/dist-esm/src/operationsInterfaces/workspace.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +7 -7
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/quantum_operations_test.spec.js +19 -26
- package/dist-esm/test/quantum_operations_test.spec.js.map +1 -1
- package/package.json +16 -21
- package/review/arm-quantum.api.md +55 -6
- package/src/azureQuantumManagementClient.ts +19 -18
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +123 -48
- package/src/models/mappers.ts +476 -367
- package/src/models/parameters.ts +46 -33
- package/src/operations/offerings.ts +20 -21
- package/src/operations/operations.ts +16 -16
- package/src/operations/workspace.ts +94 -10
- package/src/operations/workspaces.ts +110 -117
- package/src/operationsInterfaces/offerings.ts +1 -1
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/workspace.ts +33 -2
- package/src/operationsInterfaces/workspaces.ts +16 -16
- package/src/pagingHelper.ts +1 -1
- package/types/arm-quantum.d.ts +127 -34
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
import {
|
|
10
10
|
CheckNameAvailabilityParameters,
|
|
11
11
|
WorkspaceCheckNameAvailabilityOptionalParams,
|
|
12
|
-
WorkspaceCheckNameAvailabilityResponse
|
|
12
|
+
WorkspaceCheckNameAvailabilityResponse,
|
|
13
|
+
WorkspaceListKeysOptionalParams,
|
|
14
|
+
WorkspaceListKeysResponse,
|
|
15
|
+
APIKeys,
|
|
16
|
+
WorkspaceRegenerateKeysOptionalParams,
|
|
13
17
|
} from "../models";
|
|
14
18
|
|
|
15
19
|
/** Interface representing a Workspace. */
|
|
@@ -23,6 +27,33 @@ export interface Workspace {
|
|
|
23
27
|
checkNameAvailability(
|
|
24
28
|
locationName: string,
|
|
25
29
|
checkNameAvailabilityParameters: CheckNameAvailabilityParameters,
|
|
26
|
-
options?: WorkspaceCheckNameAvailabilityOptionalParams
|
|
30
|
+
options?: WorkspaceCheckNameAvailabilityOptionalParams,
|
|
27
31
|
): Promise<WorkspaceCheckNameAvailabilityResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the
|
|
34
|
+
* Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key
|
|
35
|
+
* regeneration.
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
|
+
* @param workspaceName The name of the quantum workspace resource.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
listKeys(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
workspaceName: string,
|
|
43
|
+
options?: WorkspaceListKeysOptionalParams,
|
|
44
|
+
): Promise<WorkspaceListKeysResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop
|
|
47
|
+
* working immediately.
|
|
48
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
49
|
+
* @param workspaceName The name of the quantum workspace resource.
|
|
50
|
+
* @param keySpecification Which key to regenerate: primary or secondary.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
regenerateKeys(
|
|
54
|
+
resourceGroupName: string,
|
|
55
|
+
workspaceName: string,
|
|
56
|
+
keySpecification: APIKeys,
|
|
57
|
+
options?: WorkspaceRegenerateKeysOptionalParams,
|
|
58
|
+
): Promise<void>;
|
|
28
59
|
}
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
TagsObject,
|
|
20
20
|
WorkspacesUpdateTagsOptionalParams,
|
|
21
21
|
WorkspacesUpdateTagsResponse,
|
|
22
|
-
WorkspacesDeleteOptionalParams
|
|
22
|
+
WorkspacesDeleteOptionalParams,
|
|
23
23
|
} from "../models";
|
|
24
24
|
|
|
25
25
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -30,31 +30,31 @@ export interface Workspaces {
|
|
|
30
30
|
* @param options The options parameters.
|
|
31
31
|
*/
|
|
32
32
|
listBySubscription(
|
|
33
|
-
options?: WorkspacesListBySubscriptionOptionalParams
|
|
33
|
+
options?: WorkspacesListBySubscriptionOptionalParams,
|
|
34
34
|
): PagedAsyncIterableIterator<QuantumWorkspace>;
|
|
35
35
|
/**
|
|
36
36
|
* Gets the list of Workspaces within a resource group.
|
|
37
|
-
* @param resourceGroupName The name of the resource group.
|
|
37
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
38
38
|
* @param options The options parameters.
|
|
39
39
|
*/
|
|
40
40
|
listByResourceGroup(
|
|
41
41
|
resourceGroupName: string,
|
|
42
|
-
options?: WorkspacesListByResourceGroupOptionalParams
|
|
42
|
+
options?: WorkspacesListByResourceGroupOptionalParams,
|
|
43
43
|
): PagedAsyncIterableIterator<QuantumWorkspace>;
|
|
44
44
|
/**
|
|
45
45
|
* Returns the Workspace resource associated with the given name.
|
|
46
|
-
* @param resourceGroupName The name of the resource group.
|
|
46
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
47
47
|
* @param workspaceName The name of the quantum workspace resource.
|
|
48
48
|
* @param options The options parameters.
|
|
49
49
|
*/
|
|
50
50
|
get(
|
|
51
51
|
resourceGroupName: string,
|
|
52
52
|
workspaceName: string,
|
|
53
|
-
options?: WorkspacesGetOptionalParams
|
|
53
|
+
options?: WorkspacesGetOptionalParams,
|
|
54
54
|
): Promise<WorkspacesGetResponse>;
|
|
55
55
|
/**
|
|
56
56
|
* Creates or updates a workspace resource.
|
|
57
|
-
* @param resourceGroupName The name of the resource group.
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
58
|
* @param workspaceName The name of the quantum workspace resource.
|
|
59
59
|
* @param quantumWorkspace Workspace details.
|
|
60
60
|
* @param options The options parameters.
|
|
@@ -63,7 +63,7 @@ export interface Workspaces {
|
|
|
63
63
|
resourceGroupName: string,
|
|
64
64
|
workspaceName: string,
|
|
65
65
|
quantumWorkspace: QuantumWorkspace,
|
|
66
|
-
options?: WorkspacesCreateOrUpdateOptionalParams
|
|
66
|
+
options?: WorkspacesCreateOrUpdateOptionalParams,
|
|
67
67
|
): Promise<
|
|
68
68
|
SimplePollerLike<
|
|
69
69
|
OperationState<WorkspacesCreateOrUpdateResponse>,
|
|
@@ -72,7 +72,7 @@ export interface Workspaces {
|
|
|
72
72
|
>;
|
|
73
73
|
/**
|
|
74
74
|
* Creates or updates a workspace resource.
|
|
75
|
-
* @param resourceGroupName The name of the resource group.
|
|
75
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
76
76
|
* @param workspaceName The name of the quantum workspace resource.
|
|
77
77
|
* @param quantumWorkspace Workspace details.
|
|
78
78
|
* @param options The options parameters.
|
|
@@ -81,11 +81,11 @@ export interface Workspaces {
|
|
|
81
81
|
resourceGroupName: string,
|
|
82
82
|
workspaceName: string,
|
|
83
83
|
quantumWorkspace: QuantumWorkspace,
|
|
84
|
-
options?: WorkspacesCreateOrUpdateOptionalParams
|
|
84
|
+
options?: WorkspacesCreateOrUpdateOptionalParams,
|
|
85
85
|
): Promise<WorkspacesCreateOrUpdateResponse>;
|
|
86
86
|
/**
|
|
87
87
|
* Updates an existing workspace's tags.
|
|
88
|
-
* @param resourceGroupName The name of the resource group.
|
|
88
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
89
89
|
* @param workspaceName The name of the quantum workspace resource.
|
|
90
90
|
* @param workspaceTags Parameters supplied to update tags.
|
|
91
91
|
* @param options The options parameters.
|
|
@@ -94,28 +94,28 @@ export interface Workspaces {
|
|
|
94
94
|
resourceGroupName: string,
|
|
95
95
|
workspaceName: string,
|
|
96
96
|
workspaceTags: TagsObject,
|
|
97
|
-
options?: WorkspacesUpdateTagsOptionalParams
|
|
97
|
+
options?: WorkspacesUpdateTagsOptionalParams,
|
|
98
98
|
): Promise<WorkspacesUpdateTagsResponse>;
|
|
99
99
|
/**
|
|
100
100
|
* Deletes a Workspace resource.
|
|
101
|
-
* @param resourceGroupName The name of the resource group.
|
|
101
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
102
102
|
* @param workspaceName The name of the quantum workspace resource.
|
|
103
103
|
* @param options The options parameters.
|
|
104
104
|
*/
|
|
105
105
|
beginDelete(
|
|
106
106
|
resourceGroupName: string,
|
|
107
107
|
workspaceName: string,
|
|
108
|
-
options?: WorkspacesDeleteOptionalParams
|
|
108
|
+
options?: WorkspacesDeleteOptionalParams,
|
|
109
109
|
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
110
110
|
/**
|
|
111
111
|
* Deletes a Workspace resource.
|
|
112
|
-
* @param resourceGroupName The name of the resource group.
|
|
112
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
113
113
|
* @param workspaceName The name of the quantum workspace resource.
|
|
114
114
|
* @param options The options parameters.
|
|
115
115
|
*/
|
|
116
116
|
beginDeleteAndWait(
|
|
117
117
|
resourceGroupName: string,
|
|
118
118
|
workspaceName: string,
|
|
119
|
-
options?: WorkspacesDeleteOptionalParams
|
|
119
|
+
options?: WorkspacesDeleteOptionalParams,
|
|
120
120
|
): Promise<void>;
|
|
121
121
|
}
|
package/src/pagingHelper.ts
CHANGED
|
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
|
|
|
28
28
|
|
|
29
29
|
export function setContinuationToken(
|
|
30
30
|
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
31
|
+
continuationToken: string | undefined,
|
|
32
32
|
): void {
|
|
33
33
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
34
|
return;
|
package/types/arm-quantum.d.ts
CHANGED
|
@@ -4,6 +4,23 @@ import { OperationState } from '@azure/core-lro';
|
|
|
4
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
5
5
|
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
6
|
|
|
7
|
+
/** Azure quantum workspace Api key details. */
|
|
8
|
+
export declare interface ApiKey {
|
|
9
|
+
/** The creation time of the api key. */
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
/**
|
|
12
|
+
* The Api key.
|
|
13
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
14
|
+
*/
|
|
15
|
+
readonly key?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** List of api keys to be generated. */
|
|
19
|
+
export declare interface APIKeys {
|
|
20
|
+
/** A list of api key names. */
|
|
21
|
+
keys?: KeyType_2[];
|
|
22
|
+
}
|
|
23
|
+
|
|
7
24
|
export declare class AzureQuantumManagementClient extends coreClient.ServiceClient {
|
|
8
25
|
$host: string;
|
|
9
26
|
apiVersion: string;
|
|
@@ -11,7 +28,7 @@ export declare class AzureQuantumManagementClient extends coreClient.ServiceClie
|
|
|
11
28
|
/**
|
|
12
29
|
* Initializes a new instance of the AzureQuantumManagementClient class.
|
|
13
30
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
14
|
-
* @param subscriptionId The
|
|
31
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
15
32
|
* @param options The parameter options
|
|
16
33
|
*/
|
|
17
34
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureQuantumManagementClientOptionalParams);
|
|
@@ -124,6 +141,17 @@ export declare interface ErrorResponse {
|
|
|
124
141
|
*/
|
|
125
142
|
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
126
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Defines values for KeyType. \
|
|
146
|
+
* {@link KnownKeyType} can be used interchangeably with KeyType,
|
|
147
|
+
* this enum contains the known values that the service supports.
|
|
148
|
+
* ### Known values supported by the service
|
|
149
|
+
* **Primary** \
|
|
150
|
+
* **Secondary**
|
|
151
|
+
*/
|
|
152
|
+
declare type KeyType_2 = string;
|
|
153
|
+
export { KeyType_2 as KeyType }
|
|
154
|
+
|
|
127
155
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
128
156
|
export declare enum KnownCreatedByType {
|
|
129
157
|
/** User */
|
|
@@ -136,6 +164,14 @@ export declare enum KnownCreatedByType {
|
|
|
136
164
|
Key = "Key"
|
|
137
165
|
}
|
|
138
166
|
|
|
167
|
+
/** Known values of {@link KeyType} that the service accepts. */
|
|
168
|
+
export declare enum KnownKeyType {
|
|
169
|
+
/** Primary */
|
|
170
|
+
Primary = "Primary",
|
|
171
|
+
/** Secondary */
|
|
172
|
+
Secondary = "Secondary"
|
|
173
|
+
}
|
|
174
|
+
|
|
139
175
|
/** Known values of {@link ProvisioningStatus} that the service accepts. */
|
|
140
176
|
export declare enum KnownProvisioningStatus {
|
|
141
177
|
/** Succeeded */
|
|
@@ -186,6 +222,26 @@ export declare enum KnownUsableStatus {
|
|
|
186
222
|
Partial = "Partial"
|
|
187
223
|
}
|
|
188
224
|
|
|
225
|
+
/** Result of list Api keys and connection strings. */
|
|
226
|
+
export declare interface ListKeysResult {
|
|
227
|
+
/** Indicator of enablement of the Quantum workspace Api keys. */
|
|
228
|
+
apiKeyEnabled?: boolean;
|
|
229
|
+
/** The quantum workspace primary api key. */
|
|
230
|
+
primaryKey?: ApiKey;
|
|
231
|
+
/** The quantum workspace secondary api key. */
|
|
232
|
+
secondaryKey?: ApiKey;
|
|
233
|
+
/**
|
|
234
|
+
* The connection string of the primary api key.
|
|
235
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
236
|
+
*/
|
|
237
|
+
readonly primaryConnectionString?: string;
|
|
238
|
+
/**
|
|
239
|
+
* The connection string of the secondary api key.
|
|
240
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
241
|
+
*/
|
|
242
|
+
readonly secondaryConnectionString?: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
189
245
|
/** Interface representing a Offerings. */
|
|
190
246
|
export declare interface Offerings {
|
|
191
247
|
/**
|
|
@@ -312,7 +368,7 @@ export declare interface ProviderDescription {
|
|
|
312
368
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
313
369
|
*/
|
|
314
370
|
readonly name?: string;
|
|
315
|
-
/**
|
|
371
|
+
/** Provider properties. */
|
|
316
372
|
properties?: ProviderProperties;
|
|
317
373
|
}
|
|
318
374
|
|
|
@@ -396,32 +452,10 @@ export declare type ProvisioningStatus = string;
|
|
|
396
452
|
|
|
397
453
|
/** The resource proxy definition object for quantum workspace. */
|
|
398
454
|
export declare interface QuantumWorkspace extends TrackedResource {
|
|
455
|
+
/** Gets or sets the properties. Define quantum workspace's specific properties. */
|
|
456
|
+
properties?: WorkspaceResourceProperties;
|
|
399
457
|
/** Managed Identity information. */
|
|
400
458
|
identity?: QuantumWorkspaceIdentity;
|
|
401
|
-
/**
|
|
402
|
-
* System metadata
|
|
403
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
404
|
-
*/
|
|
405
|
-
readonly systemData?: SystemData;
|
|
406
|
-
/** List of Providers selected for this Workspace */
|
|
407
|
-
providers?: Provider[];
|
|
408
|
-
/**
|
|
409
|
-
* Whether the current workspace is ready to accept Jobs.
|
|
410
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
411
|
-
*/
|
|
412
|
-
readonly usable?: UsableStatus;
|
|
413
|
-
/**
|
|
414
|
-
* Provisioning status field
|
|
415
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
416
|
-
*/
|
|
417
|
-
readonly provisioningState?: ProvisioningStatus;
|
|
418
|
-
/** ARM Resource Id of the storage account associated with this workspace. */
|
|
419
|
-
storageAccount?: string;
|
|
420
|
-
/**
|
|
421
|
-
* The URI of the workspace endpoint.
|
|
422
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
423
|
-
*/
|
|
424
|
-
readonly endpointUri?: string;
|
|
425
459
|
}
|
|
426
460
|
|
|
427
461
|
/** Managed Identity information. */
|
|
@@ -463,7 +497,7 @@ export declare interface QuotaDimension {
|
|
|
463
497
|
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
464
498
|
export declare interface Resource {
|
|
465
499
|
/**
|
|
466
|
-
* Fully qualified resource ID for the resource.
|
|
500
|
+
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
|
467
501
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
468
502
|
*/
|
|
469
503
|
readonly id?: string;
|
|
@@ -477,6 +511,11 @@ export declare interface Resource {
|
|
|
477
511
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
478
512
|
*/
|
|
479
513
|
readonly type?: string;
|
|
514
|
+
/**
|
|
515
|
+
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
|
516
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
517
|
+
*/
|
|
518
|
+
readonly systemData?: SystemData;
|
|
480
519
|
}
|
|
481
520
|
|
|
482
521
|
/**
|
|
@@ -593,6 +632,24 @@ export declare interface Workspace {
|
|
|
593
632
|
* @param options The options parameters.
|
|
594
633
|
*/
|
|
595
634
|
checkNameAvailability(locationName: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: WorkspaceCheckNameAvailabilityOptionalParams): Promise<WorkspaceCheckNameAvailabilityResponse>;
|
|
635
|
+
/**
|
|
636
|
+
* Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the
|
|
637
|
+
* Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key
|
|
638
|
+
* regeneration.
|
|
639
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
640
|
+
* @param workspaceName The name of the quantum workspace resource.
|
|
641
|
+
* @param options The options parameters.
|
|
642
|
+
*/
|
|
643
|
+
listKeys(resourceGroupName: string, workspaceName: string, options?: WorkspaceListKeysOptionalParams): Promise<WorkspaceListKeysResponse>;
|
|
644
|
+
/**
|
|
645
|
+
* Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop
|
|
646
|
+
* working immediately.
|
|
647
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
648
|
+
* @param workspaceName The name of the quantum workspace resource.
|
|
649
|
+
* @param keySpecification Which key to regenerate: primary or secondary.
|
|
650
|
+
* @param options The options parameters.
|
|
651
|
+
*/
|
|
652
|
+
regenerateKeys(resourceGroupName: string, workspaceName: string, keySpecification: APIKeys, options?: WorkspaceRegenerateKeysOptionalParams): Promise<void>;
|
|
596
653
|
}
|
|
597
654
|
|
|
598
655
|
/** Optional parameters. */
|
|
@@ -602,6 +659,13 @@ export declare interface WorkspaceCheckNameAvailabilityOptionalParams extends co
|
|
|
602
659
|
/** Contains response data for the checkNameAvailability operation. */
|
|
603
660
|
export declare type WorkspaceCheckNameAvailabilityResponse = CheckNameAvailabilityResult;
|
|
604
661
|
|
|
662
|
+
/** Optional parameters. */
|
|
663
|
+
export declare interface WorkspaceListKeysOptionalParams extends coreClient.OperationOptions {
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/** Contains response data for the listKeys operation. */
|
|
667
|
+
export declare type WorkspaceListKeysResponse = ListKeysResult;
|
|
668
|
+
|
|
605
669
|
/** The response of a list Workspaces operation. */
|
|
606
670
|
export declare interface WorkspaceListResult {
|
|
607
671
|
/** Result of a list Workspaces operation. */
|
|
@@ -610,6 +674,35 @@ export declare interface WorkspaceListResult {
|
|
|
610
674
|
nextLink?: string;
|
|
611
675
|
}
|
|
612
676
|
|
|
677
|
+
/** Optional parameters. */
|
|
678
|
+
export declare interface WorkspaceRegenerateKeysOptionalParams extends coreClient.OperationOptions {
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/** Properties of a Workspace */
|
|
682
|
+
export declare interface WorkspaceResourceProperties {
|
|
683
|
+
/** List of Providers selected for this Workspace */
|
|
684
|
+
providers?: Provider[];
|
|
685
|
+
/**
|
|
686
|
+
* Whether the current workspace is ready to accept Jobs.
|
|
687
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
688
|
+
*/
|
|
689
|
+
readonly usable?: UsableStatus;
|
|
690
|
+
/**
|
|
691
|
+
* Provisioning status field
|
|
692
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
693
|
+
*/
|
|
694
|
+
readonly provisioningState?: ProvisioningStatus;
|
|
695
|
+
/** ARM Resource Id of the storage account associated with this workspace. */
|
|
696
|
+
storageAccount?: string;
|
|
697
|
+
/**
|
|
698
|
+
* The URI of the workspace endpoint.
|
|
699
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
700
|
+
*/
|
|
701
|
+
readonly endpointUri?: string;
|
|
702
|
+
/** Indicator of enablement of the Quantum workspace Api keys. */
|
|
703
|
+
apiKeyEnabled?: boolean;
|
|
704
|
+
}
|
|
705
|
+
|
|
613
706
|
/** Interface representing a Workspaces. */
|
|
614
707
|
export declare interface Workspaces {
|
|
615
708
|
/**
|
|
@@ -619,20 +712,20 @@ export declare interface Workspaces {
|
|
|
619
712
|
listBySubscription(options?: WorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<QuantumWorkspace>;
|
|
620
713
|
/**
|
|
621
714
|
* Gets the list of Workspaces within a resource group.
|
|
622
|
-
* @param resourceGroupName The name of the resource group.
|
|
715
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
623
716
|
* @param options The options parameters.
|
|
624
717
|
*/
|
|
625
718
|
listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<QuantumWorkspace>;
|
|
626
719
|
/**
|
|
627
720
|
* Returns the Workspace resource associated with the given name.
|
|
628
|
-
* @param resourceGroupName The name of the resource group.
|
|
721
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
629
722
|
* @param workspaceName The name of the quantum workspace resource.
|
|
630
723
|
* @param options The options parameters.
|
|
631
724
|
*/
|
|
632
725
|
get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise<WorkspacesGetResponse>;
|
|
633
726
|
/**
|
|
634
727
|
* Creates or updates a workspace resource.
|
|
635
|
-
* @param resourceGroupName The name of the resource group.
|
|
728
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
636
729
|
* @param workspaceName The name of the quantum workspace resource.
|
|
637
730
|
* @param quantumWorkspace Workspace details.
|
|
638
731
|
* @param options The options parameters.
|
|
@@ -640,7 +733,7 @@ export declare interface Workspaces {
|
|
|
640
733
|
beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WorkspacesCreateOrUpdateResponse>, WorkspacesCreateOrUpdateResponse>>;
|
|
641
734
|
/**
|
|
642
735
|
* Creates or updates a workspace resource.
|
|
643
|
-
* @param resourceGroupName The name of the resource group.
|
|
736
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
644
737
|
* @param workspaceName The name of the quantum workspace resource.
|
|
645
738
|
* @param quantumWorkspace Workspace details.
|
|
646
739
|
* @param options The options parameters.
|
|
@@ -648,7 +741,7 @@ export declare interface Workspaces {
|
|
|
648
741
|
beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<WorkspacesCreateOrUpdateResponse>;
|
|
649
742
|
/**
|
|
650
743
|
* Updates an existing workspace's tags.
|
|
651
|
-
* @param resourceGroupName The name of the resource group.
|
|
744
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
652
745
|
* @param workspaceName The name of the quantum workspace resource.
|
|
653
746
|
* @param workspaceTags Parameters supplied to update tags.
|
|
654
747
|
* @param options The options parameters.
|
|
@@ -656,14 +749,14 @@ export declare interface Workspaces {
|
|
|
656
749
|
updateTags(resourceGroupName: string, workspaceName: string, workspaceTags: TagsObject, options?: WorkspacesUpdateTagsOptionalParams): Promise<WorkspacesUpdateTagsResponse>;
|
|
657
750
|
/**
|
|
658
751
|
* Deletes a Workspace resource.
|
|
659
|
-
* @param resourceGroupName The name of the resource group.
|
|
752
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
660
753
|
* @param workspaceName The name of the quantum workspace resource.
|
|
661
754
|
* @param options The options parameters.
|
|
662
755
|
*/
|
|
663
756
|
beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
664
757
|
/**
|
|
665
758
|
* Deletes a Workspace resource.
|
|
666
|
-
* @param resourceGroupName The name of the resource group.
|
|
759
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
667
760
|
* @param workspaceName The name of the quantum workspace resource.
|
|
668
761
|
* @param options The options parameters.
|
|
669
762
|
*/
|
package/rollup.config.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
-
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
-
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
-
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
-
import json from "@rollup/plugin-json";
|
|
14
|
-
|
|
15
|
-
import nodeBuiltins from "builtin-modules";
|
|
16
|
-
|
|
17
|
-
// #region Warning Handler
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A function that can determine whether a rollup warning should be ignored. If
|
|
21
|
-
* the function returns `true`, then the warning will not be displayed.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
function ignoreNiseSinonEval(warning) {
|
|
25
|
-
return (
|
|
26
|
-
warning.code === "EVAL" &&
|
|
27
|
-
warning.id &&
|
|
28
|
-
(warning.id.includes("node_modules/nise") ||
|
|
29
|
-
warning.id.includes("node_modules/sinon")) === true
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function ignoreChaiCircularDependency(warning) {
|
|
34
|
-
return (
|
|
35
|
-
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
36
|
-
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Construct a warning handler for the shared rollup configuration
|
|
44
|
-
* that ignores certain warnings that are not relevant to testing.
|
|
45
|
-
*/
|
|
46
|
-
function makeOnWarnForTesting() {
|
|
47
|
-
return (warning, warn) => {
|
|
48
|
-
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
49
|
-
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
50
|
-
warn(warning);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// #endregion
|
|
56
|
-
|
|
57
|
-
function makeBrowserTestConfig() {
|
|
58
|
-
const config = {
|
|
59
|
-
input: {
|
|
60
|
-
include: ["dist-esm/test/**/*.spec.js"],
|
|
61
|
-
exclude: ["dist-esm/test/**/node/**"]
|
|
62
|
-
},
|
|
63
|
-
output: {
|
|
64
|
-
file: `dist-test/index.browser.js`,
|
|
65
|
-
format: "umd",
|
|
66
|
-
sourcemap: true
|
|
67
|
-
},
|
|
68
|
-
preserveSymlinks: false,
|
|
69
|
-
plugins: [
|
|
70
|
-
multiEntry({ exports: false }),
|
|
71
|
-
nodeResolve({
|
|
72
|
-
mainFields: ["module", "browser"]
|
|
73
|
-
}),
|
|
74
|
-
cjs(),
|
|
75
|
-
json(),
|
|
76
|
-
sourcemaps()
|
|
77
|
-
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
78
|
-
],
|
|
79
|
-
onwarn: makeOnWarnForTesting(),
|
|
80
|
-
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
81
|
-
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
82
|
-
// our package.json sets "sideEffects=false", this also applies to test
|
|
83
|
-
// code, which causes all tests to be removed by tree-shaking.
|
|
84
|
-
treeshake: false
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
return config;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const defaultConfigurationOptions = {
|
|
91
|
-
disableBrowserBundle: false
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export function makeConfig(pkg, options) {
|
|
95
|
-
options = {
|
|
96
|
-
...defaultConfigurationOptions,
|
|
97
|
-
...(options || {})
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const baseConfig = {
|
|
101
|
-
// Use the package's module field if it has one
|
|
102
|
-
input: pkg["module"] || "dist-esm/src/index.js",
|
|
103
|
-
external: [
|
|
104
|
-
...nodeBuiltins,
|
|
105
|
-
...Object.keys(pkg.dependencies),
|
|
106
|
-
...Object.keys(pkg.devDependencies)
|
|
107
|
-
],
|
|
108
|
-
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
109
|
-
preserveSymlinks: false,
|
|
110
|
-
plugins: [sourcemaps(), nodeResolve()]
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const config = [baseConfig];
|
|
114
|
-
|
|
115
|
-
if (!options.disableBrowserBundle) {
|
|
116
|
-
config.push(makeBrowserTestConfig());
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return config;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export default makeConfig(require("./package.json"));
|