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

Easy Button Private to Public API Migration #30374

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a0eba87
Easy button related changes
Aug 27, 2024
fdf5fb1
Added new files for swagger changes related to EasyButton migration
Aug 28, 2024
c521c7d
Updated example data files
Aug 28, 2024
4f44bf2
Addressed review comments
Aug 28, 2024
85c5e09
ARM Resource for Billing Account Migration
Aug 29, 2024
a6f9e2a
Updated example files
Sep 4, 2024
4ef8958
Removed source billing account name from response
Sep 13, 2024
9a67ed5
Updated version number
Sep 15, 2024
a7df88f
Added locale information in request body for put call
Sep 15, 2024
9cefa77
Refactored to move definitions to types.json
Sep 25, 2024
7b07aca
Updated MigrationStatus and TransferProductStatus as enumAsString
Sep 25, 2024
3cb55d3
Fixed build issues
Sep 25, 2024
ed83fc7
Build fix
Sep 25, 2024
f21465f
Added operations.json
Sep 26, 2024
e3bc017
Fixed build issue related to operation.json
Sep 26, 2024
f4f200e
Breaking change fix
Sep 26, 2024
86369a7
Model validation issues fix
Sep 26, 2024
4f58734
LintDiff Issues
Sep 26, 2024
c48444f
Addressed review comments
Sep 26, 2024
e402c46
Updated readme file to fix LintDiff
Sep 26, 2024
be3d047
- code: OperationsApiSchemaUsesCommonTypes
Sep 27, 2024
04f5d54
Addressed review comment related to Products
Sep 27, 2024
65ac3bb
Addressed review comment related migration status
Sep 27, 2024
629165d
Fixed Invalid_Type Error
Oct 3, 2024
c23b767
Fixed swagger model validation issue
Oct 3, 2024
255832d
PrettierCheck fix
Oct 3, 2024
43fbdd1
Added other status info for migration status
Oct 3, 2024
20bb1f1
Merge branch 'main' into migration_resource
abdulgagit Oct 3, 2024
67aa2b2
Merge branch 'main' into migration_resource
abdulgagit Oct 4, 2024
0f191de
Merge branch 'main' into migration_resource
abdulgagit Oct 16, 2024
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
@@ -0,0 +1,25 @@
{
"parameters": {
"billingAccountName": "57151837",
"api-version": "2024-08-01-preview",
"parameters": {
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "Draft"
}
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default",
"name": "default",
"type": "Microsoft.Billing/billingAccounts/migrations/default",
"properties": {
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "Draft",
"transferId": null,
"products": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"billingAccountName": "57151837",
"api-version": "2024-08-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default",
"name": "default",
"type": "Microsoft.Billing/billingAccounts/migrations/default",
"properties": {
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "Completed",
"transferId": "4a74dc9e-a863-4c88-b11e-e76aa2f4a05d",
"products": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"billingAccountName": "57151837",
"api-version": "2024-08-01-preview",
"parameters": {
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "InProgress",
"locale": "en-us"
}
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default",
"name": "default",
"type": "Microsoft.Billing/billingAccounts/migrations/default",
"properties": {
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
"status": "Completed",
"transferId": "4a74dc9e-a863-4c88-b11e-e76aa2f4a05d",
"products": [
{
"productType": "AzureSubscription",
"productId": "43566850-63bf-40d2-a2cb-763eb62d7f3b",
"name": "OpenAI Staging",
"skuDescription": "MS-AZR-0003P",
"status": "Completed"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2024-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "{namespace}/resource/read",
"display": {
"operation": "List resources",
"provider": "{namespace}",
"resource": "resource"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"swagger": "2.0",
"info": {
"title": "BillingManagementClient",
"description": "Documentation for Microsoft.Billing.",
"contact": {
"name": "Microsoft.Billing",
"url": "https://learn.microsoft.com/en-us/rest/api/billing/",
"email": "[email protected]"
},
"version": "2024-08-01-preview"
},
"paths": {
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default": {
"get": {
"tags": [
"Migration"
],
"description": "Gets migration mapping details.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"operationId": "Migration_Get",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "./types.json#/parameters/billingAccountName"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "Migration mapping details.",
"schema": {
"$ref": "#/definitions/MigrationDetails"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get migration mapping details": {
"$ref": "./examples/GetMigrationMapping.json"
}
}
},
"put": {
"tags": [
"Migration"
],
"description": "Migrates from source to destination billing scope",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"operationId": "Migration_Put",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "./types.json#/parameters/billingAccountName"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
},
abdulgagit marked this conversation as resolved.
Show resolved Hide resolved
{
"in": "body",
"name": "parameters",
"description": "Migration details.",
"required": true,
"schema": {
"$ref": "./types.json#/definitions/Migration"
}
}
],
"responses": {
"200": {
"description": "Migration details.",
"schema": {
"$ref": "#/definitions/MigrationDetails"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"CreateOrUpdateMigrationMapping": {
"$ref": "./examples/CreateOrUpdateMigrationMapping.json"
},
"Migration Initiation Details": {
"$ref": "./examples/InitiateMigration.json"
}
}
}
}
},
"definitions": {
"MigrationDetails": {
"description": "Migration details.",
"type": "object",
"allOf": [
{
"$ref": "./types.json#/definitions/ProxyResourceWithTags"
}
],
"properties": {
"properties": {
"$ref": "./types.json#/definitions/Migration"
}
}
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
},
"description": "Azure Active Directory OAuth2 Flow."
}
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
]
}
Loading