diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GenerateAccessToken.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GenerateAccessToken.json new file mode 100644 index 000000000000..127253ba228c --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GenerateAccessToken.json @@ -0,0 +1,33 @@ +{ + "title": "Offers_GenerateAccessToken", + "operationId": "Offers_GenerateAccessToken", + "parameters": { + "api-version": "2024-01-01", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "body": { + "deviceVersion": "1.0.18062.1", + "deviceSku": "edge", + "egeMarketPlaceResourceId": "testid", + "edgeMarketPlaceRegion": "EastUS2Euap", + "hypervGeneration": "V2", + "marketPlaceSku": "2022-datacenter-azure-edition-core", + "marketPlaceSkuVersion": "20348.1129.221007", + "publisherName": "ubuntu" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, + "200": { + "body": { + "diskId": "abcd", + "status": "created", + "accessToken": "hidden" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetAccessToken.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetAccessToken.json new file mode 100644 index 000000000000..5afc4a0177dd --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetAccessToken.json @@ -0,0 +1,21 @@ +{ + "title": "Offers_GetAccessToken", + "operationId": "Offers_GetAccessToken", + "parameters": { + "api-version": "2024-01-01", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "body": { + "requestId": "1.0.18062.1" + } + }, + "responses": { + "200": { + "body": { + "diskId": "abcd", + "status": "created", + "accessToken": "hidden" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetOffer.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetOffer.json new file mode 100644 index 000000000000..05290f1e0ff4 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetOffer.json @@ -0,0 +1,72 @@ +{ + "title": "Offers_Get", + "operationId": "Offers_Get", + "parameters": { + "api-version": "2024-01-01", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo" + }, + "responses": { + "200": { + "body": { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetPublisher.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetPublisher.json new file mode 100644 index 000000000000..e2508b111056 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/GetPublisher.json @@ -0,0 +1,21 @@ +{ + "title": "Publishers_Get", + "operationId": "Publishers_Get", + "parameters": { + "api-version": "2024-01-01", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "publisherName": "canonical" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOffers.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOffers.json new file mode 100644 index 000000000000..da7a3c37268c --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOffers.json @@ -0,0 +1,75 @@ +{ + "title": "Offers_List", + "operationId": "Offers_List", + "parameters": { + "api-version": "2024-01-01", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOffersBySubscription.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOffersBySubscription.json new file mode 100644 index 000000000000..88e2d5603a0f --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOffersBySubscription.json @@ -0,0 +1,75 @@ +{ + "title": "Offers_ListBySubscription", + "operationId": "Offers_ListBySubscription", + "parameters": { + "api-version": "2024-01-01", + "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOperations.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOperations.json new file mode 100644 index 000000000000..b4dc2a85d8ea --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListOperations.json @@ -0,0 +1,25 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.EdgeMarketplace/Publishers", + "isDataAction": false, + "display": { + "provider": "Microsoft.EdgeMarketplace", + "resource": "Publishers", + "operation": "List the publishers", + "description": "Gets the list of the publishers." + } + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListPublishers.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListPublishers.json new file mode 100644 index 000000000000..73d056f637cf --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListPublishers.json @@ -0,0 +1,30 @@ +{ + "title": "Publishers_List", + "operationId": "Publishers_List", + "parameters": { + "api-version": "2024-01-01", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "filter": "deviceSku eq 'edgepro1'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942", + "name": "ntegralinc1586961136942", + "type": "Microsoft.EdgeMarketplace/publishers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListPublishersBySubscription.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListPublishersBySubscription.json new file mode 100644 index 000000000000..ba2a12e6d6db --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-01-01/ListPublishersBySubscription.json @@ -0,0 +1,30 @@ +{ + "title": "Publishers_ListBySubscription", + "operationId": "Publishers_ListBySubscription", + "parameters": { + "api-version": "2024-01-01", + "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5", + "filter": "deviceSku eq 'edgepro1'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942", + "name": "ntegralinc1586961136942", + "type": "Microsoft.EdgeMarketplace/publishers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GenerateAccessToken.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GenerateAccessToken.json new file mode 100644 index 000000000000..a9d2cbe4e2e8 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GenerateAccessToken.json @@ -0,0 +1,33 @@ +{ + "title": "Offers_GenerateAccessToken", + "operationId": "Offers_GenerateAccessToken", + "parameters": { + "api-version": "2024-10-01", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "body": { + "deviceVersion": "1.0.18062.1", + "deviceSku": "edge", + "egeMarketPlaceResourceId": "testid", + "edgeMarketPlaceRegion": "EastUS2Euap", + "hypervGeneration": "V2", + "marketPlaceSku": "2022-datacenter-azure-edition-core", + "marketPlaceSkuVersion": "20348.1129.221007", + "publisherName": "ubuntu" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, + "200": { + "body": { + "diskId": "abcd", + "status": "created", + "accessToken": "hidden" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetAccessToken.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetAccessToken.json new file mode 100644 index 000000000000..df4f6aaa66b8 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetAccessToken.json @@ -0,0 +1,21 @@ +{ + "title": "Offers_GetAccessToken", + "operationId": "Offers_GetAccessToken", + "parameters": { + "api-version": "2024-10-01", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "body": { + "requestId": "1.0.18062.1" + } + }, + "responses": { + "200": { + "body": { + "diskId": "abcd", + "status": "created", + "accessToken": "hidden" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetOffer.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetOffer.json new file mode 100644 index 000000000000..6584cd85219b --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetOffer.json @@ -0,0 +1,73 @@ +{ + "title": "Offers_Get", + "operationId": "Offers_Get", + "parameters": { + "api-version": "2024-10-01", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo" + }, + "responses": { + "200": { + "body": { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage", + "launchType": "Trusted" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetPublisher.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetPublisher.json new file mode 100644 index 000000000000..4bc37b17db33 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/GetPublisher.json @@ -0,0 +1,21 @@ +{ + "title": "Publishers_Get", + "operationId": "Publishers_Get", + "parameters": { + "api-version": "2024-10-01", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "publisherName": "canonical" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOffers.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOffers.json new file mode 100644 index 000000000000..348ed18578d2 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOffers.json @@ -0,0 +1,76 @@ +{ + "title": "Offers_List", + "operationId": "Offers_List", + "parameters": { + "api-version": "2024-10-01", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage", + "launchType": "Trusted" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOffersBySubscription.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOffersBySubscription.json new file mode 100644 index 000000000000..3954428fff4d --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOffersBySubscription.json @@ -0,0 +1,75 @@ +{ + "title": "Offers_ListBySubscription", + "operationId": "Offers_ListBySubscription", + "parameters": { + "api-version": "2024-10-01", + "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure",
+ "offerId": "0001-com-ubuntu-pro-jammy",
+ "popularity": 8,
+ "offerPublisher": {
+ "publisherId": "canonical",
+ "publisherDisplayName": "Canonical"
+ },
+ "offerType": "VirtualMachine",
+ "availability": "Preview",
+ "releaseType": "Preview",
+ "termsAndConditions": {
+ "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N",
+ "legalTermsType": "None",
+ "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy"
+ },
+ "supportUri": "https://ubuntu.com/azure/support",
+ "categoryIds": [],
+ "iconFileUris": {
+ "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1",
+ "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e",
+ "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a",
+ "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2"
+ }
+ },
+ "marketplaceSkus": [
+ {
+ "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts",
+ "marketplaceSkuId": "pro-22_04-lts",
+ "displayName": "pro-22_04-lts",
+ "type": "test",
+ "operatingSystem": {
+ "name": "linux",
+ "type": "test",
+ "family": "test"
+ },
+ "marketplaceSkuVersions": [
+ {
+ "name": "22.04.202204200",
+ "sizeOnDiskInMb": 0,
+ "minimumDownloadSizeInMb": 0,
+ "stageName": "teststage"
+ }
+ ]
+ }
+ ]
+ },
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy",
+ "name": "0001-com-ubuntu-pro-jammy",
+ "type": "Microsoft.EdgeMarketplace/publishers/offers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOperations.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOperations.json
new file mode 100644
index 000000000000..d97c0d90f521
--- /dev/null
+++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListOperations.json
@@ -0,0 +1,25 @@
+{
+ "title": "Operations_List",
+ "operationId": "Operations_List",
+ "parameters": {
+ "api-version": "2024-10-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.EdgeMarketplace/Publishers",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.EdgeMarketplace",
+ "resource": "Publishers",
+ "operation": "List the publishers",
+ "description": "Gets the list of the publishers."
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListPublishers.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListPublishers.json
new file mode 100644
index 000000000000..f02e1734955f
--- /dev/null
+++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListPublishers.json
@@ -0,0 +1,30 @@
+{
+ "title": "Publishers_List",
+ "operationId": "Publishers_List",
+ "parameters": {
+ "api-version": "2024-10-01",
+ "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo",
+ "filter": "deviceSku eq 'edgepro1'"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical",
+ "name": "canonical",
+ "type": "Microsoft.EdgeMarketplace/publishers",
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ },
+ {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942",
+ "name": "ntegralinc1586961136942",
+ "type": "Microsoft.EdgeMarketplace/publishers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListPublishersBySubscription.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListPublishersBySubscription.json
new file mode 100644
index 000000000000..d4228c75cee4
--- /dev/null
+++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2024-10-01/ListPublishersBySubscription.json
@@ -0,0 +1,30 @@
+{
+ "title": "Publishers_ListBySubscription",
+ "operationId": "Publishers_ListBySubscription",
+ "parameters": {
+ "api-version": "2024-10-01",
+ "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5",
+ "filter": "deviceSku eq 'edgepro1'"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical",
+ "name": "canonical",
+ "type": "Microsoft.EdgeMarketplace/publishers",
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ },
+ {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942",
+ "name": "ntegralinc1586961136942",
+ "type": "Microsoft.EdgeMarketplace/publishers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/main.tsp b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/main.tsp
new file mode 100644
index 000000000000..9dbb6160ebc9
--- /dev/null
+++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/main.tsp
@@ -0,0 +1,27 @@
+import "@typespec/rest";
+import "@typespec/versioning";
+import "@azure-tools/typespec-azure-core";
+import "@azure-tools/typespec-azure-resource-manager";
+import "./models.tsp";
+import "./operations.tsp";
+import "./offer.tsp";
+import "./publisher.tsp";
+
+using TypeSpec.Rest;
+using TypeSpec.Http;
+using Azure.Core;
+using Azure.ResourceManager;
+using TypeSpec.Versioning;
+
+@armProviderNamespace
+@service(#{ title: "EdgeMarketplaceClient" })
+@versioned(Versions)
+@doc("Edge marketplace extensions")
+@armCommonTypesVersion(CommonTypes.Versions.v5)
+namespace Microsoft.EdgeMarketplace;
+
+@doc("The available API versions.")
+enum Versions {
+ @doc("Version 2024-10-01")
+ v2024_10_01: "2024-10-01",
+}
diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/models.tsp b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/models.tsp
new file mode 100644
index 000000000000..8ca83c91941e
--- /dev/null
+++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/models.tsp
@@ -0,0 +1,294 @@
+import "@typespec/rest";
+import "@typespec/http";
+import "@azure-tools/typespec-azure-resource-manager";
+import "@typespec/openapi";
+
+using TypeSpec.Rest;
+using TypeSpec.Http;
+using Azure.ResourceManager;
+using TypeSpec.OpenAPI;
+
+namespace Microsoft.EdgeMarketplace;
+
+@doc("Enum for CreatedBy")
+union CreatedByType {
+ string,
+
+ @doc("The resource is created by user")
+ User: "User",
+
+ @doc("The resource is created by application")
+ Application: "Application",
+
+ @doc("The resource is created by managed identity")
+ ManagedIdentity: "ManagedIdentity",
+
+ @doc("The resource is created by key")
+ Key: "Key",
+}
+
+@doc("Origin Enum")
+union Origin {
+ string,
+
+ @doc("Origin is user")
+ user: "user",
+
+ @doc("Origin is system")
+ system: "system",
+
+ @doc("Origin is user and system")
+ userAndSystem: "user,system",
+}
+
+@doc("ActionType Enum")
+union ActionType {
+ string,
+
+ @doc("ActionType is internal")
+ Internal: "Internal",
+}
+
+@doc("OfferAvailability Enum")
+union OfferAvailability {
+ string,
+ @doc("The offer availability is private") Private: "Private",
+ @doc("The offer availability is public") Public: "Public",
+}
+
+@doc("Offer release type Enum")
+union OfferReleaseType {
+ string,
+ @doc("The offer in preview") Preview: "Preview",
+ @doc("The offer in GA") GA: "GA",
+}
+
+@doc("Offer launch type Enum")
+union OfferLaunchType {
+ string,
+ @doc("The offer has been certified") Trusted: "Trusted",
+ @doc("The offer has not been certified") Unknown: "Unknown",
+}
+
+@doc("Publisher properties")
+model PublisherProperties {
+ @doc("The resource provisioning state")
+ @visibility(Lifecycle.Read)
+ provisioningState?: ResourceProvisioningState;
+}
+
+@doc("The offer properties")
+model OfferProperties {
+ @doc("The content version")
+ contentVersion?: string;
+
+ @doc("The content url")
+ contentUrl?: string;
+
+ @doc("The offer content")
+ offerContent: OfferContent;
+
+ @doc("The resource provisioning state")
+ @visibility(Lifecycle.Read)
+ provisioningState?: ResourceProvisioningState;
+
+ @doc("The marketplace skus")
+ @Azure.ResourceManager.identifiers(#["marketplaceSkuId"])
+ marketplaceSkus?: MarketplaceSku[];
+}
+
+@doc("The offer content")
+model OfferContent {
+ @doc("The display name of the offer")
+ displayName: string;
+
+ @doc("The summary")
+ summary?: string;
+
+ @doc("The long summary")
+ longSummary?: string;
+
+ @doc("The description")
+ description?: string;
+
+ @doc("The offer id")
+ offerId: string;
+
+ @doc("The offer type")
+ offerType?: string;
+
+ @doc("The support uri")
+ supportUri?: string;
+
+ @doc("The popularity of the offer")
+ popularity?: int32;
+
+ @doc("The publisher of the offer")
+ offerPublisher?: OfferPublisher;
+
+ @doc("The availability of the offer")
+ availability?: OfferAvailability;
+
+ @doc("The release type of the offer")
+ releaseType?: OfferReleaseType;
+
+ @doc("The icon files")
+ iconFileUris?: IconFileUris;
+
+ @doc("The terms and conditions")
+ termsAndConditions?: TermsAndConditions;
+
+ @doc("The category ids ")
+ categoryIds?: string[];
+
+ @doc("The operating systems")
+ operatingSystems?: string[];
+}
+
+@doc("The offer publisher")
+model OfferPublisher {
+ @doc("The publisher Id")
+ publisherId: string;
+
+ @doc("The publisher name")
+ publisherDisplayName: string;
+}
+
+@doc("Icon files")
+model IconFileUris {
+ @doc("uri of small icon")
+ small?: string;
+
+ @doc("uri of medium icon")
+ medium?: string;
+
+ @doc("uri of wide icon")
+ wide?: string;
+
+ @doc("uri of large icon")
+ large?: string;
+}
+
+@doc("Terms and conditions")
+model TermsAndConditions {
+ @doc("The legal terms and conditions uri")
+ legalTermsUri?: string;
+
+ @doc("The type of legal terms")
+ legalTermsType?: string;
+
+ @doc("The privacy policy uri")
+ privacyPolicyUri?: string;
+}
+
+@doc("The marketplace sku")
+model MarketplaceSku {
+ @doc("The catalog plan id")
+ catalogPlanId: string;
+
+ @doc("The marketplace sku id")
+ marketplaceSkuId: string;
+
+ @doc("The type of marketplace sku")
+ type?: string;
+
+ @doc("The display name of marketplace sku")
+ displayName?: string;
+
+ @doc("The summary")
+ summary?: string;
+
+ @doc("The long summary")
+ longSummary?: string;
+
+ @doc("The description")
+ description?: string;
+
+ @doc("The generation")
+ generation?: string;
+
+ @doc("The display rank of the sku")
+ displayRank?: int32;
+
+ @doc("The operating system supported")
+ operatingSystem?: SkuOperatingSystem;
+
+ @extension("x-ms-identifiers", #["name"])
+ @doc("The marketplace sku version")
+ marketplaceSkuVersions?: MarketplaceSkuVersion[];
+}
+
+@doc("The sku operating system")
+model SkuOperatingSystem {
+ @doc("The family of the operating system")
+ family?: string;
+
+ @doc("The type of the operating system")
+ type?: string;
+
+ @doc("The name of the operating system")
+ name: string;
+}
+
+@doc("The marketplace sku version")
+model MarketplaceSkuVersion {
+ @doc("The name of sku version")
+ name: string;
+
+ @doc("The size of the image")
+ sizeOnDiskInMb?: int32;
+
+ @doc("The size of the download")
+ minimumDownloadSizeInMb?: int32;
+
+ @doc("The stage name")
+ stageName?: string;
+
+ @doc("The launch type")
+ launchType?: OfferLaunchType;
+}
+
+@doc("Access token request object")
+model AccessTokenRequest {
+ @doc("The name of the publisher.")
+ publisherName?: string;
+
+ @doc("The region where the disk will be created.")
+ edgeMarketPlaceRegion: string;
+
+ @doc("The region where the disk will be created.")
+ egeMarketPlaceResourceId?: string;
+
+ @doc("The hyperv version.")
+ hypervGeneration?: string;
+
+ @doc("The marketplace sku.")
+ marketPlaceSku?: string;
+
+ @doc("The marketplace sku version.")
+ marketPlaceSkuVersion?: string;
+
+ @doc("The device sku.")
+ deviceSku?: string;
+
+ @doc("The device sku version.")
+ deviceVersion?: string;
+}
+
+@doc("The disk access token")
+model DiskAccessToken {
+ @doc("The disk id.")
+ diskId?: string;
+
+ @doc("The access token creation status.")
+ status?: string;
+
+ @doc("The access token.")
+ accessToken: string;
+}
+
+@doc("Access token request object")
+model AccessTokenReadRequest {
+ @doc("The name of the publisher.")
+ requestId: string;
+}
diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/offer.tsp b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/offer.tsp
new file mode 100644
index 000000000000..4767f3a9277e
--- /dev/null
+++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/offer.tsp
@@ -0,0 +1,64 @@
+import "@azure-tools/typespec-azure-core";
+import "@azure-tools/typespec-azure-resource-manager";
+import "@typespec/rest";
+import "./models.tsp";
+
+using TypeSpec.Rest;
+using Azure.ResourceManager;
+using TypeSpec.Http;
+
+namespace Microsoft.EdgeMarketplace;
+
+@doc("An offer.")
+model Offer is ExtensionResource Ubuntu Pro is a cross-cloud OS optimized for Azure",
+ "offerId": "0001-com-ubuntu-pro-jammy",
+ "popularity": 8,
+ "offerPublisher": {
+ "publisherId": "canonical",
+ "publisherDisplayName": "Canonical"
+ },
+ "offerType": "VirtualMachine",
+ "availability": "Preview",
+ "releaseType": "Preview",
+ "termsAndConditions": {
+ "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N",
+ "legalTermsType": "None",
+ "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy"
+ },
+ "supportUri": "https://ubuntu.com/azure/support",
+ "categoryIds": [],
+ "iconFileUris": {
+ "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1",
+ "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e",
+ "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a",
+ "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2"
+ }
+ },
+ "marketplaceSkus": [
+ {
+ "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts",
+ "marketplaceSkuId": "pro-22_04-lts",
+ "displayName": "pro-22_04-lts",
+ "type": "test",
+ "operatingSystem": {
+ "name": "linux",
+ "type": "test",
+ "family": "test"
+ },
+ "marketplaceSkuVersions": [
+ {
+ "name": "22.04.202204200",
+ "sizeOnDiskInMb": 0,
+ "minimumDownloadSizeInMb": 0,
+ "stageName": "teststage",
+ "launchType": "Trusted"
+ }
+ ]
+ }
+ ]
+ },
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy",
+ "name": "0001-com-ubuntu-pro-jammy",
+ "type": "Microsoft.EdgeMarketplace/publishers/offers"
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/GetPublisher.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/GetPublisher.json
new file mode 100644
index 000000000000..4bc37b17db33
--- /dev/null
+++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/GetPublisher.json
@@ -0,0 +1,21 @@
+{
+ "title": "Publishers_Get",
+ "operationId": "Publishers_Get",
+ "parameters": {
+ "api-version": "2024-10-01",
+ "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo",
+ "publisherName": "canonical"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical",
+ "name": "canonical",
+ "type": "Microsoft.EdgeMarketplace/publishers",
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOffers.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOffers.json
new file mode 100644
index 000000000000..348ed18578d2
--- /dev/null
+++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOffers.json
@@ -0,0 +1,76 @@
+{
+ "title": "Offers_List",
+ "operationId": "Offers_List",
+ "parameters": {
+ "api-version": "2024-10-01",
+ "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "contentVersion": "1.0",
+ "contentUrl": "test",
+ "provisioningState": "Succeeded",
+ "offerContent": {
+ "displayName": "Ubuntu Pro 22.04 LTS",
+ "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.",
+ "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.",
+ "description": " Ubuntu Pro is a cross-cloud OS optimized for Azure",
+ "offerId": "0001-com-ubuntu-pro-jammy",
+ "popularity": 8,
+ "offerPublisher": {
+ "publisherId": "canonical",
+ "publisherDisplayName": "Canonical"
+ },
+ "offerType": "VirtualMachine",
+ "availability": "Preview",
+ "releaseType": "Preview",
+ "termsAndConditions": {
+ "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N",
+ "legalTermsType": "None",
+ "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy"
+ },
+ "supportUri": "https://ubuntu.com/azure/support",
+ "categoryIds": [],
+ "iconFileUris": {
+ "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1",
+ "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e",
+ "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a",
+ "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2"
+ }
+ },
+ "marketplaceSkus": [
+ {
+ "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts",
+ "marketplaceSkuId": "pro-22_04-lts",
+ "displayName": "pro-22_04-lts",
+ "type": "test",
+ "operatingSystem": {
+ "name": "linux",
+ "type": "test",
+ "family": "test"
+ },
+ "marketplaceSkuVersions": [
+ {
+ "name": "22.04.202204200",
+ "sizeOnDiskInMb": 0,
+ "minimumDownloadSizeInMb": 0,
+ "stageName": "teststage",
+ "launchType": "Trusted"
+ }
+ ]
+ }
+ ]
+ },
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy",
+ "name": "0001-com-ubuntu-pro-jammy",
+ "type": "Microsoft.EdgeMarketplace/publishers/offers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOffersBySubscription.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOffersBySubscription.json
new file mode 100644
index 000000000000..3954428fff4d
--- /dev/null
+++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOffersBySubscription.json
@@ -0,0 +1,75 @@
+{
+ "title": "Offers_ListBySubscription",
+ "operationId": "Offers_ListBySubscription",
+ "parameters": {
+ "api-version": "2024-10-01",
+ "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "contentVersion": "1.0",
+ "contentUrl": "test",
+ "provisioningState": "Succeeded",
+ "offerContent": {
+ "displayName": "Ubuntu Pro 22.04 LTS",
+ "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.",
+ "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.",
+ "description": " Ubuntu Pro is a cross-cloud OS optimized for Azure",
+ "offerId": "0001-com-ubuntu-pro-jammy",
+ "popularity": 8,
+ "offerPublisher": {
+ "publisherId": "canonical",
+ "publisherDisplayName": "Canonical"
+ },
+ "offerType": "VirtualMachine",
+ "availability": "Preview",
+ "releaseType": "Preview",
+ "termsAndConditions": {
+ "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N",
+ "legalTermsType": "None",
+ "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy"
+ },
+ "supportUri": "https://ubuntu.com/azure/support",
+ "categoryIds": [],
+ "iconFileUris": {
+ "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1",
+ "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e",
+ "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a",
+ "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2"
+ }
+ },
+ "marketplaceSkus": [
+ {
+ "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts",
+ "marketplaceSkuId": "pro-22_04-lts",
+ "displayName": "pro-22_04-lts",
+ "type": "test",
+ "operatingSystem": {
+ "name": "linux",
+ "type": "test",
+ "family": "test"
+ },
+ "marketplaceSkuVersions": [
+ {
+ "name": "22.04.202204200",
+ "sizeOnDiskInMb": 0,
+ "minimumDownloadSizeInMb": 0,
+ "stageName": "teststage"
+ }
+ ]
+ }
+ ]
+ },
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy",
+ "name": "0001-com-ubuntu-pro-jammy",
+ "type": "Microsoft.EdgeMarketplace/publishers/offers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOperations.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOperations.json
new file mode 100644
index 000000000000..d97c0d90f521
--- /dev/null
+++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListOperations.json
@@ -0,0 +1,25 @@
+{
+ "title": "Operations_List",
+ "operationId": "Operations_List",
+ "parameters": {
+ "api-version": "2024-10-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.EdgeMarketplace/Publishers",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.EdgeMarketplace",
+ "resource": "Publishers",
+ "operation": "List the publishers",
+ "description": "Gets the list of the publishers."
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListPublishers.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListPublishers.json
new file mode 100644
index 000000000000..f02e1734955f
--- /dev/null
+++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListPublishers.json
@@ -0,0 +1,30 @@
+{
+ "title": "Publishers_List",
+ "operationId": "Publishers_List",
+ "parameters": {
+ "api-version": "2024-10-01",
+ "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo",
+ "filter": "deviceSku eq 'edgepro1'"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical",
+ "name": "canonical",
+ "type": "Microsoft.EdgeMarketplace/publishers",
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ },
+ {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942",
+ "name": "ntegralinc1586961136942",
+ "type": "Microsoft.EdgeMarketplace/publishers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListPublishersBySubscription.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListPublishersBySubscription.json
new file mode 100644
index 000000000000..d4228c75cee4
--- /dev/null
+++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/stable/2024-10-01/examples/ListPublishersBySubscription.json
@@ -0,0 +1,30 @@
+{
+ "title": "Publishers_ListBySubscription",
+ "operationId": "Publishers_ListBySubscription",
+ "parameters": {
+ "api-version": "2024-10-01",
+ "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5",
+ "filter": "deviceSku eq 'edgepro1'"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical",
+ "name": "canonical",
+ "type": "Microsoft.EdgeMarketplace/publishers",
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ },
+ {
+ "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942",
+ "name": "ntegralinc1586961136942",
+ "type": "Microsoft.EdgeMarketplace/publishers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/edgemarketplace/resource-manager/readme.md b/specification/edgemarketplace/resource-manager/readme.md
index f1c2e4b362ab..f7c089fa5f63 100644
--- a/specification/edgemarketplace/resource-manager/readme.md
+++ b/specification/edgemarketplace/resource-manager/readme.md
@@ -29,7 +29,7 @@ title: EdgeMarketplaceClient
description: Edge marketplace extensions
openapi-type: arm
openapi-subtype: rpaas
-tag: package-2023-08-01
+tag: package-2024-10-01
```
``` yaml
@@ -59,6 +59,15 @@ input-file:
- Microsoft.EdgeMarketplace/stable/2023-08-01/offers.json
```
+### Tag: package-2024-10-01
+
+These settings apply only when `--tag=package-2024-10-01` is specified on the command line.
+
+```yaml $(tag) == 'package-2024-10-01'
+input-file:
+ - Microsoft.EdgeMarketplace/stable/2024-10-01/edgemarketplace.json
+```
+
---
# Code Generation
diff --git a/specification/edgemarketplace/resource-manager/readme.python.md b/specification/edgemarketplace/resource-manager/readme.python.md
index 4a654882802d..e6f0adcdf411 100644
--- a/specification/edgemarketplace/resource-manager/readme.python.md
+++ b/specification/edgemarketplace/resource-manager/readme.python.md
@@ -9,7 +9,7 @@ azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.edgemarketplace
package-name: azure-mgmt-edgemarketplace
-package-version: 1.0.0b1
+package-version: 24-10-01
clear-output-folder: true
```