Skip to content

Commit

Permalink
Added move validation enum values & fix S360 linting issues (#12275)
Browse files Browse the repository at this point in the history
* Added new move product validation error codes

* Added integer formats to fix S360 swagger lint validation

* Fixed ModelValidation errors for v2018-11-01-preview

Co-authored-by: Braden Watkins <brwatkin@microsoft.com>
  • Loading branch information
bradenwatkins and Braden Watkins authored Jan 12, 2021
1 parent 788507c commit c50923f
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 100
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 100
}
Expand Down Expand Up @@ -194,6 +195,7 @@
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 100
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 100
}
Expand Down Expand Up @@ -252,6 +253,7 @@
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 100
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 100
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@
},
"Retry-After": {
"description": "Recommends the retryable time after receiving this.",
"type": "integer"
"type": "integer",
"format": "int32"
},
"Azure-AsyncOperation": {
"description": "URI to poll for the operation status",
Expand Down Expand Up @@ -736,7 +737,8 @@
},
"Retry-After": {
"description": "Recommends the retryable time after receiving this.",
"type": "integer"
"type": "integer",
"format": "int32"
},
"Azure-AsyncOperation": {
"description": "URI to poll for the operation status",
Expand Down Expand Up @@ -1713,7 +1715,8 @@
},
"Retry-After": {
"description": "Recommends the retryable time after receiving this.",
"type": "integer"
"type": "integer",
"format": "int32"
},
"Azure-AsyncOperation": {
"description": "URI to poll for the operation status",
Expand Down Expand Up @@ -1975,7 +1978,8 @@
},
"Retry-After": {
"description": "Recommends the retryable time after receiving this.",
"type": "integer"
"type": "integer",
"format": "int32"
},
"Azure-AsyncOperation": {
"description": "URI to poll for the operation status",
Expand Down Expand Up @@ -3938,7 +3942,8 @@
},
"Retry-After": {
"description": "Recommends the retryable time after receiving this.",
"type": "integer"
"type": "integer",
"format": "int32"
},
"Azure-AsyncOperation": {
"description": "URI to poll for the operation status",
Expand Down Expand Up @@ -4953,6 +4958,7 @@
"invoiceDay": {
"description": "Invoice day.",
"type": "integer",
"format": "int32",
"readOnly": true
},
"currency": {
Expand Down Expand Up @@ -5869,6 +5875,7 @@
"quantity": {
"description": "Purchase quantity.",
"type": "integer",
"format": "int32",
"readOnly": true
},
"customerId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"transferName": "transferName",
"body": {
"properties": {
"value": [
"productDetails": [
{
"productType": "AzureSubscription",
"productId": "subscriptionId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"invoiceSectionName": "invoiceSectionName",
"body": {
"properties": {
"billingProfileName": "billingProfileName",
"billingProfileId": "billingProfileId",
"recipientEmailId": "user@contoso.com"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,8 @@
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down Expand Up @@ -947,7 +948,8 @@
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down Expand Up @@ -2479,7 +2481,8 @@
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down Expand Up @@ -2746,7 +2749,8 @@
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down Expand Up @@ -6214,14 +6218,26 @@
"type": "string",
"description": "Error code of the transfer validation response.",
"enum": [
"BillingAccountInactive",
"CrossBillingAccountNotAllowed",
"DestinationBillingProfileInactive",
"DestinationBillingProfileNotFound",
"DestinationBillingProfilePastDue",
"DestinationInvoiceSectionInactive",
"DestinationInvoiceSectionNotFound",
"InsufficientPermissionOnDestination",
"InsufficientPermissionOnSource",
"InvalidDestination",
"InvalidSource",
"MarketplaceNotEnabledOnDestination",
"NotAvailableForDestinationMarket",
"ProductInactive",
"ProductNotFound",
"ProductTypeNotSupported",
"SourceBillingProfilePastDue",
"SourceInvoiceSectionInactive",
"SubscriptionNotActive",
"InsufficientPermissionOnSource",
"InsufficientPermissionOnDestination",
"DestinationBillingProfilePastDue",
"SubscriptionTypeNotSupported",
"CrossBillingAccountNotAllowed",
"NotAvailableForDestinationMarket"
"SubscriptionTypeNotSupported"
],
"x-ms-enum": {
"name": "subscriptionTransferValidationErrorCode",
Expand Down Expand Up @@ -6866,6 +6882,7 @@
"invoiceDay": {
"description": "The day of the month when the invoice for the billing profile is generated.",
"type": "integer",
"format": "int32",
"readOnly": true
},
"currency": {
Expand Down Expand Up @@ -8057,6 +8074,7 @@
"quantity": {
"description": "The quantity purchased in the transaction.",
"type": "integer",
"format": "int32",
"readOnly": true
},
"invoiceSectionId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down Expand Up @@ -800,7 +801,8 @@
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down Expand Up @@ -1905,7 +1907,8 @@
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down Expand Up @@ -2264,7 +2267,8 @@
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down Expand Up @@ -3719,14 +3723,26 @@
"type": "string",
"description": "Error code of the transfer validation response.",
"enum": [
"BillingAccountInactive",
"CrossBillingAccountNotAllowed",
"DestinationBillingProfileInactive",
"DestinationBillingProfileNotFound",
"DestinationBillingProfilePastDue",
"DestinationInvoiceSectionInactive",
"DestinationInvoiceSectionNotFound",
"InsufficientPermissionOnDestination",
"InsufficientPermissionOnSource",
"InvalidDestination",
"InvalidSource",
"MarketplaceNotEnabledOnDestination",
"NotAvailableForDestinationMarket",
"ProductInactive",
"ProductNotFound",
"ProductTypeNotSupported",
"SourceBillingProfilePastDue",
"SourceInvoiceSectionInactive",
"SubscriptionNotActive",
"InsufficientPermissionOnSource",
"InsufficientPermissionOnDestination",
"DestinationBillingProfilePastDue",
"SubscriptionTypeNotSupported",
"CrossBillingAccountNotAllowed",
"NotAvailableForDestinationMarket"
"SubscriptionTypeNotSupported"
],
"x-ms-enum": {
"name": "subscriptionTransferValidationErrorCode",
Expand Down Expand Up @@ -4346,6 +4362,7 @@
"invoiceDay": {
"description": "The day of the month when the invoice for the billing profile is generated.",
"type": "integer",
"format": "int32",
"readOnly": true
},
"currency": {
Expand Down Expand Up @@ -5641,6 +5658,7 @@
"quantity": {
"description": "The quantity purchased in the transaction.",
"type": "integer",
"format": "int32",
"readOnly": true
},
"invoiceSectionId": {
Expand Down

0 comments on commit c50923f

Please sign in to comment.