Skip to content

Commit

Permalink
Fix some swagger correctness for AppPlatform (Azure#13927)
Browse files Browse the repository at this point in the history
* Fix some swagger correctness for AppPlatform

* Format with prettier

* Fix swagger correctness in other versions
  • Loading branch information
gavinfish authored and mkarmark committed Jul 20, 2021
1 parent f5be0d7 commit 871d67e
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2470,23 +2470,43 @@
"properties": {
"serviceRuntimeSubnetId": {
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"appSubnetId": {
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"serviceCidr": {
"description": "Azure Spring Cloud service reserved CIDR",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"serviceRuntimeNetworkResourceGroup": {
"description": "Name of the resource group containing network resources of Azure Spring Cloud Service Runtime",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"appNetworkResourceGroup": {
"description": "Name of the resource group containing network resources of Azure Spring Cloud Apps",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"outboundIPs": {
"description": "Desired outbound IP resources for Azure Spring Cloud instance.",
Expand Down Expand Up @@ -2818,11 +2838,16 @@
},
"fqdn": {
"description": "Fully qualified dns Name.",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"httpsOnly": {
"description": "Indicate if only https is allowed.",
"type": "boolean"
"type": "boolean",
"default": false
},
"createdTime": {
"format": "date-time",
Expand All @@ -2832,7 +2857,8 @@
},
"temporaryDisk": {
"$ref": "#/definitions/TemporaryDisk",
"description": "Temporary disk settings"
"description": "Temporary disk settings",
"default": "/tmp"
},
"persistentDisk": {
"$ref": "#/definitions/PersistentDisk",
Expand Down Expand Up @@ -3369,6 +3395,7 @@
},
"runtimeVersion": {
"description": "Runtime version",
"default": "Java_8",
"enum": [
"Java_8",
"Java_11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3057,23 +3057,43 @@
"properties": {
"serviceRuntimeSubnetId": {
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"appSubnetId": {
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"serviceCidr": {
"description": "Azure Spring Cloud service reserved CIDR",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"serviceRuntimeNetworkResourceGroup": {
"description": "Name of the resource group containing network resources of Azure Spring Cloud Service Runtime",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"appNetworkResourceGroup": {
"description": "Name of the resource group containing network resources of Azure Spring Cloud Apps",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"outboundIPs": {
"description": "Desired outbound IP resources for Azure Spring Cloud instance.",
Expand Down Expand Up @@ -3404,11 +3424,16 @@
},
"fqdn": {
"description": "Fully qualified dns Name.",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"httpsOnly": {
"description": "Indicate if only https is allowed.",
"type": "boolean"
"type": "boolean",
"default": false
},
"createdTime": {
"format": "date-time",
Expand All @@ -3418,15 +3443,17 @@
},
"temporaryDisk": {
"$ref": "#/definitions/TemporaryDisk",
"description": "Temporary disk settings"
"description": "Temporary disk settings",
"default": "/tmp"
},
"persistentDisk": {
"$ref": "#/definitions/PersistentDisk",
"description": "Persistent disk settings"
},
"enableEndToEndTLS": {
"description": "Indicate if end to end TLS is enabled.",
"type": "boolean"
"type": "boolean",
"default": false
}
}
},
Expand Down Expand Up @@ -3952,6 +3979,7 @@
},
"runtimeVersion": {
"description": "Runtime version",
"default": "Java_8",
"enum": [
"Java_8",
"Java_11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3033,23 +3033,43 @@
"properties": {
"serviceRuntimeSubnetId": {
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"appSubnetId": {
"description": "Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"serviceCidr": {
"description": "Azure Spring Cloud service reserved CIDR",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"serviceRuntimeNetworkResourceGroup": {
"description": "Name of the resource group containing network resources of Azure Spring Cloud Service Runtime",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"appNetworkResourceGroup": {
"description": "Name of the resource group containing network resources of Azure Spring Cloud Apps",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"outboundIPs": {
"description": "Desired outbound IP resources for Azure Spring Cloud instance.",
Expand Down Expand Up @@ -3380,11 +3400,16 @@
},
"fqdn": {
"description": "Fully qualified dns Name.",
"type": "string"
"type": "string",
"x-ms-mutability": [
"create",
"read"
]
},
"httpsOnly": {
"description": "Indicate if only https is allowed.",
"type": "boolean"
"type": "boolean",
"default": false
},
"createdTime": {
"format": "date-time",
Expand All @@ -3394,7 +3419,8 @@
},
"temporaryDisk": {
"$ref": "#/definitions/TemporaryDisk",
"description": "Temporary disk settings"
"description": "Temporary disk settings",
"default": "/tmp"
},
"persistentDisk": {
"$ref": "#/definitions/PersistentDisk",
Expand Down Expand Up @@ -3924,6 +3950,7 @@
},
"runtimeVersion": {
"description": "Runtime version",
"default": "Java_8",
"enum": [
"Java_8",
"Java_11",
Expand Down

0 comments on commit 871d67e

Please sign in to comment.