Skip to content

Commit

Permalink
Cumulative changes to DeviceUpdate (Azure#13457)
Browse files Browse the repository at this point in the history
* Update readme.go.md

* Update deviceupdate.json

* Update deviceupdate.json

* Update deviceupdate.json
  • Loading branch information
abatishchev authored and mkarmark committed Jul 20, 2021
1 parent 2b81896 commit bae94d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand All @@ -71,45 +71,6 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/instances": {
"get": {
"description": "Returns instances for the given account name.",
"operationId": "Instances_ListBySubscription",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/AccountNameParameter"
}
],
"responses": {
"200": {
"description": "List of Instances.",
"schema": {
"$ref": "#/definitions/InstanceList"
}
},
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Get list of Instances by Account": {
"$ref": "./examples/Instances/Instances_ListByAccount.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts": {
"get": {
"description": "Returns list of Accounts.",
Expand All @@ -135,7 +96,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -178,7 +139,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -228,7 +189,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -272,7 +233,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -318,7 +279,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -361,7 +322,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -406,7 +367,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -459,7 +420,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -506,7 +467,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -555,7 +516,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -585,7 +546,7 @@
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "#/definitions/ErrorDefinition"
}
}
},
Expand Down Expand Up @@ -746,43 +707,16 @@
"resourceId"
]
},
"ErrorResponse": {
"ErrorDefinition": {
"description": "Error response indicates that the service is not able to process the incoming request.",
"properties": {
"code": {
"description": "Error status code.",
"type": "string",
"readOnly": true
},
"error": {
"$ref": "#/definitions/ErrorDefinition",
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
"description": "Error details.",
"readOnly": true
}
}
},
"ErrorDefinition": {
"description": "Error definition.",
"properties": {
"code": {
"description": "Error status code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "Error message.",
"type": "string",
"readOnly": true
},
"details": {
"description": "Error details.",
"type": "array",
"items": {
"$ref": "#/definitions/ErrorDefinition"
}
}
}
},
"AccountUpdate": {
"description": "Request payload used to update and existing Accounts.",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion specification/deviceupdate/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ These settings apply only when `--go` is specified on the command line.

```yaml $(go)
go:
license-header: MICROSOFT_MIT_NO_VERSION
license-header: MICROSOFT_APACHE_NO_VERSION
clear-output-folder: true
```
Expand Down

0 comments on commit bae94d8

Please sign in to comment.