diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/WindowsIotServices.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/WindowsIotServices.json new file mode 100644 index 000000000000..1f2ed9feabea --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/WindowsIotServices.json @@ -0,0 +1,680 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-02-16-preview", + "title": "DeviceServices", + "description": "Use this API to manage the Windows IoT device services in your Azure subscription." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.WindowsIoT/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available Windows IoT Services REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/OperationsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName}": { + "get": { + "tags": [ + "DeviceServices" + ], + "description": "Get the non-security related metadata of a Windows IoT Device Service.", + "operationId": "Services_Get", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeviceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Services_GetProperties": { + "$ref": "./examples/Service_GetProperties.json" + } + } + }, + "put": { + "tags": [ + "DeviceServices" + ], + "summary": "Create or update the metadata of a Windows IoT Device Service.", + "description": "Create or update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.", + "operationId": "Services_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeviceNameParameter" + }, + { + "name": "deviceService", + "in": "body", + "description": "The Windows IoT Device Service metadata and security metadata.", + "required": true, + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. Required to update an existing Windows IoT Device Service." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Service_Create": { + "$ref": "./examples/Service_Create.json" + } + } + }, + "patch": { + "tags": [ + "DeviceServices" + ], + "summary": "Updates the metadata of a Windows IoT Device Service.", + "description": "Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.", + "operationId": "Services_Update", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeviceNameParameter" + }, + { + "name": "deviceService", + "in": "body", + "description": "The Windows IoT Device Service metadata and security metadata.", + "required": true, + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to update an existing Windows IoT Device Service." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Service_Update": { + "$ref": "./examples/Service_Update.json" + } + } + }, + "delete": { + "tags": [ + "DeviceServices" + ], + "description": "Delete a Windows IoT Device Service.", + "operationId": "Services_Delete", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeviceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Service_Delete": { + "$ref": "./examples/Service_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices": { + "get": { + "tags": [ + "DeviceServices" + ], + "description": "Get all the IoT hubs in a resource group.", + "operationId": "Services_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceServiceDescriptionListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Service_ListByResourceGroup": { + "$ref": "./examples/Service_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices": { + "get": { + "tags": [ + "DeviceServices" + ], + "description": "Get all the IoT hubs in a subscription.", + "operationId": "Services_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceServiceDescriptionListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Service_List": { + "$ref": "./examples/Service_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability": { + "post": { + "tags": [ + "CheckDeviceServiceNameAvailability" + ], + "description": "Check if a Windows IoT Device Service name is available.", + "operationId": "Services_CheckDeviceServiceNameAvailability", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "deviceServiceCheckNameAvailabilityParameters", + "in": "body", + "description": "Set the name parameter in the DeviceServiceCheckNameAvailabilityParameters structure to the name of the Windows IoT Device Service to check.", + "required": true, + "schema": { + "$ref": "#/definitions/DeviceServiceCheckNameAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceServiceNameAvailabilityInfo" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Service_CheckNameAvailability": { + "$ref": "./examples/Service_CheckNameAvailability.json" + } + } + } + } + }, + "definitions": { + "DeviceServiceProperties": { + "description": "The properties of a Windows IoT Device Service.", + "type": "object", + "properties": { + "notes": { + "description": "Windows IoT Device Service notes.", + "type": "string" + }, + "startDate": { + "description": "Windows IoT Device Service start date,", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "quantity": { + "description": "Windows IoT Device Service device allocation,", + "type": "integer", + "format": "int64" + }, + "billingDomainName": { + "description": "Windows IoT Device Service ODM AAD domain", + "type": "string", + "readOnly": true + }, + "adminDomainName": { + "description": "Windows IoT Device Service OEM AAD domain", + "type": "string" + } + } + }, + "DeviceService": { + "description": "The description of the Windows IoT Device Service.", + "type": "object", + "properties": { + "etag": { + "description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.", + "type": "string" + }, + "properties": { + "description": "The properties of a Windows IoT Device Service.", + "$ref": "#/definitions/DeviceServiceProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "Resource": { + "description": "The core properties of ARM resources", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The Azure Region where the resource lives" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "ProxyResource": { + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "OperationListResult": { + "description": "Result of the request to list Windows IoT Device Service operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of Windows IoT Device Service operations supported by the Microsoft.WindowsIoT resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/OperationEntity" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "OperationEntity": { + "description": "The operation supported by Azure Data Catalog Service.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplayInfo", + "description": "The operation supported by Azure Data Catalog Service." + } + } + }, + "OperationDisplayInfo": { + "description": "The operation supported by Azure Data Catalog Service.", + "type": "object", + "properties": { + "description": { + "description": "The description of the operation.", + "type": "string" + }, + "operation": { + "description": "The action that users can perform, based on their permission level.", + "type": "string" + }, + "provider": { + "description": "Service provider: Azure Data Catalog Service.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed.", + "type": "string" + } + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "One of a server-defined set of error codes.", + "type": "string" + }, + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + }, + "target": { + "description": "The target of the particular error.", + "type": "string" + }, + "details": { + "description": "A human-readable representation of the error's details.", + "type": "string" + } + } + }, + "DeviceServiceDescriptionListResult": { + "description": "The JSON-serialized array of DeviceService objects with a next link.", + "type": "object", + "properties": { + "value": { + "description": "The array of DeviceService objects.", + "type": "array", + "items": { + "$ref": "#/definitions/DeviceService" + } + }, + "nextLink": { + "description": "The next link.", + "type": "string", + "readOnly": true + } + } + }, + "DeviceServiceCheckNameAvailabilityParameters": { + "description": "Input values.", + "type": "object", + "properties": { + "name": { + "description": "The name of the Windows IoT Device Service to check.", + "type": "string" + } + }, + "required": [ + "name" + ] + }, + "DeviceServiceNameAvailabilityInfo": { + "description": "The properties indicating whether a given Windows IoT Device Service name is available.", + "type": "object", + "properties": { + "nameAvailable": { + "description": "The value which indicates whether the provided name is available.", + "type": "boolean", + "readOnly": true + }, + "reason": { + "description": "The reason for unavailability.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "serviceNameUnavailabilityReason", + "modelAsString": false + } + }, + "message": { + "description": "The detailed reason message.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The subscription identifier.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The version of the API.", + "required": true, + "type": "string" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "description": "The name of the resource group that contains the Windows IoT Device Service.", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DeviceNameParameter": { + "name": "deviceName", + "in": "path", + "description": "The name of the Windows IoT Device Service.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/OperationsList.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/OperationsList.json new file mode 100644 index 000000000000..bd7fbb7da7a7 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/OperationsList.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2018-02-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.WindowsIoT/Services/write", + "display": { + "provider": "Windows IoT", + "resource": "Windows IoT Services", + "operation": "Create/Update Windows IoT Subscription", + "description": "Creates a Windows IoT Subscription with the specified parameters or update the properties or tags or adds custom domain for the specified Windows IoT Subscription." + } + }, + { + "name": "Microsoft.WindowsIoT/Services/delete", + "display": { + "provider": "Windows IoT", + "resource": "Windows IoT Services", + "operation": "Delete Windows IoT Subscription", + "description": "Deletes an existing Windows IoT Subscription." + } + }, + { + "name": "Microsoft.WindowsIoT/checkNameAvailability/read", + "display": { + "provider": "Windows IoT", + "resource": "Name Availability", + "operation": "Check Name Availability", + "description": "Checks that account name is valid and is not in use." + } + }, + { + "name": "Microsoft.WindowsIoT/Services/read", + "display": { + "provider": "Windows IoT", + "resource": "Windows IoT Services", + "operation": "List/Get Windows IoT Subscription(s)", + "description": "Returns the list of Windows IoT Services or gets the properties for the specified Windows IoT Subscription." + } + }, + { + "name": "Microsoft.WindowsIoT/operations/read", + "display": { + "provider": "Windows IoT", + "resource": "Operations", + "operation": "Poll Asynchronous Operation", + "description": "Polls the status of an asynchronous operation." + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_CheckNameAvailability.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_CheckNameAvailability.json new file mode 100644 index 000000000000..5e262a63b387 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_CheckNameAvailability.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "api-version": "2018-02-16-preview", + "deviceServiceCheckNameAvailabilityParameters": { + "name": "service3363" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Create.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Create.json new file mode 100644 index 000000000000..c91d9ff160eb --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Create.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "resourceGroupName": "res9101", + "deviceName": "service4445", + "api-version": "2018-02-16-preview", + "deviceService": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "quantity": 1000000 + } + }, + "responses": { + "200": { + "body": { + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Delete.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Delete.json new file mode 100644 index 000000000000..854d399ca3a0 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "resourceGroupName": "res4228", + "deviceName": "service2434", + "api-version": "2018-02-16-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_GetProperties.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_GetProperties.json new file mode 100644 index 000000000000..432bbd85ed8e --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_GetProperties.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e", + "resourceGroupName": "res9407", + "deviceName": "service8596", + "api-version": "2018-02-16-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res9407/providers/Microsoft.WindowsIoT/Services/service8596", + "name": "service8596", + "location": "westus", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_List.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_List.json new file mode 100644 index 000000000000..877b619f071e --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_List.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "api-version": "2018-02-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/res2627/providers/Microsoft.WindowsIoT/Services/service1125", + "name": "service1125", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/testcmk3/providers/Microsoft.WindowsIoT/Services/service3699", + "name": "service3699", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/testcmk3/providers/Microsoft.WindowsIoT/Services/service6637", + "name": "service6637", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/res8186/providers/Microsoft.WindowsIoT/Services/service834", + "name": "service834", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/testcmk3/providers/Microsoft.WindowsIoT/Services/service9174", + "name": "service9174", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_ListByResourceGroup.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_ListByResourceGroup.json new file mode 100644 index 000000000000..0e4ce008ab1e --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "resourceGroupName": "res6117", + "api-version": "2018-02-16-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/res6117/providers/Microsoft.WindowsIoT/Services/service4036", + "name": "service4036", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/res6117/providers/Microsoft.WindowsIoT/Services/service4452", + "name": "service4452", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Update.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Update.json new file mode 100644 index 000000000000..b93d6efcd79f --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/examples/Service_Update.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e", + "resourceGroupName": "res9407", + "deviceName": "service8596", + "api-version": "2018-02-16-preview", + "deviceService": { + "notes": "blah", + "quantity": 1000000 + }, + "monitor": "true" + }, + "responses": { + "200": { + "body": { + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "location": "westus", + "type": "Microsoft.WindowsIoT/Services" + } + } + } +} \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/readme.md b/specification/windowsiot/resource-manager/readme.md new file mode 100644 index 000000000000..eb82567de728 --- /dev/null +++ b/specification/windowsiot/resource-manager/readme.md @@ -0,0 +1,42 @@ +# Services + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Services. + + + +--- +## Getting Started +To build the SDK for Services, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + + + +### Basic Information +These are the global settings for the Services API. + +``` yaml +openapi-type: arm +tag: package-2018-02 +``` + +### Tag: package-2018-02 + +These settings apply only when `--tag=package-2018-02` is specified on the command line. + +``` yaml $(tag) == 'package-2018-02' +input-file: +- Microsoft.WindowsIoT/preview/2018-02-16-preview/WindowsIotServices.json +``` + +--- +# Code Generation