forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Subscription Level SaaS alongside Tenant Level (Azure#11903)
* add subscription level * changes * fix * change * change * change1 * change 3 * change4 * changes * change2 * change 3 * change4 * change5 Co-authored-by: diyakobo <73845794+diyakobo@users.noreply.github.com> Co-authored-by: Dina Yakobovich <diyakobo@microsoft.com>
- Loading branch information
1 parent
297b752
commit 54e5466
Showing
21 changed files
with
1,148 additions
and
47 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...soft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ListAccessTokenPost.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...r/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ResourceMove.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ger/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...anager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGetAllInAzureSubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...aaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasGetAllInResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...ager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasPatch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...anager/Microsoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasPut.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...icrosoft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/SaasUnsubscribe.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...oft.SaaS/preview/2018-03-01-beta/examples/saasSubscriptionLevel/ValidateResourceMove.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.