diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/compute.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/compute.json index eeddd52c8a4f..64cab531ab1d 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/compute.json @@ -1892,6 +1892,104 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items":{ + "get": { + "tags": [ + "InGuestResource" + ], + "operationId": "VirtualMachines_ListInGuestSoftwareItems", + "description": "Lists all of the In-Guest software items of virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of items.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/InGuestSoftwareItemsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get the InGuest software items.": { + "$ref": "./examples/ListInGuestSoftwareItems.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items/{itemId}":{ + "get": { + "tags": [ + "InGuestResource" + ], + "operationId": "VirtualMachines_GetInGuestSoftwareItem", + "description": "Get the In-Guest software item of the virtual machine in the specified subscription", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "name": "itemId", + "in": "path", + "required": true, + "type": "string", + "description": "Identifier of the In-Guest resource type." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/InGuestSoftwareItem" + } + } + }, + "x-ms-examples": { + "Get an InGuest software item.": { + "$ref": "./examples/GetInGuestSoftwareItem.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}": { "put": { "tags": [ @@ -5730,6 +5828,58 @@ } }, "description": "Operation status response" + }, + "InGuestSoftwareItemsListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/InGuestSoftwareItem" + }, + "description": "The list of InGuest software items on the VM." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "The uri to fetch the next page of InGuest software items on the VM. Call ListNext() with this to fetch the next page of items." + } + }, + "description": "The List of Software items operation response." + }, + "InGuestSoftwareItemProperties": { + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "Specifies the name of the software." + }, + "version": { + "type": "string", + "readOnly": true, + "description": "Specifies the version of the software." + }, + "publisher": { + "type": "string", + "readOnly": true, + "description": "Specifies the publisher of the software." + } + }, + "description": "Describes the properties of an InGuest software item." + }, + "InGuestSoftwareItem": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/InGuestSoftwareItemProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a InGuest software item." } }, "parameters": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/examples/GetInGuestSoftwareItem.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/examples/GetInGuestSoftwareItem.json new file mode 100644 index 000000000000..e7ff102140bb --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/examples/GetInGuestSoftwareItem.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVirtualMachine", + "itemId": "myItemId", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items/{itemId}", + "name": "myItemId", + "type": "Microsoft.Compute/virtualMachines/guestResourceTypes/items", + "location": "West US", + "properties": { + "name": "Microsoft Visual Studio Code", + "version": "1.25.1", + "publisher": "Microsoft Corporation" + } + } + } + } + } \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/examples/ListInGuestSoftwareItems.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/examples/ListInGuestSoftwareItems.json new file mode 100644 index 000000000000..13cf595983f2 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2016-04-30-preview/examples/ListInGuestSoftwareItems.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVirtualMachine", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items/itemId1", + "name": "itemId1", + "type": "Microsoft.Compute/virtualMachines/guestResourceTypes/items", + "location": "West US", + "properties": { + "name": "Microsoft Visual Studio Code", + "version": "1.25.1", + "publisher": "Microsoft Corporation" + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items/itemId1", + "name": "itemId1", + "type": "Microsoft.Compute/virtualMachines/guestResourceTypes/items", + "location": "West US", + "properties": { + "name": "Microsoft SQL Server 2016 LocalDB", + "version": "13.1.4001.0", + "publisher": "Microsoft Corporation" + } + } + ] + } + } + } + } \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json index 2595134a2830..a882ed2bd928 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json @@ -2177,6 +2177,104 @@ "x-ms-long-running-operation": true } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items":{ + "get": { + "tags": [ + "InGuestResource" + ], + "operationId": "VirtualMachines_ListInGuestSoftwareItems", + "description": "Lists all of the In-Guest software items of virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of items.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/InGuestSoftwareItemsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get the InGuest software items.": { + "$ref": "./examples/ListInGuestSoftwareItems.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items/{itemId}":{ + "get": { + "tags": [ + "InGuestResource" + ], + "operationId": "VirtualMachines_GetInGuestSoftwareItem", + "description": "Get the In-Guest software item of the virtual machine in the specified subscription", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "name": "itemId", + "in": "path", + "required": true, + "type": "string", + "description": "Identifier of the In-Guest resource type." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/InGuestSoftwareItem" + } + } + }, + "x-ms-examples": { + "Get an InGuest software item.": { + "$ref": "./examples/GetInGuestSoftwareItem.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}": { "put": { "tags": [ @@ -8209,6 +8307,59 @@ } }, "description": "LogAnalytics output properties" + }, + "InGuestSoftwareItemsListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/InGuestSoftwareItem" + }, + "description": "The list of InGuest software items on the VM." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "The uri to fetch the next page of InGuest software items on the VM. Call ListNext() with this to fetch the next page of items." + } + }, + "description": "The List of Software items operation response." + }, + "InGuestSoftwareItemProperties": { + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "Specifies the name of the software." + }, + "version": { + "type": "string", + "readOnly": true, + "description": "Specifies the version of the software." + }, + "publisher": { + "type": "string", + "readOnly": true, + "description": "Specifies the publisher of the software." + } + }, + "description": "Describes the properties of an InGuest software item." + }, + "InGuestSoftwareItem": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/InGuestSoftwareItemProperties", + "description": "Describes the properties of an InGuest software item." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a InGuest software item." } }, "parameters": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInGuestSoftwareItem.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInGuestSoftwareItem.json new file mode 100644 index 000000000000..e7ff102140bb --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInGuestSoftwareItem.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVirtualMachine", + "itemId": "myItemId", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items/{itemId}", + "name": "myItemId", + "type": "Microsoft.Compute/virtualMachines/guestResourceTypes/items", + "location": "West US", + "properties": { + "name": "Microsoft Visual Studio Code", + "version": "1.25.1", + "publisher": "Microsoft Corporation" + } + } + } + } + } \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListInGuestSoftwareItems.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListInGuestSoftwareItems.json new file mode 100644 index 000000000000..13cf595983f2 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListInGuestSoftwareItems.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVirtualMachine", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items/itemId1", + "name": "itemId1", + "type": "Microsoft.Compute/virtualMachines/guestResourceTypes/items", + "location": "West US", + "properties": { + "name": "Microsoft Visual Studio Code", + "version": "1.25.1", + "publisher": "Microsoft Corporation" + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/guestResourceTypes/software/items/itemId1", + "name": "itemId1", + "type": "Microsoft.Compute/virtualMachines/guestResourceTypes/items", + "location": "West US", + "properties": { + "name": "Microsoft SQL Server 2016 LocalDB", + "version": "13.1.4001.0", + "publisher": "Microsoft Corporation" + } + } + ] + } + } + } + } \ No newline at end of file diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 4987669f317b..d2f48d2aca65 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -177,6 +177,12 @@ directive: suppress: - DefinitionsPropertiesNamesCamelCase + + - where: + - $.definitions.InGuestSoftwareItem + suppress: + - TrackedResourcePatchOperation + ``` ### Tag: package-2018-10-01