diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ListAccessTokenPost.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ListAccessTokenPost.json new file mode 100644 index 000000000000..dc36c7e12050 --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ListAccessTokenPost.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "resourceName": "MyContosoSubscription", + "api-version": "2018-03-01-beta" + }, + "responses": { + "200": { + "body": { + "publisherOfferBaseUri": "https://contoso.website.com/api/v1/marketplace/azure/common/auth", + "token": "jyhAtr3AiFTXO0QsEkYizsNzqIAUJ+E0M1SXhl4E5hwAl7+GJT6t+dEwuWpSizgR0Vn6dMhzpS94JRzkUh2Xuq5L1QDgmDkDUeIikTFNviwtwxtF8CwipcB49rq5d8whmVp0CmWEjd/FzU0vvlikBRuy+asxC1UhXv6XxBkSxkZKj29AAFiGgsgRvXIld47C" + } + } + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ResourceMove.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ResourceMove.json new file mode 100644 index 000000000000..9e5da26d6cfe --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ResourceMove.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "api-version": "2018-03-01-beta", + "moveResourceParameter": { + "targetResourceGroup": "/subscriptions/5122d0a3-1e10-4baf-bdc5-c2a452489525/resourceGroups/new-saas-rg", + "resources": [ + "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/saas1", + "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/saas2", + "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/saas3" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasDelete.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasDelete.json new file mode 100644 index 000000000000..0f7b8bfde36d --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "resourceName": "MyContosoSubscription", + "api-version": "2018-03-01-beta" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGet.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGet.json new file mode 100644 index 000000000000..3ab5f27f146b --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "resourceName": "MyContosoSubscription", + "api-version": "2018-03-01-beta" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/MyContosoSubscription", + "name": "MyContosoSubscription", + "type": "Microsoft.SaaS/resources", + "properties": { + "status": "Subscribed", + "saasResourceName": "MyContosoSubscription", + "publisherId": "microsoft-contoso", + "skuId": "free", + "offerId": "contosoOffer", + "quantity": null, + "termId": null, + "paymentChannelType": "SubscriptionDelegated", + "paymentChannelMetadata": { + "azureSubscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceId": "263ebe8c-3621-4ac0-a6ba-f1419bfb9166" + }, + "publisherTestEnvironment": null, + "term": { + "termUnit": "P1M", + "startDate": "2021-01-01T00:00:00Z", + "endDate": "2021-02-31T00:00:00Z" + }, + "autoRenew": true, + "isFreeTrial": false, + "created": "2021-01-01T08:30:10.1234567Z", + "lastModified": "2020-01-01T08:35:05.7654321Z" + }, + "tags": {} + } + } + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGetAllInAzureSubscription.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGetAllInAzureSubscription.json new file mode 100644 index 000000000000..38e9c5d9ee66 --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGetAllInAzureSubscription.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "api-version": "2018-03-01-beta" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "id": "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/MyContosoSubscription", + "name": "MyContosoSubscription", + "type": "Microsoft.SaaS/resources", + "properties": { + "status": "Subscribed", + "saasResourceName": "MyContosoSubscription", + "publisherId": "microsoft-contoso", + "skuId": "free", + "offerId": "contosoOffer", + "quantity": null, + "termId": null, + "paymentChannelType": "SubscriptionDelegated", + "paymentChannelMetadata": { + "azureSubscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceId": "263ebe8c-3621-4ac0-a6ba-f1419bfb9166" + }, + "publisherTestEnvironment": null, + "term": { + "termUnit": "P1M", + "startDate": "2021-01-01T00:00:00Z", + "endDate": "2021-02-31T00:00:00Z" + }, + "autoRenew": true, + "isFreeTrial": false, + "created": "2021-01-01T08:30:10.1234567Z", + "lastModified": "2020-01-01T08:35:05.7654321Z" + }, + "tags": {} + } + ] + } + } + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGetAllInResourceGroup.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGetAllInResourceGroup.json new file mode 100644 index 000000000000..deafd3ca6384 --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGetAllInResourceGroup.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "api-version": "2018-03-01-beta" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "id": "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/MyContosoSubscription", + "name": "MyContosoSubscription", + "type": "Microsoft.SaaS/resources", + "properties": { + "status": "Subscribed", + "saasResourceName": "MyContosoSubscription", + "publisherId": "microsoft-contoso", + "skuId": "free", + "offerId": "contosoOffer", + "quantity": null, + "termId": null, + "paymentChannelType": "SubscriptionDelegated", + "paymentChannelMetadata": { + "azureSubscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceId": "263ebe8c-3621-4ac0-a6ba-f1419bfb9166" + }, + "publisherTestEnvironment": null, + "term": { + "termUnit": "P1M", + "startDate": "2021-01-01T00:00:00Z", + "endDate": "2021-02-31T00:00:00Z" + }, + "autoRenew": true, + "isFreeTrial": false, + "created": "2021-01-01T08:30:10.1234567Z", + "lastModified": "2020-01-01T08:35:05.7654321Z" + }, + "tags": {} + } + ] + } + } + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasPatch.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasPatch.json new file mode 100644 index 000000000000..68ecc6f81d7a --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasPatch.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "resourceName": "MyContosoSubscription", + "api-version": "2018-03-01-beta", + "parameters": { + "properties": { + "skuId": "premium" + }, + "tags": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/MyContosoSubscription", + "name": "MyContosoSubscription", + "type": "Microsoft.SaaS/resources", + "properties": { + "status": "Subscribed", + "saasResourceName": "MyContosoSubscription", + "publisherId": "microsoft-contoso", + "skuId": "free", + "offerId": "contosoOffer", + "quantity": null, + "termId": null, + "paymentChannelType": "SubscriptionDelegated", + "paymentChannelMetadata": { + "azureSubscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceId": "263ebe8c-3621-4ac0-a6ba-f1419bfb9166" + }, + "publisherTestEnvironment": null, + "term": { + "termUnit": "P1M", + "startDate": "2021-01-01T00:00:00Z", + "endDate": "2021-02-31T00:00:00Z" + }, + "autoRenew": true, + "isFreeTrial": false, + "created": "2021-01-01T08:30:10.1234567Z", + "lastModified": "2020-01-01T08:35:05.7654321Z" + }, + "tags": {} + } + }, + "202": {}, + "204": {} + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasPut.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasPut.json new file mode 100644 index 000000000000..16c9f15e29d3 --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasPut.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "resourceName": "MyContosoSubscription", + "api-version": "2018-03-01-beta", + "parameters": { + "properties": { + "publisherId": "microsoft-contoso", + "offerId": "contosoOffer", + "saasResourceName": "MyContosoSubscription", + "skuId": "free", + "paymentChannelType": "SubscriptionDelegated", + "termId": "hjdtn7tfnxcy", + "paymentChannelMetadata": { + "AzureSubscriptionId": "155af98a-3205-47e7-883b-a2ab9db9f88d" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/MyContosoSubscription", + "name": "MyContosoSubscription", + "type": "Microsoft.SaaS/resources", + "properties": { + "status": "Subscribed", + "saasResourceName": "MyContosoSubscription", + "publisherId": "microsoft-contoso", + "skuId": "free", + "offerId": "contosoOffer", + "quantity": null, + "termId": null, + "paymentChannelType": "SubscriptionDelegated", + "paymentChannelMetadata": { + "azureSubscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceId": "263ebe8c-3621-4ac0-a6ba-f1419bfb9166" + }, + "publisherTestEnvironment": null, + "term": { + "termUnit": "P1M", + "startDate": "2021-01-01T00:00:00Z", + "endDate": "2021-02-31T00:00:00Z" + }, + "autoRenew": true, + "isFreeTrial": false, + "created": "2021-01-01T08:30:10.1234567Z", + "lastModified": "2020-01-01T08:35:05.7654321Z" + }, + "tags": {} + } + }, + "202": {}, + "204": {} + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasUnsubscribe.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasUnsubscribe.json new file mode 100644 index 000000000000..30046c7cb160 --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasUnsubscribe.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "resourceName": "MyContosoSubscription", + "api-version": "2018-03-01-beta", + "parameters": { + "unsubscribeOnly": true, + "reasonCode": 0, + "feedback": "No longer need this SaaS" + } + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ValidateResourceMove.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ValidateResourceMove.json new file mode 100644 index 000000000000..95d8b0a385eb --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ValidateResourceMove.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceGroupName": "my-saas-rg", + "api-version": "2018-03-01-beta", + "moveResourceParameter": { + "targetResourceGroup": "/subscriptions/5122d0a3-1e10-4baf-bdc5-c2a452489525/resourceGroups/new-saas-rg", + "resources": [ + "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/saas1", + "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/saas2", + "/subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/saas3" + ] + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV1/SaaSGetApplications.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV1/SaaSGetApplications.json index 58c4ddb7b505..340924b1a86a 100644 --- a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV1/SaaSGetApplications.json +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV1/SaaSGetApplications.json @@ -22,11 +22,7 @@ "name": "myPlan1" } }, - "tags": [ - { - "additionalProperties": "additionalProperties" - } - ] + "tags": {} }, { "id": "/subscriptions/bc6c2f82-a39d-41b8-a648-71527498a23e/resourceGroups/myResourceGroup/providers/Microsoft.SaaS/applications/myapp", @@ -41,11 +37,7 @@ "name": "myPlan2" } }, - "tags": [ - { - "additionalProperties": "additionalProperties" - } - ] + "tags": {} } ] } diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV1/SaaSGetOperations.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV1/SaaSGetOperations.json index 3ab5aebaa12c..62485a08a6e7 100644 --- a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV1/SaaSGetOperations.json +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV1/SaaSGetOperations.json @@ -46,6 +46,36 @@ }, "origin": null }, + { + "name": "Microsoft.SaaS/resources/read", + "display": { + "provider": "Microsoft", + "resource": "SaaS Subscription Level Resources", + "operation": "Get SaaS Subscription Level Resources", + "description": "Get one resource" + }, + "origin": null + }, + { + "name": "Microsoft.SaaS/resources/write", + "display": { + "provider": "Microsoft", + "resource": "SaaS Subscription Level Resources", + "operation": "Create or Update a SaaS Subscription Level resource", + "description": "Create or Update a SaaS Subscription Level resource" + }, + "origin": null + }, + { + "name": "Microsoft.SaaS/resources/delete", + "display": { + "provider": "Microsoft", + "resource": "SaaS Subscription Level Resources", + "operation": "Delete a SaaS Subscription Level Resource", + "description": "Delete a SaaS Subscription Level Resource" + }, + "origin": null + }, { "name": "Microsoft.SaaS/saasresources/listaccesstoken/action", "display": { diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/ListAccessTokenPost.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/ListAccessTokenPost.json index a33759071995..294dcd7a39bd 100644 --- a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/ListAccessTokenPost.json +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/ListAccessTokenPost.json @@ -6,7 +6,7 @@ "responses": { "200": { "body": { - "publisherOfferBaseUri": "https://cloud.elastic.co/api/v1/marketplace/azure/common/auth", + "publisherOfferBaseUri": "https://contoso.website.com/api/v1/marketplace/azure/common/auth", "token": "jyhAtr3AiFTXO0QsEkYizsNzqIAUJ+E0M1SXhl4E5hwAl7+GJT6t+dEwuWpSizgR0Vn6dMhzpS94JRzkUh2Xuq5L1QDgmDkDUeIikTFNviwtwxtF8CwipcB49rq5d8whmVp0CmWEjd/FzU0vvlikBRuy+asxC1UhXv6XxBkSxkZKj29AAFiGgsgRvXIld47C" } } diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaaSGetAllResources.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaaSGetAllResources.json index bd1522b2795c..db4d87b57211 100644 --- a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaaSGetAllResources.json +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaaSGetAllResources.json @@ -35,7 +35,7 @@ "created": "2020-10-12T05:08:40.9235607Z", "lastModified": "2020-11-12T21:25:40.2736665Z" }, - "tags": null + "tags": {} }, { "id": "/providers/Microsoft.SaaS/saasresources/7a4a733c-2204-ee2c-2f51-47c2dfbcb7fd", @@ -65,7 +65,7 @@ "created": "2020-09-30T16:45:41.2981172Z", "lastModified": "2020-10-30T16:22:15.4319475Z" }, - "tags": null + "tags": {} } ] } diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasGet.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasGet.json index 2e446b8be87e..8e1aaab08862 100644 --- a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasGet.json +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasGet.json @@ -33,7 +33,7 @@ "created": "2020-10-12T05:08:40.9235607Z", "lastModified": "2020-11-12T21:25:40.2736665Z" }, - "tags": null + "tags": {} } } } diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasPatch.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasPatch.json new file mode 100644 index 000000000000..c56c0c93eea9 --- /dev/null +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasPatch.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2018-03-01-beta", + "resourceId": "115c3523-1fae-757f-af86-7b27cfd29805", + "parameters": { + "properties": { + "skuId": "premium" + }, + "tags": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.SaaS/saasresources/115c3523-1fae-757f-af86-7b27cfd29805", + "name": "MyContosoSubscription", + "type": "Microsoft.SaaS/saasresources", + "properties": { + "status": "Subscribed", + "saasResourceName": "MyContosoSubscription", + "publisherId": "microsoft-contoso", + "skuId": "premium", + "offerId": "contosoOffer", + "quantity": null, + "termId": null, + "paymentChannelType": "SubscriptionDelegated", + "paymentChannelMetadata": { + "azureSubscriptionId": "c825645b-e31b-9cf4-1cee-2aba9e58bc7c", + "resourceId": "263ebe8c-3621-4ac0-a6ba-f1419bfb9166" + }, + "publisherTestEnvironment": null, + "term": { + "termUnit": "P1M", + "startDate": "2021-01-01T00:00:00Z", + "endDate": "2021-02-31T00:00:00Z" + }, + "autoRenew": true, + "isFreeTrial": false, + "created": "2021-01-01T08:30:10.1234567Z", + "lastModified": "2020-01-01T08:35:05.7654321Z" + }, + "tags": {} + } + }, + "202": {}, + "204": {} + } +} diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasPut.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasPut.json index da1d6e182948..63f719305577 100644 --- a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasPut.json +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasV2/SaasPut.json @@ -16,6 +16,38 @@ } }, "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.SaaS/saasresources/115c3523-1fae-757f-af86-7b27cfd29805", + "name": "diyakobo-transfer", + "type": "Microsoft.SaaS/saasresources", + "properties": { + "status": "Subscribed", + "saasResourceName": "diyakobo-transfer", + "publisherId": "microsoft-hcb", + "skuId": "free", + "offerId": "microsofthealthcarebot", + "quantity": null, + "termId": null, + "paymentChannelType": null, + "paymentChannelMetadata": { + "azureSubscriptionId": "155af98a-3205-47e7-883b-a2ab9db9f88d", + "resourceId": "b25dba9a-1bd7-4600-9447-3d27d11a6477" + }, + "publisherTestEnvironment": null, + "term": { + "termUnit": "P1M", + "startDate": "2020-11-12T00:00:00Z", + "endDate": "2020-12-11T00:00:00Z" + }, + "autoRenew": null, + "isFreeTrial": false, + "created": "2020-10-12T05:08:40.9235607Z", + "lastModified": "2020-11-12T21:25:40.2736665Z" + }, + "tags": {} + } + }, "202": {} } } diff --git a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/saas.json b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/saas.json index 8f951cf34d87..1e439efc2928 100644 --- a/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/saas.json +++ b/specification/saas/resource-manager/Microsoft.SaaS/preview/2018-03-01-beta/saas.json @@ -235,6 +235,70 @@ "$ref": "./examples/saasV2/SaasGet.json" } } + }, + "patch": { + "tags": [ + "SaaSResources" + ], + "operationId": "SaaS_UpdateResource", + "description": "Updates a SaaS resource.", + "parameters": [ + { + "$ref": "#/parameters/SaasResourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SaasResourceCreation" + }, + "description": "Parameters supplied to the update saas operation." + } + ], + "responses": { + "200": { + "description": "Resource change has completed.", + "schema": { + "$ref": "#/definitions/SaasResource" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "format": "int32", + "type": "integer" + } + } + }, + "204": { + "description": "Operation completed successfully." + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update SaaS resource": { + "$ref": "./examples/saasV2/SaasPatch.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } } }, "/providers/Microsoft.SaaS/saasresources": { @@ -255,10 +319,358 @@ "schema": { "$ref": "#/definitions/SaasResourceCreation" }, - "description": "Parameters supplied to the create saas operation." + "description": "Parameters supplied to the create saas operation." + } + ], + "responses": { + "200": { + "description": "SaaS creation completed successful.", + "schema": { + "$ref": "#/definitions/SaasResource" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "format": "int32", + "type": "integer" + } + } + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create SaaS resource": { + "$ref": "./examples/saasV2/SaasPut.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "SaaSResources" + ], + "operationId": "SaasResources_List", + "description": "Get All Resources", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SaasResourceResponseWithContinuation" + } + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get all SaaS resources": { + "$ref": "./examples/saasV2/SaaSGetAllResources.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.SaaS/saasresources/{resourceId}/listAccessToken": { + "post": { + "tags": [ + "SaaSResources" + ], + "operationId": "SaasResource-listAccessToken", + "description": "Gets the ISV access token for a SaaS resource.", + "parameters": [ + { + "$ref": "#/parameters/SaasResourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The request returns the generated access token.", + "schema": { + "$ref": "#/definitions/AccessTokenResult" + } + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "generated SaaS resource token": { + "$ref": "./examples/saasV2/ListAccessTokenPost.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.SaaS/resources": { + "get": { + "tags": [ + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_ListByAzureSubscription", + "description": "Gets information about all the Subscription Level SaaS in a certain Azure subscription.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The request returns the resulting SaaS resources.", + "schema": { + "$ref": "#/definitions/SaasResourceResponseWithContinuation" + } + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get subscription level saas resources in Azure subscription": { + "$ref": "./examples/saasSubscriptionLevel/SaasGetAllInAzureSubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SaaS/resources": { + "get": { + "tags": [ + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_ListByResourceGroup", + "description": "Gets information about all the Subscription Level SaaS in a certain resource group.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The request returns the resulting SaaS resources.", + "schema": { + "$ref": "#/definitions/SaasResourceResponseWithContinuation" + } + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get subscription level saas resources in resource group": { + "$ref": "./examples/saasSubscriptionLevel/SaasGetAllInResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SaaS/resources/{resourceName}": { + "get": { + "tags": [ + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_Get", + "description": "Gets information about the specified Subscription Level SaaS.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The request returns the resulting SaaS resource.", + "schema": { + "$ref": "#/definitions/SaasResource" + } + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get subscription level saas resource": { + "$ref": "./examples/saasSubscriptionLevel/SaasGet.json" + } + } + }, + "put": { + "tags": [ + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_CreateOrUpdate", + "description": "Creates or updates a SaaS resource.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SaasResourceCreation" + }, + "description": "Parameters supplied to the create or update subscription level saas operation." + } + ], + "responses": { + "200": { + "description": "Resource creation has completed.", + "schema": { + "$ref": "#/definitions/SaasResource" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "format": "int32", + "type": "integer" + } + } + }, + "204": { + "description": "Operation completed successfully." + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create subscription level SaaS resource": { + "$ref": "./examples/saasSubscriptionLevel/SaasPut.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "patch": { + "tags": [ + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_Update", + "description": "Updates a SaaS Subscription Level resource.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SaasResourceCreation" + }, + "description": "Parameters supplied to the update saas operation." } ], "responses": { + "200": { + "description": "Resource change has completed.", + "schema": { + "$ref": "#/definitions/SaasResource" + } + }, "202": { "description": "Accepted and the operation will complete asynchronously.", "headers": { @@ -273,6 +685,9 @@ } } }, + "204": { + "description": "Operation completed successfully." + }, "default": { "description": "A response indicating an error.", "schema": { @@ -281,29 +696,128 @@ } }, "x-ms-examples": { - "Create SaaS resource": { - "$ref": "./examples/saasV2/SaasPut.json" + "Update subscription level SaaS resource": { + "$ref": "./examples/saasSubscriptionLevel/SaasPatch.json" } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } }, - "get": { + "delete": { "tags": [ - "SaaSResources" + "SubscriptionLevelSaaSResources" ], - "operationId": "SaasResources_List", - "description": "Get All Resources", + "operationId": "SaasSubscriptionLevel_Delete", + "description": "Deletes the specified SaaS.", "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, { "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK", + "description": "Delete Operation completed successfully." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "format": "int32", + "type": "integer" + } + } + }, + "204": { + "description": "Delete operation completed successfully." + }, + "default": { + "description": "A response indicating an error.", "schema": { - "$ref": "#/definitions/SaasResourceResponseWithContinuation" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Subscription Level SaaS resource": { + "$ref": "./examples/saasSubscriptionLevel/SaasDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SaaS/resources/{resourceName}/unsubscribe": { + "post": { + "tags": [ + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_UpdateToUnsubscribed", + "description": "Unsubscribe from a specified Subscription Level SaaS.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/deleteOptions" + }, + "description": "Parameters supplied to unsubscribe saas operation." + } + ], + "responses": { + "200": { + "description": "Unsubscribe operation completed successfully." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "format": "int32", + "type": "integer" + } } }, + "204": { + "description": "Unsubscribe operation completed successfully." + }, "default": { "description": "A response indicating an error.", "schema": { @@ -312,25 +826,35 @@ } }, "x-ms-examples": { - "Get get all SaaS resources": { - "$ref": "./examples/saasV2/SaaSGetAllResources.json" + "Unsubscribe Subscription Level SaaS resource": { + "$ref": "./examples/saasSubscriptionLevel/SaasUnsubscribe.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } }, - "/providers/Microsoft.SaaS/saasresources/{resourceId}/listAccessToken": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SaaS/resources/{resourceName}/listAccessToken": { "post": { "tags": [ - "SaaSResources" + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_listAccessToken", + "description": "Gets the ISV access token for a specified Subscription Level SaaS.", + "produces": [ + "application/json" ], - "operationId": "SaasResource-listAccessToken", - "description": "Gets the ISV access token for a SaaS resource.", "parameters": [ { - "$ref": "#/parameters/SaasResourceIdParameter" + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -351,9 +875,123 @@ } }, "x-ms-examples": { - "generated SaaS resource token": { - "$ref": "./examples/saasV2/ListAccessTokenPost.json" + "List subscription level SaaS resource access token": { + "$ref": "./examples/saasSubscriptionLevel/ListAccessTokenPost.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources": { + "post": { + "tags": [ + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_ValidateMoveResources", + "description": "Validate whether a specified Subscription Level SaaS can be moved.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "moveResourceParameter", + "in": "body", + "description": "Object that represents the resources to move.", + "required": true, + "schema": { + "$ref": "#/definitions/moveResource" + } + } + ], + "responses": { + "200": { + "description": "Validation was successful and resources can be moved" + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Validate move of a subscription Level SaaS resource": { + "$ref": "./examples/saasSubscriptionLevel/ValidateResourceMove.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources": { + "post": { + "tags": [ + "SubscriptionLevelSaaSResources" + ], + "operationId": "SaasSubscriptionLevel_MoveResources", + "description": "Move a specified Subscription Level SaaS.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "moveResourceParameter", + "in": "body", + "description": "Object that represents the resources to move.", + "required": true, + "schema": { + "$ref": "#/definitions/moveResource" + } + } + ], + "responses": { + "200": { + "description": "Move operation completed successfully." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "format": "int32", + "type": "integer" + } + } + }, + "default": { + "description": "A response indicating an error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Move of a subscription Level SaaS resource": { + "$ref": "./examples/saasSubscriptionLevel/ResourceMove.json" } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } } @@ -432,6 +1070,7 @@ "SaasResource": { "description": "SaaS REST API resource definition.", "type": "object", + "x-ms-azure-resource": true, "properties": { "properties": { "description": "saas properties", @@ -447,7 +1086,8 @@ }, "name": { "type": "string", - "description": "The name of the resource" + "description": "The name of the resource", + "readOnly": true }, "id": { "description": "The resource uri", @@ -483,6 +1123,10 @@ "type": "string", "description": "Resource type." }, + "tags": { + "description": "the resource tags.", + "$ref": "#/definitions/Tags" + }, "properties": { "$ref": "#/definitions/SaasCreationProperties", "description": "Properties of the SaaS resource that are relevant for creation." @@ -595,6 +1239,14 @@ "publisherTestEnvironment": { "type": "string", "description": "The environment in the publisher side for this resource." + }, + "saasSubscriptionId": { + "type": "string", + "description": "The saas subscription id used for tenant to subscription level migration request." + }, + "saasSessionId": { + "type": "string", + "description": "The saas session id used for dev service migration request." } } }, @@ -721,13 +1373,10 @@ } }, "Tags": { + "type": "object", "description": "the resource tags.", - "type": "array", - "items": { - "additionalProperties": { - "description": "additional properties.", - "type": "string" - } + "additionalProperties": { + "type": "string" } }, "SaasRpModernEligibility": { @@ -762,6 +1411,24 @@ "description": "the feedback" } } + }, + "moveResource": { + "description": "Resource Move Options", + "type": "object", + "properties": { + "targetResourceGroup": { + "type": "string", + "description": "The target resource group uri for the move" + }, + "resources": { + "description": "The resource uris to move", + "type": "array", + "items": { + "type": "string", + "description": "A resources uri to move" + } + } + } } }, "parameters": { @@ -802,6 +1469,14 @@ "type": "string", "description": "The name of the resource group.", "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource.", + "x-ms-parameter-location": "method" } } } diff --git a/specification/saas/resource-manager/readme.csharp.md b/specification/saas/resource-manager/readme.csharp.md index dc56a9d877a0..34df8c5adf89 100644 --- a/specification/saas/resource-manager/readme.csharp.md +++ b/specification/saas/resource-manager/readme.csharp.md @@ -10,6 +10,6 @@ csharp: payload-flattening-threshold: 1 clear-output-folder: true client-side-validation: false - namespace: microsoft.saas - output-folder: $(csharp-sdks-folder)/saas/management/Microsoft.SaaS/GeneratedProtocol + namespace: saas + output-folder: $(csharp-sdks-folder)/services/preview/$(namespace)/mgmt/2018-03-01-beta/$(namespace) ``` diff --git a/specification/saas/resource-manager/readme.go.md b/specification/saas/resource-manager/readme.go.md index 304193d8937c..ffda2af79735 100644 --- a/specification/saas/resource-manager/readme.go.md +++ b/specification/saas/resource-manager/readme.go.md @@ -14,6 +14,6 @@ These settings apply only when `--tag=package-2018-03-01-beta --go` is specified Please also specify `--go-sdks-folder=`. ```yaml $(tag) == 'package-2018-03-01-beta' && $(go) -namespace: microsoft.saas -output-folder: $(go-sdks-folder)/saas/Generated +namespace: saas +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-03-01-beta/$(namespace) ``` diff --git a/specification/saas/resource-manager/readme.ruby.md b/specification/saas/resource-manager/readme.ruby.md index 8a8df3fb5674..6e77a6261755 100644 --- a/specification/saas/resource-manager/readme.ruby.md +++ b/specification/saas/resource-manager/readme.ruby.md @@ -14,6 +14,6 @@ These settings apply only when `--tag=package-2018-03-01-beta --ruby` is specifi Please also specify `--ruby-sdks-folder=`. ```yaml $(tag) == 'package-2018-03-01-beta' && $(ruby) -namespace: microsoft.saas -output-folder: $(ruby-sdks-folder)/saas +namespace: saas +output-folder: $(ruby-sdks-folder)/management/$(namespace) ```