@azure/arm-hybridcompute 4.0.1-alpha.20241114.1 → 4.1.0-beta.1

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 (176) hide show
  1. package/CHANGELOG.md +79 -9
  2. package/README.md +1 -1
  3. package/dist/index.js +4477 -2438
  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/extensionMetadataGetSample.js +1 -1
  8. package/dist-esm/samples-dev/extensionMetadataListSample.js +1 -1
  9. package/dist-esm/samples-dev/gatewaysCreateOrUpdateSample.d.ts +2 -0
  10. package/dist-esm/samples-dev/gatewaysCreateOrUpdateSample.d.ts.map +1 -0
  11. package/dist-esm/samples-dev/gatewaysCreateOrUpdateSample.js +44 -0
  12. package/dist-esm/samples-dev/gatewaysCreateOrUpdateSample.js.map +1 -0
  13. package/dist-esm/samples-dev/gatewaysDeleteSample.d.ts +2 -0
  14. package/dist-esm/samples-dev/gatewaysDeleteSample.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/gatewaysDeleteSample.js +39 -0
  16. package/dist-esm/samples-dev/gatewaysDeleteSample.js.map +1 -0
  17. package/dist-esm/samples-dev/gatewaysGetSample.d.ts +2 -0
  18. package/dist-esm/samples-dev/gatewaysGetSample.d.ts.map +1 -0
  19. package/dist-esm/samples-dev/gatewaysGetSample.js +39 -0
  20. package/dist-esm/samples-dev/gatewaysGetSample.js.map +1 -0
  21. package/dist-esm/samples-dev/gatewaysListByResourceGroupSample.d.ts +2 -0
  22. package/dist-esm/samples-dev/gatewaysListByResourceGroupSample.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/gatewaysListByResourceGroupSample.js +54 -0
  24. package/dist-esm/samples-dev/gatewaysListByResourceGroupSample.js.map +1 -0
  25. package/dist-esm/samples-dev/gatewaysListBySubscriptionSample.d.ts +2 -0
  26. package/dist-esm/samples-dev/gatewaysListBySubscriptionSample.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/gatewaysListBySubscriptionSample.js +53 -0
  28. package/dist-esm/samples-dev/gatewaysListBySubscriptionSample.js.map +1 -0
  29. package/dist-esm/samples-dev/gatewaysUpdateSample.d.ts +2 -0
  30. package/dist-esm/samples-dev/gatewaysUpdateSample.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/gatewaysUpdateSample.js +40 -0
  32. package/dist-esm/samples-dev/gatewaysUpdateSample.js.map +1 -0
  33. package/dist-esm/samples-dev/licenseProfilesCreateOrUpdateSample.js +1 -1
  34. package/dist-esm/samples-dev/licenseProfilesDeleteSample.js +1 -1
  35. package/dist-esm/samples-dev/licenseProfilesGetSample.js +1 -1
  36. package/dist-esm/samples-dev/licenseProfilesListSample.js +1 -1
  37. package/dist-esm/samples-dev/licenseProfilesUpdateSample.js +1 -1
  38. package/dist-esm/samples-dev/licensesCreateOrUpdateSample.js +1 -1
  39. package/dist-esm/samples-dev/licensesDeleteSample.js +1 -1
  40. package/dist-esm/samples-dev/licensesGetSample.js +1 -1
  41. package/dist-esm/samples-dev/licensesListByResourceGroupSample.js +1 -1
  42. package/dist-esm/samples-dev/licensesListBySubscriptionSample.js +1 -1
  43. package/dist-esm/samples-dev/licensesUpdateSample.js +1 -1
  44. package/dist-esm/samples-dev/licensesValidateLicenseSample.js +1 -1
  45. package/dist-esm/samples-dev/machineExtensionsCreateOrUpdateSample.js +1 -1
  46. package/dist-esm/samples-dev/machineExtensionsDeleteSample.js +1 -1
  47. package/dist-esm/samples-dev/machineExtensionsGetSample.js +1 -1
  48. package/dist-esm/samples-dev/machineExtensionsListSample.js +1 -1
  49. package/dist-esm/samples-dev/machineExtensionsUpdateSample.js +3 -3
  50. package/dist-esm/samples-dev/machineRunCommandsCreateOrUpdateSample.d.ts +2 -0
  51. package/dist-esm/samples-dev/machineRunCommandsCreateOrUpdateSample.d.ts.map +1 -0
  52. package/dist-esm/samples-dev/machineRunCommandsCreateOrUpdateSample.js +53 -0
  53. package/dist-esm/samples-dev/machineRunCommandsCreateOrUpdateSample.js.map +1 -0
  54. package/dist-esm/samples-dev/machineRunCommandsDeleteSample.d.ts +2 -0
  55. package/dist-esm/samples-dev/machineRunCommandsDeleteSample.d.ts.map +1 -0
  56. package/dist-esm/samples-dev/machineRunCommandsDeleteSample.js +39 -0
  57. package/dist-esm/samples-dev/machineRunCommandsDeleteSample.js.map +1 -0
  58. package/dist-esm/samples-dev/machineRunCommandsGetSample.d.ts +2 -0
  59. package/dist-esm/samples-dev/machineRunCommandsGetSample.d.ts.map +1 -0
  60. package/dist-esm/samples-dev/machineRunCommandsGetSample.js +39 -0
  61. package/dist-esm/samples-dev/machineRunCommandsGetSample.js.map +1 -0
  62. package/dist-esm/samples-dev/machineRunCommandsListSample.d.ts +2 -0
  63. package/dist-esm/samples-dev/machineRunCommandsListSample.d.ts.map +1 -0
  64. package/dist-esm/samples-dev/machineRunCommandsListSample.js +54 -0
  65. package/dist-esm/samples-dev/machineRunCommandsListSample.js.map +1 -0
  66. package/dist-esm/samples-dev/machinesAssessPatchesSample.js +1 -1
  67. package/dist-esm/samples-dev/machinesDeleteSample.js +1 -1
  68. package/dist-esm/samples-dev/machinesGetSample.js +2 -2
  69. package/dist-esm/samples-dev/machinesInstallPatchesSample.js +1 -1
  70. package/dist-esm/samples-dev/machinesListByResourceGroupSample.js +1 -1
  71. package/dist-esm/samples-dev/machinesListBySubscriptionSample.js +1 -1
  72. package/dist-esm/samples-dev/networkProfileGetSample.js +1 -1
  73. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js +1 -1
  74. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js +1 -1
  75. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js +1 -1
  76. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  77. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  78. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  79. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  80. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js +1 -1
  81. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
  82. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js +1 -1
  83. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js +2 -2
  84. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js +1 -1
  85. package/dist-esm/samples-dev/privateLinkScopesGetSample.js +1 -1
  86. package/dist-esm/samples-dev/privateLinkScopesGetValidationDetailsForMachineSample.js +1 -1
  87. package/dist-esm/samples-dev/privateLinkScopesGetValidationDetailsSample.js +1 -1
  88. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js +1 -1
  89. package/dist-esm/samples-dev/privateLinkScopesListSample.js +1 -1
  90. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js +1 -1
  91. package/dist-esm/samples-dev/settingsGetSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/settingsGetSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/settingsGetSample.js +42 -0
  94. package/dist-esm/samples-dev/settingsGetSample.js.map +1 -0
  95. package/dist-esm/samples-dev/settingsPatchSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/settingsPatchSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/settingsPatchSample.js +45 -0
  98. package/dist-esm/samples-dev/settingsPatchSample.js.map +1 -0
  99. package/dist-esm/samples-dev/settingsUpdateSample.d.ts +2 -0
  100. package/dist-esm/samples-dev/settingsUpdateSample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/settingsUpdateSample.js +45 -0
  102. package/dist-esm/samples-dev/settingsUpdateSample.js.map +1 -0
  103. package/dist-esm/samples-dev/upgradeExtensionsSample.js +1 -1
  104. package/dist-esm/src/hybridComputeManagementClient.d.ts +4 -1
  105. package/dist-esm/src/hybridComputeManagementClient.d.ts.map +1 -1
  106. package/dist-esm/src/hybridComputeManagementClient.js +6 -3
  107. package/dist-esm/src/hybridComputeManagementClient.js.map +1 -1
  108. package/dist-esm/src/models/index.d.ts +506 -14
  109. package/dist-esm/src/models/index.d.ts.map +1 -1
  110. package/dist-esm/src/models/index.js +24 -0
  111. package/dist-esm/src/models/index.js.map +1 -1
  112. package/dist-esm/src/models/mappers.d.ts +29 -1
  113. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  114. package/dist-esm/src/models/mappers.js +987 -111
  115. package/dist-esm/src/models/mappers.js.map +1 -1
  116. package/dist-esm/src/models/parameters.d.ts +12 -2
  117. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  118. package/dist-esm/src/models/parameters.js +99 -4
  119. package/dist-esm/src/models/parameters.js.map +1 -1
  120. package/dist-esm/src/operations/gateways.d.ts +99 -0
  121. package/dist-esm/src/operations/gateways.d.ts.map +1 -0
  122. package/dist-esm/src/operations/gateways.js +495 -0
  123. package/dist-esm/src/operations/gateways.js.map +1 -0
  124. package/dist-esm/src/operations/index.d.ts +3 -0
  125. package/dist-esm/src/operations/index.d.ts.map +1 -1
  126. package/dist-esm/src/operations/index.js +3 -0
  127. package/dist-esm/src/operations/index.js.map +1 -1
  128. package/dist-esm/src/operations/machineExtensions.d.ts +2 -2
  129. package/dist-esm/src/operations/machineExtensions.js +2 -2
  130. package/dist-esm/src/operations/machineRunCommands.d.ts +81 -0
  131. package/dist-esm/src/operations/machineRunCommands.d.ts.map +1 -0
  132. package/dist-esm/src/operations/machineRunCommands.js +372 -0
  133. package/dist-esm/src/operations/machineRunCommands.js.map +1 -0
  134. package/dist-esm/src/operations/privateEndpointConnections.js +1 -1
  135. package/dist-esm/src/operations/privateLinkScopes.js +1 -1
  136. package/dist-esm/src/operations/settingsOperations.d.ts +45 -0
  137. package/dist-esm/src/operations/settingsOperations.d.ts.map +1 -0
  138. package/dist-esm/src/operations/settingsOperations.js +163 -0
  139. package/dist-esm/src/operations/settingsOperations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/gateways.d.ts +63 -0
  141. package/dist-esm/src/operationsInterfaces/gateways.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/gateways.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/gateways.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  145. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  146. package/dist-esm/src/operationsInterfaces/index.js +3 -0
  147. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  148. package/dist-esm/src/operationsInterfaces/machineExtensions.d.ts +2 -2
  149. package/dist-esm/src/operationsInterfaces/machineRunCommands.d.ts +56 -0
  150. package/dist-esm/src/operationsInterfaces/machineRunCommands.d.ts.map +1 -0
  151. package/dist-esm/src/operationsInterfaces/machineRunCommands.js +9 -0
  152. package/dist-esm/src/operationsInterfaces/machineRunCommands.js.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/settingsOperations.d.ts +37 -0
  154. package/dist-esm/src/operationsInterfaces/settingsOperations.d.ts.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/settingsOperations.js +9 -0
  156. package/dist-esm/src/operationsInterfaces/settingsOperations.js.map +1 -0
  157. package/package.json +5 -3
  158. package/review/arm-hybridcompute.api.md +389 -0
  159. package/src/hybridComputeManagementClient.ts +14 -2
  160. package/src/models/index.ts +572 -14
  161. package/src/models/mappers.ts +1105 -150
  162. package/src/models/parameters.ts +112 -3
  163. package/src/operations/gateways.ts +641 -0
  164. package/src/operations/index.ts +3 -0
  165. package/src/operations/machineExtensions.ts +2 -2
  166. package/src/operations/machineRunCommands.ts +511 -0
  167. package/src/operations/privateEndpointConnections.ts +1 -1
  168. package/src/operations/privateLinkScopes.ts +1 -1
  169. package/src/operations/settingsOperations.ts +213 -0
  170. package/src/operationsInterfaces/gateways.ts +127 -0
  171. package/src/operationsInterfaces/index.ts +3 -0
  172. package/src/operationsInterfaces/machineExtensions.ts +2 -2
  173. package/src/operationsInterfaces/machineRunCommands.ts +115 -0
  174. package/src/operationsInterfaces/settingsOperations.ts +76 -0
  175. package/tsconfig.json +2 -2
  176. package/types/arm-hybridcompute.d.ts +712 -4
@@ -230,6 +230,77 @@ export interface ServiceStatus {
230
230
  startupType?: string;
231
231
  }
232
232
 
233
+ /** Describes the hardware of the machine */
234
+ export interface HardwareProfile {
235
+ /**
236
+ * The total physical memory on the machine
237
+ * NOTE: This property will not be serialized. It can only be populated by the server.
238
+ */
239
+ readonly totalPhysicalMemoryInBytes?: number;
240
+ /**
241
+ * The total number of CPU sockets available on the machine
242
+ * NOTE: This property will not be serialized. It can only be populated by the server.
243
+ */
244
+ readonly numberOfCpuSockets?: number;
245
+ /**
246
+ * The physical processors of the machine.
247
+ * NOTE: This property will not be serialized. It can only be populated by the server.
248
+ */
249
+ readonly processors?: Processor[];
250
+ }
251
+
252
+ /** Describes the firmware of the machine */
253
+ export interface Processor {
254
+ /**
255
+ * The name of the processor.
256
+ * NOTE: This property will not be serialized. It can only be populated by the server.
257
+ */
258
+ readonly name?: string;
259
+ /**
260
+ * The total number of physical cores on the processor.
261
+ * NOTE: This property will not be serialized. It can only be populated by the server.
262
+ */
263
+ readonly numberOfCores?: number;
264
+ }
265
+
266
+ /** Describes the storage configuration of the machine */
267
+ export interface StorageProfile {
268
+ /** The disks on the machine. */
269
+ disks?: Disk[];
270
+ }
271
+
272
+ /** Describes a disk on the machine */
273
+ export interface Disk {
274
+ /** The path of the disk. */
275
+ path?: string;
276
+ /** The type of the disk. */
277
+ diskType?: string;
278
+ /** The generated ID of the disk. */
279
+ generatedId?: string;
280
+ /** The ID of the disk. */
281
+ id?: string;
282
+ /** The name of the disk. */
283
+ name?: string;
284
+ /** The size of the disk, in bytes */
285
+ maxSizeInBytes?: number;
286
+ /** The amount of space used on the disk, in bytes */
287
+ usedSpaceInBytes?: number;
288
+ }
289
+
290
+ /** Describes the firmware of the machine */
291
+ export interface FirmwareProfile {
292
+ /**
293
+ * The serial number of the firmware
294
+ * NOTE: This property will not be serialized. It can only be populated by the server.
295
+ */
296
+ readonly serialNumber?: string;
297
+ /**
298
+ * The type of the firmware
299
+ * NOTE: This property will not be serialized. It can only be populated by the server.
300
+ */
301
+ readonly type?: string;
302
+ }
303
+
233
304
  /** The metadata of the cloud environment (Azure/GCP/AWS/OCI...). */
234
305
  export interface CloudMetadata {
235
306
  /**
@@ -243,9 +314,9 @@ export interface CloudMetadata {
243
314
  export interface AgentUpgrade {
244
315
  /** Specifies the version info w.r.t AgentUpgrade for the machine. */
245
316
  desiredVersion?: string;
246
- /** The correlation ID passed in from RSM per upgrade. */
317
+ /** The correlation ID associated with an agent upgrade operation. */
247
318
  correlationId?: string;
248
- /** Specifies if RSM should try to upgrade this machine */
319
+ /** Specifies if the machine's agent should be upgraded */
249
320
  enableAutomaticUpgrade?: boolean;
250
321
  /**
251
322
  * Specifies the version of the last attempt
@@ -461,6 +532,12 @@ export interface NetworkProfile {
461
532
 
462
533
  /** Describes a network interface. */
463
534
  export interface NetworkInterface {
535
+ /** Represents MAC address of the network interface. */
536
+ macAddress?: string;
537
+ /** Represents the ID of the network interface. */
538
+ id?: string;
539
+ /** Represents the name of the network interface. */
540
+ name?: string;
464
541
  /** The list of IP addresses in this interface. */
465
542
  ipAddresses?: IpAddress[];
466
543
  }
@@ -873,6 +950,119 @@ export interface OperationValueDisplay {
873
950
  readonly provider?: string;
874
951
  }
875
952
 
953
+ /** Describes the script sources for run command. Use only one of script, scriptUri, commandId. */
954
+ export interface MachineRunCommandScriptSource {
955
+ /** Specifies the script content to be executed on the machine. */
956
+ script?: string;
957
+ /** Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. */
958
+ scriptUri?: string;
959
+ /** Specifies the commandId of predefined built-in script. */
960
+ commandId?: string;
961
+ /** User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. */
962
+ scriptUriManagedIdentity?: RunCommandManagedIdentity;
963
+ }
964
+
965
+ /** Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. */
966
+ export interface RunCommandManagedIdentity {
967
+ /** Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided. */
968
+ clientId?: string;
969
+ /** Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided. */
970
+ objectId?: string;
971
+ }
972
+
973
+ /** Describes the properties of a run command parameter. */
974
+ export interface RunCommandInputParameter {
975
+ /** The run command parameter name. */
976
+ name: string;
977
+ /** The run command parameter value. */
978
+ value: string;
979
+ }
980
+
981
+ /** The instance view of a machine run command. */
982
+ export interface MachineRunCommandInstanceView {
983
+ /** Script execution status. */
984
+ executionState?: ExecutionState;
985
+ /** Communicate script configuration errors or execution messages. */
986
+ executionMessage?: string;
987
+ /** Exit code returned from script execution. */
988
+ exitCode?: number;
989
+ /** Script output stream. */
990
+ output?: string;
991
+ /** Script error stream. */
992
+ error?: string;
993
+ /** Script start time. */
994
+ startTime?: Date;
995
+ /** Script end time. */
996
+ endTime?: Date;
997
+ /** The status information. */
998
+ statuses?: ExtensionsResourceStatus[];
999
+ }
1000
+
1001
+ /** Instance view status. */
1002
+ export interface ExtensionsResourceStatus {
1003
+ /** The status code. */
1004
+ code?: string;
1005
+ /** The level code. */
1006
+ level?: ExtensionsStatusLevelTypes;
1007
+ /** The short localizable label for the status. */
1008
+ displayStatus?: string;
1009
+ /** The detailed status message, including for alerts and error messages. */
1010
+ message?: string;
1011
+ /** The time of the status. */
1012
+ time?: Date;
1013
+ }
1014
+
1015
+ /** Describes the Run Commands List Result. */
1016
+ export interface MachineRunCommandsListResult {
1017
+ /** The list of run commands */
1018
+ value?: MachineRunCommand[];
1019
+ /** The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. */
1020
+ nextLink?: string;
1021
+ }
1022
+
1023
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
1024
+ export interface ErrorResponseAutoGenerated {
1025
+ /** The error object. */
1026
+ error?: ErrorDetailAutoGenerated;
1027
+ }
1028
+
1029
+ /** The error detail. */
1030
+ export interface ErrorDetailAutoGenerated {
1031
+ /**
1032
+ * The error code.
1033
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1034
+ */
1035
+ readonly code?: string;
1036
+ /**
1037
+ * The error message.
1038
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1039
+ */
1040
+ readonly message?: string;
1041
+ /**
1042
+ * The error target.
1043
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1044
+ */
1045
+ readonly target?: string;
1046
+ /**
1047
+ * The error details.
1048
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1049
+ */
1050
+ readonly details?: ErrorDetailAutoGenerated[];
1051
+ /**
1052
+ * The error additional info.
1053
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1054
+ */
1055
+ readonly additionalInfo?: ErrorAdditionalInfo[];
1056
+ }
1057
+
1058
+ /** The List license operation response. */
1059
+ export interface GatewaysListResult {
1060
+ /** The list of Gateways. */
1061
+ value: Gateway[];
1062
+ /** The URI to fetch the next page of Gateways. Call ListNext() with this URI to fetch the next page of Gateways. */
1063
+ nextLink?: string;
1064
+ }
1065
+
876
1066
  /** Describes the list of Azure Arc PrivateLinkScope resources. */
877
1067
  export interface HybridComputePrivateLinkScopeListResult {
878
1068
  /** List of Azure Arc PrivateLinkScope definitions. */
@@ -1246,18 +1436,30 @@ export interface NetworkSecurityPerimeterConfigurationReconcileResult {
1246
1436
  location?: string;
1247
1437
  }
1248
1438
 
1249
- /** Instance view status. */
1250
- export interface ExtensionsResourceStatus {
1251
- /** The status code. */
1252
- code?: string;
1253
- /** The level code. */
1254
- level?: ExtensionsStatusLevelTypes;
1255
- /** The short localizable label for the status. */
1256
- displayStatus?: string;
1257
- /** The detailed status message, including for alerts and error messages. */
1258
- message?: string;
1259
- /** The time of the status. */
1260
- time?: Date;
1439
+ /** List of HybridIdentityMetadata. */
1440
+ export interface HybridIdentityMetadataList {
1441
+ /** Url to follow for getting next page of HybridIdentityMetadata. */
1442
+ nextLink?: string;
1443
+ /** Array of HybridIdentityMetadata */
1444
+ value: HybridIdentityMetadata[];
1445
+ }
1446
+
1447
+ /** Describes AgentVersions List. */
1448
+ export interface AgentVersionsList {
1449
+ /** The list of available Agent Versions. */
1450
+ value?: AgentVersion[];
1451
+ /** The URI to fetch the next 10 available Agent Versions. */
1452
+ nextLink?: string;
1453
+ }
1454
+
1455
+ /** Describes properties of Agent Version. */
1456
+ export interface AgentVersion {
1457
+ /** Represents the agent version. */
1458
+ agentVersion?: string;
1459
+ /** Represents the download link of specific agent version. */
1460
+ downloadLink?: string;
1461
+ /** Defines the os type. */
1462
+ osType?: string;
1261
1463
  }
1262
1464
 
1263
1465
  /** Public key information for client authentication */
@@ -1354,6 +1556,12 @@ export interface MachineExtensionUpdate extends ResourceUpdate {
1354
1556
  protectedSettings?: { [propertyName: string]: any };
1355
1557
  }
1356
1558
 
1559
+ /** Describes a License Update. */
1560
+ export interface GatewayUpdate extends ResourceUpdate {
1561
+ /** Specifies the list of features that are enabled for this Gateway. */
1562
+ allowedFeatures?: string[];
1563
+ }
1564
+
1357
1565
  /** Describes a hybrid machine Update. */
1358
1566
  export interface MachineUpdate extends ResourceUpdate {
1359
1567
  /** Identity for the resource. */
@@ -1374,6 +1582,9 @@ export interface MachineUpdate extends ResourceUpdate {
1374
1582
  privateLinkScopeResourceId?: string;
1375
1583
  }
1376
1584
 
1585
+ /** Describes a Machine Extension Update. */
1586
+ export interface MachineRunCommandUpdate extends ResourceUpdate {}
1587
+
1377
1588
  /** Describes the properties of a License Profile ARM model. */
1378
1589
  export interface LicenseProfileArmEsuPropertiesWithoutAssignedLicense
1379
1590
  extends LicenseProfileStorageModelEsuProperties {
@@ -1397,6 +1608,14 @@ export interface LicenseProfileArmEsuPropertiesWithoutAssignedLicense
1397
1608
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
1398
1609
  export interface ProxyResource extends ResourceAutoGenerated {}
1399
1610
 
1611
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
1612
+ export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated {
1613
+ /** Resource tags. */
1614
+ tags?: { [propertyName: string]: string };
1615
+ /** The geo-location where the resource lives */
1616
+ location: string;
1617
+ }
1618
+
1400
1619
  /** An Azure Arc PrivateLinkScope definition. */
1401
1620
  export interface HybridComputePrivateLinkScope
1402
1621
  extends PrivateLinkScopesResource {
@@ -1450,6 +1669,21 @@ export interface Machine extends TrackedResource {
1450
1669
  readonly agentConfiguration?: AgentConfiguration;
1451
1670
  /** Statuses of dependent services that are reported back to ARM. */
1452
1671
  serviceStatuses?: ServiceStatuses;
1672
+ /**
1673
+ * Information about the machine's hardware
1674
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1675
+ */
1676
+ readonly hardwareProfile?: HardwareProfile;
1677
+ /**
1678
+ * Information about the machine's storage
1679
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1680
+ */
1681
+ readonly storageProfile?: StorageProfile;
1682
+ /**
1683
+ * Information about the machine's firmware
1684
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1685
+ */
1686
+ readonly firmwareProfile?: FirmwareProfile;
1453
1687
  /** The metadata of the cloud environment (Azure/GCP/AWS/OCI...). */
1454
1688
  cloudMetadata?: CloudMetadata;
1455
1689
  /** The info of the machine w.r.t Agent Upgrade */
@@ -1628,6 +1862,52 @@ export interface LicenseProfile extends TrackedResource {
1628
1862
  softwareAssuranceCustomer?: boolean;
1629
1863
  }
1630
1864
 
1865
+ /** Describes a Run Command */
1866
+ export interface MachineRunCommand extends TrackedResource {
1867
+ /** The source of the run command script. */
1868
+ source?: MachineRunCommandScriptSource;
1869
+ /** The parameters used by the script. */
1870
+ parameters?: RunCommandInputParameter[];
1871
+ /** The parameters used by the script. */
1872
+ protectedParameters?: RunCommandInputParameter[];
1873
+ /** Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to complete. */
1874
+ asyncExecution?: boolean;
1875
+ /** Specifies the user account on the machine when executing the run command. */
1876
+ runAsUser?: string;
1877
+ /** Specifies the user account password on the machine when executing the run command. */
1878
+ runAsPassword?: string;
1879
+ /** The timeout in seconds to execute the run command. */
1880
+ timeoutInSeconds?: number;
1881
+ /** Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter. */
1882
+ outputBlobUri?: string;
1883
+ /** Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter. */
1884
+ errorBlobUri?: string;
1885
+ /** User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */
1886
+ outputBlobManagedIdentity?: RunCommandManagedIdentity;
1887
+ /** User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */
1888
+ errorBlobManagedIdentity?: RunCommandManagedIdentity;
1889
+ /**
1890
+ * The provisioning state, which only appears in the response.
1891
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1892
+ */
1893
+ readonly provisioningState?: string;
1894
+ /**
1895
+ * The machine run command instance view.
1896
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1897
+ */
1898
+ readonly instanceView?: MachineRunCommandInstanceView;
1899
+ }
1900
+
1901
+ export interface Settings extends ProxyResourceAutoGenerated {
1902
+ /**
1903
+ * Azure resource tenant Id
1904
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1905
+ */
1906
+ readonly tenantId?: string;
1907
+ /** Associated Gateway Resource Id */
1908
+ gatewayResourceId?: string;
1909
+ }
1910
+
1631
1911
  /** A private link resource */
1632
1912
  export interface PrivateLinkResource extends ProxyResourceAutoGenerated {
1633
1913
  /** Resource properties. */
@@ -1640,6 +1920,38 @@ export interface PrivateEndpointConnection extends ProxyResourceAutoGenerated {
1640
1920
  properties?: PrivateEndpointConnectionProperties;
1641
1921
  }
1642
1922
 
1923
+ /** Defines the HybridIdentityMetadata. */
1924
+ export interface HybridIdentityMetadata extends ProxyResourceAutoGenerated {
1925
+ /** The unique identifier for the resource. */
1926
+ vmId?: string;
1927
+ /** The Public Key. */
1928
+ publicKey?: string;
1929
+ /**
1930
+ * Identity for the resource.
1931
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1932
+ */
1933
+ readonly identity?: Identity;
1934
+ }
1935
+
1936
+ export interface NetworkConfiguration extends ProxyResourceAutoGenerated {
1937
+ /** Resource location */
1938
+ location?: string;
1939
+ /**
1940
+ * Azure resource tenant Id
1941
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1942
+ */
1943
+ readonly tenantId?: string;
1944
+ /** Associated Network Configuration Scope Id (GUID) */
1945
+ networkConfigurationScopeId?: string;
1946
+ /** Associated Network Configuration Scope Resource Id */
1947
+ networkConfigurationScopeResourceId?: string;
1948
+ /**
1949
+ * Public key information for client authentication
1950
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1951
+ */
1952
+ readonly keyProperties?: KeyProperties;
1953
+ }
1954
+
1643
1955
  /** Properties for the Machine ESU profile. */
1644
1956
  export interface LicenseProfileMachineInstanceViewEsuProperties
1645
1957
  extends LicenseProfileArmEsuPropertiesWithoutAssignedLicense {
@@ -1675,6 +1987,29 @@ export interface ExtensionValue extends ProxyResource {
1675
1987
  readonly publisher?: string;
1676
1988
  }
1677
1989
 
1990
+ /** Describes an Arc Gateway. */
1991
+ export interface Gateway extends TrackedResourceAutoGenerated {
1992
+ /**
1993
+ * The provisioning state, which only appears in the response.
1994
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1995
+ */
1996
+ readonly provisioningState?: ProvisioningState;
1997
+ /**
1998
+ * A unique, immutable, identifier for the Gateway.
1999
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2000
+ */
2001
+ readonly gatewayId?: string;
2002
+ /** The type of the Gateway resource. */
2003
+ gatewayType?: GatewayType;
2004
+ /**
2005
+ * The endpoint fqdn for the Gateway.
2006
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2007
+ */
2008
+ readonly gatewayEndpoint?: string;
2009
+ /** Specifies the list of features that are enabled for this Gateway. */
2010
+ allowedFeatures?: string[];
2011
+ }
2012
+
1678
2013
  /** Defines headers for Machines_assessPatches operation. */
1679
2014
  export interface MachinesAssessPatchesHeaders {
1680
2015
  /** The URL of the resource used to check the status of the asynchronous operation. */
@@ -1747,6 +2082,46 @@ export interface HybridComputeManagementClientUpgradeExtensionsHeaders {
1747
2082
  azureAsyncOperation?: string;
1748
2083
  }
1749
2084
 
2085
+ /** Defines headers for MachineRunCommands_createOrUpdate operation. */
2086
+ export interface MachineRunCommandsCreateOrUpdateHeaders {
2087
+ /** The URL of the resource used to check the status of the asynchronous operation. */
2088
+ location?: string;
2089
+ /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */
2090
+ retryAfter?: number;
2091
+ /** The URI to poll for completion status. */
2092
+ azureAsyncOperation?: string;
2093
+ }
2094
+
2095
+ /** Defines headers for MachineRunCommands_delete operation. */
2096
+ export interface MachineRunCommandsDeleteHeaders {
2097
+ /** The URL of the resource used to check the status of the asynchronous operation. */
2098
+ location?: string;
2099
+ /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */
2100
+ retryAfter?: number;
2101
+ /** The URI to poll for completion status. */
2102
+ azureAsyncOperation?: string;
2103
+ }
2104
+
2105
+ /** Defines headers for Gateways_createOrUpdate operation. */
2106
+ export interface GatewaysCreateOrUpdateHeaders {
2107
+ /** The URL of the resource used to check the status of the asynchronous operation. */
2108
+ location?: string;
2109
+ /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */
2110
+ retryAfter?: number;
2111
+ /** The URI to poll for completion status. */
2112
+ azureAsyncOperation?: string;
2113
+ }
2114
+
2115
+ /** Defines headers for Gateways_delete operation. */
2116
+ export interface GatewaysDeleteHeaders {
2117
+ /** The URL of the resource used to check the status of the asynchronous operation. */
2118
+ location?: string;
2119
+ /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */
2120
+ retryAfter?: number;
2121
+ /** The URI to poll for completion status. */
2122
+ azureAsyncOperation?: string;
2123
+ }
2124
+
1750
2125
  /** Defines headers for PrivateLinkScopes_delete operation. */
1751
2126
  export interface PrivateLinkScopesDeleteHeaders {
1752
2127
  /** The URL of the resource used to check the status of the asynchronous operation. */
@@ -2515,6 +2890,54 @@ export enum KnownVMGuestPatchRebootStatus {
2515
2890
  */
2516
2891
  export type VMGuestPatchRebootStatus = string;
2517
2892
 
2893
+ /** Known values of {@link ExecutionState} that the service accepts. */
2894
+ export enum KnownExecutionState {
2895
+ /** Unknown */
2896
+ Unknown = "Unknown",
2897
+ /** Pending */
2898
+ Pending = "Pending",
2899
+ /** Running */
2900
+ Running = "Running",
2901
+ /** Failed */
2902
+ Failed = "Failed",
2903
+ /** Succeeded */
2904
+ Succeeded = "Succeeded",
2905
+ /** TimedOut */
2906
+ TimedOut = "TimedOut",
2907
+ /** Canceled */
2908
+ Canceled = "Canceled",
2909
+ }
2910
+
2911
+ /**
2912
+ * Defines values for ExecutionState. \
2913
+ * {@link KnownExecutionState} can be used interchangeably with ExecutionState,
2914
+ * this enum contains the known values that the service supports.
2915
+ * ### Known values supported by the service
2916
+ * **Unknown** \
2917
+ * **Pending** \
2918
+ * **Running** \
2919
+ * **Failed** \
2920
+ * **Succeeded** \
2921
+ * **TimedOut** \
2922
+ * **Canceled**
2923
+ */
2924
+ export type ExecutionState = string;
2925
+
2926
+ /** Known values of {@link GatewayType} that the service accepts. */
2927
+ export enum KnownGatewayType {
2928
+ /** Public */
2929
+ Public = "Public",
2930
+ }
2931
+
2932
+ /**
2933
+ * Defines values for GatewayType. \
2934
+ * {@link KnownGatewayType} can be used interchangeably with GatewayType,
2935
+ * this enum contains the known values that the service supports.
2936
+ * ### Known values supported by the service
2937
+ * **Public**
2938
+ */
2939
+ export type GatewayType = string;
2940
+
2518
2941
  /** Known values of {@link PublicNetworkAccessType} that the service accepts. */
2519
2942
  export enum KnownPublicNetworkAccessType {
2520
2943
  /** Allows Azure Arc agents to communicate with Azure Arc services over both public (internet) and private endpoints. */
@@ -2918,6 +3341,141 @@ export interface NetworkProfileGetOptionalParams
2918
3341
  /** Contains response data for the get operation. */
2919
3342
  export type NetworkProfileGetResponse = NetworkProfile;
2920
3343
 
3344
+ /** Optional parameters. */
3345
+ export interface MachineRunCommandsCreateOrUpdateOptionalParams
3346
+ extends coreClient.OperationOptions {
3347
+ /** Delay to wait until next poll, in milliseconds. */
3348
+ updateIntervalInMs?: number;
3349
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
3350
+ resumeFrom?: string;
3351
+ }
3352
+
3353
+ /** Contains response data for the createOrUpdate operation. */
3354
+ export type MachineRunCommandsCreateOrUpdateResponse = MachineRunCommand;
3355
+
3356
+ /** Optional parameters. */
3357
+ export interface MachineRunCommandsDeleteOptionalParams
3358
+ extends coreClient.OperationOptions {
3359
+ /** Delay to wait until next poll, in milliseconds. */
3360
+ updateIntervalInMs?: number;
3361
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
3362
+ resumeFrom?: string;
3363
+ }
3364
+
3365
+ /** Contains response data for the delete operation. */
3366
+ export type MachineRunCommandsDeleteResponse = MachineRunCommandsDeleteHeaders;
3367
+
3368
+ /** Optional parameters. */
3369
+ export interface MachineRunCommandsGetOptionalParams
3370
+ extends coreClient.OperationOptions {}
3371
+
3372
+ /** Contains response data for the get operation. */
3373
+ export type MachineRunCommandsGetResponse = MachineRunCommand;
3374
+
3375
+ /** Optional parameters. */
3376
+ export interface MachineRunCommandsListOptionalParams
3377
+ extends coreClient.OperationOptions {
3378
+ /** The expand expression to apply on the operation. */
3379
+ expand?: string;
3380
+ }
3381
+
3382
+ /** Contains response data for the list operation. */
3383
+ export type MachineRunCommandsListResponse = MachineRunCommandsListResult;
3384
+
3385
+ /** Optional parameters. */
3386
+ export interface MachineRunCommandsListNextOptionalParams
3387
+ extends coreClient.OperationOptions {}
3388
+
3389
+ /** Contains response data for the listNext operation. */
3390
+ export type MachineRunCommandsListNextResponse = MachineRunCommandsListResult;
3391
+
3392
+ /** Optional parameters. */
3393
+ export interface GatewaysCreateOrUpdateOptionalParams
3394
+ extends coreClient.OperationOptions {
3395
+ /** Delay to wait until next poll, in milliseconds. */
3396
+ updateIntervalInMs?: number;
3397
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
3398
+ resumeFrom?: string;
3399
+ }
3400
+
3401
+ /** Contains response data for the createOrUpdate operation. */
3402
+ export type GatewaysCreateOrUpdateResponse = Gateway;
3403
+
3404
+ /** Optional parameters. */
3405
+ export interface GatewaysUpdateOptionalParams
3406
+ extends coreClient.OperationOptions {}
3407
+
3408
+ /** Contains response data for the update operation. */
3409
+ export type GatewaysUpdateResponse = Gateway;
3410
+
3411
+ /** Optional parameters. */
3412
+ export interface GatewaysGetOptionalParams
3413
+ extends coreClient.OperationOptions {}
3414
+
3415
+ /** Contains response data for the get operation. */
3416
+ export type GatewaysGetResponse = Gateway;
3417
+
3418
+ /** Optional parameters. */
3419
+ export interface GatewaysDeleteOptionalParams
3420
+ extends coreClient.OperationOptions {
3421
+ /** Delay to wait until next poll, in milliseconds. */
3422
+ updateIntervalInMs?: number;
3423
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
3424
+ resumeFrom?: string;
3425
+ }
3426
+
3427
+ /** Contains response data for the delete operation. */
3428
+ export type GatewaysDeleteResponse = GatewaysDeleteHeaders;
3429
+
3430
+ /** Optional parameters. */
3431
+ export interface GatewaysListByResourceGroupOptionalParams
3432
+ extends coreClient.OperationOptions {}
3433
+
3434
+ /** Contains response data for the listByResourceGroup operation. */
3435
+ export type GatewaysListByResourceGroupResponse = GatewaysListResult;
3436
+
3437
+ /** Optional parameters. */
3438
+ export interface GatewaysListBySubscriptionOptionalParams
3439
+ extends coreClient.OperationOptions {}
3440
+
3441
+ /** Contains response data for the listBySubscription operation. */
3442
+ export type GatewaysListBySubscriptionResponse = GatewaysListResult;
3443
+
3444
+ /** Optional parameters. */
3445
+ export interface GatewaysListByResourceGroupNextOptionalParams
3446
+ extends coreClient.OperationOptions {}
3447
+
3448
+ /** Contains response data for the listByResourceGroupNext operation. */
3449
+ export type GatewaysListByResourceGroupNextResponse = GatewaysListResult;
3450
+
3451
+ /** Optional parameters. */
3452
+ export interface GatewaysListBySubscriptionNextOptionalParams
3453
+ extends coreClient.OperationOptions {}
3454
+
3455
+ /** Contains response data for the listBySubscriptionNext operation. */
3456
+ export type GatewaysListBySubscriptionNextResponse = GatewaysListResult;
3457
+
3458
+ /** Optional parameters. */
3459
+ export interface SettingsGetOptionalParams
3460
+ extends coreClient.OperationOptions {}
3461
+
3462
+ /** Contains response data for the get operation. */
3463
+ export type SettingsGetResponse = Settings;
3464
+
3465
+ /** Optional parameters. */
3466
+ export interface SettingsUpdateOptionalParams
3467
+ extends coreClient.OperationOptions {}
3468
+
3469
+ /** Contains response data for the update operation. */
3470
+ export type SettingsUpdateResponse = Settings;
3471
+
3472
+ /** Optional parameters. */
3473
+ export interface SettingsPatchOptionalParams
3474
+ extends coreClient.OperationOptions {}
3475
+
3476
+ /** Contains response data for the patch operation. */
3477
+ export type SettingsPatchResponse = Settings;
3478
+
2921
3479
  /** Optional parameters. */
2922
3480
  export interface PrivateLinkScopesListOptionalParams
2923
3481
  extends coreClient.OperationOptions {}