forked from Azure/azure-cli-extensions
-
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.
Microsoft.Features: Add new API version 2021-07-01 (#14736)
* The previous version in the 2021-08-1 folder * Add new feature registration apis * Update readme files * Update readme file * Remove feature configuration apis * Fix avocado * Fix validations * Fix validation * Fix validations * Fix validation * Fix title * Fix validation * Fix validation * Fix readme * Fix validation * Fix validation * Fix validation * Fix validation * Fix validation * suppress r4009 * Fix validation * Fix validation * Fix python * Fix readme * Fix python * Remove post api * Update example api-versions Co-authored-by: shenshengkafei <wudiadi1111@gmail.com>
- Loading branch information
1 parent
4483c52
commit 91ac145
Showing
19 changed files
with
1,273 additions
and
1 deletion.
There are no files selected for viewing
462 changes: 462 additions & 0 deletions
462
...esource-manager/Microsoft.Features/stable/2021-07-01/SubscriptionFeatureRegistration.json
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationDELETE.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,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"providerNamespace": "subscriptionFeatureRegistrationGroupTestRG", | ||
"featureName": "testFeature", | ||
"api-version": "2021-07-01" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...es/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationGET.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,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"providerNamespace": "subscriptionFeatureRegistrationGroupTestRG", | ||
"featureName": "testFeature", | ||
"api-version": "2021-07-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "testFeature", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature", | ||
"type": "Microsoft.Features/featureProviders/subscriptionFeatureRegistrations", | ||
"properties": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"featureName": "testFeature", | ||
"providerNamespace": "Microsoft.TestRP", | ||
"state": "Pending", | ||
"authorizationProfile": {}, | ||
"releaseDate": "2019-11-05T00:34:53.1243228Z", | ||
"approvalType": "ApprovalRequired", | ||
"registrationDate": "2020-02-26T01:57:51.734777Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...s/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationLIST.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,31 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"providerNamespace": "subscriptionFeatureRegistrationGroupTestRG", | ||
"api-version": "2021-07-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nextLink": "string", | ||
"value": [ | ||
{ | ||
"name": "testFeature", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature", | ||
"type": "Microsoft.Features/featureProviders/subscriptionFeatureRegistrations", | ||
"properties": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"featureName": "testFeature", | ||
"providerNamespace": "Microsoft.TestRP", | ||
"state": "Pending", | ||
"authorizationProfile": {}, | ||
"releaseDate": "2019-11-05T00:34:53.1243228Z", | ||
"approvalType": "ApprovalRequired", | ||
"registrationDate": "2020-02-26T01:57:51.734777Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...table/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationLISTALL.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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"api-version": "2021-07-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nextLink": "string", | ||
"value": [ | ||
{ | ||
"name": "testFeature", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature", | ||
"type": "Microsoft.Features/featureProviders/subscriptionFeatureRegistrations", | ||
"properties": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"featureName": "testFeature", | ||
"providerNamespace": "Microsoft.TestRP", | ||
"state": "Pending", | ||
"authorizationProfile": {}, | ||
"releaseDate": "2019-11-05T00:34:53.1243228Z", | ||
"approvalType": "ApprovalRequired", | ||
"registrationDate": "2020-02-26T01:57:51.734777Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...es/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationPUT.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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"providerNamespace": "subscriptionFeatureRegistrationGroupTestRG", | ||
"featureName": "testFeature", | ||
"api-version": "2021-07-01", | ||
"SubscriptionFeatureRegistrationType": { | ||
"properties": {} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "testFeature", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature", | ||
"type": "Microsoft.Features/featureProviders/subscriptionFeatureRegistrations", | ||
"properties": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"featureName": "testFeature", | ||
"providerNamespace": "Microsoft.TestRP", | ||
"state": "Pending", | ||
"authorizationProfile": {}, | ||
"releaseDate": "2019-11-05T00:34:53.1243228Z", | ||
"approvalType": "ApprovalRequired", | ||
"registrationDate": "2020-02-26T01:57:51.734777Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
.../resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/getFeature.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,21 @@ | ||
{ | ||
"parameters": { | ||
"resourceProviderNamespace": "Resource Provider Namespace", | ||
"featureName": "feature", | ||
"api-version": "2021-07-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"name": "Feature1", | ||
"properties": { | ||
"state": "registered" | ||
}, | ||
"id": "feature_id1", | ||
"type": "type1" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...esource-manager/Microsoft.Features/stable/2021-07-01/examples/listFeaturesOperations.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,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "FeaturesOpeartion1", | ||
"display": { | ||
"provider": "Microsoft.ResourceProvider", | ||
"resource": "Resource1", | ||
"operation": "Read" | ||
} | ||
}, | ||
{ | ||
"name": "FeaturesOpeartion2", | ||
"display": { | ||
"provider": "Microsoft.ResourceProvider", | ||
"resource": "Resource2", | ||
"operation": "Write" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
.../resource-manager/Microsoft.Features/stable/2021-07-01/examples/listProviderFeatures.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,32 @@ | ||
{ | ||
"parameters": { | ||
"resourceProviderNamespace": "Resource Provider Namespace", | ||
"api-version": "2021-07-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Feature1", | ||
"properties": { | ||
"state": "registered" | ||
}, | ||
"id": "feature_id1", | ||
"type": "type1" | ||
}, | ||
{ | ||
"name": "Feature2", | ||
"properties": { | ||
"state": "unregistered" | ||
}, | ||
"id": "feature_id2", | ||
"type": "type2" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...ource-manager/Microsoft.Features/stable/2021-07-01/examples/listSubscriptionFeatures.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,31 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Feature1", | ||
"properties": { | ||
"state": "registered" | ||
}, | ||
"id": "feature_id1", | ||
"type": "type1" | ||
}, | ||
{ | ||
"name": "Feature2", | ||
"properties": { | ||
"state": "unregistered" | ||
}, | ||
"id": "feature_id2", | ||
"type": "type2" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...urces/resource-manager/Microsoft.Features/stable/2021-07-01/examples/registerFeature.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,21 @@ | ||
{ | ||
"parameters": { | ||
"resourceProviderNamespace": "Resource Provider Namespace", | ||
"featureName": "feature", | ||
"api-version": "2021-07-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"name": "Feature1", | ||
"properties": { | ||
"state": "registered" | ||
}, | ||
"id": "feature_id1", | ||
"type": "type1" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ces/resource-manager/Microsoft.Features/stable/2021-07-01/examples/unregisterFeature.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,21 @@ | ||
{ | ||
"parameters": { | ||
"resourceProviderNamespace": "Resource Provider Namespace", | ||
"featureName": "feature", | ||
"api-version": "2021-07-01", | ||
"subscriptionId": "ff23096b-f5a2-46ea-bd62-59c3e93fef9a" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"name": "Feature1", | ||
"properties": { | ||
"state": "unregistered" | ||
}, | ||
"id": "/subscriptions/ff23096b-f5a2-46ea-bd62-59c3e93fef9a/providers/Microsoft.Features/providers/Microsoft.Test/features/Feature1", | ||
"type": "Microsoft.Features/providers/features" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.