Skip to content

Commit

Permalink
Anf 10997 NetApp Files update swagger rest api to 2021-02-01 (Azure#1…
Browse files Browse the repository at this point in the history
…3814)

* Add api-version 2021-02-01 folder

* apply udpates

* Update readme

* update backaupStatus operationid

* Update account encryption settings

* Pretty

* Fix plural

* Add x-ms-pageable to AccountBackups_List

* change next link

* remove tag from backup proxy resource

* revert change to 2020-12

* remove tag from backup proxy resource

* Add x-ms-pageable to AccountBackups_List

* Pretty

* Add Snapshotpolicy to volumePatch

* Add Snapshotpolicy to volumeupdate example file

* Change subscription id in example

* Change subscription id in example

* pretty

* Remove AccountEncryption proptery, some non funcitonal validation warning fixes

* Fix example for backupoperators and securityoperators

* Remove readme.azureresourceschema.md

* Adding tags back to backuppatch, removing needs breaking change reivew

* fix prettier

Co-authored-by: Audunn Baldvinsson <[email protected]>
  • Loading branch information
2 people authored and mkarmark committed Jul 20, 2021
1 parent 93c67e2 commit 093b695
Show file tree
Hide file tree
Showing 56 changed files with 6,844 additions and 1 deletion.
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",
"api-version": "2021-02-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,
"ldapOverTLS": 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"
}
}
}
}
}
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": "2021-02-01"
},
"responses": {
"202": {},
"204": {}
}
}
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": "2021-02-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
}
]
}
}
}
}
}
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": "2021-02-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"
}
}
]
}
}
}
}
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"
}
}
}
}
}
}
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": "2021-02-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": {}
}
}
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": "2021-02-01"
},
"responses": {
"204": {},
"202": {},
"200": {}
}
}
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": "2021-02-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
}
]
}
}
}
}
}
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": "2021-02-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
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
"resourceGroupName": "myRG",
"accountName": "account1",
"backupPolicyName": "backupPolicyName",
"api-version": "2021-02-01",
"body": {
"location": "westus",
"properties": {
"dailyBackupsToKeep": 5,
"weeklyBackupsToKeep": 10,
"monthlyBackupsToKeep": 10,
"enabled": false
}
}
},
"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": {
"provisioningState": "Succeeded",
"dailyBackupsToKeep": 5,
"weeklyBackupsToKeep": 10,
"monthlyBackupsToKeep": 10,
"yearlyBackupsToKeep": 0,
"volumesAssigned": 1,
"enabled": false,
"volumeBackups": [
{
"volumeName": "volume 1",
"backupsCount": 5,
"policyEnabled": true
}
]
}
}
},
"202": {
"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": {
"provisioningState": "Succeeded",
"dailyBackupsToKeep": 5,
"weeklyBackupsToKeep": 10,
"monthlyBackupsToKeep": 10,
"yearlyBackupsToKeep": 0,
"volumesAssigned": 1,
"enabled": false,
"volumeBackups": [
{
"volumeName": "volume 1",
"backupsCount": 5,
"policyEnabled": true
}
]
}
}
}
}
}
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",
"backupName": "backupName",
"api-version": "2021-02-01"
},
"responses": {
"204": {},
"202": {},
"200": {}
}
}
Loading

0 comments on commit 093b695

Please sign in to comment.