diff --git a/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/azureiidt.json b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/azureiidt.json index 4cafad1001b2..1342f954a918 100644 --- a/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/azureiidt.json +++ b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/azureiidt.json @@ -366,6 +366,299 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntelligentITDigitalTwin/digitalTwins/{iidtName}/assets/{assetName}": { + "put": { + "tags": [ + "ITDigitalTwinAssets" + ], + "operationId": "ITDigitalTwinAssets_CreateOrUpdate", + "description": "The operation to create or update a IT Digital Twin Asset.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "iidtName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin." + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin asset." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Asset" + }, + "description": "Parameters supplied to the Create it digital twin asset operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create an IT Digital Twin Asset": { + "$ref": "./examples/CreateAITDigitalTwinAsset.json" + } + } + }, + "patch": { + "tags": [ + "ITDigitalTwinAssets" + ], + "operationId": "ITDigitalTwinAsset_Update", + "description": "The operation to update a it digital twin asset.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "iidtName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin." + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin asset." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AssetPatch" + }, + "description": "Parameters supplied to the Update IT Digital Twin Asset operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update asset of an it digital twin": { + "$ref": "./examples/UpdateAITDigitalTwinAsset.json" + } + } + }, + "delete": { + "tags": [ + "ITDigitalTwinAssets" + ], + "operationId": "ITDigitalTwinAssets_Delete", + "description": "The operation to delete it digital twin asset .", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "iidtName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin." + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin asset." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete an IT Digital Twin Asset.": { + "$ref": "./examples/DeleteAITDigitalTwinAsset.json" + } + } + }, + "get": { + "tags": [ + "ITDigitalTwinAssets" + ], + "operationId": "ITDigitalTwinAssets_Get", + "description": "Retrieves information about the it digital twin asset", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "iidtName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin." + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin asset." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get an IT Digital Twin asset.": { + "$ref": "./examples/GetAITDigitalTwinAsset.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntelligentITDigitalTwin/digitalTwins/{iidtName}/assets": { + "get": { + "tags": [ + "ITDigitalTwinAssets" + ], + "operationId": "ITDigitalTwinAssets_List", + "description": "The operation to get all assets of a it digital twin.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "iidtName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the it digital twin." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Assets" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Assets": { + "$ref": "./examples/ListAllAssets.json" + } + } + } } }, "definitions": { @@ -478,6 +771,18 @@ "name": "isManaged", "modelAsString": true } + }, + "canAccess": { + "description": "Customer concent to allow services maintain enterprise credentials to access enterprise machines.", + "enum": [ + "True", + "False" + ], + "type": "string", + "x-ms-enum": { + "name": "canAccess", + "modelAsString": true + } } }, "description": "Describes the properties of a IT Digital Twin." @@ -628,6 +933,145 @@ } }, "description": "Enterprise is a testing environment which has several virtual machines on the cloud and several testing machines on-prem." + }, + "AssetProperties": { + "properties": { + "assetId": { + "type": "string", + "description": "ResourceId for the virtual machines." + }, + "assetRole": { + "description": "Role of an asset, including VMs on Azure and local test machine on-prem", + "enum": [ + "SCCM", + "AD", + "CS", + "DNS", + "TestVM" + ], + "type": "string", + "x-ms-enum": { + "name": "assetRole", + "modelAsString": true + } + }, + "assetStatus": { + "description": "Status of an asset", + "enum": [ + "Unknown", + "Available", + "Unavailable", + "Testing" + ], + "type": "string", + "x-ms-enum": { + "name": "assetStatus", + "modelAsString": true + } + } + }, + "description": "Describes the properties of an digitalTwins/assets." + }, + "Asset": { + "properties": { + "properties": { + "title": "Asset properties", + "description": "List the properties of IT Digital Twin Asset", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AssetProperties" + }, + "systemData": { + "$ref": "#/definitions/systemData", + "description": "The system data." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Asset including virtual machines and the on-prem test devices." + }, + "AssetPatch": { + "properties": { + "properties": { + "title": "Asset properties", + "description": "Properties of the child resource asset", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AssetProperties" + } + }, + "description": "Asset definition for patch operation" + }, + "Assets": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Asset" + }, + "description": "The list of asset" + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of asset." + } + }, + "description": "A list of asset." + }, + "systemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The type of identity that last modified the resource." + } + } } }, "parameters": { diff --git a/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/CreateAITDigitalTwinAsset.json b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/CreateAITDigitalTwinAsset.json new file mode 100644 index 000000000000..3a4e255b9f69 --- /dev/null +++ b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/CreateAITDigitalTwinAsset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "iidtName": "myIIDT", + "assetName": "myAsset", + "parameters": { + "location": "westeurope", + "properties": { + "assetId": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/Microsoft.Compute/virtualMachines/myAsset", + "assetRole": "SCCM", + "assetStatus": "Available" + } + }, + "api-version": "2020-11-01-privatepreview" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.IntelligentITDigitalTwin/digitalTwins/myIIDT/assets/myAsset", + "name": "myAsset", + "type": "Microsoft.IntelligentITDigitalTwin/digitalTwins/assets", + "location": "westeurope", + "properties": { + "assetId": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myAsset", + "assetRole": "SCCM", + "assetStatus": "Available" + } + } + } + } +} diff --git a/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/DeleteAITDigitalTwinAsset.json b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/DeleteAITDigitalTwinAsset.json new file mode 100644 index 000000000000..339b5e2af537 --- /dev/null +++ b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/DeleteAITDigitalTwinAsset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "iidtName": "myIIDT", + "assetName": "myAsset", + "parameters": {}, + "api-version": "2020-11-01-privatepreview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/GetAITDigitalTwinAsset.json b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/GetAITDigitalTwinAsset.json new file mode 100644 index 000000000000..cd16fbb950ad --- /dev/null +++ b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/GetAITDigitalTwinAsset.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "iidtName": "myIIDT", + "assetName": "myAsset", + "parameters": {}, + "api-version": "2020-11-01-privatepreview" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.IntelligentITDigitalTwin/digitalTwins/myIIDT/assets/myAsset", + "name": "myAsset", + "type": "Microsoft.IntelligentITDigitalTwin/digitalTwins/assets", + "location": "westus", + "properties": { + "assetId": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myAsset", + "assetRole": "SCCM", + "assetStatus": "Available" + } + } + } + } +} diff --git a/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/ListAllAssets.json b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/ListAllAssets.json new file mode 100644 index 000000000000..eab946ab6396 --- /dev/null +++ b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/ListAllAssets.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "iidtName": "myIIDT", + "api-version": "2020-11-01-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.IntelligentITDigitalTwin/digitalTwins/myIIDT/assets/vm1", + "name": "vm1", + "type": "Microsoft.IntelligentITDigitalTwin/digitalTwins/assets", + "location": "westus", + "properties": { + "assetId": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/vm1", + "assetRole": "SCCM", + "assetStatus": "Available" + } + }, + { + "id": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.IntelligentITDigitalTwin/digitalTwins/myIIDT/assets/vm2", + "name": "vm2", + "type": "Microsoft.IntelligentITDigitalTwin/digitalTwins/assets", + "location": "westus", + "properties": { + "assetId": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/vm2", + "assetRole": "SCCM", + "assetStatus": "Available" + } + } + ] + } + } + } +} diff --git a/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/UpdateAITDigitalTwinAsset.json b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/UpdateAITDigitalTwinAsset.json new file mode 100644 index 000000000000..61a632728169 --- /dev/null +++ b/specification/azureiidt/resource-manager/Microsoft.IntelligentITDigitalTwin/preview/2020-07-15-privatepreview/examples/UpdateAITDigitalTwinAsset.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "iidtName": "myIIDT", + "assetName": "myAsset", + "parameters": { + "properties": { + "assetId": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myAsset", + "assetRole": "SCCM", + "assetStatus": "Available" + } + }, + "api-version": "2020-11-01-privatepreview" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.IntelligentITDigitalTwin/digitalTwins/myIIDT/assets/myAsset", + "name": "myAsset", + "type": "Microsoft.IntelligentITDigitalTwin/digitalTwins/myAsset", + "location": "westus", + "properties": { + "assetId": "subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myAsset", + "assetRole": "SCCM", + "assetStatus": "Available" + } + } + } + } +} diff --git a/specification/azureiidt/resource-manager/readme.md b/specification/azureiidt/resource-manager/readme.md index a302ccd3f3e2..91118036f5e1 100644 --- a/specification/azureiidt/resource-manager/readme.md +++ b/specification/azureiidt/resource-manager/readme.md @@ -60,7 +60,6 @@ This is not used by Autorest itself. ```yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-python - - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-js - repo: azure-sdk-for-ruby