From 87cf6d94b650d612184515c842166d9f41cbbb50 Mon Sep 17 00:00:00 2001 From: roramc Date: Mon, 23 Aug 2021 04:00:42 +0530 Subject: [PATCH 1/6] adding update management APIs --- .../2020-08-15-preview/HybridCompute.json | 533 ++++++++++++++++++ .../examples/MachineAssessPatches.json | 33 ++ .../examples/MachineInstallPatches.json | 40 ++ 3 files changed, 606 insertions(+) create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineAssessPatches.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json index 8ba25706434d..c3417b34ab0a 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json @@ -259,6 +259,129 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/assessPatches": { + "post": { + "tags": [ + "machines" + ], + "operationId": "Machines_AssessPatches", + "x-ms-examples": { + "Assess patch state of a machine.": { + "$ref": "./examples/MachinesAssessPatches.json" + } + }, + "description": "The operation to assess patches on a hybrid machine identity in Azure.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineAssessPatchesResult" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/installPatches": { + "post": { + "tags": [ + "machines" + ], + "operationId": "Machines_InstallPatches", + "description": "The operation to install patches on a hybrid machine identity in Azure.", + "x-ms-examples": { + "Install patch state of a machine.": { + "$ref": "./examples/MachineInstallPatches.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "installPatchesInput", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineInstallPatchesParameters" + }, + "description": "Input for InstallPatches as directly received by the API" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineInstallPatchesResult" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { "get": { @@ -1014,6 +1137,416 @@ "type": "string" } } + }, + "MachineAssessPatchesResult": { + "properties": { + "status": { + "type": "string", + "readOnly": true, + "description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Unknown\", \"Failed\", \"Succeeded\", or \"CompletedWithWarnings.\"", + "enum": [ + "Unknown", + "InProgress", + "Failed", + "Succeeded", + "CompletedWithWarnings" + ], + "x-ms-enum": { + "name": "PatchOperationStatus", + "modelAsString": true + } + }, + "assessmentActivityId": { + "type": "string", + "readOnly": true, + "description": "The activity ID of the operation that produced this result." + }, + "rebootPending": { + "type": "boolean", + "readOnly": true, + "description": "The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred." + }, + "availablePatchCountByClassification": { + "$ref": "#/definitions/AvailablePatchCountByClassification", + "description": "Summarization of patches available for installation on the machine by classification." + }, + "startDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The UTC timestamp when the operation began." + }, + "lastModifiedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The UTC timestamp when the operation finished." + }, + "startedBy": { + "type": "string", + "readOnly": true, + "enum": [ + "User", + "Platform" + ], + "x-ms-enum": { + "name": "PatchOperationStartedBy", + "modelAsString": true + }, + "description": "Indicates if operation was triggered by user or by platform." + }, + "patchServiceUsed": { + "type": "string", + "readOnly": true, + "enum": [ + "Unknown", + "WU", + "WU_WSUS", + "YUM", + "APT", + "Zypper" + ], + "x-ms-enum": { + "name": "PatchServiceUsed", + "modelAsString": true + }, + "description": "Specifies the patch service used for the operation." + }, + "osType": { + "type": "string", + "readOnly": true, + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true + }, + "description": "The operating system type of the machine." + }, + "errorDetails": { + "$ref": "#/definitions/errorDetails", + "readOnly": true, + "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." + } + }, + "description": "Describes the properties of an AssessPatches result." + }, + "AvailablePatchCountByClassification": { + "properties": { + "security": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of security patches available for installation." + }, + "critical": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of critical patches available for installation." + }, + "definition": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of definition patches available for installation." + }, + "updateRollup": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of update Rollup patches available for installation." + }, + "featurePack": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of feature pack patches available for installation." + }, + "servicePack": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of service pack patches available for installation." + }, + "tools": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of tools patches available for installation." + }, + "updates": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of updates category patches available for installation." + }, + "other": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of other patches available for installation." + } + }, + "description": "Summarization of patches available for installation on the machine by classification." + }, + "MachineInstallPatchesParameters": { + "properties": { + "maximumDuration": { + "type": "string", + "description": "Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours)" + }, + "rebootSetting": { + "type": "string", + "description": "Defines when it is acceptable to reboot a VM during a software update operation.", + "enum": [ + "IfRequired", + "Never", + "Always" + ], + "x-ms-enum": { + "name": "VMGuestPatchRebootSetting", + "modelAsString": true + } + }, + "windowsParameters": { + "$ref": "#/definitions/WindowsParameters", + "description": "Input for InstallPatches on a Windows VM, as directly received by the API" + }, + "linuxParameters": { + "$ref": "#/definitions/LinuxParameters", + "description": "Input for InstallPatches on a Linux VM, as directly received by the API" + } + }, + "required": [ + "maximumDuration", + "rebootSetting" + ], + "description": "Input for InstallPatches as directly received by the API" + }, + "WindowsParameters": { + "properties": { + "classificationsToInclude": { + "type": "array", + "description": "The update classifications to select when installing patches for Windows.", + "items": { + "type": "string", + "enum": [ + "Critical", + "Security", + "UpdateRollUp", + "FeaturePack", + "ServicePack", + "Definition", + "Tools", + "Updates" + ], + "x-ms-enum": { + "name": "VMGuestPatchClassification_Windows", + "modelAsString": true + } + } + }, + "kbNumbersToInclude": { + "type": "array", + "description": "Kbs to include in the patch operation", + "items": { + "type": "string" + } + }, + "kbNumbersToExclude": { + "type": "array", + "description": "Kbs to exclude in the patch operation", + "items": { + "type": "string" + } + }, + "excludeKbsRequiringReboot": { + "type": "boolean", + "description": "Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true." + }, + "maxPatchPublishDate": { + "type": "string", + "format": "date-time", + "description": "This is used to install patches that were published on or before this given max published date." + } + }, + "description": "Input for InstallPatches on a Windows VM, as directly received by the API" + }, + "LinuxParameters": { + "properties": { + "classificationsToInclude": { + "type": "array", + "description": "The update classifications to select when installing patches for Linux.", + "items": { + "type": "string", + "enum": [ + "Critical", + "Security", + "Other" + ], + "x-ms-enum": { + "name": "VMGuestPatchClassification_Linux", + "modelAsString": true + } + } + }, + "packageNameMasksToInclude": { + "type": "array", + "description": "packages to include in the patch operation. Format: packageName_packageVersion", + "items": { + "type": "string" + } + }, + "packageNameMasksToExclude": { + "type": "array", + "description": "packages to exclude in the patch operation. Format: packageName_packageVersion", + "items": { + "type": "string" + } + } + }, + "description": "Input for InstallPatches on a Linux VM, as directly received by the API" + }, + "MachineInstallPatchesResult": { + "properties": { + "status": { + "type": "string", + "readOnly": true, + "description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Failed\", \"Succeeded\", \"Unknown\" or \"CompletedWithWarnings.\"", + "enum": [ + "Unknown", + "InProgress", + "Failed", + "Succeeded", + "CompletedWithWarnings" + ], + "x-ms-enum": { + "name": "PatchOperationStatus", + "modelAsString": true + } + }, + "installationActivityId": { + "type": "string", + "readOnly": true, + "description": "The activity ID of the operation that produced this result." + }, + "rebootStatus": { + "type": "string", + "readOnly": true, + "description": "The reboot state of the VM following completion of the operation.", + "enum": [ + "Unknown", + "NotNeeded", + "Required", + "Started", + "Failed", + "Completed" + ], + "x-ms-enum": { + "name": "VMGuestPatchRebootStatus", + "modelAsString": true + } + }, + "maintenanceWindowExceeded": { + "type": "boolean", + "readOnly": true, + "description": "Whether the operation ran out of time before it completed all its intended actions." + }, + "excludedPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches that were not installed due to the user blocking their installation." + }, + "notSelectedPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches that were detected as available for install, but did not meet the operation's criteria." + }, + "pendingPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches that were identified as meeting the installation criteria, but were not able to be installed. Typically this happens when maintenanceWindowExceeded == true." + }, + "installedPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches successfully installed." + }, + "failedPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches that could not be installed due to some issue. See errors for details." + }, + "startDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The UTC timestamp when the operation began." + }, + "lastModifiedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The UTC timestamp when the operation finished." + }, + "startedBy": { + "type": "string", + "readOnly": true, + "enum": [ + "User", + "Platform" + ], + "x-ms-enum": { + "name": "PatchOperationStartedBy", + "modelAsString": true + }, + "description": "Indicates if operation was triggered by user or by platform." + }, + "patchServiceUsed": { + "type": "string", + "readOnly": true, + "enum": [ + "Unknown", + "WU", + "WU_WSUS", + "YUM", + "APT", + "Zypper" + ], + "x-ms-enum": { + "name": "PatchServiceUsed", + "modelAsString": true + }, + "description": "Specifies the patch service used for the operation." + }, + "osType": { + "type": "string", + "readOnly": true, + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true + }, + "description": "The operating system type of the machine." + }, + "errorDetails": { + "$ref": "#/definitions/ErrorResponse", + "readOnly": true, + "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." + } + }, + "description": "The result summary of an installation operation." }, "MachineExtension": { "properties": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineAssessPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineAssessPatches.json new file mode 100644 index 000000000000..31f574f0189c --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineAssessPatches.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroupName", + "name": "myMachineName", + "api-version": "2020-08-15-preview" + }, + "responses": { + "200": { + "body": { + "status": "Succeeded", + "assessmentActivityId": "68f8b292-dfc2-4646-9781-33cc88631968", + "rebootPending": true, + "startDateTime": "2021-08-22T02:15:20.9340000Z", + "lastModifiedDateTime": "2021-08-22T02:16:06.9740000Z", + "availablePatchCountByClassification": { + "security": 0, + "updateRollup": 1, + "featurePack": 0, + "servicePack": 0, + "definition": 0, + "critical": 0, + "updates": 1, + "tools": 0 + }, + "startedBy": "User", + "osType": "Windows", + "errorDetails": null + } + }, + "202": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json new file mode 100644 index 000000000000..80ef302ae44f --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroupName", + "name": "myMachineName", + "api-version": "2020-08-15-preview", + "installPatchesInput": { + "maximumDuration": "PT4H", + "rebootSetting": "IfRequired", + "windowsParameters": { + "classificationsToInclude": [ + "Critical", + "Security" + ], + "maxPatchPublishDate": "2021-08-19T02:36:43.0539904+00:00" + } + } + }, + "responses": { + "200": { + "body": { + "status": "Succeeded", + "installationActivityId": "68f8b292-dfc2-4646-9781-33cc88631968", + "rebootStatus": "Completed", + "maintenanceWindowExceeded": false, + "excludedPatchCount": 0, + "notSelectedPatchCount": 0, + "pendingPatchCount": 2, + "installedPatchCount": 3, + "failedPatchCount": 0, + "startDateTime": "2021-08-22T02:15:06.9740000Z", + "lastModifiedDateTime": "2021-08-22T02:16:06.9740000Z", + "startedBy": "User", + "osType": "Windows", + "error": null + } + }, + "202": {} + } +} From c4be0082944330fc1aaa06b042fe432d3c2038ac Mon Sep 17 00:00:00 2001 From: roramc Date: Mon, 23 Aug 2021 04:32:47 +0530 Subject: [PATCH 2/6] correcting example file paths --- .../preview/2020-08-15-preview/HybridCompute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json index c3417b34ab0a..e0ba1e8a1680 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json @@ -268,7 +268,7 @@ "operationId": "Machines_AssessPatches", "x-ms-examples": { "Assess patch state of a machine.": { - "$ref": "./examples/MachinesAssessPatches.json" + "$ref": "./examples/MachineAssessPatches.json" } }, "description": "The operation to assess patches on a hybrid machine identity in Azure.", From 20f18abfcbda8cc1843f67cf00b9d900669b0614 Mon Sep 17 00:00:00 2001 From: roramc Date: Mon, 23 Aug 2021 19:29:42 +0530 Subject: [PATCH 3/6] fixing syntax issues --- .../preview/2020-08-15-preview/HybridCompute.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json index e0ba1e8a1680..925b513422fb 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json @@ -1139,6 +1139,7 @@ } }, "MachineAssessPatchesResult": { + "type": "object", "properties": { "status": { "type": "string", @@ -1234,6 +1235,7 @@ "description": "Describes the properties of an AssessPatches result." }, "AvailablePatchCountByClassification": { + "type": "object", "properties": { "security": { "readOnly": true, @@ -1293,6 +1295,7 @@ "description": "Summarization of patches available for installation on the machine by classification." }, "MachineInstallPatchesParameters": { + "type": "object", "properties": { "maximumDuration": { "type": "string", @@ -1327,6 +1330,7 @@ "description": "Input for InstallPatches as directly received by the API" }, "WindowsParameters": { + "type": "object", "properties": { "classificationsToInclude": { "type": "array", @@ -1376,6 +1380,7 @@ "description": "Input for InstallPatches on a Windows VM, as directly received by the API" }, "LinuxParameters": { + "type": "object", "properties": { "classificationsToInclude": { "type": "array", @@ -1411,6 +1416,7 @@ "description": "Input for InstallPatches on a Linux VM, as directly received by the API" }, "MachineInstallPatchesResult": { + "type": "object", "properties": { "status": { "type": "string", From 314b57b5742fed2b6141d9266dce0b3a0d94f044 Mon Sep 17 00:00:00 2001 From: roramc Date: Tue, 24 Aug 2021 10:53:06 +0530 Subject: [PATCH 4/6] fixing reference --- .../preview/2020-08-15-preview/HybridCompute.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json index 925b513422fb..95992b17d831 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json @@ -1227,7 +1227,7 @@ "description": "The operating system type of the machine." }, "errorDetails": { - "$ref": "#/definitions/errorDetails", + "$ref": "#/definitions/ErrorDetail", "readOnly": true, "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." } @@ -1547,7 +1547,7 @@ "description": "The operating system type of the machine." }, "errorDetails": { - "$ref": "#/definitions/ErrorResponse", + "$ref": "#/definitions/ErrorDetail", "readOnly": true, "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." } From 258c7adabd0240d11eb1d8b148bb15e816d74503 Mon Sep 17 00:00:00 2001 From: roramc Date: Tue, 24 Aug 2021 10:57:57 +0530 Subject: [PATCH 5/6] fixing example --- .../2020-08-15-preview/examples/MachineInstallPatches.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json index 80ef302ae44f..c94fa079c406 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json @@ -32,7 +32,7 @@ "lastModifiedDateTime": "2021-08-22T02:16:06.9740000Z", "startedBy": "User", "osType": "Windows", - "error": null + "errorDetails": null } }, "202": {} From 247d48840d32029575474694006e51506db752b9 Mon Sep 17 00:00:00 2001 From: roramc Date: Mon, 30 Aug 2021 14:34:10 +0530 Subject: [PATCH 6/6] fixing prettier check --- .../2020-08-15-preview/HybridCompute.json | 50 +++++++++---------- .../examples/MachineAssessPatches.json | 24 ++++----- .../examples/MachineInstallPatches.json | 6 +-- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json index 95992b17d831..9646a9f08c28 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json @@ -260,7 +260,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/assessPatches": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/assessPatches": { "post": { "tags": [ "machines" @@ -1138,8 +1138,8 @@ } } }, - "MachineAssessPatchesResult": { - "type": "object", + "MachineAssessPatchesResult": { + "type": "object", "properties": { "status": { "type": "string", @@ -1177,13 +1177,13 @@ "format": "date-time", "description": "The UTC timestamp when the operation began." }, - "lastModifiedDateTime": { + "lastModifiedDateTime": { "type": "string", "readOnly": true, "format": "date-time", "description": "The UTC timestamp when the operation finished." }, - "startedBy": { + "startedBy": { "type": "string", "readOnly": true, "enum": [ @@ -1196,16 +1196,16 @@ }, "description": "Indicates if operation was triggered by user or by platform." }, - "patchServiceUsed": { + "patchServiceUsed": { "type": "string", "readOnly": true, "enum": [ "Unknown", "WU", - "WU_WSUS", - "YUM", - "APT", - "Zypper" + "WU_WSUS", + "YUM", + "APT", + "Zypper" ], "x-ms-enum": { "name": "PatchServiceUsed", @@ -1213,7 +1213,7 @@ }, "description": "Specifies the patch service used for the operation." }, - "osType": { + "osType": { "type": "string", "readOnly": true, "enum": [ @@ -1234,8 +1234,8 @@ }, "description": "Describes the properties of an AssessPatches result." }, - "AvailablePatchCountByClassification": { - "type": "object", + "AvailablePatchCountByClassification": { + "type": "object", "properties": { "security": { "readOnly": true, @@ -1295,7 +1295,7 @@ "description": "Summarization of patches available for installation on the machine by classification." }, "MachineInstallPatchesParameters": { - "type": "object", + "type": "object", "properties": { "maximumDuration": { "type": "string", @@ -1330,7 +1330,7 @@ "description": "Input for InstallPatches as directly received by the API" }, "WindowsParameters": { - "type": "object", + "type": "object", "properties": { "classificationsToInclude": { "type": "array", @@ -1380,7 +1380,7 @@ "description": "Input for InstallPatches on a Windows VM, as directly received by the API" }, "LinuxParameters": { - "type": "object", + "type": "object", "properties": { "classificationsToInclude": { "type": "array", @@ -1416,7 +1416,7 @@ "description": "Input for InstallPatches on a Linux VM, as directly received by the API" }, "MachineInstallPatchesResult": { - "type": "object", + "type": "object", "properties": { "status": { "type": "string", @@ -1497,13 +1497,13 @@ "format": "date-time", "description": "The UTC timestamp when the operation began." }, - "lastModifiedDateTime": { + "lastModifiedDateTime": { "type": "string", "readOnly": true, "format": "date-time", "description": "The UTC timestamp when the operation finished." }, - "startedBy": { + "startedBy": { "type": "string", "readOnly": true, "enum": [ @@ -1516,16 +1516,16 @@ }, "description": "Indicates if operation was triggered by user or by platform." }, - "patchServiceUsed": { + "patchServiceUsed": { "type": "string", "readOnly": true, "enum": [ "Unknown", "WU", - "WU_WSUS", - "YUM", - "APT", - "Zypper" + "WU_WSUS", + "YUM", + "APT", + "Zypper" ], "x-ms-enum": { "name": "PatchServiceUsed", @@ -1533,7 +1533,7 @@ }, "description": "Specifies the patch service used for the operation." }, - "osType": { + "osType": { "type": "string", "readOnly": true, "enum": [ diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineAssessPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineAssessPatches.json index 31f574f0189c..6550b2c57f1f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineAssessPatches.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineAssessPatches.json @@ -13,18 +13,18 @@ "rebootPending": true, "startDateTime": "2021-08-22T02:15:20.9340000Z", "lastModifiedDateTime": "2021-08-22T02:16:06.9740000Z", - "availablePatchCountByClassification": { - "security": 0, - "updateRollup": 1, - "featurePack": 0, - "servicePack": 0, - "definition": 0, - "critical": 0, - "updates": 1, - "tools": 0 - }, - "startedBy": "User", - "osType": "Windows", + "availablePatchCountByClassification": { + "security": 0, + "updateRollup": 1, + "featurePack": 0, + "servicePack": 0, + "definition": 0, + "critical": 0, + "updates": 1, + "tools": 0 + }, + "startedBy": "User", + "osType": "Windows", "errorDetails": null } }, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json index c94fa079c406..f4d141118db8 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2020-08-15-preview/examples/MachineInstallPatches.json @@ -29,9 +29,9 @@ "installedPatchCount": 3, "failedPatchCount": 0, "startDateTime": "2021-08-22T02:15:06.9740000Z", - "lastModifiedDateTime": "2021-08-22T02:16:06.9740000Z", - "startedBy": "User", - "osType": "Windows", + "lastModifiedDateTime": "2021-08-22T02:16:06.9740000Z", + "startedBy": "User", + "osType": "Windows", "errorDetails": null } },