Skip to content

Commit 197c913

Browse files
authored
[NetAppFiles] Anf 10301 net app files update swagger rest api to 2020 12 01 (#13061)
* Add new api version folder * Apply 2020-12-01 changes * pretty * snapshot delete return code * snapshot is a proxy resource * Revert "snapshot is a proxy resource" This reverts commit 4ed4e8d. * Fix examples incorrect type * Remove multiplfOf limit causing rounding issue in validation * Remove name for snapshot policy, not allowed * Pretty * update api version in examples Co-authored-by: Audunn Baldvinsson <audunn.baldvinsson@netapp.com>
1 parent bb887a1 commit 197c913

File tree

60 files changed

+6819
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+6819
-5
lines changed

specification/netapp/resource-manager/Microsoft.NetApp/stable/2020-06-01/netapp.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3475,7 +3475,7 @@
34753475
"title": "Maximum throughput in Mibps that can be achieved by this volume",
34763476
"type": "number",
34773477
"default": 0.0,
3478-
"example": "128.22",
3478+
"example": 128.22,
34793479
"maximum": 4500,
34803480
"minimum": 0,
34813481
"multipleOf": 0.001
@@ -3779,7 +3779,7 @@
37793779
"throughputMibps": {
37803780
"title": "Maximum throughput in Mibps that can be achieved by this volume",
37813781
"type": "number",
3782-
"example": "128.22",
3782+
"example": 128.22,
37833783
"maximum": 4500,
37843784
"minimum": 1,
37853785
"multipleOf": 0.001

specification/netapp/resource-manager/Microsoft.NetApp/stable/2020-09-01/netapp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3811,7 +3811,7 @@
38113811
"throughputMibps": {
38123812
"title": "Maximum throughput in Mibps that can be achieved by this volume",
38133813
"type": "number",
3814-
"example": "128.22",
3814+
"example": 128.22,
38153815
"maximum": 4500,
38163816
"minimum": 1,
38173817
"multipleOf": 0.001

specification/netapp/resource-manager/Microsoft.NetApp/stable/2020-11-01/netapp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3894,7 +3894,7 @@
38943894
"throughputMibps": {
38953895
"title": "Maximum throughput in Mibps that can be achieved by this volume",
38963896
"type": "number",
3897-
"example": "128.22",
3897+
"example": 128.22,
38983898
"maximum": 4500,
38993899
"minimum": 1,
39003900
"multipleOf": 0.001
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
4+
"resourceGroupName": "myRG",
5+
"accountName": "account1",
6+
"api-version": "2020-12-01",
7+
"body": {
8+
"location": "eastus",
9+
"properties": {
10+
"activeDirectories": [
11+
{
12+
"site": "SiteName",
13+
"username": "ad_user_name",
14+
"password": "ad_password",
15+
"domain": "10.10.10.3",
16+
"dns": "10.10.10.3, 10.10.10.4",
17+
"smbServerName": "SMBServer",
18+
"organizationalUnit": "Engineering",
19+
"aesEncryption": true,
20+
"ldapSigning": false
21+
}
22+
]
23+
}
24+
}
25+
},
26+
"responses": {
27+
"200": {
28+
"body": {
29+
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1",
30+
"name": "account1",
31+
"type": "Microsoft.NetApp/netAppAccounts",
32+
"location": "eastus",
33+
"properties": {
34+
"provisioningState": "Succeeded"
35+
}
36+
}
37+
},
38+
"201": {
39+
"body": {
40+
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1",
41+
"name": "account1",
42+
"type": "Microsoft.NetApp/netAppAccounts",
43+
"location": "eastus",
44+
"properties": {
45+
"provisioningState": "Succeeded"
46+
}
47+
}
48+
}
49+
}
50+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
4+
"resourceGroupName": "myRG",
5+
"accountName": "account1",
6+
"api-version": "2020-12-01"
7+
},
8+
"responses": {
9+
"202": {},
10+
"204": {}
11+
}
12+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
4+
"resourceGroupName": "myRG",
5+
"accountName": "account1",
6+
"api-version": "2020-12-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1",
12+
"name": "account1",
13+
"type": "Microsoft.NetApp/netAppAccounts",
14+
"location": "eastus",
15+
"properties": {
16+
"provisioningState": "Succeeded",
17+
"activeDirectories": [
18+
{
19+
"site": "SiteName",
20+
"activeDirectoryId": "02da3711-6c58-2d64-098a-e3af7afaf936",
21+
"username": "ad_user_name",
22+
"domain": "10.10.10.3",
23+
"dns": "10.10.10.3, 10.10.10.4",
24+
"status": "InUse",
25+
"smbServerName": "SMBServer",
26+
"organizationalUnit": "Engineering",
27+
"statusDetails": "Status Details",
28+
"aesEncryption": true,
29+
"ldapSigning": true
30+
}
31+
]
32+
}
33+
}
34+
}
35+
}
36+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
4+
"resourceGroupName": "myRG",
5+
"api-version": "2020-12-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1",
13+
"name": "account1",
14+
"type": "Microsoft.NetApp/netAppAccounts",
15+
"location": "eastus",
16+
"properties": {
17+
"provisioningState": "Succeeded"
18+
}
19+
}
20+
]
21+
}
22+
}
23+
}
24+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
4+
"resourceGroupName": "myRG",
5+
"accountName": "account1",
6+
"api-version": "2020-12-01",
7+
"body": {
8+
"tags": {
9+
"Tag1": "Value1"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1",
17+
"name": "account1",
18+
"type": "Microsoft.NetApp/netAppAccounts",
19+
"location": "eastus",
20+
"properties": {
21+
"provisioningState": "Succeeded"
22+
}
23+
}
24+
},
25+
"202": {
26+
"body": {
27+
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1",
28+
"name": "account1",
29+
"type": "Microsoft.NetApp/netAppAccounts",
30+
"location": "eastus",
31+
"tags": {
32+
"Tag1": "Value1"
33+
},
34+
"properties": {
35+
"provisioningState": "Patching",
36+
"encryption": {
37+
"keySource": "Microsoft.NetApp"
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
4+
"resourceGroupName": "myRG",
5+
"accountName": "account1",
6+
"backupPolicyName": "backupPolicyName",
7+
"api-version": "2020-12-01",
8+
"body": {
9+
"location": "westus",
10+
"properties": {
11+
"dailyBackupsToKeep": 10,
12+
"weeklyBackupsToKeep": 10,
13+
"monthlyBackupsToKeep": 10,
14+
"enabled": true
15+
}
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicyName",
22+
"name": "account1/backupPolicyName",
23+
"type": "Microsoft.NetApp/netAppAccounts/backupPolicies",
24+
"location": "westus",
25+
"properties": {
26+
"dailyBackupsToKeep": 10,
27+
"weeklyBackupsToKeep": 10,
28+
"monthlyBackupsToKeep": 10,
29+
"enabled": true,
30+
"provisioningState": "creating"
31+
}
32+
}
33+
},
34+
"201": {
35+
"body": {
36+
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicyName",
37+
"name": "account1/backupPolicyName",
38+
"type": "Microsoft.NetApp/netAppAccounts/backupPolicies",
39+
"location": "westus",
40+
"properties": {
41+
"dailyBackupsToKeep": 10,
42+
"weeklyBackupsToKeep": 10,
43+
"monthlyBackupsToKeep": 10,
44+
"enabled": true,
45+
"provisioningState": "creating"
46+
}
47+
}
48+
},
49+
"202": {}
50+
}
51+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
4+
"resourceGroupName": "resourceGroup",
5+
"accountName": "accountName",
6+
"backupPolicyName": "backupPolicyName",
7+
"api-version": "2020-12-01"
8+
},
9+
"responses": {
10+
"204": {},
11+
"202": {},
12+
"200": {}
13+
}
14+
}

0 commit comments

Comments
 (0)