Skip to content

Commit

Permalink
Add Capabilities to stable version, Modify ApplicationType and Access…
Browse files Browse the repository at this point in the history
…Mode to Enum.

In order to be consistent with the response from RP side, add suppression for DefinitionsPropertiesNamesCamelCase
  • Loading branch information
Zhenyu Zhou committed Jul 25, 2019
1 parent 20c172b commit a22cf02
Show file tree
Hide file tree
Showing 8 changed files with 3,190 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,14 @@
"accessModes": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"enum": [
"WebPage"
],
"x-ms-enum": {
"name": "ApplicationHttpsEndpointAccessMode",
"modelAsString": true
}
},
"description": "The list of access modes for the application."
},
Expand All @@ -250,6 +257,14 @@
"type": "integer",
"format": "int32",
"description": "The public port to connect to."
},
"subDomainSuffix": {
"type": "string",
"description": "The subdomain suffix of the application."
},
"disableGatewayAuth": {
"type": "boolean",
"description": "Disable gateway authentication."
}
}
},
Expand Down Expand Up @@ -316,7 +331,15 @@
},
"applicationType": {
"type": "string",
"description": "The application type."
"description": "The application type.",
"enum": [
"CustomApplication",
"RServer"
],
"x-ms-enum": {
"name": "ApplicationType",
"modelAsString": true
}
},
"applicationState": {
"readOnly": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
]
}
],
"provisioningState": "",
"applicationType": "CustomApplication",
"errors": []
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2743,6 +2743,8 @@
"VMSIZES_AUX"
],
"quota": {
"cores_used": 0,
"max_cores_allowed": 3000,
"regionalQuotas": [
{
"region_name": "Australia East",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@
"type": "string"
}
}
}
},
"readOnly": true
},
"VersionsCapability": {
"description": "The version capability.",
Expand All @@ -187,7 +188,8 @@
"$ref": "#/definitions/VersionSpec"
}
}
}
},
"readOnly": true
},
"RegionsCapability": {
"description": "The regions capability.",
Expand All @@ -199,7 +201,8 @@
"type": "string"
}
}
}
},
"readOnly": true
},
"VmSizesCapability": {
"description": "The virtual machine sizes capability.",
Expand All @@ -211,7 +214,8 @@
"type": "string"
}
}
}
},
"readOnly": true
},
"VmSizeCompatibilityFilter": {
"description": "The virtual machine type compatibility filter.",
Expand Down Expand Up @@ -255,7 +259,8 @@
"type": "string"
}
}
}
},
"readOnly": true
},
"RegionalQuotaCapability": {
"description": "The regional quota capacity.",
Expand All @@ -270,23 +275,35 @@
"format": "int64"
},
"cores_available": {
"description": "The number of courses available in the region.",
"description": "The number of cores available in the region.",
"type": "integer",
"format": "int64"
}
}
},
"readOnly": true
},
"QuotaCapability": {
"description": "The regional quota capability.",
"properties": {
"cores_used": {
"description": "The number of cores used in the subscription.",
"type": "integer",
"format": "int64"
},
"max_cores_allowed": {
"description": "The number of cores that the subscription allowed.",
"type": "integer",
"format": "int64"
},
"regionalQuotas": {
"description": "The list of region quota capabilities.",
"type": "array",
"items": {
"$ref": "#/definitions/RegionalQuotaCapability"
}
}
}
},
"readOnly": true
},
"CapabilitiesResult": {
"description": "The Get Capabilities operation response.",
Expand Down Expand Up @@ -330,7 +347,8 @@
"description": "The quota capability.",
"$ref": "#/definitions/QuotaCapability"
}
}
},
"readOnly": true
},
"LocalizedName": {
"description": "The details about the localizable name of a type of usage.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,14 @@
"accessModes": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"enum": [
"WebPage"
],
"x-ms-enum": {
"name": "ApplicationHttpsEndpointAccessMode",
"modelAsString": true
}
},
"description": "The list of access modes for the application."
},
Expand All @@ -253,7 +260,7 @@
},
"subDomainSuffix": {
"type": "string",
"description": "The subDomainSuffix of the application."
"description": "The subdomain suffix of the application."
},
"disableGatewayAuth": {
"type": "boolean",
Expand Down Expand Up @@ -324,7 +331,15 @@
},
"applicationType": {
"type": "string",
"description": "The application type."
"description": "The application type.",
"enum": [
"CustomApplication",
"RServer"
],
"x-ms-enum": {
"name": "ApplicationType",
"modelAsString": true
}
},
"applicationState": {
"readOnly": true,
Expand Down
Loading

0 comments on commit a22cf02

Please sign in to comment.