@azure/arm-quantum 1.0.0-alpha.20240312.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +26 -8
  2. package/LICENSE +1 -1
  3. package/dist/index.js +668 -471
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/offeringsListSample.js +1 -1
  8. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  9. package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.js +3 -3
  10. package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.js.map +1 -1
  11. package/dist-esm/samples-dev/workspaceListKeysSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/workspaceListKeysSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/workspaceListKeysSample.js +39 -0
  14. package/dist-esm/samples-dev/workspaceListKeysSample.js.map +1 -0
  15. package/dist-esm/samples-dev/workspaceRegenerateKeysSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/workspaceRegenerateKeysSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/workspaceRegenerateKeysSample.js +40 -0
  18. package/dist-esm/samples-dev/workspaceRegenerateKeysSample.js.map +1 -0
  19. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +10 -8
  20. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
  21. package/dist-esm/samples-dev/workspacesDeleteSample.js +1 -1
  22. package/dist-esm/samples-dev/workspacesGetSample.js +1 -1
  23. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +1 -1
  24. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +1 -1
  25. package/dist-esm/samples-dev/workspacesUpdateTagsSample.js +2 -2
  26. package/dist-esm/src/azureQuantumManagementClient.d.ts +1 -1
  27. package/dist-esm/src/azureQuantumManagementClient.d.ts.map +1 -1
  28. package/dist-esm/src/azureQuantumManagementClient.js +9 -9
  29. package/dist-esm/src/azureQuantumManagementClient.js.map +1 -1
  30. package/dist-esm/src/lroImpl.js +1 -1
  31. package/dist-esm/src/models/index.d.ts +106 -41
  32. package/dist-esm/src/models/index.d.ts.map +1 -1
  33. package/dist-esm/src/models/index.js +8 -0
  34. package/dist-esm/src/models/index.js.map +1 -1
  35. package/dist-esm/src/models/mappers.d.ts +5 -1
  36. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  37. package/dist-esm/src/models/mappers.js +454 -345
  38. package/dist-esm/src/models/mappers.js.map +1 -1
  39. package/dist-esm/src/models/parameters.d.ts +1 -0
  40. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  41. package/dist-esm/src/models/parameters.js +43 -32
  42. package/dist-esm/src/models/parameters.js.map +1 -1
  43. package/dist-esm/src/operations/offerings.js +11 -11
  44. package/dist-esm/src/operations/offerings.js.map +1 -1
  45. package/dist-esm/src/operations/operations.js +9 -9
  46. package/dist-esm/src/operations/workspace.d.ts +19 -1
  47. package/dist-esm/src/operations/workspace.d.ts.map +1 -1
  48. package/dist-esm/src/operations/workspace.js +69 -5
  49. package/dist-esm/src/operations/workspace.js.map +1 -1
  50. package/dist-esm/src/operations/workspaces.d.ts +9 -9
  51. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  52. package/dist-esm/src/operations/workspaces.js +62 -61
  53. package/dist-esm/src/operations/workspaces.js.map +1 -1
  54. package/dist-esm/src/operationsInterfaces/workspace.d.ts +19 -1
  55. package/dist-esm/src/operationsInterfaces/workspace.d.ts.map +1 -1
  56. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +7 -7
  57. package/dist-esm/test/quantum_operations_test.spec.js +12 -9
  58. package/dist-esm/test/quantum_operations_test.spec.js.map +1 -1
  59. package/package.json +10 -10
  60. package/review/arm-quantum.api.md +55 -6
  61. package/src/azureQuantumManagementClient.ts +18 -17
  62. package/src/lroImpl.ts +3 -3
  63. package/src/models/index.ts +123 -48
  64. package/src/models/mappers.ts +476 -367
  65. package/src/models/parameters.ts +46 -33
  66. package/src/operations/offerings.ts +20 -21
  67. package/src/operations/operations.ts +16 -16
  68. package/src/operations/workspace.ts +94 -10
  69. package/src/operations/workspaces.ts +110 -117
  70. package/src/operationsInterfaces/offerings.ts +1 -1
  71. package/src/operationsInterfaces/operations.ts +1 -1
  72. package/src/operationsInterfaces/workspace.ts +33 -2
  73. package/src/operationsInterfaces/workspaces.ts +16 -16
  74. package/src/pagingHelper.ts +1 -1
  75. package/types/arm-quantum.d.ts +127 -34
  76. package/types/tsdoc-metadata.json +1 -1
@@ -10,6 +10,17 @@ import { OperationState } from '@azure/core-lro';
10
10
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
11
11
  import { SimplePollerLike } from '@azure/core-lro';
12
12
 
13
+ // @public
14
+ export interface ApiKey {
15
+ createdAt?: Date;
16
+ readonly key?: string;
17
+ }
18
+
19
+ // @public
20
+ export interface APIKeys {
21
+ keys?: KeyType_2[];
22
+ }
23
+
13
24
  // @public (undocumented)
14
25
  export class AzureQuantumManagementClient extends coreClient.ServiceClient {
15
26
  // (undocumented)
@@ -75,6 +86,10 @@ export interface ErrorResponse {
75
86
  // @public
76
87
  export function getContinuationToken(page: unknown): string | undefined;
77
88
 
89
+ // @public
90
+ type KeyType_2 = string;
91
+ export { KeyType_2 as KeyType }
92
+
78
93
  // @public
79
94
  export enum KnownCreatedByType {
80
95
  Application = "Application",
@@ -83,6 +98,12 @@ export enum KnownCreatedByType {
83
98
  User = "User"
84
99
  }
85
100
 
101
+ // @public
102
+ export enum KnownKeyType {
103
+ Primary = "Primary",
104
+ Secondary = "Secondary"
105
+ }
106
+
86
107
  // @public
87
108
  export enum KnownProvisioningStatus {
88
109
  Failed = "Failed",
@@ -116,6 +137,15 @@ export enum KnownUsableStatus {
116
137
  Yes = "Yes"
117
138
  }
118
139
 
140
+ // @public
141
+ export interface ListKeysResult {
142
+ apiKeyEnabled?: boolean;
143
+ readonly primaryConnectionString?: string;
144
+ primaryKey?: ApiKey;
145
+ readonly secondaryConnectionString?: string;
146
+ secondaryKey?: ApiKey;
147
+ }
148
+
119
149
  // @public
120
150
  export interface Offerings {
121
151
  list(locationName: string, options?: OfferingsListOptionalParams): PagedAsyncIterableIterator<ProviderDescription>;
@@ -241,13 +271,8 @@ export type ProvisioningStatus = string;
241
271
 
242
272
  // @public
243
273
  export interface QuantumWorkspace extends TrackedResource {
244
- readonly endpointUri?: string;
245
274
  identity?: QuantumWorkspaceIdentity;
246
- providers?: Provider[];
247
- readonly provisioningState?: ProvisioningStatus;
248
- storageAccount?: string;
249
- readonly systemData?: SystemData;
250
- readonly usable?: UsableStatus;
275
+ properties?: WorkspaceResourceProperties;
251
276
  }
252
277
 
253
278
  // @public
@@ -273,6 +298,7 @@ export interface QuotaDimension {
273
298
  export interface Resource {
274
299
  readonly id?: string;
275
300
  readonly name?: string;
301
+ readonly systemData?: SystemData;
276
302
  readonly type?: string;
277
303
  }
278
304
 
@@ -335,6 +361,8 @@ export type UsableStatus = string;
335
361
  // @public
336
362
  export interface Workspace {
337
363
  checkNameAvailability(locationName: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: WorkspaceCheckNameAvailabilityOptionalParams): Promise<WorkspaceCheckNameAvailabilityResponse>;
364
+ listKeys(resourceGroupName: string, workspaceName: string, options?: WorkspaceListKeysOptionalParams): Promise<WorkspaceListKeysResponse>;
365
+ regenerateKeys(resourceGroupName: string, workspaceName: string, keySpecification: APIKeys, options?: WorkspaceRegenerateKeysOptionalParams): Promise<void>;
338
366
  }
339
367
 
340
368
  // @public
@@ -344,12 +372,33 @@ export interface WorkspaceCheckNameAvailabilityOptionalParams extends coreClient
344
372
  // @public
345
373
  export type WorkspaceCheckNameAvailabilityResponse = CheckNameAvailabilityResult;
346
374
 
375
+ // @public
376
+ export interface WorkspaceListKeysOptionalParams extends coreClient.OperationOptions {
377
+ }
378
+
379
+ // @public
380
+ export type WorkspaceListKeysResponse = ListKeysResult;
381
+
347
382
  // @public
348
383
  export interface WorkspaceListResult {
349
384
  nextLink?: string;
350
385
  value?: QuantumWorkspace[];
351
386
  }
352
387
 
388
+ // @public
389
+ export interface WorkspaceRegenerateKeysOptionalParams extends coreClient.OperationOptions {
390
+ }
391
+
392
+ // @public
393
+ export interface WorkspaceResourceProperties {
394
+ apiKeyEnabled?: boolean;
395
+ readonly endpointUri?: string;
396
+ providers?: Provider[];
397
+ readonly provisioningState?: ProvisioningStatus;
398
+ storageAccount?: string;
399
+ readonly usable?: UsableStatus;
400
+ }
401
+
353
402
  // @public
354
403
  export interface Workspaces {
355
404
  beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WorkspacesCreateOrUpdateResponse>, WorkspacesCreateOrUpdateResponse>>;
@@ -11,20 +11,20 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
11
  import {
12
12
  PipelineRequest,
13
13
  PipelineResponse,
14
- SendRequest
14
+ SendRequest,
15
15
  } from "@azure/core-rest-pipeline";
16
16
  import * as coreAuth from "@azure/core-auth";
17
17
  import {
18
18
  WorkspacesImpl,
19
19
  OfferingsImpl,
20
20
  OperationsImpl,
21
- WorkspaceImpl
21
+ WorkspaceImpl,
22
22
  } from "./operations";
23
23
  import {
24
24
  Workspaces,
25
25
  Offerings,
26
26
  Operations,
27
- Workspace
27
+ Workspace,
28
28
  } from "./operationsInterfaces";
29
29
  import { AzureQuantumManagementClientOptionalParams } from "./models";
30
30
 
@@ -36,13 +36,13 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient {
36
36
  /**
37
37
  * Initializes a new instance of the AzureQuantumManagementClient class.
38
38
  * @param credentials Subscription credentials which uniquely identify client subscription.
39
- * @param subscriptionId The Azure subscription ID.
39
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
40
40
  * @param options The parameter options
41
41
  */
42
42
  constructor(
43
43
  credentials: coreAuth.TokenCredential,
44
44
  subscriptionId: string,
45
- options?: AzureQuantumManagementClientOptionalParams
45
+ options?: AzureQuantumManagementClientOptionalParams,
46
46
  ) {
47
47
  if (credentials === undefined) {
48
48
  throw new Error("'credentials' cannot be null");
@@ -57,7 +57,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient {
57
57
  }
58
58
  const defaults: AzureQuantumManagementClientOptionalParams = {
59
59
  requestContentType: "application/json; charset=utf-8",
60
- credential: credentials
60
+ credential: credentials,
61
61
  };
62
62
 
63
63
  const packageDetails = `azsdk-js-arm-quantum/1.0.0-beta.2`;
@@ -70,20 +70,21 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient {
70
70
  ...defaults,
71
71
  ...options,
72
72
  userAgentOptions: {
73
- userAgentPrefix
73
+ userAgentPrefix,
74
74
  },
75
75
  endpoint:
76
- options.endpoint ?? options.baseUri ?? "https://management.azure.com"
76
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com",
77
77
  };
78
78
  super(optionsWithDefaults);
79
79
 
80
80
  let bearerTokenAuthenticationPolicyFound: boolean = false;
81
81
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
82
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
82
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
83
+ options.pipeline.getOrderedPolicies();
83
84
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
84
85
  (pipelinePolicy) =>
85
86
  pipelinePolicy.name ===
86
- coreRestPipeline.bearerTokenAuthenticationPolicyName
87
+ coreRestPipeline.bearerTokenAuthenticationPolicyName,
87
88
  );
88
89
  }
89
90
  if (
@@ -93,7 +94,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient {
93
94
  !bearerTokenAuthenticationPolicyFound
94
95
  ) {
95
96
  this.pipeline.removePolicy({
96
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
97
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
97
98
  });
98
99
  this.pipeline.addPolicy(
99
100
  coreRestPipeline.bearerTokenAuthenticationPolicy({
@@ -103,9 +104,9 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient {
103
104
  `${optionsWithDefaults.endpoint}/.default`,
104
105
  challengeCallbacks: {
105
106
  authorizeRequestOnChallenge:
106
- coreClient.authorizeRequestOnClaimChallenge
107
- }
108
- })
107
+ coreClient.authorizeRequestOnClaimChallenge,
108
+ },
109
+ }),
109
110
  );
110
111
  }
111
112
  // Parameter assignments
@@ -113,7 +114,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient {
113
114
 
114
115
  // Assigning values to Constant parameters
115
116
  this.$host = options.$host || "https://management.azure.com";
116
- this.apiVersion = options.apiVersion || "2022-01-10-preview";
117
+ this.apiVersion = options.apiVersion || "2023-11-13-preview";
117
118
  this.workspaces = new WorkspacesImpl(this);
118
119
  this.offerings = new OfferingsImpl(this);
119
120
  this.operations = new OperationsImpl(this);
@@ -130,7 +131,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient {
130
131
  name: "CustomApiVersionPolicy",
131
132
  async sendRequest(
132
133
  request: PipelineRequest,
133
- next: SendRequest
134
+ next: SendRequest,
134
135
  ): Promise<PipelineResponse> {
135
136
  const param = request.url.split("?");
136
137
  if (param.length > 1) {
@@ -144,7 +145,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient {
144
145
  request.url = param[0] + "?" + newParams.join("&");
145
146
  }
146
147
  return next(request);
147
- }
148
+ },
148
149
  };
149
150
  this.pipeline.addPolicy(apiVersionPolicy);
150
151
  }
package/src/lroImpl.ts CHANGED
@@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
28
28
  sendInitialRequest: () => sendOperationFn(args, spec),
29
29
  sendPollRequest: (
30
30
  path: string,
31
- options?: { abortSignal?: AbortSignalLike }
31
+ options?: { abortSignal?: AbortSignalLike },
32
32
  ) => {
33
33
  const { requestBody, ...restSpec } = spec;
34
34
  return sendOperationFn(args, {
35
35
  ...restSpec,
36
36
  httpMethod: "GET",
37
37
  path,
38
- abortSignal: options?.abortSignal
38
+ abortSignal: options?.abortSignal,
39
39
  });
40
- }
40
+ },
41
41
  };
42
42
  }
@@ -8,6 +8,31 @@
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
10
 
11
+ /** Properties of a Workspace */
12
+ export interface WorkspaceResourceProperties {
13
+ /** List of Providers selected for this Workspace */
14
+ providers?: Provider[];
15
+ /**
16
+ * Whether the current workspace is ready to accept Jobs.
17
+ * NOTE: This property will not be serialized. It can only be populated by the server.
18
+ */
19
+ readonly usable?: UsableStatus;
20
+ /**
21
+ * Provisioning status field
22
+ * NOTE: This property will not be serialized. It can only be populated by the server.
23
+ */
24
+ readonly provisioningState?: ProvisioningStatus;
25
+ /** ARM Resource Id of the storage account associated with this workspace. */
26
+ storageAccount?: string;
27
+ /**
28
+ * The URI of the workspace endpoint.
29
+ * NOTE: This property will not be serialized. It can only be populated by the server.
30
+ */
31
+ readonly endpointUri?: string;
32
+ /** Indicator of enablement of the Quantum workspace Api keys. */
33
+ apiKeyEnabled?: boolean;
34
+ }
35
+
11
36
  /** Information about a Provider. A Provider is an entity that offers Targets to run Azure Quantum Jobs. */
12
37
  export interface Provider {
13
38
  /** Unique id of this provider. */
@@ -40,26 +65,10 @@ export interface QuantumWorkspaceIdentity {
40
65
  type?: ResourceIdentityType;
41
66
  }
42
67
 
43
- /** Metadata pertaining to creation and last modification of the resource. */
44
- export interface SystemData {
45
- /** The identity that created the resource. */
46
- createdBy?: string;
47
- /** The type of identity that created the resource. */
48
- createdByType?: CreatedByType;
49
- /** The timestamp of resource creation (UTC). */
50
- createdAt?: Date;
51
- /** The identity that last modified the resource. */
52
- lastModifiedBy?: string;
53
- /** The type of identity that last modified the resource. */
54
- lastModifiedByType?: CreatedByType;
55
- /** The timestamp of resource last modification (UTC) */
56
- lastModifiedAt?: Date;
57
- }
58
-
59
68
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
60
69
  export interface Resource {
61
70
  /**
62
- * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
71
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
63
72
  * NOTE: This property will not be serialized. It can only be populated by the server.
64
73
  */
65
74
  readonly id?: string;
@@ -73,6 +82,27 @@ export interface Resource {
73
82
  * NOTE: This property will not be serialized. It can only be populated by the server.
74
83
  */
75
84
  readonly type?: string;
85
+ /**
86
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
87
+ * NOTE: This property will not be serialized. It can only be populated by the server.
88
+ */
89
+ readonly systemData?: SystemData;
90
+ }
91
+
92
+ /** Metadata pertaining to creation and last modification of the resource. */
93
+ export interface SystemData {
94
+ /** The identity that created the resource. */
95
+ createdBy?: string;
96
+ /** The type of identity that created the resource. */
97
+ createdByType?: CreatedByType;
98
+ /** The timestamp of resource creation (UTC). */
99
+ createdAt?: Date;
100
+ /** The identity that last modified the resource. */
101
+ lastModifiedBy?: string;
102
+ /** The type of identity that last modified the resource. */
103
+ lastModifiedByType?: CreatedByType;
104
+ /** The timestamp of resource last modification (UTC) */
105
+ lastModifiedAt?: Date;
76
106
  }
77
107
 
78
108
  /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
@@ -155,7 +185,7 @@ export interface ProviderDescription {
155
185
  * NOTE: This property will not be serialized. It can only be populated by the server.
156
186
  */
157
187
  readonly name?: string;
158
- /** A list of provider-specific properties. */
188
+ /** Provider properties. */
159
189
  properties?: ProviderProperties;
160
190
  }
161
191
 
@@ -346,6 +376,43 @@ export interface CheckNameAvailabilityResult {
346
376
  readonly message?: string;
347
377
  }
348
378
 
379
+ /** Result of list Api keys and connection strings. */
380
+ export interface ListKeysResult {
381
+ /** Indicator of enablement of the Quantum workspace Api keys. */
382
+ apiKeyEnabled?: boolean;
383
+ /** The quantum workspace primary api key. */
384
+ primaryKey?: ApiKey;
385
+ /** The quantum workspace secondary api key. */
386
+ secondaryKey?: ApiKey;
387
+ /**
388
+ * The connection string of the primary api key.
389
+ * NOTE: This property will not be serialized. It can only be populated by the server.
390
+ */
391
+ readonly primaryConnectionString?: string;
392
+ /**
393
+ * The connection string of the secondary api key.
394
+ * NOTE: This property will not be serialized. It can only be populated by the server.
395
+ */
396
+ readonly secondaryConnectionString?: string;
397
+ }
398
+
399
+ /** Azure quantum workspace Api key details. */
400
+ export interface ApiKey {
401
+ /** The creation time of the api key. */
402
+ createdAt?: Date;
403
+ /**
404
+ * The Api key.
405
+ * NOTE: This property will not be serialized. It can only be populated by the server.
406
+ */
407
+ readonly key?: string;
408
+ }
409
+
410
+ /** List of api keys to be generated. */
411
+ export interface APIKeys {
412
+ /** A list of api key names. */
413
+ keys?: KeyType[];
414
+ }
415
+
349
416
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
350
417
  export interface TrackedResource extends Resource {
351
418
  /** Resource tags. */
@@ -356,32 +423,10 @@ export interface TrackedResource extends Resource {
356
423
 
357
424
  /** The resource proxy definition object for quantum workspace. */
358
425
  export interface QuantumWorkspace extends TrackedResource {
426
+ /** Gets or sets the properties. Define quantum workspace's specific properties. */
427
+ properties?: WorkspaceResourceProperties;
359
428
  /** Managed Identity information. */
360
429
  identity?: QuantumWorkspaceIdentity;
361
- /**
362
- * System metadata
363
- * NOTE: This property will not be serialized. It can only be populated by the server.
364
- */
365
- readonly systemData?: SystemData;
366
- /** List of Providers selected for this Workspace */
367
- providers?: Provider[];
368
- /**
369
- * Whether the current workspace is ready to accept Jobs.
370
- * NOTE: This property will not be serialized. It can only be populated by the server.
371
- */
372
- readonly usable?: UsableStatus;
373
- /**
374
- * Provisioning status field
375
- * NOTE: This property will not be serialized. It can only be populated by the server.
376
- */
377
- readonly provisioningState?: ProvisioningStatus;
378
- /** ARM Resource Id of the storage account associated with this workspace. */
379
- storageAccount?: string;
380
- /**
381
- * The URI of the workspace endpoint.
382
- * NOTE: This property will not be serialized. It can only be populated by the server.
383
- */
384
- readonly endpointUri?: string;
385
430
  }
386
431
 
387
432
  /** Known values of {@link Status} that the service accepts. */
@@ -397,7 +442,7 @@ export enum KnownStatus {
397
442
  /** Deleted */
398
443
  Deleted = "Deleted",
399
444
  /** Failed */
400
- Failed = "Failed"
445
+ Failed = "Failed",
401
446
  }
402
447
 
403
448
  /**
@@ -421,7 +466,7 @@ export enum KnownUsableStatus {
421
466
  /** No */
422
467
  No = "No",
423
468
  /** Partial */
424
- Partial = "Partial"
469
+ Partial = "Partial",
425
470
  }
426
471
 
427
472
  /**
@@ -448,7 +493,7 @@ export enum KnownProvisioningStatus {
448
493
  /** ProviderProvisioning */
449
494
  ProviderProvisioning = "ProviderProvisioning",
450
495
  /** Failed */
451
- Failed = "Failed"
496
+ Failed = "Failed",
452
497
  }
453
498
 
454
499
  /**
@@ -470,7 +515,7 @@ export enum KnownResourceIdentityType {
470
515
  /** SystemAssigned */
471
516
  SystemAssigned = "SystemAssigned",
472
517
  /** None */
473
- None = "None"
518
+ None = "None",
474
519
  }
475
520
 
476
521
  /**
@@ -492,7 +537,7 @@ export enum KnownCreatedByType {
492
537
  /** ManagedIdentity */
493
538
  ManagedIdentity = "ManagedIdentity",
494
539
  /** Key */
495
- Key = "Key"
540
+ Key = "Key",
496
541
  }
497
542
 
498
543
  /**
@@ -507,6 +552,24 @@ export enum KnownCreatedByType {
507
552
  */
508
553
  export type CreatedByType = string;
509
554
 
555
+ /** Known values of {@link KeyType} that the service accepts. */
556
+ export enum KnownKeyType {
557
+ /** Primary */
558
+ Primary = "Primary",
559
+ /** Secondary */
560
+ Secondary = "Secondary",
561
+ }
562
+
563
+ /**
564
+ * Defines values for KeyType. \
565
+ * {@link KnownKeyType} can be used interchangeably with KeyType,
566
+ * this enum contains the known values that the service supports.
567
+ * ### Known values supported by the service
568
+ * **Primary** \
569
+ * **Secondary**
570
+ */
571
+ export type KeyType = string;
572
+
510
573
  /** Optional parameters. */
511
574
  export interface WorkspacesGetOptionalParams
512
575
  extends coreClient.OperationOptions {}
@@ -603,7 +666,19 @@ export interface WorkspaceCheckNameAvailabilityOptionalParams
603
666
  extends coreClient.OperationOptions {}
604
667
 
605
668
  /** Contains response data for the checkNameAvailability operation. */
606
- export type WorkspaceCheckNameAvailabilityResponse = CheckNameAvailabilityResult;
669
+ export type WorkspaceCheckNameAvailabilityResponse =
670
+ CheckNameAvailabilityResult;
671
+
672
+ /** Optional parameters. */
673
+ export interface WorkspaceListKeysOptionalParams
674
+ extends coreClient.OperationOptions {}
675
+
676
+ /** Contains response data for the listKeys operation. */
677
+ export type WorkspaceListKeysResponse = ListKeysResult;
678
+
679
+ /** Optional parameters. */
680
+ export interface WorkspaceRegenerateKeysOptionalParams
681
+ extends coreClient.OperationOptions {}
607
682
 
608
683
  /** Optional parameters. */
609
684
  export interface AzureQuantumManagementClientOptionalParams