Skip to content

Commit

Permalink
Added support for HEAD to Accounts, Instances of DeviceUpdate (Azure#…
Browse files Browse the repository at this point in the history
…14099)

* Update deviceupdate.json

* Add files via upload

* Add files via upload
  • Loading branch information
abatishchev authored May 7, 2021
1 parent ca33ae7 commit 3f1e770
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,40 @@
}
}
},
"head": {
"description": "Checks whether account exists.",
"operationId": "Accounts_Head",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/AccountNameParameter"
}
],
"responses": {
"200": {
"description": "Account exists."
},
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Checks whether account exists": {
"$ref": "./examples/Accounts/Accounts_Head.json"
}
}
},
"put": {
"description": "Creates or updates Account.",
"operationId": "Accounts_Create",
Expand Down Expand Up @@ -317,13 +351,13 @@
],
"responses": {
"200": {
"description": "Account was updated successfully.",
"description": "Account updated successfully.",
"schema": {
"$ref": "#/definitions/Account"
}
},
"201": {
"description": "Account was updated successfully.",
"description": "Async operation to update accounts was created.",
"schema": {
"$ref": "#/definitions/Account"
}
Expand Down Expand Up @@ -390,7 +424,7 @@
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/instances/{instanceName}": {
"get": {
"description": "Returns instances for the given account and instance name.",
"description": "Returns instance details for the given instance and account name.",
"operationId": "Instances_Get",
"parameters": [
{
Expand Down Expand Up @@ -429,6 +463,43 @@
}
}
},
"head": {
"description": "Checks whether instance exists.",
"operationId": "Instances_Head",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/AccountNameParameter"
},
{
"$ref": "#/parameters/InstanceNameParameter"
}
],
"responses": {
"200": {
"description": "Instance exists."
},
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Checks whether instance exists.": {
"$ref": "./examples/Instances/Instances_Head.json"
}
}
},
"put": {
"description": "Creates or updates instance.",
"operationId": "Instances_Create",
Expand Down Expand Up @@ -560,7 +631,7 @@
],
"responses": {
"200": {
"description": "Instance was updated successfully.",
"description": "Instance updated successfully.",
"schema": {
"$ref": "#/definitions/Instance"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"api-version": "2020-03-01-preview"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"instanceName": "blue",
"api-version": "2020-03-01-preview"
},
"responses": {
"200": {}
}
}

0 comments on commit 3f1e770

Please sign in to comment.