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

Adding SharingProfile to CapacityReservationGroup for CrossPartitionCapacityReservationGroup operations #26378

Merged
Merged
Show file tree
Hide file tree
Changes from 8 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 @@ -40,7 +40,7 @@
"CapacityReservationGroups"
],
"operationId": "CapacityReservationGroups_CreateOrUpdate",
"description": "The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details.",
"description": "The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags and sharing profile may be modified. Please refer to https://aka.ms/CapacityReservation for more details.",
"parameters": [
{
"name": "resourceGroupName",
Expand Down Expand Up @@ -103,7 +103,7 @@
"CapacityReservationGroups"
],
"operationId": "CapacityReservationGroups_Update",
"description": "The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified.",
"description": "The operation to update a capacity reservation group. When updating a capacity reservation group, only tags and sharing profile may be modified.",
"parameters": [
{
"name": "resourceGroupName",
Expand Down Expand Up @@ -730,6 +730,27 @@
],
"readOnly": true,
"description": "List of instance view of the capacity reservations under the capacity reservation group."
},
"sharedSubscriptionIds": {
"type": "array",
"items": {
"$ref": "../../../common-types/v1/common.json#/definitions/SubResourceReadOnly"
},
"x-ms-identifiers": [],
nreact marked this conversation as resolved.
Show resolved Hide resolved
"readOnly": true,
"description": "List of the subscriptions that the capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details."
}
}
},
"ResourceSharingProfile": {
"type": "object",
"properties": {
"subscriptionIds": {
"type": "array",
"description": "Specifies an array of references to subscriptionIds. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.",
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
"items": {
"$ref": "../../../common-types/v1/common.json#/definitions/SubResource"
}
}
}
},
Expand All @@ -756,6 +777,10 @@
"$ref": "#/definitions/CapacityReservationGroupInstanceView",
"readOnly": true,
"description": "The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group."
},
"sharingProfile": {
"$ref": "#/definitions/ResourceSharingProfile",
"description": "A list of all subscriptions that the capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details."
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
}
},
"description": "capacity reservation group Properties."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@
"zones": [
"1",
"2"
]
],
"properties": {
"sharingProfile": {
"subscriptionIds": [
{
"id": "/subscriptions/{subscription-id1}"
},
{
"id": "/subscriptions/{subscription-id2}"
}
]
}
}
}
},
"responses": {
Expand All @@ -27,7 +39,19 @@
"zones": [
"1",
"2"
]
],
"properties": {
"sharingProfile": {
"subscriptionIds": [
{
"id": "/subscriptions/{subscription-id1}"
},
{
"id": "/subscriptions/{subscription-id2}"
}
]
}
}
}
},
"200": {
Expand All @@ -42,7 +66,19 @@
"zones": [
"1",
"2"
]
],
"properties": {
"sharingProfile": {
"subscriptionIds": [
{
"id": "/subscriptions/{subscription-id1}"
},
{
"id": "/subscriptions/{subscription-id2}"
}
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
"id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/capacityReservationGroups/myCapacityReservationGroup/capacityReservations/myCapacityReservation2"
}
],
"sharingProfile": {
"subscriptionIds": [
{
"id": "/subscriptions/{subscription-id1}"
},
{
"id": "/subscriptions/{subscription-id2}"
}
]
},
"instanceView": {
"capacityReservations": [
{
Expand Down Expand Up @@ -63,6 +73,14 @@
}
]
}
],
"sharedSubscriptionIds": [
{
"id": "/subscriptions/{subscription-id1}"
},
{
"id": "/subscriptions/{subscription-id2}"
}
]
}
},
Expand Down