From 667f755819a98f09ed8e3cf26e6099f7171fc7b2 Mon Sep 17 00:00:00 2001 From: william051200 Date: Thu, 5 Mar 2026 14:49:41 +0800 Subject: [PATCH] Export capacity reservation group command group --- .../capacity/reservation/group/_create.md | 4 + .../capacity/reservation/group/_delete.md | 11 + Commands/capacity/reservation/group/_show.md | 4 + .../capacity/reservation/group/_update.md | 4 + .../2024-11-01.json | 1 + .../2024-11-01.xml | 608 ++++++++++++++++++ 6 files changed, 632 insertions(+) create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.xml diff --git a/Commands/capacity/reservation/group/_create.md b/Commands/capacity/reservation/group/_create.md index 71b2549b1..9303dd10e 100644 --- a/Commands/capacity/reservation/group/_create.md +++ b/Commands/capacity/reservation/group/_create.md @@ -7,3 +7,7 @@ Create operation to create or update a capacity reservation group. When updating ### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2022-08-01.xml) **Stable** + +### [2024-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.xml) **Stable** + + diff --git a/Commands/capacity/reservation/group/_delete.md b/Commands/capacity/reservation/group/_delete.md index ead6e243b..bd16e5462 100644 --- a/Commands/capacity/reservation/group/_delete.md +++ b/Commands/capacity/reservation/group/_delete.md @@ -14,3 +14,14 @@ Delete operation to delete a capacity reservation group. This operation is allow ```bash capacity reservation group delete -n ReservationGroupName -g MyResourceGroup --yes ``` + +### [2024-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.xml) **Stable** + + + +#### examples + +- Delete a capacity reservation group. + ```bash + capacity reservation group delete -n ReservationGroupName -g MyResourceGroup --yes + ``` diff --git a/Commands/capacity/reservation/group/_show.md b/Commands/capacity/reservation/group/_show.md index ef13d86c6..4e370ea10 100644 --- a/Commands/capacity/reservation/group/_show.md +++ b/Commands/capacity/reservation/group/_show.md @@ -7,3 +7,7 @@ Get operation that retrieves information about a capacity reservation group. ### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2022-08-01.xml) **Stable** + +### [2024-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.xml) **Stable** + + diff --git a/Commands/capacity/reservation/group/_update.md b/Commands/capacity/reservation/group/_update.md index ed8bcd333..5a689f2fd 100644 --- a/Commands/capacity/reservation/group/_update.md +++ b/Commands/capacity/reservation/group/_update.md @@ -7,3 +7,7 @@ Update operation to create or update a capacity reservation group. When updating ### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2022-08-01.xml) **Stable** + +### [2024-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.xml) **Stable** + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.json new file mode 100644 index 000000000..4a0eff6aa --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "version": "2024-11-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyNC0xMS0wMQ=="}], "commandGroups": [{"name": "capacity reservation group", "commands": [{"name": "show", "version": "2024-11-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "version": "2024-11-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyNC0xMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.capacityReservationGroupName", "options": ["n", "capacity-reservation-group", "capacity-reservation-group-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the capacity reservation group."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.expand", "options": ["expand"], "help": {"short": "The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity reservations under the capacity reservation group which is a snapshot of the runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations."}, "enum": {"items": [{"name": "instanceView", "value": "instanceView"}]}}]}], "operations": [{"operationId": "CapacityReservationGroups_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "capacityReservationGroupName", "arg": "$Path.capacityReservationGroupName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand", "enum": {"items": [{"value": "instanceView"}]}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-11-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/capacityReservationGroups/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "array", "name": "capacityReservations", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "id"}], "cls": "SubResourceReadOnly_read"}}, {"readOnly": true, "type": "object", "name": "instanceView", "props": [{"readOnly": true, "type": "array", "name": "capacityReservations", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "name"}, {"type": "array", "name": "statuses", "item": {"type": "object", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time", "format": {"protocol": "iso"}}]}}, {"type": "object", "name": "utilizationInfo", "props": [{"readOnly": true, "type": "integer32", "name": "currentCapacity"}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "virtualMachinesAllocated", "item": {"type": "@SubResourceReadOnly_read"}}]}]}, "identifiers": ["name"]}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "sharedSubscriptionIds", "item": {"type": "@SubResourceReadOnly_read"}, "identifiers": ["id"]}]}, {"type": "object", "name": "sharingProfile", "props": [{"type": "array", "name": "subscriptionIds", "item": {"type": "object", "props": [{"type": "string", "name": "id"}]}}]}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "virtualMachinesAssociated", "item": {"type": "@SubResourceReadOnly_read"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}, {"type": "array", "name": "zones", "item": {"type": "string"}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2024-11-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "version": "2024-11-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyNC0xMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.capacityReservationGroupName", "options": ["n", "capacity-reservation-group", "capacity-reservation-group-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the capacity reservation group."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "CapacityReservationGroups_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "capacityReservationGroupName", "arg": "$Path.capacityReservationGroupName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-11-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2024-11-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "version": "2024-11-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyNC0xMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.capacityReservationGroupName", "options": ["n", "capacity-reservation-group", "capacity-reservation-group-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the capacity reservation group."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters", "args": [{"type": "ResourceLocation", "var": "$parameters.location", "options": ["l", "location"], "required": true, "group": "Parameters", "help": {"short": "Resource location"}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "Parameters", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]."}, "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "var": "$parameters.zones", "options": ["zones"], "group": "Parameters", "help": {"short": "Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones."}, "item": {"type": "string"}}]}, {"name": "Properties", "args": [{"type": "object", "var": "$parameters.properties.sharingProfile", "options": ["sharing-profile"], "group": "Properties", "help": {"short": "Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. The capacity reservation group resource can generally be shared across subscriptions belonging to a single Azure AAD tenant or across AAD tenants if there is a trust relationship established between the tenants. Block capacity reservation does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details."}, "args": [{"type": "array", "var": "$parameters.properties.sharingProfile.subscriptionIds", "options": ["subscription-ids"], "help": {"short": "Specifies an array of subscription resource IDs that capacity reservation group is shared with. Block Capacity Reservations does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.sharingProfile.subscriptionIds[].id", "options": ["id"], "help": {"short": "Resource Id"}}]}}]}]}], "operations": [{"operationId": "CapacityReservationGroups_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "capacityReservationGroupName", "arg": "$Path.capacityReservationGroupName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-11-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "ResourceLocation", "name": "location", "arg": "$parameters.location", "required": true}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "sharingProfile", "arg": "$parameters.properties.sharingProfile", "props": [{"type": "array", "name": "subscriptionIds", "arg": "$parameters.properties.sharingProfile.subscriptionIds", "item": {"type": "object", "props": [{"type": "string", "name": "id", "arg": "$parameters.properties.sharingProfile.subscriptionIds[].id"}]}}]}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "zones", "arg": "$parameters.zones", "item": {"type": "string"}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/capacityReservationGroups/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "array", "name": "capacityReservations", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "id"}], "cls": "SubResourceReadOnly_read"}}, {"readOnly": true, "type": "object", "name": "instanceView", "props": [{"readOnly": true, "type": "array", "name": "capacityReservations", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "name"}, {"type": "array", "name": "statuses", "item": {"type": "object", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time", "format": {"protocol": "iso"}}]}}, {"type": "object", "name": "utilizationInfo", "props": [{"readOnly": true, "type": "integer32", "name": "currentCapacity"}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "virtualMachinesAllocated", "item": {"type": "@SubResourceReadOnly_read"}}]}]}, "identifiers": ["name"]}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "sharedSubscriptionIds", "item": {"type": "@SubResourceReadOnly_read"}, "identifiers": ["id"]}]}, {"type": "object", "name": "sharingProfile", "props": [{"type": "array", "name": "subscriptionIds", "item": {"type": "object", "props": [{"type": "string", "name": "id"}]}}]}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "virtualMachinesAssociated", "item": {"type": "@SubResourceReadOnly_read"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}, {"type": "array", "name": "zones", "item": {"type": "string"}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2024-11-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "version": "2024-11-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyNC0xMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.capacityReservationGroupName", "options": ["n", "capacity-reservation-group", "capacity-reservation-group-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the capacity reservation group."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters", "args": [{"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "Parameters", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}, {"nullable": true, "type": "array", "var": "$parameters.zones", "options": ["zones"], "group": "Parameters", "help": {"short": "Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones."}, "item": {"nullable": true, "type": "string"}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.sharingProfile", "options": ["sharing-profile"], "group": "Properties", "help": {"short": "Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. The capacity reservation group resource can generally be shared across subscriptions belonging to a single Azure AAD tenant or across AAD tenants if there is a trust relationship established between the tenants. Block capacity reservation does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.sharingProfile.subscriptionIds", "options": ["subscription-ids"], "help": {"short": "Specifies an array of subscription resource IDs that capacity reservation group is shared with. Block Capacity Reservations does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.sharingProfile.subscriptionIds[].id", "options": ["id"], "help": {"short": "Resource Id"}}]}}]}]}], "operations": [{"operationId": "CapacityReservationGroups_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "capacityReservationGroupName", "arg": "$Path.capacityReservationGroupName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-11-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/capacityReservationGroups/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "array", "name": "capacityReservations", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "id"}], "cls": "SubResourceReadOnly_read"}}, {"readOnly": true, "type": "object", "name": "instanceView", "props": [{"readOnly": true, "type": "array", "name": "capacityReservations", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "name"}, {"type": "array", "name": "statuses", "item": {"type": "object", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time", "format": {"protocol": "iso"}}]}}, {"type": "object", "name": "utilizationInfo", "props": [{"readOnly": true, "type": "integer32", "name": "currentCapacity"}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "virtualMachinesAllocated", "item": {"type": "@SubResourceReadOnly_read"}}]}]}, "identifiers": ["name"]}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "sharedSubscriptionIds", "item": {"type": "@SubResourceReadOnly_read"}, "identifiers": ["id"]}]}, {"type": "object", "name": "sharingProfile", "props": [{"type": "array", "name": "subscriptionIds", "item": {"type": "object", "props": [{"type": "string", "name": "id"}]}}]}, {"readOnly": true, "type": "array<@SubResourceReadOnly_read>", "name": "virtualMachinesAssociated", "item": {"type": "@SubResourceReadOnly_read"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}, {"type": "array", "name": "zones", "item": {"type": "string"}}], "cls": "CapacityReservationGroup_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "object", "name": "sharingProfile", "arg": "$parameters.properties.sharingProfile", "props": [{"type": "array", "name": "subscriptionIds", "arg": "$parameters.properties.sharingProfile.subscriptionIds", "item": {"type": "object", "props": [{"type": "string", "name": "id", "arg": "$parameters.properties.sharingProfile.subscriptionIds[].id"}]}}]}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "zones", "arg": "$parameters.zones", "item": {"type": "string"}}], "clientFlatten": true}}}}, {"operationId": "CapacityReservationGroups_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "capacityReservationGroupName", "arg": "$Path.capacityReservationGroupName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-11-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@CapacityReservationGroup_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.xml new file mode 100644 index 000000000..c44875641 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2NhcGFjaXR5cmVzZXJ2YXRpb25ncm91cHMve30=/2024-11-01.xml @@ -0,0 +1,608 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +