Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion specification/resources/nfs/models/nfs_actions.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
nfs_action:
required:
- type
- region
type: object
description: Specifies the action that will be taken on the NFS share.
properties:
Expand Down Expand Up @@ -76,3 +75,17 @@ nfs_action_detach:
description: The ID of the VPC from which the NFS share will be detached
required:
- vpc_id
nfs_action_switch_performance_tier:
allOf:
- $ref: '#/nfs_action'
- type: object
properties:
params:
type: object
properties:
performance_tier:
type: string
example: standard
description: The performance tier to which the NFS share will be switched (e.g., standard, high).
required:
- performance_tier
4 changes: 4 additions & 0 deletions specification/resources/nfs/models/nfs_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ properties:
type: string
description: List of VPC IDs that should be able to access the share.
example: ["796c6fe3-2a1d-4da2-9f3e-38239827dc91"]
performance_tier:
type: string
description: The performance tier of the share.
example: "standard"
required:
- name
- size_gib
Expand Down
3 changes: 3 additions & 0 deletions specification/resources/nfs/nfs_actions_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ description: |
| <nobr>`snapshot`</nobr> | Takes a snapshot of an NFS share |
| <nobr>`attach`</nobr> | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID |
| <nobr>`detach`</nobr> | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID |
| <nobr>`switch_performance_tier`</nobr> | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) |

tags:
- NFS Actions
Expand All @@ -36,13 +37,15 @@ requestBody:
- $ref: 'models/nfs_actions.yml#/nfs_action_snapshot'
- $ref: 'models/nfs_actions.yml#/nfs_action_attach'
- $ref: 'models/nfs_actions.yml#/nfs_action_detach'
- $ref: 'models/nfs_actions.yml#/nfs_action_switch_performance_tier'
discriminator:
propertyName: type
mapping:
resize: 'models/nfs_actions.yml#/nfs_action_resize'
snapshot: 'models/nfs_actions.yml#/nfs_action_snapshot'
attach: 'models/nfs_actions.yml#/nfs_action_attach'
detach: 'models/nfs_actions.yml#/nfs_action_detach'
switch_performance_tier: 'models/nfs_actions.yml#/nfs_action_switch_performance_tier'

responses:
'201':
Expand Down
1 change: 1 addition & 0 deletions specification/resources/nfs/nfs_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ requestBody:
size_gib: 1024
region: "atl1"
vpc_ids: ["796c6fe3-2a1d-4da2-9f3e-38239827dc91"]
performance_tier: "standard"

responses:
'201':
Expand Down
1 change: 0 additions & 1 deletion specification/resources/nfs/parameters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ size_gib:
region:
in: query
name: region
required: true
description: The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
schema:
type: string
Expand Down