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

Spec for LineOfCredit API and other corrections #6054

Merged
merged 32 commits into from
May 30, 2019
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2a236eb
Added specs for Agreements API in version 2018-11-01-preview
asarkar84 Apr 3, 2019
a33bee2
Updated as per naming convension
asarkar84 Apr 4, 2019
d490370
Merge remote-tracking branch 'upstream/master'
asarkar84 Apr 15, 2019
f7a772d
Merge remote-tracking branch 'upstream/master'
asarkar84 Apr 16, 2019
04c5304
Corrected specs and examples for BillingRP
asarkar84 Apr 17, 2019
bbf0f75
Fixed the errors
asarkar84 Apr 17, 2019
91060fe
Fixing errors in spec
asarkar84 Apr 17, 2019
a16aba3
Updated examples
asarkar84 Apr 18, 2019
bb7a445
Incorporated review comments
Apr 18, 2019
281784f
Incorporated review comments
Apr 18, 2019
9a957ac
Incorporated review comments
Apr 18, 2019
f1a1071
Merge remote-tracking branch 'upstream/master'
asarkar84 Apr 19, 2019
ee0beac
Updated the operation id for Billing spec
asarkar84 Apr 22, 2019
f7a7ff9
Merge remote-tracking branch 'upstream/master'
asarkar84 Apr 22, 2019
2b94171
Incorporated review comments
asarkar84 Apr 22, 2019
1b0eb1e
Incorporated review comments
asarkar84 Apr 22, 2019
86c8bcf
Fixed the errors
asarkar84 Apr 22, 2019
b73f7f6
Added multiple inputs
asarkar84 Apr 22, 2019
276a50f
Fixed build errors
asarkar84 Apr 22, 2019
9fb11a5
Incorporated review comments
asarkar84 Apr 23, 2019
861de2b
Incorporated review comments
asarkar84 Apr 23, 2019
99d6a72
Merge remote-tracking branch 'upstream/master'
asarkar84 May 21, 2019
7dc3649
Spec for LineOfCredit API and other corrections
asarkar84 May 21, 2019
8b7638c
Fixed build error
asarkar84 May 21, 2019
80551f2
Incorporated review comments
asarkar84 May 24, 2019
78b382b
Incorporated review comments
asarkar84 May 28, 2019
0c5738c
Updated the increase api
asarkar84 May 28, 2019
0c6a6c6
Incorporated review comments
asarkar84 May 30, 2019
dd4cb50
Updated the operation id
asarkar84 May 30, 2019
1db7d6a
Fixed errors
asarkar84 May 30, 2019
8049885
Fixed errors
asarkar84 May 30, 2019
d7c7b77
Fixed error
asarkar84 May 30, 2019
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 @@ -322,7 +322,7 @@
}
}
},
"put": {
"patch": {
"tags": [
"BillingProfiles"
],
Expand Down Expand Up @@ -623,7 +623,7 @@
}
}
},
"put": {
"patch": {
asarkar84 marked this conversation as resolved.
Show resolved Hide resolved
"tags": [
"InvoiceSections"
],
Expand Down Expand Up @@ -3261,6 +3261,105 @@
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default": {
"get": {
"tags": [
"LineOfCredits"
],
"x-ms-examples": {
"LineOfCreditBySubscription": {
"$ref": "./examples/LineOfCreditBySubscription.json"
}
},
"operationId": "LineOfCredits_Get",
"description": "Get the current line of credit.",
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/LineOfCredit"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default/increase": {
ryansbenson marked this conversation as resolved.
Show resolved Hide resolved
"post": {
asarkar84 marked this conversation as resolved.
Show resolved Hide resolved
"tags": [
"LineOfCredits"
],
"operationId": "LineOfCredits_Increase",
"x-ms-long-running-operation": true,
"x-ms-examples": {
"IncreaseLineOfCreditBySubscription": {
"$ref": "./examples/IncreaseLineOfCreditBySubscription.json"
}
},
"description": "Increase the current line of credit.",
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/IncreaseLineOfCreditRequestProperties"
},
"description": "Parameters supplied to the increase line of credit operation."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/LineOfCredit"
}
},
"202": {
"description": "Accepted. Line of credit increase is in progress.",
"headers": {
asarkar84 marked this conversation as resolved.
Show resolved Hide resolved
"Location": {
asarkar84 marked this conversation as resolved.
Show resolved Hide resolved
"description": "Location URI to poll for result.",
"type": "string"
},
"Retry-After": {
"description": "Recommends the retryable time after receiving this.",
"type": "integer"
},
"Azure-AsyncOperation": {
"description": "URI to poll for the operation status",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -5394,6 +5493,57 @@
}
}
},
"LineOfCredit": {
"description": "Line of credit resource.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"properties": {
"properties": {
"description": "A line of credit.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/LineOfCreditProperties"
}
}
},
"LineOfCreditProperties": {
"description": "The properties of the line of credit.",
"properties": {
"creditLimit": {
"description": "The current credit limit.",
"$ref": "#/definitions/Amount",
"readOnly": true
},
"reason": {
"description": "The reason for the line of credit status when not approved.",
"type": "string",
"readOnly": true
},
"remainingBalance": {
"description": "Remaining balance.",
"$ref": "#/definitions/Amount",
"readOnly": true
},
"status": {
asarkar84 marked this conversation as resolved.
Show resolved Hide resolved
"description": "The line of credit status.",
"type": "string",
"readOnly": true
}
}
},
"IncreaseLineOfCreditRequestProperties": {
"type": "object",
"description": "Request parameters to increase line of credit.",
"properties": {
"desiredCreditLimit": {
"description": "The desired credit limit.",
"type": "number"
}
}
},
"Action": {
"description": "the action the caller allowed to do",
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"subscriptionId": "{subscriptionId}",
"parameters": {
"desiredCreditLimit": 10000
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default",
"name": "default",
"type": "Microsoft.Billing/lineOfCredit",
"properties": {
"creditLimit": {
"currency": "USD",
"value": 20000.00
},
"reason": null,
"remainingBalance": {
"currency": "USD",
"value": 6000.00
},
"status": "approved"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/44000000-0000-0000-0000-000000000000?api-version=2018-11-01-preview",
asarkar84 marked this conversation as resolved.
Show resolved Hide resolved
"Retry-After": "60",
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/operationStatus/44000000-0000-0000-0000-000000000000?api-version=2018-11-01-preview",
"OData-EntityId": "44000000-0000-0000-0000-000000000000"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"subscriptionId": "{subscriptionId}"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default",
"name": "default",
"type": "Microsoft.Billing/lineOfCredit",
"properties": {
"creditLimit": {
"currency": "USD",
"value": 20000.00
},
"reason": null,
"remainingBalance": {
"currency": "USD",
"value": 6000.00
},
"status": "approved"
}
}
}
}
}