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

{compute-recommender} Update the required parameters under spot-placement-recommender #624

Merged
merged 1 commit into from
Nov 25, 2024
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
@@ -1 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/locations/{}/placementscores/spot/generate", "version": "2024-06-01-preview", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvbG9jYXRpb25zL3tsb2NhdGlvbn0vcGxhY2VtZW50U2NvcmVzL3Nwb3QvZ2VuZXJhdGU=/V/MjAyNC0wNi0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "compute-recommender", "commands": [{"name": "spot-placement-recommender", "version": "2024-06-01-preview", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/locations/{}/placementscores/spot/generate", "version": "2024-06-01-preview", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvbG9jYXRpb25zL3tsb2NhdGlvbn0vcGxhY2VtZW50U2NvcmVzL3Nwb3QvZ2VuZXJhdGU=/V/MjAyNC0wNi0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true, "idPart": "name"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "SpotPlacementScoresInput", "args": [{"type": "boolean", "var": "$spotPlacementScoresInput.availabilityZones", "options": ["availability-zones"], "group": "SpotPlacementScoresInput", "help": {"short": "Defines if the scope is zonal or regional."}}, {"type": "integer32", "var": "$spotPlacementScoresInput.desiredCount", "options": ["desired-count"], "group": "SpotPlacementScoresInput", "help": {"short": "Desired instance count per region/zone based on the scope."}}, {"type": "array<string>", "var": "$spotPlacementScoresInput.desiredLocations", "options": ["desired-locations"], "group": "SpotPlacementScoresInput", "help": {"short": "The desired regions"}, "item": {"type": "string"}}, {"type": "array<object>", "var": "$spotPlacementScoresInput.desiredSizes", "options": ["desired-sizes"], "group": "SpotPlacementScoresInput", "help": {"short": "The desired resource SKUs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$spotPlacementScoresInput.desiredSizes[].sku", "options": ["sku"], "help": {"short": "The resource's CRP virtual machine SKU size."}}]}}]}], "operations": [{"operationId": "SpotPlacementScores_Post", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot/generate", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "location", "arg": "$Path.location", "required": true, "format": {"minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-06-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "spotPlacementScoresInput", "required": true, "props": [{"type": "boolean", "name": "availabilityZones", "arg": "$spotPlacementScoresInput.availabilityZones"}, {"type": "integer32", "name": "desiredCount", "arg": "$spotPlacementScoresInput.desiredCount"}, {"type": "array<string>", "name": "desiredLocations", "arg": "$spotPlacementScoresInput.desiredLocations", "item": {"type": "string"}}, {"type": "array<object>", "name": "desiredSizes", "arg": "$spotPlacementScoresInput.desiredSizes", "item": {"type": "object", "props": [{"type": "string", "name": "sku", "arg": "$spotPlacementScoresInput.desiredSizes[].sku"}]}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "boolean", "name": "availabilityZones"}, {"type": "integer32", "name": "desiredCount"}, {"type": "array<string>", "name": "desiredLocations", "item": {"type": "string"}}, {"type": "array<object>", "name": "desiredSizes", "item": {"type": "object", "props": [{"type": "string", "name": "sku"}]}}, {"type": "array<object>", "name": "placementScores", "item": {"type": "object", "props": [{"type": "string", "name": "availabilityZone"}, {"type": "boolean", "name": "isQuotaAvailable"}, {"type": "string", "name": "region"}, {"type": "string", "name": "score"}, {"type": "string", "name": "sku"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/locations/{}/placementscores/spot/generate", "version": "2024-06-01-preview", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvbG9jYXRpb25zL3tsb2NhdGlvbn0vcGxhY2VtZW50U2NvcmVzL3Nwb3QvZ2VuZXJhdGU=/V/MjAyNC0wNi0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "compute-recommender", "commands": [{"name": "spot-placement-recommender", "version": "2024-06-01-preview", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/locations/{}/placementscores/spot/generate", "version": "2024-06-01-preview", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvbG9jYXRpb25zL3tsb2NhdGlvbn0vcGxhY2VtZW50U2NvcmVzL3Nwb3QvZ2VuZXJhdGU=/V/MjAyNC0wNi0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true, "stage": "Preview", "group": "", "idPart": "name", "help": {"short": "the Azure region where the recommendation will be generated"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "stage": "Preview", "group": "", "idPart": "subscription", "help": {"short": "the Azure subscription ID to be used for the recommendation"}}]}, {"name": "SpotPlacementScoresInput", "args": [{"type": "boolean", "var": "$spotPlacementScoresInput.availabilityZones", "options": ["availability-zones"], "stage": "Preview", "group": "SpotPlacementScoresInput", "help": {"short": "Defines if the scope is zonal or regional."}}, {"type": "integer32", "var": "$spotPlacementScoresInput.desiredCount", "options": ["desired-count"], "required": true, "stage": "Preview", "group": "SpotPlacementScoresInput", "help": {"short": "Desired instance count per region/zone based on the scope."}}, {"type": "array<string>", "var": "$spotPlacementScoresInput.desiredLocations", "options": ["desired-locations"], "required": true, "stage": "Preview", "group": "SpotPlacementScoresInput", "help": {"short": "The desired regions"}, "item": {"type": "string"}}, {"type": "array<object>", "var": "$spotPlacementScoresInput.desiredSizes", "options": ["desired-sizes"], "required": true, "stage": "Preview", "group": "SpotPlacementScoresInput", "help": {"short": "The desired resource SKUs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$spotPlacementScoresInput.desiredSizes[].sku", "options": ["sku"], "help": {"short": "The resource's CRP virtual machine SKU size."}}]}}]}], "operations": [{"operationId": "SpotPlacementScores_Post", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot/generate", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "location", "arg": "$Path.location", "required": true, "format": {"minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-06-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "spotPlacementScoresInput", "required": true, "props": [{"type": "boolean", "name": "availabilityZones", "arg": "$spotPlacementScoresInput.availabilityZones"}, {"type": "integer32", "name": "desiredCount", "arg": "$spotPlacementScoresInput.desiredCount", "required": true}, {"type": "array<string>", "name": "desiredLocations", "arg": "$spotPlacementScoresInput.desiredLocations", "required": true, "item": {"type": "string"}}, {"type": "array<object>", "name": "desiredSizes", "arg": "$spotPlacementScoresInput.desiredSizes", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "sku", "arg": "$spotPlacementScoresInput.desiredSizes[].sku"}]}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "boolean", "name": "availabilityZones"}, {"type": "integer32", "name": "desiredCount"}, {"type": "array<string>", "name": "desiredLocations", "item": {"type": "string"}}, {"type": "array<object>", "name": "desiredSizes", "item": {"type": "object", "props": [{"type": "string", "name": "sku"}]}}, {"type": "array<object>", "name": "placementScores", "item": {"type": "object", "props": [{"type": "string", "name": "availabilityZone"}, {"type": "boolean", "name": "isQuotaAvailable"}, {"type": "string", "name": "region"}, {"type": "string", "name": "score"}, {"type": "string", "name": "sku"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,25 @@
<command name="spot-placement-recommender" version="2024-06-01-preview" confirmation="">
<resource id="/subscriptions/{}/providers/microsoft.compute/locations/{}/placementscores/spot/generate" version="2024-06-01-preview" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvbG9jYXRpb25zL3tsb2NhdGlvbn0vcGxhY2VtZW50U2NvcmVzL3Nwb3QvZ2VuZXJhdGU=/V/MjAyNC0wNi0wMS1wcmV2aWV3"/>
<argGroup name="">
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" idPart="name"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" stage="Preview" group="" idPart="name">
<help short="the Azure region where the recommendation will be generated"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" stage="Preview" group="" idPart="subscription">
<help short="the Azure subscription ID to be used for the recommendation"/>
</arg>
</argGroup>
<argGroup name="SpotPlacementScoresInput">
<arg type="boolean" var="$spotPlacementScoresInput.availabilityZones" options="availability-zones" group="SpotPlacementScoresInput">
<arg type="boolean" var="$spotPlacementScoresInput.availabilityZones" options="availability-zones" stage="Preview" group="SpotPlacementScoresInput">
<help short="Defines if the scope is zonal or regional."/>
</arg>
<arg type="integer32" var="$spotPlacementScoresInput.desiredCount" options="desired-count" group="SpotPlacementScoresInput">
<arg type="integer32" var="$spotPlacementScoresInput.desiredCount" options="desired-count" required="True" stage="Preview" group="SpotPlacementScoresInput">
<help short="Desired instance count per region/zone based on the scope."/>
</arg>
<arg type="array<string>" var="$spotPlacementScoresInput.desiredLocations" options="desired-locations" group="SpotPlacementScoresInput">
<arg type="array<string>" var="$spotPlacementScoresInput.desiredLocations" options="desired-locations" required="True" stage="Preview" group="SpotPlacementScoresInput">
<help short="The desired regions"/>
<item type="string"/>
</arg>
<arg type="array<object>" var="$spotPlacementScoresInput.desiredSizes" options="desired-sizes" group="SpotPlacementScoresInput">
<arg type="array<object>" var="$spotPlacementScoresInput.desiredSizes" options="desired-sizes" required="True" stage="Preview" group="SpotPlacementScoresInput">
<help short="The desired resource SKUs."/>
<item type="object">
<arg type="string" var="$spotPlacementScoresInput.desiredSizes[].sku" options="sku">
Expand Down Expand Up @@ -47,11 +51,11 @@
<json>
<schema type="object" name="spotPlacementScoresInput" required="True" clientFlatten="True">
<prop type="boolean" name="availabilityZones" arg="$spotPlacementScoresInput.availabilityZones"/>
<prop type="integer32" name="desiredCount" arg="$spotPlacementScoresInput.desiredCount"/>
<prop type="array<string>" name="desiredLocations" arg="$spotPlacementScoresInput.desiredLocations">
<prop type="integer32" name="desiredCount" arg="$spotPlacementScoresInput.desiredCount" required="True"/>
<prop type="array<string>" name="desiredLocations" arg="$spotPlacementScoresInput.desiredLocations" required="True">
<item type="string"/>
</prop>
<prop type="array<object>" name="desiredSizes" arg="$spotPlacementScoresInput.desiredSizes">
<prop type="array<object>" name="desiredSizes" arg="$spotPlacementScoresInput.desiredSizes" required="True">
<item type="object">
<prop type="string" name="sku" arg="$spotPlacementScoresInput.desiredSizes[].sku"/>
</item>
Expand Down
Loading