Skip to content

Commit

Permalink
ANF-8872 Fix examples for integers (Azure#12367)
Browse files Browse the repository at this point in the history
* ANF-8872 Fix examples for ints

* S360 findings

* S360 findings remove response code

* Fix authenticationid, protocoltypes

* Fix authenticationid, protocoltypes other versions

* Fix snapshotpolicy

* Fix snapshotpolicy update

* Fix snapshotpolicy update 3

* Fix protocoltype

* Fix protocoltype 07

* Remove name from volume properties, removed from service response

Co-authored-by: Audunn Baldvinsson <[email protected]>
  • Loading branch information
2 people authored and greenms committed Feb 19, 2021
1 parent 05ce908 commit e410a41
Show file tree
Hide file tree
Showing 12 changed files with 132 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,7 @@
"mountTargets": {
"title": "mountTargets",
"type": "array",
"readOnly": true,
"description": "List of mount targets",
"items": {
"$ref": "#/definitions/mountTargetProperties"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,11 @@
"minLength": 36,
"example": "9760acf5-4638-11e7-9bdb-020073ca7778"
},
"name": {
"type": "string",
"readOnly": true,
"description": "Pool Resource name"
},
"size": {
"title": "size",
"type": "integer",
Expand Down Expand Up @@ -1873,7 +1878,7 @@
},
"protocolTypes": {
"title": "protocolTypes",
"description": "Set of protocol types",
"description": "Set of protocol types, default NFSv3, CIFS fro SMB protocol",
"type": "array",
"items": {
"type": "string"
Expand Down Expand Up @@ -1913,6 +1918,7 @@
"mountTargets": {
"title": "mountTargets",
"type": "array",
"readOnly": true,
"description": "List of mount targets",
"items": {
"$ref": "#/definitions/mountTargetProperties"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,12 @@
"default": 107374182400,
"example": 107374182400
},
"usedBytes": {
"type": "integer",
"description": "Resource size in bytes, current storage usage for the volume in bytes",
"readOnly": true,
"format": "int64"
},
"exportPolicy": {
"title": "exportPolicy",
"description": "Set of export policy rules",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,12 @@
"default": 107374182400,
"example": 107374182400
},
"usedBytes": {
"type": "integer",
"description": "Resource size in bytes, current storage usage for the volume in bytes",
"readOnly": true,
"format": "int64"
},
"exportPolicy": {
"title": "exportPolicy",
"description": "Set of export policy rules",
Expand All @@ -2109,7 +2115,7 @@
},
"protocolTypes": {
"title": "protocolTypes",
"description": "Set of protocol types",
"description": "Set of protocol types, default NFSv3, CIFS for SMB protocol",
"type": "array",
"items": {
"type": "string"
Expand Down Expand Up @@ -2149,6 +2155,7 @@
"mountTargets": {
"title": "mountTargets",
"type": "array",
"readOnly": true,
"description": "List of mount targets",
"items": {
"$ref": "#/definitions/mountTargetProperties"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,7 @@
"properties": {
"activeDirectoryId": {
"type": "string",
"default": "guid id",
"description": "Id of the Active Directory"
},
"username": {
Expand Down Expand Up @@ -1868,6 +1869,11 @@
"minLength": 36,
"example": "9760acf5-4638-11e7-9bdb-020073ca7778"
},
"name": {
"type": "string",
"readOnly": true,
"description": "Pool Resource name"
},
"size": {
"title": "size",
"type": "integer",
Expand Down Expand Up @@ -2124,6 +2130,12 @@
"default": 107374182400,
"example": 107374182400
},
"usedBytes": {
"type": "integer",
"description": "Resource size in bytes, current storage usage for the volume in bytes",
"readOnly": true,
"format": "int64"
},
"exportPolicy": {
"title": "exportPolicy",
"description": "Set of export policy rules",
Expand All @@ -2140,7 +2152,7 @@
},
"protocolTypes": {
"title": "protocolTypes",
"description": "Set of protocol types",
"description": "Set of protocol types, default NFSv3, CIFS for SMB protocol",
"type": "array",
"items": {
"type": "string"
Expand Down Expand Up @@ -2180,6 +2192,7 @@
"mountTargets": {
"title": "mountTargets",
"type": "array",
"readOnly": true,
"description": "List of mount targets",
"items": {
"$ref": "#/definitions/mountTargetProperties"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,7 @@
"properties": {
"activeDirectoryId": {
"type": "string",
"default": "guid id",
"description": "Id of the Active Directory"
},
"username": {
Expand Down Expand Up @@ -1793,6 +1794,7 @@
},
"organizationalUnit": {
"type": "string",
"default": "CN=Computers",
"description": "The Organizational Unit (OU) within the Windows Active Directory"
},
"site": {
Expand Down Expand Up @@ -2144,6 +2146,12 @@
"default": 107374182400,
"example": 107374182400
},
"usedBytes": {
"type": "integer",
"description": "Resource size in bytes, current storage usage for the volume in bytes",
"readOnly": true,
"format": "int64"
},
"exportPolicy": {
"title": "exportPolicy",
"description": "Set of export policy rules",
Expand All @@ -2160,7 +2168,7 @@
},
"protocolTypes": {
"title": "protocolTypes",
"description": "Set of protocol types",
"description": "Set of protocol types, default NFSv3, CIFS for SMB protocol",
"type": "array",
"items": {
"type": "string"
Expand All @@ -2177,6 +2185,7 @@
"snapshotId": {
"title": "Snapshot ID",
"type": "string",
"x-nullable": true,
"description": "UUID v4 or resource identifier used to identify the Snapshot.",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}|(\\\\?([^\\/]*[\\/])*)([^\\/]+)$",
"maxLength": 36,
Expand All @@ -2200,6 +2209,7 @@
"mountTargets": {
"title": "mountTargets",
"type": "array",
"readOnly": true,
"description": "List of mount targets",
"items": {
"$ref": "#/definitions/mountTargetProperties"
Expand Down Expand Up @@ -2233,6 +2243,7 @@
},
"snapshotDirectoryVisible": {
"type": "boolean",
"default": true,
"description": "If enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots (default to true)."
}
}
Expand All @@ -2255,6 +2266,7 @@
},
"cifs": {
"type": "boolean",
"default": false,
"description": "Allows CIFS protocol"
},
"nfsv3": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,7 @@
"properties": {
"activeDirectoryId": {
"type": "string",
"default": "guid id",
"description": "Id of the Active Directory"
},
"username": {
Expand Down Expand Up @@ -1793,6 +1794,7 @@
},
"organizationalUnit": {
"type": "string",
"default": "CN=Computers",
"description": "The Organizational Unit (OU) within the Windows Active Directory"
},
"site": {
Expand Down Expand Up @@ -2160,7 +2162,7 @@
},
"protocolTypes": {
"title": "protocolTypes",
"description": "Set of protocol types",
"description": "Set of protocol types, default NFSv3, CIFS for SMB protocol",
"type": "array",
"items": {
"type": "string"
Expand Down Expand Up @@ -2200,6 +2202,7 @@
"mountTargets": {
"title": "mountTargets",
"type": "array",
"readOnly": true,
"description": "List of mount targets",
"items": {
"$ref": "#/definitions/mountTargetProperties"
Expand Down Expand Up @@ -2256,6 +2259,7 @@
},
"cifs": {
"type": "boolean",
"default": false,
"description": "Allows CIFS protocol"
},
"nfsv3": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,7 @@
"properties": {
"activeDirectoryId": {
"type": "string",
"default": "guid id",
"description": "Id of the Active Directory"
},
"username": {
Expand Down Expand Up @@ -2899,6 +2900,7 @@
},
"organizationalUnit": {
"type": "string",
"default": "CN=Computers",
"description": "The Organizational Unit (OU) within the Windows Active Directory"
},
"site": {
Expand Down Expand Up @@ -3279,7 +3281,7 @@
},
"protocolTypes": {
"title": "protocolTypes",
"description": "Set of protocol types",
"description": "Set of protocol types, default NFSv3, CIFS for SMB protocol",
"type": "array",
"items": {
"type": "string"
Expand Down Expand Up @@ -3328,6 +3330,7 @@
"mountTargets": {
"title": "mountTargets",
"type": "array",
"readOnly": true,
"description": "List of mount targets",
"items": {
"$ref": "#/definitions/mountTargetProperties"
Expand Down Expand Up @@ -3388,6 +3391,7 @@
},
"unixReadOnly": {
"type": "boolean",
"default": false,
"description": "Read only access"
},
"unixReadWrite": {
Expand Down Expand Up @@ -3432,6 +3436,7 @@
},
"cifs": {
"type": "boolean",
"default": false,
"description": "Allows CIFS protocol"
},
"nfsv3": {
Expand Down
Loading

0 comments on commit e410a41

Please sign in to comment.