Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df89eaf

Browse files
zfchen95Juliehzl
authored andcommitted
[Bug fix] Remove read-only constraint for management policy, and change properties types from integer to number (Azure#6551)
* [Bug fix] Remove read-only constraint for management policy * [Bug fix] Change daysAfterCreationGreaterThan and daysAfterModificationGreaterThan to float type * change type to number * Modify description, remove integer * Fix existing build errors in Storage swagger
1 parent 39fb386 commit df89eaf

File tree

6 files changed

+15
-32
lines changed

6 files changed

+15
-32
lines changed

specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersDelete.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
"monitor": "true"
99
},
1010
"responses": {
11-
"200": {
12-
"body": ""
13-
},
14-
"204": {
15-
"body": ""
16-
}
11+
"200": {},
12+
"204": {}
1713
}
1814
}

specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCreate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
"type": "Microsoft.Storage/storageAccounts"
5656
}
5757
},
58-
"202": {
59-
"body": ""
60-
}
58+
"202": {}
6159
}
6260
}

specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDelete.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
"monitor": "true"
88
},
99
"responses": {
10-
"200": {
11-
"body": ""
12-
},
13-
"204": {
14-
"body": ""
15-
}
10+
"200": {},
11+
"204": {}
1612
}
1713
}

specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDeleteManagementPolicy.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
"monitor": "true"
99
},
1010
"responses": {
11-
"200": {
12-
"body": ""
13-
},
14-
"204": {
15-
"body": ""
16-
}
11+
"200": {},
12+
"204": {}
1713
}
1814
}

specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountFailover.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
"monitor": "true"
88
},
99
"responses": {
10-
"200": {
11-
"body": ""
12-
},
13-
"202": {
14-
"body": ""
15-
}
10+
"200": {},
11+
"202": {}
1612
}
1713
}

specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/storage.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,6 @@
21602160
"properties": {
21612161
"$ref": "#/definitions/ManagementPolicyProperties",
21622162
"x-ms-client-flatten": true,
2163-
"readOnly": true,
21642163
"description": "Returns the Storage Account Data Policies Rules."
21652164
}
21662165
},
@@ -2317,9 +2316,10 @@
23172316
"DateAfterModification": {
23182317
"properties": {
23192318
"daysAfterModificationGreaterThan": {
2320-
"type": "integer",
2319+
"type": "number",
2320+
"multipleOf": 1.0,
23212321
"minimum": 0,
2322-
"description": "Integer value indicating the age in days after last modification"
2322+
"description": "Value indicating the age in days after last modification"
23232323
}
23242324
},
23252325
"required": [
@@ -2330,9 +2330,10 @@
23302330
"DateAfterCreation": {
23312331
"properties": {
23322332
"daysAfterCreationGreaterThan": {
2333-
"type": "integer",
2333+
"type": "number",
2334+
"multipleOf": 1.0,
23342335
"minimum": 0,
2335-
"description": "Integer value indicating the age in days after creation"
2336+
"description": "Value indicating the age in days after creation"
23362337
}
23372338
},
23382339
"required": [

0 commit comments

Comments
 (0)