Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Capacity to add version …
Browse files Browse the repository at this point in the history
…2019-04-01 (#5403)

* Adds base for updating Microsoft.Capacity from version preview/2018-06-01 to version 2019-04-01

* Updates readme

* Updates API version in new specs and examples

* initial

* add example

* comma

* long running operation

* update api version

* renaming

* fix ref

* correcting examples

* examples

* adding example

* change parameter name

* descriptions

* updated description

* minor description update

* more description
  • Loading branch information
corquiri authored and salameer committed Apr 5, 2019
1 parent 20ef813 commit 32c02c3
Show file tree
Hide file tree
Showing 15 changed files with 2,393 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2019-04-01",
"body": {
"sku": {
"name": "standard_D1"
},
"location": "westus",
"properties": {
"reservedResourceType": "VirtualMachines",
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
"term": "P1Y",
"quantity": "1",
"displayName": "TestReservationOrder",
"appliedScopes": null,
"appliedScopeType": "Shared",
"reservedResourceProperties": {
"instanceFlexibility": "On"
}
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"billingCurrencyTotal": {
"currencyCode": "USD",
"amount": 466.0
},
"reservationOrderId": "6d9cec54-7de8-abcd-9de7-80f5d634f2d2",
"skuTitle": "Reserved VM Instance, Standard_D1, US West, 1 Year",
"skuDescription": "standard_D1",
"pricingCurrencyTotal": {
"currencyCode": "USD",
"amount": 466.0
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "23bc208b-083f-4901-ae85-4f98c0c3b4b6"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/23bc208b-083f-4901-ae85-4f98c0c3b4b6/providers/microsoft.capacity/AppliedReservations/default",
"type": "Microsoft.Capacity/AppliedReservations",
"name": "default",
"properties": {
"reservationOrderIds": {
"value": ["/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7",
"/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac",
"/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a",
"/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901",
"/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f",
"/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928",
"/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8",
"/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b",
"/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db",
"/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6",
"/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3",
"/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e",
"/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723"]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "23bc208b-083f-4901-ae85-4f98c0c3b4b6",
"reservedResourceType": "VirtualMachines",
"location": "eastus"
},
"responses": {
"200": {
"body": [
{
"resourceType": "VirtualMachines",
"name": "Standard_DS5_v2",
"terms": [
"P1Y",
"P3Y"
],
"locations": [
"eastus"
],
"skuProperties": [
{
"name": "Cores",
"value": "16"
},
{
"name": "ProductTitle",
"value": "DSv2 Series, DS5"
},
{
"name": "ProductShortName",
"value": "DSv2 Series"
},
{
"name": "SKUName",
"value": "DS5 v2"
},
{
"name": "MeterId",
"value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8"
}
],
"restrictions": []
},
{
"resourceType": "VirtualMachines",
"name": "Standard_D1",
"terms": [
"P1Y",
"P3Y"
],
"locations": [
"eastus"
],
"skuProperties": [
{
"name": "Cores",
"value": "1"
},
{
"name": "ProductTitle",
"value": "D Series, D1"
},
{
"name": "ProductShortName",
"value": "D Series"
},
{
"name": "SKUName",
"value": "D1"
},
{
"name": "MeterId",
"value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8"
}
],
"restrictions": [
{
"type": "Term",
"values": [
"P1Y"
],
"reasonCode": "NotAvailableForSubscription"
},
{
"type": "Term",
"values": [
"P3Y"
],
"reasonCode": "NotAvailableForSubscription"
}
]
},
{
"resourceType": "VirtualMachines",
"name": "Standard_F2",
"terms": [
"P1Y",
"P3Y"
],
"locations": [
"eastus"
],
"skuProperties": [
{
"name": "Cores",
"value": "2"
},
{
"name": "ProductTitle",
"value": "F Series, F2"
},
{
"name": "ProductShortName",
"value": "F Series"
},
{
"name": "SKUName",
"value": "F2"
},
{
"name": "MeterId",
"value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8"
}
],
"restrictions": [
{
"type": "Location",
"values": [
"eastus"
],
"reasonCode": "NotAvailableForSubscription"
}
]
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"parameters": {
"api-version": "2019-04-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Capacity/reservationorders/read",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Get Reservations",
"description": "Read All Reservations"
}
},
{
"name": "Microsoft.Capacity/reservationorders/write",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Create Reservations",
"description": "Create any Reservation"
}
},
{
"name": "Microsoft.Capacity/reservationorders/action",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Update Reservations",
"description": "Update any Reservation"
}
},
{
"name": "Microsoft.Capacity/reservationorders/delete",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Delete Reservations",
"description": "Delete any Reservation"
}
},
{
"name": "Microsoft.Capacity/reservationorders/reservations/read",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Get Reservations",
"description": "Read All Reservations"
}
},
{
"name": "Microsoft.Capacity/reservationorders/reservations/write",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Create Reservations",
"description": "Create any Reservation"
}
},
{
"name": "Microsoft.Capacity/reservationorders/reservations/action",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Update Reservations",
"description": "Update any Reservation"
}
},
{
"name": "Microsoft.Capacity/reservationorders/reservations/delete",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Delete Reservations",
"description": "Delete any Reservation"
}
},
{
"name": "Microsoft.Capacity/reservationorders/reservations/revisions/read",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Get Reservations",
"description": "Read All Reservations"
}
},
{
"name": "Microsoft.Capacity/register/action",
"display": {
"provider": "Microsoft Capacity",
"resource": "Reservations",
"operation": "Registers the Capacity Resource Provider.",
"description": "Registers the Capacity resource provider and enables the creation of Capacity resources."
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2019-04-01",
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
"reservationId": "6ef59113-3482-40da-8d79-787f823e34bc"
},
"responses": {
"200": {
"body": {
"sku": {
"name": "Standard_DS1_v2"
},
"id": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc",
"type": "Microsoft.Capacity/reservationOrders/reservations",
"name": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da/6ef59113-3482-40da-8d79-787f823e34bc",
"etag": 2,
"location": "eastus",
"properties": {
"appliedScopes": [
"/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"
],
"appliedScopeType": "Single",
"quantity": 3,
"provisioningState": "Succeeded",
"expiryDate": "2018-09-22",
"displayName": "cabri_test",
"effectiveDateTime": "2017-09-22T22:46:32.7632798Z",
"lastUpdatedDateTime": "2017-09-22T22:46:32.7632798Z",
"reservedResourceType": "VirtualMachines",
"instanceFlexibility": "Off",
"skuDescription": "D1 v2",
"mergeProperties": {
"mergeSources": [
"/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7",
"/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2019-04-01",
"reservationOrderId": "a075419f-44cc-497f-b68a-14ee811d48b9"
},
"responses": {
"200": {
"body": {
"id": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa",
"type": "Microsoft.Capacity/reservationOrders",
"name": "1f14354c-dc12-4c8d-8090-6f295a3a34aa",
"etag": 7,
"properties": {
"displayName": "cabri",
"requestDateTime": "2017-08-30T03:49:19.0252126Z",
"createdDateTime": "2017-08-30T03:51:49.8083758Z",
"expiryDate": "2018-08-30",
"term": "P1Y",
"provisioningState": "Succeeded",
"reservations": [
{
"id": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"
}
],
"originalQuantity": 7
}
}
}
}
}
Loading

0 comments on commit 32c02c3

Please sign in to comment.