Skip to content

Commit

Permalink
Swagger correctness fix with other changes (#25)
Browse files Browse the repository at this point in the history
* Swagger correctness fix with other changes

* Return api field additions

* Change expand description for listOrderItem calls

Co-authored-by: Vaishnavi Janardhan <vjanardhan@microsoft.com>
  • Loading branch information
vaishnavi-janardhan and vaishnavi-janardhan authored Sep 8, 2021
1 parent 2c40871 commit 8d27682
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
{
"name": "$expand",
"in": "query",
"description": "$expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.",
"description": "$expand is supported on configurations parameter for product, which provides details on the configurations for the product.",
"required": false,
"type": "string"
},
Expand Down Expand Up @@ -354,7 +354,7 @@
"tags": [
"OrderItems"
],
"description": "Lists order at subscription level.",
"description": "Lists order item at subscription level.",
"operationId": "ListOrderItemsAtSubscriptionLevel",
"consumes": [
"application/json"
Expand All @@ -376,17 +376,24 @@
"required": false,
"type": "string"
},
{
"name": "$expand",
"in": "query",
"description": "$expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.",
"required": false,
"type": "string"
},
{
"name": "$skipToken",
"in": "query",
"description": "$skipToken is supported on Get list of orders, which provides the next page in the list of order.",
"description": "$skipToken is supported on Get list of order items, which provides the next page in the list of order items.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Order item object",
"description": "List of Order item object",
"schema": {
"$ref": "#/definitions/OrderItemResourceList"
}
Expand Down Expand Up @@ -554,7 +561,7 @@
],
"responses": {
"200": {
"description": "Address object.",
"description": "Address resource object.",
"schema": {
"$ref": "#/definitions/AddressResource"
}
Expand Down Expand Up @@ -832,7 +839,7 @@
{
"name": "$expand",
"in": "query",
"description": "$expand is supported on device details parameter for order item, which provides details on the devices of the product.",
"description": "$expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.",
"required": false,
"type": "string"
},
Expand Down Expand Up @@ -897,7 +904,7 @@
{
"name": "$expand",
"in": "query",
"description": "$expand is supported on device details parameter for order item, which provides details on the devices of the product.",
"description": "$expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.",
"required": false,
"type": "string"
}
Expand Down Expand Up @@ -1781,6 +1788,11 @@
"description": "Management Resource Id",
"type": "string",
"readOnly": true
},
"managementResourceTenantId": {
"description": "Management Resource Tenant ID",
"type": "string",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -1887,7 +1899,7 @@
"type": "object",
"properties": {
"doubleEncryptionStatus": {
"description": "Defines secondary layer of software-based encryption enablement.",
"description": "Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured.",
"enum": [
"Disabled",
"Enabled"
Expand Down Expand Up @@ -2343,7 +2355,7 @@
"readOnly": true
},
"cancellationStatus": {
"description": "Describes whether the orderItem is cancellable or not.",
"description": "Describes whether the order item is cancellable or not.",
"enum": [
"Cancellable",
"CancellableWithFee",
Expand Down Expand Up @@ -2399,7 +2411,7 @@
"readOnly": true
},
"returnStatus": {
"description": "Describes whether the orderItem is returnable or not.",
"description": "Describes whether the order item is returnable or not.",
"enum": [
"Returnable",
"ReturnableWithFee",
Expand Down Expand Up @@ -2759,7 +2771,32 @@
"count": {
"format": "int32",
"description": "Quantity of the product",
"type": "integer"
"type": "integer",
"readOnly": true
},
"productDoubleEncryptionStatus": {
"description": "Double encryption status of the configuration. Read-only field.",
"enum": [
"Disabled",
"Enabled"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "DoubleEncryptionStatus",
"modelAsString": true,
"values": [
{
"value": "Disabled",
"description": "Double encryption is disabled"
},
{
"value": "Enabled",
"description": "Double encryption is enabled"
}
]
},
"default": "Disabled"
},
"deviceDetails": {
"description": "list of device details",
Expand Down Expand Up @@ -3000,6 +3037,15 @@
"returnReason": {
"description": "Return Reason.",
"type": "string"
},
"serviceTag": {
"description": "Service tag (located on the bottom-right corner of the device)",
"type": "string"
},
"shippingBoxRequired": {
"description": "Shipping Box required",
"default": false,
"type": "boolean"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
"productName": "azurestackedgegpu",
"configurationName": "azurestackedgegpu"
},
"count": 0
"count": 0,
"productDoubleEncryptionStatus": "Disabled"
},
"orderItemType": "Purchase",
"currentStage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"productName": "azurestackedgegpu",
"configurationName": "azurestackedgegpu"
},
"count": 0
"count": 0,
"productDoubleEncryptionStatus": "Disabled"
},
"orderItemType": "Purchase",
"currentStage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"productName": "azurestackedgegpu",
"configurationName": "azurestackedgegpu"
},
"count": 0
"count": 0,
"productDoubleEncryptionStatus": "Disabled"
},
"orderItemType": "Purchase",
"currentStage": {
Expand Down Expand Up @@ -122,7 +123,8 @@
"productName": "azurestackedgegpu",
"configurationName": "azurestackedgegpu"
},
"count": 0
"count": 0,
"productDoubleEncryptionStatus": "Disabled"
},
"orderItemType": "Purchase",
"currentStage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"productName": "azurestackedgegpu",
"configurationName": "azurestackedgegpu"
},
"count": 0
"count": 0,
"productDoubleEncryptionStatus": "Disabled"
},
"orderItemType": "Purchase",
"currentStage": {
Expand Down Expand Up @@ -120,7 +121,8 @@
"productName": "azurestackedgegpu",
"configurationName": "azurestackedgegpu"
},
"count": 0
"count": 0,
"productDoubleEncryptionStatus": "Disabled"
},
"orderItemType": "Purchase",
"currentStage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"productName": "azurestackedgegpu",
"configurationName": "azurestackedgegpu"
},
"count": 0
"count": 0,
"productDoubleEncryptionStatus": "Disabled"
},
"orderItemType": "Purchase",
"currentStage": {
Expand Down

0 comments on commit 8d27682

Please sign in to comment.