Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for HEAD to Accounts, Instances of DeviceUpdate #14099

Merged
merged 3 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": {}
}
}