Skip to content

Commit

Permalink
Merge branch '7.0-dev' into 8.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdickson6 committed Oct 28, 2024
2 parents d63c05f + 31b688d commit ac70b2e
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 deletions.
25 changes: 25 additions & 0 deletions components/examples/clusterDatastoreCreateNFS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"datastore": {
"name": "NFS",
"datastoreType": {
"id": 3
},
"active": true,
"config": {
"sourceHostname": "10.32.150.167",
"sourceDirPath": "/var/nfs/mvm"
},
"defaultStore": true,
"resourcePermissions": {
"allSites": true
},
"tenants": [
{
"id": 1,
"defaultStore": false,
"defaultTarget": false
}
],
"visibility": "private"
}
}
5 changes: 5 additions & 0 deletions components/schemas/clusterDatastoreConfigGFS2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: object
properties:
blockDevice:
type: string
description: Block device for target GFS2.
8 changes: 8 additions & 0 deletions components/schemas/clusterDatastoreConfigNFS.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: object
properties:
sourceHostname:
type: string
description: Host name or IP address for target NFS instance.
sourceDirPath:
type: string
description: Path to the target NFS export directory.
4 changes: 4 additions & 0 deletions components/schemas/clusterDatastoreCreate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ properties:
type: boolean
defaultStore:
type: boolean
config:
anyOf:
- $ref: clusterDatastoreConfigNFS.yaml
- $ref: clusterDatastoreConfigGFS2.yaml
tenants:
type: array
items:
Expand Down
4 changes: 2 additions & 2 deletions paths/api@clusters@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ post:
cluster:
$ref: ../components/schemas/clusterDatastoreCreate.yaml
examples:
Cluster Datastore Request:
NFS Datastore Request:
value:
$ref: ../components/examples/clusterDatastore.json
$ref: ../components/examples/clusterDatastoreCreateNFS.json
responses:
'200':
description: Successful Request
Expand Down
2 changes: 1 addition & 1 deletion paths/api@library@layouts@[email protected]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
put:
post:
summary: Update Layout Permissions
description: Use this command to update permissions for an existing layout.
operationId: updateLayoutPermissions
Expand Down

0 comments on commit ac70b2e

Please sign in to comment.