diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_GetSkus.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_GetSkus.json new file mode 100644 index 000000000000..00530693fb06 --- /dev/null +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_GetSkus.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-10-01-preview", + "subscriptionId": "56b5e0a9-b645-407d-99b0-c64f86013e3d", + "resourceGroupName": "sjrg3276", + "jobName": "sj7804" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "Microsoft.StreamAnalytics/streamingjobs", + "sku": { + "name": "Standard" + }, + "capacity": { + "minimum": 1, + "maximum": 192, + "default": 3, + "allowedValues": [ + 1, + 3, + 6, + 12, + 18, + 24 + ], + "scaleType": "automatic" + } + } + ] + } + } + } +} diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_Expand.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_Expand.json index 66305bed1ea8..2d0b6453fb6a 100644 --- a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_Expand.json +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_Expand.json @@ -21,6 +21,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_NoExpand.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_NoExpand.json index 58b772536edd..d83837181eba 100644 --- a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_NoExpand.json +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_NoExpand.json @@ -20,6 +20,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_Expand.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_Expand.json index 38f14e0cd586..675a264dd9c3 100644 --- a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_Expand.json +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_Expand.json @@ -19,6 +19,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" @@ -105,6 +109,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_NoExpand.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_NoExpand.json index 483c9aa1f466..0ab4063846cf 100644 --- a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_NoExpand.json +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_NoExpand.json @@ -18,6 +18,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" @@ -45,6 +49,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_Expand.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_Expand.json index 5d0799d35929..60c337f33d0d 100644 --- a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_Expand.json +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_Expand.json @@ -18,6 +18,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" @@ -104,6 +108,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_NoExpand.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_NoExpand.json index ea892df0f193..2dd731f7a274 100644 --- a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_NoExpand.json +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_NoExpand.json @@ -17,6 +17,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" @@ -44,6 +48,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Update.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Update.json index 4cfc36d60fbe..e8c8779e932e 100644 --- a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Update.json +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Update.json @@ -26,6 +26,10 @@ "randomKey": "randomValue", "key3": "value3" }, + "sku": { + "name": "Standard", + "capacity": 36 + }, "properties": { "sku": { "name": "Standard" diff --git a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/streamingjobs.json b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/streamingjobs.json index 55fcf3c27d72..e02ca0292590 100644 --- a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/streamingjobs.json +++ b/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/streamingjobs.json @@ -571,6 +571,51 @@ }, "x-ms-long-running-operation": true } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/skus": { + "get": { + "tags": [ + "StreamingJobs" + ], + "operationId": "Sku_List", + "description": "Gets a list of available SKUs about the specified streaming job.", + "x-ms-examples": { + "Get valid SKUs list for the specified streaming job": { + "$ref": "./examples/StreamingJob_GetSkus.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/StreamingJobNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the valid SKUs for the specified streaming job.", + "schema": { + "$ref": "#/definitions/GetStreamingJobSkuResults" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } } }, "definitions": { @@ -584,7 +629,8 @@ "readOnly": true, "items": { "$ref": "#/definitions/Operation" - } + }, + "x-ms-identifiers": [] }, "nextLink": { "description": "URL to get the next set of operation list results if there are any.", @@ -644,6 +690,10 @@ } ], "properties": { + "sku": { + "description": "Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests.", + "$ref": "#/definitions/Sku" + }, "properties": { "$ref": "#/definitions/StreamingJobProperties", "description": "The properties that are associated with a streaming job. Required on PUT (CreateOrReplace) requests.", @@ -818,6 +868,11 @@ "name": "SkuName", "modelAsString": true } + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The capacity of the SKU." } } }, @@ -1012,6 +1067,127 @@ "name": "UpdatableUdfRefreshType", "modelAsString": true } + }, + "GetStreamingJobSkuResults": { + "type": "object", + "description": "Result of the request to get streaming job SKUs.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GetStreamingJobSkuResult" + }, + "x-ms-identifiers": [], + "description": "The list of available SKUs that the streaming job can use." + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "GetStreamingJobSkuResult": { + "type": "object", + "description": "Describes an available SKU information.", + "properties": { + "resourceType": { + "readOnly": true, + "type": "string", + "description": "The type of resource the SKU applies to.", + "enum": [ + "Microsoft.StreamAnalytics/streamingjobs" + ], + "x-ms-enum": { + "name": "ResourceType", + "modelAsString": true + } + }, + "sku": { + "type": "object", + "description": "The properties that are associated with a SKU.", + "readOnly": true, + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU.", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + } + } + }, + "capacity": { + "$ref": "#/definitions/SkuCapacity" + } + } + }, + "SkuCapacity": { + "type": "object", + "description": "Describes scaling information of a SKU.", + "readOnly": true, + "properties": { + "minimum": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "Specifies the minimum streaming units that the streaming job can use." + }, + "maximum": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "Specifies the maximum streaming units that the streaming job can use." + }, + "default": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "Specifies the default streaming units that the streaming job can use." + }, + "scaleType": { + "type": "string", + "readOnly": true, + "description": "The scale type applicable to the SKU.", + "enum": [ + "automatic", + "manual", + "none" + ], + "x-ms-enum": { + "name": "SkuCapacityScaleType", + "modelAsString": true, + "values": [ + { + "value": "automatic", + "description": "Supported scale type automatic." + }, + { + "value": "manual", + "description": "Supported scale type manual." + }, + { + "value": "none", + "description": "Scaling not supported." + } + ] + } + }, + "allowedValues": { + "type": "array", + "description": "Specifies the valid streaming units a streaming job can scale to.", + "readOnly": true, + "items": { + "type": "integer", + "format": "int32", + "description": "Specifies the number of streaming units that the streaming job can use." + } + } + } } } }