-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NetAppFiles] Anf 10301 net app files update swagger rest api to 2020 12 01 #13061
Merged
ArcturusZhang
merged 11 commits into
Azure:master
from
audunn:ANF-10301-NetAppFilesUpdateSwaggerRestAPI-to-2020-12-01
Mar 10, 2021
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c3dd0cb
Add new api version folder
audunn e9a13b6
Apply 2020-12-01 changes
audunn f9a6edd
pretty
audunn eaaab0d
snapshot delete return code
audunn 4ed4e8d
snapshot is a proxy resource
audunn ad4bf1e
Revert "snapshot is a proxy resource"
audunn a44c4ac
Fix examples incorrect type
audunn fa2c351
Remove multiplfOf limit causing rounding issue in validation
audunn 22e14ce
Remove name for snapshot policy, not allowed
audunn aaf12be
Pretty
audunn 80c6268
update api version in examples
audunn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
50 changes: 50 additions & 0 deletions
50
...resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/Accounts_CreateOrUpdate.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": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "myRG", | ||
"accountName": "account1", | ||
"api-version": "2020-11-01", | ||
"body": { | ||
"location": "eastus", | ||
"properties": { | ||
"activeDirectories": [ | ||
{ | ||
"site": "SiteName", | ||
"username": "ad_user_name", | ||
"password": "ad_password", | ||
"domain": "10.10.10.3", | ||
"dns": "10.10.10.3, 10.10.10.4", | ||
"smbServerName": "SMBServer", | ||
"organizationalUnit": "Engineering", | ||
"aesEncryption": true, | ||
"ldapSigning": false | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1", | ||
"name": "account1", | ||
"type": "Microsoft.NetApp/netAppAccounts", | ||
"location": "eastus", | ||
"properties": { | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1", | ||
"name": "account1", | ||
"type": "Microsoft.NetApp/netAppAccounts", | ||
"location": "eastus", | ||
"properties": { | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
.../netapp/resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/Accounts_Delete.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": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "myRG", | ||
"accountName": "account1", | ||
"api-version": "2020-11-01" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ion/netapp/resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/Accounts_Get.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,36 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "myRG", | ||
"accountName": "account1", | ||
"api-version": "2020-11-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1", | ||
"name": "account1", | ||
"type": "Microsoft.NetApp/netAppAccounts", | ||
"location": "eastus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"activeDirectories": [ | ||
{ | ||
"site": "SiteName", | ||
"activeDirectoryId": "02da3711-6c58-2d64-098a-e3af7afaf936", | ||
"username": "ad_user_name", | ||
"domain": "10.10.10.3", | ||
"dns": "10.10.10.3, 10.10.10.4", | ||
"status": "InUse", | ||
"smbServerName": "SMBServer", | ||
"organizationalUnit": "Engineering", | ||
"statusDetails": "Status Details", | ||
"aesEncryption": true, | ||
"ldapSigning": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...on/netapp/resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/Accounts_List.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,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "myRG", | ||
"api-version": "2020-11-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1", | ||
"name": "account1", | ||
"type": "Microsoft.NetApp/netAppAccounts", | ||
"location": "eastus", | ||
"properties": { | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
.../netapp/resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/Accounts_Update.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,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "myRG", | ||
"accountName": "account1", | ||
"api-version": "2020-11-01", | ||
"body": { | ||
"tags": { | ||
"Tag1": "Value1" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1", | ||
"name": "account1", | ||
"type": "Microsoft.NetApp/netAppAccounts", | ||
"location": "eastus", | ||
"properties": { | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1", | ||
"name": "account1", | ||
"type": "Microsoft.NetApp/netAppAccounts", | ||
"location": "eastus", | ||
"tags": { | ||
"Tag1": "Value1" | ||
}, | ||
"properties": { | ||
"provisioningState": "Patching", | ||
"encryption": { | ||
"keySource": "Microsoft.NetApp" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...p/resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/BackupPolicies_Create.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,51 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "myRG", | ||
"accountName": "account1", | ||
"backupPolicyName": "backupPolicyName", | ||
"api-version": "2020-11-01", | ||
"body": { | ||
"location": "westus", | ||
"properties": { | ||
"dailyBackupsToKeep": 10, | ||
"weeklyBackupsToKeep": 10, | ||
"monthlyBackupsToKeep": 10, | ||
"enabled": true | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicyName", | ||
"name": "account1/backupPolicyName", | ||
"type": "Microsoft.NetApp/netAppAccounts/backupPolicies", | ||
"location": "westus", | ||
"properties": { | ||
"dailyBackupsToKeep": 10, | ||
"weeklyBackupsToKeep": 10, | ||
"monthlyBackupsToKeep": 10, | ||
"enabled": true, | ||
"provisioningState": "creating" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicyName", | ||
"name": "account1/backupPolicyName", | ||
"type": "Microsoft.NetApp/netAppAccounts/backupPolicies", | ||
"location": "westus", | ||
"properties": { | ||
"dailyBackupsToKeep": 10, | ||
"weeklyBackupsToKeep": 10, | ||
"monthlyBackupsToKeep": 10, | ||
"enabled": true, | ||
"provisioningState": "creating" | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...p/resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/BackupPolicies_Delete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "resourceGroup", | ||
"accountName": "accountName", | ||
"backupPolicyName": "backupPolicyName", | ||
"api-version": "2020-11-01" | ||
}, | ||
"responses": { | ||
"204": {}, | ||
"202": {}, | ||
"200": {} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...tapp/resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/BackupPolicies_Get.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,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "myRG", | ||
"accountName": "account1", | ||
"backupPolicyName": "backupPolicyName", | ||
"api-version": "2020-11-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicyName", | ||
"name": "account1/backupPolicyName", | ||
"type": "Microsoft.NetApp/netAppAccounts/backupPolicies", | ||
"location": "eastus", | ||
"properties": { | ||
"name": "Policy 1", | ||
"dailyBackupsToKeep": 10, | ||
"weeklyBackupsToKeep": 10, | ||
"monthlyBackupsToKeep": 10, | ||
"yearlyBackupsToKeep": 10, | ||
"volumesAssigned": 0, | ||
"enabled": true, | ||
"volumeBackups": [ | ||
{ | ||
"volumeName": "volume 1", | ||
"backupsCount": 5, | ||
"policyEnabled": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...app/resource-manager/Microsoft.NetApp/stable/2020-12-01/examples/BackupPolicies_List.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": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", | ||
"resourceGroupName": "myRG", | ||
"accountName": "account1", | ||
"api-version": "2020-11-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicy1", | ||
"name": "account1/backupPolicy1", | ||
"type": "Microsoft.NetApp/netAppAccounts/backupPolicies", | ||
"location": "eastus", | ||
"properties": { | ||
"name": "Policy 1", | ||
"dailyBackupsToKeep": 10, | ||
"weeklyBackupsToKeep": 10, | ||
"monthlyBackupsToKeep": 10, | ||
"yearlyBackupsToKeep": 10, | ||
"volumesAssigned": 0, | ||
"enabled": true | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix API versions across all the files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry about that, done