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

feat(Workspace): Add new SkuType for Workspace #28903

Merged
Show file tree
Hide file tree
Changes from all 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 @@ -44,6 +44,9 @@
"x-ms-examples": {
"ApiManagementCreateStandardGateway": {
"$ref": "./examples/ApiManagementCreateStandardGateway.json"
},
"ApiManagementCreateWorkspacePremiumGateway": {
"$ref": "./examples/ApiManagementCreateWorkspacePremiumGateway.json"
}
},
"parameters": [
Expand Down Expand Up @@ -241,7 +244,7 @@
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateway": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways": {
"get": {
"tags": [
"ApiManagementGateway"
Expand Down Expand Up @@ -283,7 +286,7 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/gateway": {
"/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/gateways": {
"get": {
"tags": [
"ApiManagementGateway"
Expand Down Expand Up @@ -321,6 +324,52 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}/skus": {
"get": {
"tags": [
"ApiManagementGatewaySkus"
],
"summary": "Gets available SKUs for API Management gateway",
"description": "Gets all available SKU for a given API Management gateway",
"operationId": "ApiManagementGatewaySkus_ListAvailableSkus",
"x-ms-examples": {
"ApiManagementListSKUs-Gateways": {
"$ref": "./examples/ApiManagementListSKUs-Gateways.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/GatewayNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Success. The response describes the list of SKUs.",
"schema": {
"$ref": "#/definitions/GatewayResourceSkuResults"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
Expand All @@ -334,7 +383,9 @@
"url": "https://azure.microsoft.com/en-us/pricing/details/api-management/"
},
"enum": [
"Standard"
"Standard",
"WorkspaceGatewayStandard",
"WorkspaceGatewayPremium"
],
"x-ms-enum": {
"name": "SkuType",
Expand All @@ -343,6 +394,14 @@
{
"value": "Standard",
"description": "Standard SKU of the API gateway."
},
{
"value": "WorkspaceGatewayStandard",
"description": "Standard SKU of the API gateway to be used in Workspaces."
},
{
"value": "WorkspaceGatewayPremium",
"description": "Premium SKU of the API gateway to be used in Workspaces."
}
]
}
Expand Down Expand Up @@ -442,6 +501,33 @@
"configurationApi": {
"$ref": "#/definitions/GatewayConfigurationApi",
"description": "Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU."
},
"virtualNetworkType": {
"type": "string",
"description": "The type of VPN in which API Management gateway needs to be configured in. ",
"enum": [
"None",
"External",
"Internal"
],
"x-ms-enum": {
"name": "VirtualNetworkType",
"modelAsString": true,
"values": [
{
"value": "None",
"description": "The API Management gateway is not part of any Virtual Network."
},
{
"value": "External",
"description": "The API Management gateway is part of Virtual Network and it is accessible from Internet."
},
{
"value": "Internal",
"description": "The API Management gateway is part of Virtual Network and it is only accessible from within the virtual network."
}
]
}
}
},
"description": "Base Properties of an API Management gateway resource description."
Expand Down Expand Up @@ -476,7 +562,9 @@
"url": "https://azure.microsoft.com/en-us/pricing/details/api-management/"
},
"enum": [
"Standard"
"Standard",
"WorkspaceGatewayStandard",
"WorkspaceGatewayPremium"
],
"x-ms-enum": {
"name": "SkuType",
Expand All @@ -485,6 +573,14 @@
{
"value": "Standard",
"description": "Standard SKU of the API gateway."
},
{
"value": "WorkspaceGatewayStandard",
"description": "Standard SKU of the API gateway to be used in Workspaces."
},
{
"value": "WorkspaceGatewayPremium",
"description": "Premium SKU of the API gateway to be used in Workspaces."
}
]
}
Expand All @@ -510,7 +606,9 @@
"url": "https://azure.microsoft.com/en-us/pricing/details/api-management/"
},
"enum": [
"Standard"
"Standard",
"WorkspaceGatewayStandard",
"WorkspaceGatewayPremium"
],
"x-ms-enum": {
"name": "SkuType",
Expand All @@ -519,6 +617,14 @@
{
"value": "Standard",
"description": "Standard SKU of the API gateway."
},
{
"value": "WorkspaceGatewayStandard",
"description": "Standard SKU of the API gateway to be used in Workspaces."
},
{
"value": "WorkspaceGatewayPremium",
"description": "Premium SKU of the API gateway to be used in Workspaces."
}
]
}
Expand Down Expand Up @@ -627,6 +733,103 @@
}
],
"description": "Parameter supplied to Update API Management gateway."
},
"GatewayResourceSkuResults": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/GatewayResourceSkuResult"
},
"x-ms-identifiers": [
"resourceType",
"sku/name"
],
"description": "The list of skus available for the gateway."
},
"nextLink": {
"type": "string",
"description": "The uri to fetch the next page of API Management gateway Skus."
}
},
"required": [
"value"
],
"description": "The API Management gateway SKUs operation response."
},
"GatewayResourceSkuResult": {
"type": "object",
"properties": {
"resourceType": {
"readOnly": true,
"type": "string",
"description": "The type of resource the SKU applies to."
},
"sku": {
"$ref": "#/definitions/GatewaySku",
"readOnly": true,
"description": "Specifies API Management gateway SKU."
},
"capacity": {
"$ref": "#/definitions/GatewaySkuCapacity",
"readOnly": true,
"description": "Specifies the number of API Management gateway units."
}
},
"description": "Describes an available API Management gateway SKU."
},
"GatewaySkuCapacity": {
"type": "object",
"properties": {
"minimum": {
"type": "integer",
"readOnly": true,
"format": "int32",
"description": "The minimum capacity."
},
"maximum": {
"type": "integer",
"readOnly": true,
"format": "int32",
"description": "The maximum capacity that can be set."
},
"default": {
"type": "integer",
"readOnly": true,
"format": "int32",
"description": "The default capacity."
},
"scaleType": {
"type": "string",
"readOnly": true,
"description": "The scale type applicable to the sku.",
"enum": [
"Automatic",
"Manual",
"None"
],
"x-ms-enum": {
"name": "GatewaySkuCapacityScaleType",
"modelAsString": true,
"values": [
{
"value": "Automatic",
"description": "Supported scale type automatic."
},
{
"value": "Manual",
"description": "Supported scale type manual."
},
{
"value": "None",
"description": "Scaling not supported."
}
]
}
}
},
"description": "Describes scaling information of a SKU."
}
},
"parameters": {}
Expand Down
Loading