|
199 | 199 | "summary": "Create or update the metadata of an Azure Percept account.", |
200 | 200 | "description": "Create or update the metadata of an Azure Percept account. Performs a full replacement of the editable properties.", |
201 | 201 | "operationId": "Accounts_CreateOrUpdate", |
| 202 | + "x-ms-long-running-operation": true, |
| 203 | + "x-ms-long-running-operation-options": { |
| 204 | + "final-state-via": "azure-async-operation" |
| 205 | + }, |
202 | 206 | "x-ms-examples": { |
203 | 207 | "Accounts_CreateOrUpdate": { |
204 | 208 | "$ref": "./examples/Accounts_CreateOrUpdate.json" |
|
228 | 232 | } |
229 | 233 | ], |
230 | 234 | "responses": { |
| 235 | + "201": { |
| 236 | + "description": "The resource was created or updated successfully.", |
| 237 | + "schema": { |
| 238 | + "$ref": "#/definitions/Account" |
| 239 | + } |
| 240 | + }, |
231 | 241 | "200": { |
232 | 242 | "description": "The resource was created or updated successfully.", |
233 | 243 | "schema": { |
|
249 | 259 | "summary": "Partially update an existing Azure Percept account", |
250 | 260 | "description": "Partially update an existing Azure Percept account.", |
251 | 261 | "operationId": "Accounts_Update", |
| 262 | + "x-ms-long-running-operation": true, |
| 263 | + "x-ms-long-running-operation-options": { |
| 264 | + "final-state-via": "azure-async-operation" |
| 265 | + }, |
252 | 266 | "x-ms-examples": { |
253 | 267 | "Accounts_Update": { |
254 | 268 | "$ref": "./examples/Accounts_Update.json" |
|
278 | 292 | } |
279 | 293 | ], |
280 | 294 | "responses": { |
| 295 | + "202": { |
| 296 | + "description": "Azure Percept account was successfully updated", |
| 297 | + "schema": { |
| 298 | + "$ref": "#/definitions/Account" |
| 299 | + } |
| 300 | + }, |
281 | 301 | "200": { |
282 | 302 | "description": "Azure Percept account was successfully updated", |
283 | 303 | "schema": { |
|
1532 | 1552 | ], |
1533 | 1553 | "summary": "Create a new solutionInstance in the Azure Percept account under a specific name or update an existing one.", |
1534 | 1554 | "operationId": "SolutionInstances_CreateOrUpdate", |
| 1555 | + "x-ms-long-running-operation": true, |
| 1556 | + "x-ms-long-running-operation-options": { |
| 1557 | + "final-state-via": "azure-async-operation" |
| 1558 | + }, |
1535 | 1559 | "x-ms-examples": { |
1536 | 1560 | "SolutionInstances_CreateOrUpdate": { |
1537 | 1561 | "$ref": "./examples/SolutionInstances_CreateOrUpdate.json" |
|
1564 | 1588 | } |
1565 | 1589 | ], |
1566 | 1590 | "responses": { |
| 1591 | + "201": { |
| 1592 | + "description": "The SolutionInstance was successfully created or updated in the account.", |
| 1593 | + "schema": { |
| 1594 | + "$ref": "#/definitions/SolutionInstance" |
| 1595 | + } |
| 1596 | + }, |
1567 | 1597 | "200": { |
1568 | 1598 | "description": "The SolutionInstance was successfully created or updated in the account.", |
1569 | 1599 | "schema": { |
|
1584 | 1614 | ], |
1585 | 1615 | "summary": "Partially update an existing solutionInstance inside an Azure Percept account.", |
1586 | 1616 | "operationId": "SolutionInstances_Update", |
| 1617 | + "x-ms-long-running-operation": true, |
| 1618 | + "x-ms-long-running-operation-options": { |
| 1619 | + "final-state-via": "azure-async-operation" |
| 1620 | + }, |
1587 | 1621 | "x-ms-examples": { |
1588 | 1622 | "SolutionInstances_Update": { |
1589 | 1623 | "$ref": "./examples/SolutionInstances_Update.json" |
|
1616 | 1650 | } |
1617 | 1651 | ], |
1618 | 1652 | "responses": { |
| 1653 | + "202": { |
| 1654 | + "description": "The SolutionInstance inside the Azure Percept account was successfully updated.", |
| 1655 | + "schema": { |
| 1656 | + "$ref": "#/definitions/SolutionInstance" |
| 1657 | + } |
| 1658 | + }, |
1619 | 1659 | "200": { |
1620 | 1660 | "description": "The SolutionInstance inside the Azure Percept account was successfully updated.", |
1621 | 1661 | "schema": { |
|
1636 | 1676 | ], |
1637 | 1677 | "summary": "Delete a solutionInstance from an Azure Percept account.", |
1638 | 1678 | "operationId": "SolutionInstances_Delete", |
| 1679 | + "x-ms-long-running-operation": true, |
| 1680 | + "x-ms-long-running-operation-options": { |
| 1681 | + "final-state-via": "azure-async-operation" |
| 1682 | + }, |
1639 | 1683 | "x-ms-examples": { |
1640 | 1684 | "SolutionInstances_Delete": { |
1641 | 1685 | "$ref": "./examples/SolutionInstances_Delete.json" |
|
1659 | 1703 | } |
1660 | 1704 | ], |
1661 | 1705 | "responses": { |
| 1706 | + "202": { |
| 1707 | + "description": "The SolutionInstance was successfully deleted." |
| 1708 | + }, |
1662 | 1709 | "200": { |
1663 | 1710 | "description": "The SolutionInstance was successfully deleted." |
1664 | 1711 | }, |
|
1674 | 1721 | } |
1675 | 1722 | } |
1676 | 1723 | }, |
1677 | | - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePercept/accounts/{accountName}/solutioninstances/{solutionInstanceName}/deploy": { |
1678 | | - "post": { |
1679 | | - "tags": [ |
1680 | | - "POST" |
1681 | | - ], |
1682 | | - "summary": "Deploy SolutionInstance.", |
1683 | | - "operationId": "SolutionInstancesAction_Deploy", |
1684 | | - "x-ms-examples": { |
1685 | | - "SolutionInstancesAction_Deploy": { |
1686 | | - "$ref": "./examples/SolutionInstancesAction_Deploy.json" |
1687 | | - } |
1688 | | - }, |
1689 | | - "parameters": [ |
1690 | | - { |
1691 | | - "$ref": "#/parameters/api-version" |
1692 | | - }, |
1693 | | - { |
1694 | | - "$ref": "#/parameters/subscriptionId" |
1695 | | - }, |
1696 | | - { |
1697 | | - "$ref": "#/parameters/resourceGroupName" |
1698 | | - }, |
1699 | | - { |
1700 | | - "$ref": "#/parameters/accountName" |
1701 | | - }, |
1702 | | - { |
1703 | | - "$ref": "#/parameters/solutionInstanceName" |
1704 | | - } |
1705 | | - ], |
1706 | | - "responses": { |
1707 | | - "200": { |
1708 | | - "description": "The action was successfully executed.", |
1709 | | - "schema": { |
1710 | | - "$ref": "#/definitions/SolutionInstanceStatus" |
1711 | | - } |
1712 | | - }, |
1713 | | - "default": { |
1714 | | - "description": "Error response describing why the operation failed.", |
1715 | | - "schema": { |
1716 | | - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" |
1717 | | - } |
1718 | | - } |
1719 | | - } |
1720 | | - } |
1721 | | - }, |
1722 | 1724 | "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePercept/checkNameAvailability": { |
1723 | 1725 | "post": { |
1724 | 1726 | "tags": [ |
|
1795 | 1797 | "description": "Operation name: {provider}/{resource}/{read | write | action | delete}." |
1796 | 1798 | }, |
1797 | 1799 | "isDataAction": { |
1798 | | - "description": "Indicates whether the operation is a data action", |
1799 | | - "type": "boolean" |
| 1800 | + "description": "Indicates whether the operation is a data action. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.", |
| 1801 | + "type": "boolean", |
| 1802 | + "readOnly": true |
1800 | 1803 | }, |
1801 | 1804 | "display": { |
1802 | 1805 | "description": "The operation supported by Azure Percept.", |
|
2542 | 2545 | "description": "The user provided description.", |
2543 | 2546 | "type": "string" |
2544 | 2547 | }, |
| 2548 | + "desiredStatus": { |
| 2549 | + "$ref": "#/definitions/SolutionInstanceStatusDesired", |
| 2550 | + "description": "The desired status of the SolutionInstance resource." |
| 2551 | + }, |
2545 | 2552 | "configurations": { |
2546 | 2553 | "description": "Component configurations.", |
2547 | 2554 | "type": "array", |
|
2576 | 2583 | "description": "The user provided description.", |
2577 | 2584 | "type": "string" |
2578 | 2585 | }, |
2579 | | - "status": { |
| 2586 | + "reportedStatus": { |
2580 | 2587 | "$ref": "#/definitions/SolutionInstanceStatus", |
2581 | | - "description": "The status of the SolutionInstance resource." |
| 2588 | + "description": "The current status of the SolutionInstance resource." |
| 2589 | + }, |
| 2590 | + "desiredStatus": { |
| 2591 | + "$ref": "#/definitions/SolutionInstanceStatusDesired", |
| 2592 | + "description": "The desired status of the SolutionInstance resource." |
2582 | 2593 | }, |
2583 | 2594 | "accounts": { |
2584 | 2595 | "type": "array", |
|
2681 | 2692 | } |
2682 | 2693 | } |
2683 | 2694 | }, |
| 2695 | + "SolutionInstanceStatusDesired": { |
| 2696 | + "description": "Metadata pertaining to desired deployment status of the SolutionInstance.", |
| 2697 | + "type": "object", |
| 2698 | + "readOnly": false, |
| 2699 | + "properties": { |
| 2700 | + "code": { |
| 2701 | + "type": "string", |
| 2702 | + "description": "The desired status code.", |
| 2703 | + "enum": [ |
| 2704 | + "Active", |
| 2705 | + "Inactive" |
| 2706 | + ], |
| 2707 | + "x-ms-enum": { |
| 2708 | + "name": "code", |
| 2709 | + "modelAsString": true, |
| 2710 | + "values": [ |
| 2711 | + { |
| 2712 | + "value": "Active", |
| 2713 | + "description": "Solution instance desired deployment status - Active." |
| 2714 | + }, |
| 2715 | + { |
| 2716 | + "value": "Inactive", |
| 2717 | + "description": "Solution instance desired deployment status - Inactive." |
| 2718 | + } |
| 2719 | + ] |
| 2720 | + } |
| 2721 | + } |
| 2722 | + } |
| 2723 | + }, |
2684 | 2724 | "SolutionInstanceStatus": { |
2685 | 2725 | "description": "Metadata pertaining to deployment status of the SolutionInstance.", |
2686 | 2726 | "type": "object", |
|
2690 | 2730 | "type": "string", |
2691 | 2731 | "description": "The status code.", |
2692 | 2732 | "enum": [ |
2693 | | - "Created", |
2694 | | - "Success", |
2695 | | - "Failed", |
2696 | | - "InProgress" |
| 2733 | + "Active", |
| 2734 | + "Inactive", |
| 2735 | + "Failed" |
2697 | 2736 | ], |
2698 | 2737 | "x-ms-enum": { |
2699 | 2738 | "name": "code", |
2700 | 2739 | "modelAsString": true, |
2701 | 2740 | "values": [ |
2702 | 2741 | { |
2703 | | - "value": "Created", |
2704 | | - "description": "Solution instance deployment status - Created." |
| 2742 | + "value": "Active", |
| 2743 | + "description": "Solution instance deployment status - Active." |
2705 | 2744 | }, |
2706 | 2745 | { |
2707 | | - "value": "Success", |
2708 | | - "description": "Solution instance deployment status - Success." |
| 2746 | + "value": "Inactive", |
| 2747 | + "description": "Solution instance deployment status - Inactive." |
2709 | 2748 | }, |
2710 | 2749 | { |
2711 | 2750 | "value": "Failed", |
2712 | 2751 | "description": "Solution instance deployment status - Failed." |
2713 | | - }, |
2714 | | - { |
2715 | | - "value": "InProgress", |
2716 | | - "description": "Solution instance deployment status - InProgress." |
2717 | 2752 | } |
2718 | 2753 | ] |
2719 | 2754 | } |
|
0 commit comments