Skip to content

Commit

Permalink
CodeGen from PR 12317 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Correct swagger spec for error responses. (#12317)

* Correct swagger spec for error responses.

* Fix example file for SAP monitor create to use
the correct casing.

* Remove read-only setting from
most of HanaInstance properties.

* Fix remaining model validation failures.

* One more property to fix

* Resource object should have read-only
properties. Must fix the example code.

* Remove read-only properties from example file

* Fix error from prettier
  • Loading branch information
SDKAuto committed Jan 15, 2021
1 parent 77650ab commit 4695b42
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 3 deletions.
193 changes: 191 additions & 2 deletions schemas/2017-11-03-preview/Microsoft.HanaOnAzure.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@
],
"description": "Describes the properties of a HANA instance."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource tags"
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -75,6 +90,21 @@
],
"description": "Describes the properties of a SAP monitor."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource tags"
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -116,6 +146,10 @@
"HanaInstanceProperties": {
"type": "object",
"properties": {
"hanaInstanceId": {
"type": "string",
"description": "Specifies the HANA instance unique ID."
},
"hardwareProfile": {
"oneOf": [
{
Expand All @@ -127,6 +161,10 @@
],
"description": "Specifies the hardware settings for the HANA instance."
},
"hwRevision": {
"type": "string",
"description": "Hardware revision of a HANA instance"
},
"networkProfile": {
"oneOf": [
{
Expand All @@ -153,6 +191,49 @@
"type": "string",
"description": "ARM ID of another HanaInstance that will share a network with this HanaInstance"
},
"powerState": {
"oneOf": [
{
"type": "string",
"enum": [
"starting",
"started",
"stopping",
"stopped",
"restarting",
"unknown"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource power state."
},
"provisioningState": {
"oneOf": [
{
"type": "string",
"enum": [
"Accepted",
"Creating",
"Updating",
"Failed",
"Succeeded",
"Deleting",
"Migrating"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "State of provisioning of the HanaInstance."
},
"proximityPlacementGroup": {
"type": "string",
"description": "Resource proximity placement group"
},
"storageProfile": {
"oneOf": [
{
Expand All @@ -169,7 +250,79 @@
},
"HardwareProfile": {
"type": "object",
"properties": {},
"properties": {
"hanaInstanceSize": {
"oneOf": [
{
"type": "string",
"enum": [
"S72m",
"S144m",
"S72",
"S144",
"S192",
"S192m",
"S192xm",
"S96",
"S112",
"S224",
"S224m",
"S224om",
"S224oo",
"S224oom",
"S224ooo",
"S384",
"S384m",
"S384xm",
"S384xxm",
"S448",
"S448m",
"S448om",
"S448oo",
"S448oom",
"S448ooo",
"S576m",
"S576xm",
"S672",
"S672m",
"S672om",
"S672oo",
"S672oom",
"S672ooo",
"S768",
"S768m",
"S768xm",
"S896",
"S896m",
"S896om",
"S896oo",
"S896oom",
"S896ooo",
"S960m"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the HANA instance SKU."
},
"hardwareType": {
"oneOf": [
{
"type": "string",
"enum": [
"Cisco_UCS",
"HPE"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Name of the hardware type (vendor and/or their product name)."
}
},
"description": "Specifies the hardware settings for the HANA instance."
},
"IpAddress": {
Expand All @@ -185,6 +338,10 @@
"NetworkProfile": {
"type": "object",
"properties": {
"circuitId": {
"type": "string",
"description": "Specifies the circuit id for connecting to express route."
},
"networkInterfaces": {
"oneOf": [
{
Expand All @@ -209,9 +366,17 @@
"type": "string",
"description": "Specifies the host OS name of the HANA instance."
},
"osType": {
"type": "string",
"description": "This property allows you to specify the type of the OS."
},
"sshPublicKey": {
"type": "string",
"description": "Specifies the SSH public key used to access the operating system."
},
"version": {
"type": "string",
"description": "Specifies version of operating system."
}
},
"description": "Specifies the operating system settings for the HANA instance."
Expand Down Expand Up @@ -284,13 +449,37 @@
"logAnalyticsWorkspaceSharedKey": {
"type": "string",
"description": "The shared key of the log analytics workspace that is used for monitoring"
},
"provisioningState": {
"oneOf": [
{
"type": "string",
"enum": [
"Accepted",
"Creating",
"Updating",
"Failed",
"Succeeded",
"Deleting",
"Migrating"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "State of provisioning of the HanaInstance."
}
},
"description": "Describes the properties of a SAP monitor."
},
"StorageProfile": {
"type": "object",
"properties": {
"nfsIpAddress": {
"type": "string",
"description": "IP Address to connect to storage."
},
"osDisks": {
"oneOf": [
{
Expand All @@ -309,4 +498,4 @@
"description": "Specifies the storage settings for the HANA instance disks."
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2020-02-07-preview/Microsoft.HanaOnAzure.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,4 @@
"description": "Microsoft.HanaOnAzure/sapMonitors/providerInstances"
}
}
}
}

0 comments on commit 4695b42

Please sign in to comment.