@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.
Files changed (83) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/LICENSE +1 -1
  3. package/dist/index.js +702 -526
  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 +4 -9
  8. package/dist-esm/samples-dev/offeringsListSample.js.map +1 -1
  9. package/dist-esm/samples-dev/operationsListSample.js +4 -9
  10. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  11. package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.js +3 -3
  12. package/dist-esm/samples-dev/workspaceCheckNameAvailabilitySample.js.map +1 -1
  13. package/dist-esm/samples-dev/workspaceListKeysSample.d.ts +2 -0
  14. package/dist-esm/samples-dev/workspaceListKeysSample.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/workspaceListKeysSample.js +39 -0
  16. package/dist-esm/samples-dev/workspaceListKeysSample.js.map +1 -0
  17. package/dist-esm/samples-dev/workspaceRegenerateKeysSample.d.ts +2 -0
  18. package/dist-esm/samples-dev/workspaceRegenerateKeysSample.d.ts.map +1 -0
  19. package/dist-esm/samples-dev/workspaceRegenerateKeysSample.js +40 -0
  20. package/dist-esm/samples-dev/workspaceRegenerateKeysSample.js.map +1 -0
  21. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +10 -8
  22. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
  23. package/dist-esm/samples-dev/workspacesDeleteSample.js +1 -1
  24. package/dist-esm/samples-dev/workspacesGetSample.js +1 -1
  25. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +4 -9
  26. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
  27. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +4 -9
  28. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
  29. package/dist-esm/samples-dev/workspacesUpdateTagsSample.js +2 -2
  30. package/dist-esm/src/azureQuantumManagementClient.d.ts +1 -1
  31. package/dist-esm/src/azureQuantumManagementClient.d.ts.map +1 -1
  32. package/dist-esm/src/azureQuantumManagementClient.js +10 -10
  33. package/dist-esm/src/azureQuantumManagementClient.js.map +1 -1
  34. package/dist-esm/src/lroImpl.js +1 -1
  35. package/dist-esm/src/models/index.d.ts +106 -41
  36. package/dist-esm/src/models/index.d.ts.map +1 -1
  37. package/dist-esm/src/models/index.js +8 -0
  38. package/dist-esm/src/models/index.js.map +1 -1
  39. package/dist-esm/src/models/mappers.d.ts +5 -1
  40. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  41. package/dist-esm/src/models/mappers.js +454 -345
  42. package/dist-esm/src/models/mappers.js.map +1 -1
  43. package/dist-esm/src/models/parameters.d.ts +1 -0
  44. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  45. package/dist-esm/src/models/parameters.js +43 -32
  46. package/dist-esm/src/models/parameters.js.map +1 -1
  47. package/dist-esm/src/operations/offerings.js +14 -19
  48. package/dist-esm/src/operations/offerings.js.map +1 -1
  49. package/dist-esm/src/operations/operations.js +12 -17
  50. package/dist-esm/src/operations/operations.js.map +1 -1
  51. package/dist-esm/src/operations/workspace.d.ts +19 -1
  52. package/dist-esm/src/operations/workspace.d.ts.map +1 -1
  53. package/dist-esm/src/operations/workspace.js +69 -5
  54. package/dist-esm/src/operations/workspace.js.map +1 -1
  55. package/dist-esm/src/operations/workspaces.d.ts +9 -9
  56. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  57. package/dist-esm/src/operations/workspaces.js +68 -77
  58. package/dist-esm/src/operations/workspaces.js.map +1 -1
  59. package/dist-esm/src/operationsInterfaces/workspace.d.ts +19 -1
  60. package/dist-esm/src/operationsInterfaces/workspace.d.ts.map +1 -1
  61. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +7 -7
  62. package/dist-esm/src/pagingHelper.js.map +1 -1
  63. package/dist-esm/test/quantum_operations_test.spec.js +19 -26
  64. package/dist-esm/test/quantum_operations_test.spec.js.map +1 -1
  65. package/package.json +16 -21
  66. package/review/arm-quantum.api.md +55 -6
  67. package/src/azureQuantumManagementClient.ts +19 -18
  68. package/src/lroImpl.ts +3 -3
  69. package/src/models/index.ts +123 -48
  70. package/src/models/mappers.ts +476 -367
  71. package/src/models/parameters.ts +46 -33
  72. package/src/operations/offerings.ts +20 -21
  73. package/src/operations/operations.ts +16 -16
  74. package/src/operations/workspace.ts +94 -10
  75. package/src/operations/workspaces.ts +110 -117
  76. package/src/operationsInterfaces/offerings.ts +1 -1
  77. package/src/operationsInterfaces/operations.ts +1 -1
  78. package/src/operationsInterfaces/workspace.ts +33 -2
  79. package/src/operationsInterfaces/workspaces.ts +16 -16
  80. package/src/pagingHelper.ts +1 -1
  81. package/types/arm-quantum.d.ts +127 -34
  82. package/types/tsdoc-metadata.json +1 -1
  83. package/rollup.config.js +0 -122
@@ -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