From b05dc1a382b4df7400abe5d50baa843d82128d45 Mon Sep 17 00:00:00 2001 From: vartikavr Date: Thu, 19 Dec 2024 11:25:34 +0530 Subject: [PATCH 1/2] adding typespec files for Pilot --- .../Operations_List_MaximumSet_Gen.json | 28 + .../Operations_List_MinimumSet_Gen.json | 12 + ...zations_CreateOrUpdate_MaximumSet_Gen.json | 152 ++++ .../Organizations_Delete_MaximumSet_Gen.json | 18 + .../Organizations_Get_MaximumSet_Gen.json | 64 ++ ...ns_ListByResourceGroup_MaximumSet_Gen.json | 68 ++ ...ons_ListBySubscription_MaximumSet_Gen.json | 67 ++ .../Organizations_Update_MaximumSet_Gen.json | 75 ++ .../Microsoft.LiftrPilot.Management/main.tsp | 75 ++ .../tspconfig.yaml | 12 + .../Operations_List_MaximumSet_Gen.json | 28 + .../Operations_List_MinimumSet_Gen.json | 12 + ...zations_CreateOrUpdate_MaximumSet_Gen.json | 152 ++++ .../Organizations_Delete_MaximumSet_Gen.json | 18 + .../Organizations_Get_MaximumSet_Gen.json | 64 ++ ...ns_ListByResourceGroup_MaximumSet_Gen.json | 68 ++ ...ons_ListBySubscription_MaximumSet_Gen.json | 67 ++ .../Organizations_Update_MaximumSet_Gen.json | 75 ++ .../preview/2024-10-03-preview/pilot.json | 685 ++++++++++++++++++ .../liftrpilot/resource-manager/readme.md | 43 ++ 20 files changed, 1783 insertions(+) create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Operations_List_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Operations_List_MinimumSet_Gen.json create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Delete_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Get_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_ListBySubscription_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Update_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/main.tsp create mode 100644 specification/liftrpilot/Microsoft.LiftrPilot.Management/tspconfig.yaml create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Operations_List_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Operations_List_MinimumSet_Gen.json create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Delete_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Get_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_ListBySubscription_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Update_MaximumSet_Gen.json create mode 100644 specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json create mode 100644 specification/liftrpilot/resource-manager/readme.md diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Operations_List_MaximumSet_Gen.json b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..efc72ba93df4 --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List_MaximumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-03-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "csu", + "isDataAction": true, + "display": { + "provider": "kjhkrngjafg", + "resource": "axiqdglypbkbfqywkcvtfwonmassy", + "operation": "wejsedavxuiswu", + "description": "qptgahnkhwleiqfb" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Operations_List_MinimumSet_Gen.json b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..10dd501c05fe --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List_MinimumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-03-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..0094010baf02 --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,152 @@ +{ + "title": "Organizations_CreateOrUpdate", + "operationId": "Organizations_CreateOrUpdate", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot", + "organizationName": "Xyz_123-AB.45", + "resource": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + } + }, + "identity": { + "type": "None", + "userAssignedIdentities": { + "key989": {} + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + } + } +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Delete_MaximumSet_Gen.json b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..d8ade62566ac --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "Organizations_Delete", + "operationId": "Organizations_Delete", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot", + "organizationName": "Xyz_123-AB.45" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Get_MaximumSet_Gen.json b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..9314812075d6 --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Get_MaximumSet_Gen.json @@ -0,0 +1,64 @@ +{ + "title": "Organizations_Get", + "operationId": "Organizations_Get", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot", + "organizationName": "Xyz_123-AB.45" + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + } + } +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..5cbf6de89fa5 --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,68 @@ +{ + "title": "Organizations_ListByResourceGroup", + "operationId": "Organizations_ListByResourceGroup", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_ListBySubscription_MaximumSet_Gen.json b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..736097e40635 --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,67 @@ +{ + "title": "Organizations_ListBySubscription", + "operationId": "Organizations_ListBySubscription", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Update_MaximumSet_Gen.json b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..b786fe103029 --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/examples/2024-10-03-preview/Organizations_Update_MaximumSet_Gen.json @@ -0,0 +1,75 @@ +{ + "title": "Organizations_Update", + "operationId": "Organizations_Update", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot", + "organizationName": "Xyz_123-AB.45", + "properties": { + "tags": { + "key5314": "acwrodnlohxmtyekyagik" + }, + "identity": { + "type": "None", + "userAssignedIdentities": { + "key9643": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + } + } +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/main.tsp b/specification/liftrpilot/Microsoft.LiftrPilot.Management/main.tsp new file mode 100644 index 000000000000..090357299168 --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/main.tsp @@ -0,0 +1,75 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@azure-tools/typespec-liftr-base"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; +using LiftrBase; + +/* Microsoft.LiftrPilot Resource Provider management API. */ +@armProviderNamespace +@service({ + title: "Microsoft.LiftrPilot management service", +}) +@versioned(Microsoft.LiftrPilot.Versions) +namespace Microsoft.LiftrPilot; + +interface Operations extends Azure.ResourceManager.Operations {} + +/** The available API versions. */ +enum Versions { + /** 2024-10-03-preview version */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) + @useDependency(LiftrBase.Versions.v1_preview) + v2024_10_03_preview: "2024-10-03-preview", +} + +/** These properties will be sent to your endpoints registered with Liftr during CRUD on resource. + * BaseResourceProperties contains Marketplace, useDetail related properties*/ +@doc("Properties specific to Organization") +model OrganizationProperties is BaseResourceProperties; + +model OrganizationResource + is Azure.ResourceManager.TrackedResource { + @key("organizationName") + @pattern("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$") + @segment("organizations") + @minLength(1) + @maxLength(50) + @doc("Name of the Organization resource") + @path + name: string; + + ...Azure.ResourceManager.ManagedServiceIdentityProperty; +} + +/** + * The type used for update operations of the Organization Resource. + */ +model OrganizationResourceUpdate { + ...Azure.ResourceManager.Foundations.ArmTagsProperty; + + /** Updatable managed service identity */ + ...Azure.ResourceManager.ManagedServiceIdentityProperty; +} + +@armResourceOperations +interface Organizations { + get is ArmResourceRead; + createOrUpdate is ArmResourceCreateOrReplaceAsync; + update is ArmCustomPatchSync< + OrganizationResource, + OrganizationResourceUpdate + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByResourceGroup is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; +} diff --git a/specification/liftrpilot/Microsoft.LiftrPilot.Management/tspconfig.yaml b/specification/liftrpilot/Microsoft.LiftrPilot.Management/tspconfig.yaml new file mode 100644 index 000000000000..5097e769e8e2 --- /dev/null +++ b/specification/liftrpilot/Microsoft.LiftrPilot.Management/tspconfig.yaml @@ -0,0 +1,12 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/pilot.json" + examples-dir: "{project-root}/examples" +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..efc72ba93df4 --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List_MaximumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-03-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "csu", + "isDataAction": true, + "display": { + "provider": "kjhkrngjafg", + "resource": "axiqdglypbkbfqywkcvtfwonmassy", + "operation": "wejsedavxuiswu", + "description": "qptgahnkhwleiqfb" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..10dd501c05fe --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List_MinimumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-03-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..0094010baf02 --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,152 @@ +{ + "title": "Organizations_CreateOrUpdate", + "operationId": "Organizations_CreateOrUpdate", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot", + "organizationName": "Xyz_123-AB.45", + "resource": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + } + }, + "identity": { + "type": "None", + "userAssignedIdentities": { + "key989": {} + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + } + } +} diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Delete_MaximumSet_Gen.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..d8ade62566ac --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "Organizations_Delete", + "operationId": "Organizations_Delete", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot", + "organizationName": "Xyz_123-AB.45" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Get_MaximumSet_Gen.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..9314812075d6 --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Get_MaximumSet_Gen.json @@ -0,0 +1,64 @@ +{ + "title": "Organizations_Get", + "operationId": "Organizations_Get", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot", + "organizationName": "Xyz_123-AB.45" + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + } + } +} diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..5cbf6de89fa5 --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,68 @@ +{ + "title": "Organizations_ListByResourceGroup", + "operationId": "Organizations_ListByResourceGroup", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_ListBySubscription_MaximumSet_Gen.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..736097e40635 --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,67 @@ +{ + "title": "Organizations_ListBySubscription", + "operationId": "Organizations_ListBySubscription", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Update_MaximumSet_Gen.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..b786fe103029 --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/examples/Organizations_Update_MaximumSet_Gen.json @@ -0,0 +1,75 @@ +{ + "title": "Organizations_Update", + "operationId": "Organizations_Update", + "parameters": { + "api-version": "2024-10-03-preview", + "subscriptionId": "9465DBB2-7D51-4347-B094-3A0CFB70ABC4", + "resourceGroupName": "rgpilot", + "organizationName": "Xyz_123-AB.45", + "properties": { + "tags": { + "key5314": "acwrodnlohxmtyekyagik" + }, + "identity": { + "type": "None", + "userAssignedIdentities": { + "key9643": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "eprla", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "tvnrcrnvq", + "offerId": "lnpoyoenl", + "planId": "vvgkkvltcqlnnstlguddr", + "planName": "dqsgpuczaesmgxpmkscibpipen", + "termUnit": "kxfhkclkvjvwdfhkfmsuuwrez", + "termId": "oduwamn" + } + }, + "user": { + "firstName": "kzyrnoqoiubbeypf", + "lastName": "efdxibpbpckfejmsllai", + "emailAddress": "john.doe123@example-mail.com", + "upn": "epmobhpfwoyysowxngmxcoe", + "phoneNumber": "zy" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "tenantId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "type": "None", + "userAssignedIdentities": { + "key989": { + "principalId": "b5684bd7-7958-4c0e-9795-d686c31746d2", + "clientId": "b5684bd7-7958-4c0e-9795-d686c31746d2" + } + } + }, + "tags": { + "key2630": "frxccateowyfznbklwtqogwfnby" + }, + "location": "qfjowowuolyocffvcohdkod", + "id": "/subscriptions/9465DBB2-7D51-4347-B094-3A0CFB70ABC4/resourceGroups/rgpilot/providers/Microsoft.LiftrPilot/organizations/res-pilot", + "name": "uhcdgezwbzpja", + "type": "pjxhqrlcjdlkpqe", + "systemData": { + "createdBy": "jglnltozpotzuwglnmtkmddrvpo", + "createdByType": "User", + "createdAt": "2024-10-04T05:27:47.860Z", + "lastModifiedBy": "oicniarogcicxhsajioj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-04T05:27:47.861Z" + } + } + } + } +} diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json new file mode 100644 index 000000000000..7cca2c2c1095 --- /dev/null +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json @@ -0,0 +1,685 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.LiftrPilot management service", + "version": "2024-10-03-preview", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Organizations" + } + ], + "paths": { + "/providers/Microsoft.LiftrPilot/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List_MaximumSet": { + "$ref": "./examples/Operations_List_MaximumSet_Gen.json" + }, + "Operations_List_MinimumSet": { + "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LiftrPilot/organizations": { + "get": { + "operationId": "Organizations_ListBySubscription", + "tags": [ + "Organizations" + ], + "description": "List OrganizationResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OrganizationResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_ListBySubscription": { + "$ref": "./examples/Organizations_ListBySubscription_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LiftrPilot/organizations": { + "get": { + "operationId": "Organizations_ListByResourceGroup", + "tags": [ + "Organizations" + ], + "description": "List OrganizationResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OrganizationResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_ListByResourceGroup": { + "$ref": "./examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LiftrPilot/organizations/{organizationName}": { + "get": { + "operationId": "Organizations_Get", + "tags": [ + "Organizations" + ], + "description": "Get a OrganizationResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "organizationName", + "in": "path", + "description": "Name of the Organization resource", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_Get": { + "$ref": "./examples/Organizations_Get_MaximumSet_Gen.json" + } + } + }, + "put": { + "operationId": "Organizations_CreateOrUpdate", + "tags": [ + "Organizations" + ], + "description": "Create a OrganizationResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "organizationName", + "in": "path", + "description": "Name of the Organization resource", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'OrganizationResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "201": { + "description": "Resource 'OrganizationResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/OrganizationResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_CreateOrUpdate": { + "$ref": "./examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Organizations_Update", + "tags": [ + "Organizations" + ], + "description": "Update a OrganizationResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "organizationName", + "in": "path", + "description": "Name of the Organization resource", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/OrganizationResourceUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_Update": { + "$ref": "./examples/Organizations_Update_MaximumSet_Gen.json" + } + } + }, + "delete": { + "operationId": "Organizations_Delete", + "tags": [ + "Organizations" + ], + "description": "Delete a OrganizationResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "organizationName", + "in": "path", + "description": "Name of the Organization resource", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_Delete": { + "$ref": "./examples/Organizations_Delete_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate": { + "type": "object", + "description": "Managed service identity (system assigned and/or user assigned identities)", + "properties": { + "type": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentityType", + "description": "The type of managed identity assigned to this resource." + }, + "userAssignedIdentities": { + "type": "object", + "description": "The identities assigned to this resource by the user.", + "additionalProperties": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/UserAssignedIdentity" + } + ], + "type": "object", + "x-nullable": true + } + } + } + }, + "Azure.ResourceManager.ResourceProvisioningState": { + "type": "string", + "description": "The provisioning state of a resource type.", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ResourceProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + } + ] + }, + "readOnly": true + }, + "LiftrBase.MarketplaceDetails": { + "type": "object", + "description": "Marketplace details for an organization", + "properties": { + "subscriptionId": { + "type": "string", + "description": "Azure subscription id for the the marketplace offer is purchased from" + }, + "subscriptionStatus": { + "$ref": "#/definitions/LiftrBase.MarketplaceSubscriptionStatus", + "description": "Marketplace subscription status", + "readOnly": true + }, + "offerDetails": { + "$ref": "#/definitions/LiftrBase.OfferDetails", + "description": "Offer details for the marketplace that is selected by the user" + } + }, + "required": [ + "subscriptionId", + "offerDetails" + ] + }, + "LiftrBase.MarketplaceSubscriptionStatus": { + "type": "string", + "description": "Marketplace subscription status of a resource.", + "enum": [ + "PendingFulfillmentStart", + "Subscribed", + "Suspended", + "Unsubscribed" + ], + "x-ms-enum": { + "name": "MarketplaceSubscriptionStatus", + "modelAsString": true, + "values": [ + { + "name": "PendingFulfillmentStart", + "value": "PendingFulfillmentStart", + "description": "Purchased but not yet activated" + }, + { + "name": "Subscribed", + "value": "Subscribed", + "description": "Marketplace subscription is activated" + }, + { + "name": "Suspended", + "value": "Suspended", + "description": "This state indicates that a customer's payment for the Marketplace service was not received" + }, + { + "name": "Unsubscribed", + "value": "Unsubscribed", + "description": "Customer has cancelled the subscription" + } + ] + } + }, + "LiftrBase.OfferDetails": { + "type": "object", + "description": "Offer details for the marketplace that is selected by the user", + "properties": { + "publisherId": { + "type": "string", + "description": "Publisher Id for the marketplace offer" + }, + "offerId": { + "type": "string", + "description": "Offer Id for the marketplace offer" + }, + "planId": { + "type": "string", + "description": "Plan Id for the marketplace offer" + }, + "planName": { + "type": "string", + "description": "Plan Name for the marketplace offer" + }, + "termUnit": { + "type": "string", + "description": "Plan Display Name for the marketplace offer" + }, + "termId": { + "type": "string", + "description": "Plan Display Name for the marketplace offer" + } + }, + "required": [ + "publisherId", + "offerId", + "planId" + ] + }, + "LiftrBase.UserDetails": { + "type": "object", + "description": "User details for an organization", + "properties": { + "firstName": { + "type": "string", + "description": "First name of the user" + }, + "lastName": { + "type": "string", + "description": "Last name of the user" + }, + "emailAddress": { + "$ref": "#/definitions/LiftrBase.email", + "description": "Email address of the user" + }, + "upn": { + "type": "string", + "description": "User's principal name" + }, + "phoneNumber": { + "type": "string", + "description": "User's phone number" + } + }, + "required": [ + "firstName", + "lastName", + "emailAddress" + ] + }, + "LiftrBase.email": { + "type": "string", + "description": "Reusable representation of an email address.", + "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$" + }, + "OrganizationProperties": { + "type": "object", + "description": "Properties specific to Organization", + "properties": { + "marketplace": { + "$ref": "#/definitions/LiftrBase.MarketplaceDetails", + "description": "Marketplace details of the resource.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "user": { + "$ref": "#/definitions/LiftrBase.UserDetails", + "description": "Details of the user." + }, + "provisioningState": { + "$ref": "#/definitions/Azure.ResourceManager.ResourceProvisioningState", + "description": "Provisioning state of the resource.", + "readOnly": true + } + }, + "required": [ + "marketplace", + "user" + ] + }, + "OrganizationResource": { + "type": "object", + "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "properties": { + "properties": { + "$ref": "#/definitions/OrganizationProperties", + "description": "The resource-specific properties for this resource." + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "OrganizationResourceListResult": { + "type": "object", + "description": "The response of a OrganizationResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The OrganizationResource items on this page", + "items": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "OrganizationResourceUpdate": { + "type": "object", + "description": "The type used for update operations of the Organization Resource.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate", + "description": "The managed service identities assigned to this resource." + } + } + } + }, + "parameters": {} +} diff --git a/specification/liftrpilot/resource-manager/readme.md b/specification/liftrpilot/resource-manager/readme.md new file mode 100644 index 000000000000..c84a075922e4 --- /dev/null +++ b/specification/liftrpilot/resource-manager/readme.md @@ -0,0 +1,43 @@ +# Microsoft.LiftrPilot RP + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Liftrpilot service. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the pilot service. + +```yaml +openapi-type: arm +openapi-subtype: rpaas +tag: package-2024-10-03-preview +``` +### Tag: package-2024-10-03-preview + +These settings apply only when `--tag=package-2024-10-03-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-10-03-preview' +input-file: + - Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json +suppressions: + - code: AvoidAnonymousTypes + where: $.definitions["Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate"].properties.userAssignedIdentities.additionalProperties + reason: User Assigned Managed Identity Type inline definition is automtaically added to json. +``` \ No newline at end of file From e4793e436fad6213510293262c39bed611b27e97 Mon Sep 17 00:00:00 2001 From: vartikavr Date: Thu, 19 Dec 2024 12:01:44 +0530 Subject: [PATCH 2/2] fix typespec validation errors --- .../Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json index 7cca2c2c1095..03ee1b91531d 100644 --- a/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json +++ b/specification/liftrpilot/resource-manager/Microsoft.LiftrPilot/preview/2024-10-03-preview/pilot.json @@ -605,6 +605,7 @@ "description": "Marketplace details of the resource.", "x-ms-mutability": [ "read", + "update", "create" ] },