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

Add PATCH API example to hanaonazure #4949

Merged
merged 4 commits into from
Dec 22, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -4,7 +4,7 @@
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"hanaInstanceName": "myHanaInstance",
"hanaInstancePatchTagsParameter": {
"tagsParameter": {
"tags": { "testkey": "testvalue"}
AprilZhaoWY marked this conversation as resolved.
Show resolved Hide resolved
}
},
Expand All @@ -20,7 +20,7 @@
},
"properties": {
"hanaInstanceId": "00000000-0000-0000-0000-000000000000",
"powerState": "restarting",
"powerState": "started",
"hardwareProfile": {
"hardwareType": "Cisco_UCS",
"hanaInstanceSize": "S72"
Expand All @@ -44,5 +44,5 @@
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
AprilZhaoWY marked this conversation as resolved.
Show resolved Hide resolved
"parameters": {
"api-version": "2017-11-03-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"hanaInstanceName": "myHanaInstance",
"tagsParameter": {
"tags": {}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance",
"name": "myHanaInstance",
"type": "Microsoft.HanaOnAzure/hanaInstances",
"location": "westus",
"tags": {},
"properties": {
"hanaInstanceId": "00000000-0000-0000-0000-000000000000",
"powerState": "started",
"hardwareProfile": {
"hardwareType": "Cisco_UCS",
"hanaInstanceSize": "S72"
},
"networkProfile": {
"networkInterfaces": [
{
"ipAddress": "100.100.100.100"
}
],
"circuitId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit"
},
"storageProfile": {
"nfsIpAddress": "200.200.200.200"
},
"osProfile": {
"computerName": "myComputerName",
"osType": "SUSE",
"version": "12 SP1"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,12 @@
"summary": "Patches the Tags field of a SAP HANA instance.",
"description": "Patches the Tags field of a SAP HANA instance for the specified subscription, resource group, and instance name.",
"x-ms-examples": {
"Get properties of a HANA instance": {
"Update Tags field of a HANA instance": {
"$ref": "./examples/HanaInstances_PatchTags.json"
}
},
"Delete Tags field of a HANA instance": {
"$ref": "./examples/HanaInstances_PatchTags_Delete.json"
}
},
"parameters": [
{
Expand All @@ -220,7 +223,7 @@
"$ref": "#/parameters/HanaInstanceNameParameter"
},
{
"$ref": "#/parameters/HanaInstancePatchTagsParameter"
"$ref": "#/parameters/TagsParameter"
}
],
"responses": {
Expand Down Expand Up @@ -591,19 +594,6 @@
"type": "string"
}
}
},
"Tags": {
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Tags field of the HANA instance."
}
},
"description": "Tags field of the HANA instance."
}
},
"parameters": {
Expand Down Expand Up @@ -637,14 +627,14 @@
"type": "string",
"description": "Client API version."
},
"HanaInstancePatchTagsParameter": {
"name": "hanaInstancePatchTagsParameter",
"TagsParameter": {
"name": "tagsParameter",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Tags"
"$ref": "#/definitions/Resource/properties/tags"
},
"description": "Request body that contains the new Tags field for the HANA instance",
"description": "Request body that only contains the new Tags field",
"x-ms-parameter-location": "method"
}
}
Expand Down