Skip to content

Commit 60ace7f

Browse files
authored
Adding archive/unarchive to Microsoft.Capacity 2022-03-01 (#20574)
* Adding archive/unarchive to Microsoft.Capacity 2022-03-01 * fix * format
1 parent c16d792 commit 60ace7f

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
5+
"reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da"
6+
},
7+
"responses": {
8+
"200": {}
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
5+
"reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da"
6+
},
7+
"responses": {
8+
"200": {}
9+
}
10+
}

specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/reservations.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,80 @@
572572
}
573573
}
574574
},
575+
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/archive": {
576+
"post": {
577+
"summary": "Archive a `Reservation`.",
578+
"description": "Archiving a `Reservation` moves it to `Archived` state.",
579+
"operationId": "Reservation_Archive",
580+
"x-ms-examples": {
581+
"Archive": {
582+
"$ref": "./examples/Archive.json"
583+
}
584+
},
585+
"parameters": [
586+
{
587+
"$ref": "#/parameters/ReservationOrderIdParameter"
588+
},
589+
{
590+
"$ref": "#/parameters/ReservationIdParameter"
591+
},
592+
{
593+
"$ref": "#/parameters/ApiVersionParameter"
594+
}
595+
],
596+
"tags": [
597+
"Reservation, Archive"
598+
],
599+
"responses": {
600+
"200": {
601+
"description": "Archived a reservation."
602+
},
603+
"default": {
604+
"description": "Unexpected error",
605+
"schema": {
606+
"$ref": "#/definitions/Error"
607+
}
608+
}
609+
}
610+
}
611+
},
612+
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/unarchive": {
613+
"post": {
614+
"summary": "Unarchive a `Reservation`.",
615+
"description": "Unarchiving a `Reservation` moves it to the state it was before archiving.\n",
616+
"operationId": "Reservation_Unarchive",
617+
"x-ms-examples": {
618+
"Unarchive": {
619+
"$ref": "./examples/Unarchive.json"
620+
}
621+
},
622+
"parameters": [
623+
{
624+
"$ref": "#/parameters/ReservationOrderIdParameter"
625+
},
626+
{
627+
"$ref": "#/parameters/ReservationIdParameter"
628+
},
629+
{
630+
"$ref": "#/parameters/ApiVersionParameter"
631+
}
632+
],
633+
"tags": [
634+
"Reservation, Unarchive"
635+
],
636+
"responses": {
637+
"200": {
638+
"description": "Unarchive complete for the reservation."
639+
},
640+
"default": {
641+
"description": "Unexpected error",
642+
"schema": {
643+
"$ref": "#/definitions/Error"
644+
}
645+
}
646+
}
647+
}
648+
},
575649
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions": {
576650
"get": {
577651
"summary": "Get `Reservation` revisions.",

0 commit comments

Comments
 (0)