Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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 @@ -2159,6 +2159,60 @@
}
}
}
},
"/skus/Spring": {
"get": {
"tags": [
"AppPlatform"
],
"operationId": "Sku_ListServiceSku",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ResourceTypeSkuCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/skus/Spring/apps/deployments": {
"get": {
"tags": [
"AppPlatform"
],
"operationId": "Sku_ListDeploymentSku",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ResourceTypeSkuCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
Expand All @@ -2175,6 +2229,10 @@
"$ref": "#/definitions/ClusterResourceProperties",
"description": "Properties of the Service resource",
"x-ms-client-flatten": false
},
"sku": {
"$ref": "#/definitions/Sku",
"description": "Sku of the Service resource"
}
}
},
Expand Down Expand Up @@ -2267,6 +2325,28 @@
}
}
},
"Sku": {
"description": "Sku of Azure Spring Cloud",
"required": [
"name"
],
"type": "object",
"properties": {
"name": {
"description": "Name of the Sku",
"type": "string"
},
"tier": {
"description": "Tier of the Sku",
"type": "string"
},
"capacity": {
"format": "int32",
"description": "Current capacity of the target resource",
"type": "integer"
}
}
},
"ConfigServerProperties": {
"description": "Config server git properties payload",
"type": "object",
Expand Down Expand Up @@ -3403,6 +3483,112 @@
}
}
},
"ResourceTypeSkuCollection": {
"description": "Collection of supported Skus of Azure Spring Cloud resources",
"type": "object",
"properties": {
"value": {
"description": "Collection of supported Skus",
"uniqueItems": false,
"type": "array",
"items": {
"$ref": "#/definitions/ResourceTypeSku"
}
}
}
},
"ResourceTypeSku": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ResourceTypeSku" [](start = 4, length = 17)

this is the private contract definition (between your RP and ARM), not the public definition. See specification\datamigration\resource-manager\Microsoft.DataMigration\preview\2017-11-15-preview\definitions\ResourceSkus.json for an example of the public definition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pilor , thanks. Added ResourceSku in swagger. Please review it.

"description": "Supported Skus of Azure Spring Cloud resources",
"type": "object",
"properties": {
"resourceType": {
"description": "Resource type",
"type": "string"
},
"skus": {
"description": "Supported Skus",
"uniqueItems": false,
"type": "array",
"items": {
"$ref": "#/definitions/SkuSetting"
}
}
}
},
"SkuSetting": {
"description": "Supported Sku settings of Azure Spring Cloud",
"required": [
"name"
],
"type": "object",
"properties": {
"name": {
"description": "Name of the Sku",
"type": "string"
},
"tier": {
"description": "Tier of the Sku",
"type": "string"
},
"locations": {
"description": "Locations of the Sku",
"uniqueItems": false,
"type": "array",
"items": {
"type": "string"
}
},
"requiredFeatures": {
"description": "Required features of the Sku",
"uniqueItems": false,
"type": "array",
"items": {
"type": "string"
}
},
"capacity": {
"$ref": "#/definitions/SkuCapacity",
"description": "Capacity of the SKU"
}
}
},
"SkuCapacity": {
"description": "The SKU capacity",
"required": [
"minimum"
],
"type": "object",
"properties": {
"minimum": {
"format": "int32",
"description": "Gets or sets the minimum.",
"type": "integer"
},
"maximum": {
"format": "int32",
"description": "Gets or sets the maximum.",
"type": "integer"
},
"default": {
"format": "int32",
"description": "Gets or sets the default.",
"type": "integer"
},
"scaleType": {
"description": "Gets or sets the type of the scale.",
"enum": [
"None",
"Manual",
"Automatic"
],
"type": "string",
"x-ms-enum": {
"name": "SkuScaleType",
"modelAsString": true
}
}
}
},
"CloudError": {
"description": "An error response from the service.",
"properties": {
Expand Down Expand Up @@ -3531,4 +3717,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
}
},
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down Expand Up @@ -53,6 +57,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down Expand Up @@ -85,6 +93,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
}
},
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down Expand Up @@ -53,6 +57,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down Expand Up @@ -85,6 +93,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
"sku": {
"name": "P0",
"tier": "Premium"
},
"location": "eastus",
"tags": {
"key1": "value1"
Expand Down