Skip to content

Commit

Permalink
[NetAppFiles]Anf 6195 swagger restapi to2020 06 01 bugfix (#10753)
Browse files Browse the repository at this point in the history
* Fix snapshot snapshotPolicyProperties

* Fix linter issue, prettier

* one more pretty

* param in example

* remove param in example

* Remove whitespace

* Remove valiation on readonly properties

Co-authored-by: Audunn Baldvinsson <[email protected]>
  • Loading branch information
audunn and audunn authored Sep 15, 2020
1 parent a4100a3 commit 6b69d6e
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"site": "SiteName",
"activeDirectoryId": "02da3711-6c58-2d64-098a-e3af7afaf936",
"username": "ad_user_name",
"password": "****************",
"domain": "10.10.10.3",
"dns": "10.10.10.3, 10.10.10.4",
"status": "InUse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,26 @@
"location": "eastus",
"properties": {
"hourlySchedule": {
"snapshotsToKeep": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 2,
"minute": 50
},
"dailySchedule": {
"snapshotsToKeep": 10,
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 4,
"hour": 14,
"minute": 30
},
"weeklySchedule": {
"snapshotsToKeep": 10,
"day": "Monday",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 3,
"day": "Wednesday",
"hour": 14,
"minute": 45
},
"monthlySchedule": {
"snapshotsToKeep": 10,
"DaysOfMonth": "1,5,11",
"hour": 10,
"minute": 10,
"usedBytes": 100000
},
"enabled": true
"snapshotsToKeep": 5,
"daysOfMonth": "10,11,12",
"hour": 14,
"minute": 15
}
}
}
},
Expand All @@ -45,32 +40,30 @@
"name": "account1/snapshotPolicy1",
"type": "Microsoft.NetApp/netAppAccounts/snapshotPolicies",
"properties": {
"name": "sdk-net-tests-snapshotPolicy-1",
"enabled": true,
"hourlySchedule": {
"snapshotsToKeep": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 2,
"minute": 50
},
"dailySchedule": {
"snapshotsToKeep": 10,
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 4,
"hour": 14,
"minute": 30
},
"weeklySchedule": {
"snapshotsToKeep": 10,
"day": "Monday",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 3,
"day": "Wednesday",
"hour": 14,
"minute": 45
},
"monthlySchedule": {
"snapshotsToKeep": 10,
"DaysOfMonth": "1,5,11",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 5,
"daysOfMonth": "10,11,12",
"hour": 14,
"minute": 15
},
"enabled": true
"provisioningState": "Succeeded"
}
}
},
Expand All @@ -81,32 +74,30 @@
"name": "account1/snapshotPolicy1",
"type": "Microsoft.NetApp/netAppAccounts/snapshotPolicies",
"properties": {
"name": "sdk-net-tests-snapshotPolicy-1",
"enabled": true,
"hourlySchedule": {
"snapshotsToKeep": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 2,
"minute": 50
},
"dailySchedule": {
"snapshotsToKeep": 10,
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 4,
"hour": 14,
"minute": 30
},
"weeklySchedule": {
"snapshotsToKeep": 10,
"day": "Monday",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 3,
"day": "Wednesday",
"hour": 14,
"minute": 45
},
"monthlySchedule": {
"snapshotsToKeep": 10,
"DaysOfMonth": "1,5,11",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 5,
"daysOfMonth": "10,11,12",
"hour": 14,
"minute": 15
},
"enabled": true
"provisioningState": "Succeeded"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,30 @@
"type": "Microsoft.NetApp/netAppAccounts/snapshotPolicies",
"location": "eastus",
"properties": {
"name": "sdk-net-tests-snapshotPolicy-1",
"enabled": true,
"hourlySchedule": {
"snapshotsToKeep": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 2,
"minute": 50
},
"dailySchedule": {
"snapshotsToKeep": 10,
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 4,
"hour": 14,
"minute": 30
},
"weeklySchedule": {
"snapshotsToKeep": 10,
"day": "Monday",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 3,
"day": "Wednesday",
"hour": 14,
"minute": 45
},
"monthlySchedule": {
"snapshotsToKeep": 10,
"DaysOfMonth": "1,5,11",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 5,
"daysOfMonth": "10,11,12",
"hour": 14,
"minute": 15
},
"enabled": true
"provisioningState": "Succeeded"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,30 @@
"location": "eastus",
"type": "Microsoft.NetApp/netAppAccounts/snapshotPolicies",
"properties": {
"name": "sdk-net-tests-snapshotPolicy-1",
"enabled": true,
"hourlySchedule": {
"snapshotsToKeep": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 2,
"minute": 50
},
"dailySchedule": {
"snapshotsToKeep": 10,
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 4,
"hour": 14,
"minute": 30
},
"weeklySchedule": {
"snapshotsToKeep": 10,
"day": "Monday",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 3,
"day": "Wednesday",
"hour": 14,
"minute": 45
},
"monthlySchedule": {
"snapshotsToKeep": 10,
"DaysOfMonth": "1,5,11",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 5,
"daysOfMonth": "10,11,12",
"hour": 14,
"minute": 15
},
"enabled": true
"provisioningState": "Succeeded"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,28 @@
"body": {
"location": "eastus",
"properties": {
"enabled": true,
"hourlySchedule": {
"snapshotsToKeep": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 2,
"minute": 50
},
"dailySchedule": {
"snapshotsToKeep": 10,
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 4,
"hour": 14,
"minute": 30
},
"weeklySchedule": {
"snapshotsToKeep": 10,
"day": "Monday",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 3,
"day": "Wednesday",
"hour": 14,
"minute": 45
},
"monthlySchedule": {
"snapshotsToKeep": 10,
"DaysOfMonth": "1,5,11",
"hour": 10,
"minute": 10,
"usedBytes": 100000
},
"enabled": true
"snapshotsToKeep": 5,
"daysOfMonth": "10,11,12",
"hour": 14,
"minute": 15
}
}
}
},
Expand All @@ -45,32 +41,30 @@
"type": "Microsoft.NetApp/netAppAccounts/snapshotPolicies",
"location": "eastus",
"properties": {
"name": "sdk-net-tests-snapshotPolicy-1",
"enabled": true,
"hourlySchedule": {
"snapshotsToKeep": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 2,
"minute": 50
},
"dailySchedule": {
"snapshotsToKeep": 10,
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 4,
"hour": 14,
"minute": 30
},
"weeklySchedule": {
"snapshotsToKeep": 10,
"day": "Monday",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 3,
"day": "Wednesday",
"hour": 14,
"minute": 45
},
"monthlySchedule": {
"snapshotsToKeep": 10,
"DaysOfMonth": "1,5,11",
"hour": 10,
"minute": 10,
"usedBytes": 100000
"snapshotsToKeep": 5,
"daysOfMonth": "10,11,12",
"hour": 14,
"minute": 15
},
"enabled": true
"provisioningState": "Succeeded"
}
}
}
Expand Down
Loading

0 comments on commit 6b69d6e

Please sign in to comment.