Skip to content

Commit 7db7f66

Browse files
added switch performance tier (#1136)
1 parent 8a97bd7 commit 7db7f66

5 files changed

Lines changed: 22 additions & 2 deletions

File tree

specification/resources/nfs/models/nfs_actions.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
nfs_action:
22
required:
33
- type
4-
- region
54
type: object
65
description: Specifies the action that will be taken on the NFS share.
76
properties:
@@ -76,3 +75,17 @@ nfs_action_detach:
7675
description: The ID of the VPC from which the NFS share will be detached
7776
required:
7877
- vpc_id
78+
nfs_action_switch_performance_tier:
79+
allOf:
80+
- $ref: '#/nfs_action'
81+
- type: object
82+
properties:
83+
params:
84+
type: object
85+
properties:
86+
performance_tier:
87+
type: string
88+
example: standard
89+
description: The performance tier to which the NFS share will be switched (e.g., standard, high).
90+
required:
91+
- performance_tier

specification/resources/nfs/models/nfs_request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ properties:
1919
type: string
2020
description: List of VPC IDs that should be able to access the share.
2121
example: ["796c6fe3-2a1d-4da2-9f3e-38239827dc91"]
22+
performance_tier:
23+
type: string
24+
description: The performance tier of the share.
25+
example: "standard"
2226
required:
2327
- name
2428
- size_gib

specification/resources/nfs/nfs_actions_create.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description: |
1313
| <nobr>`snapshot`</nobr> | Takes a snapshot of an NFS share |
1414
| <nobr>`attach`</nobr> | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID |
1515
| <nobr>`detach`</nobr> | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID |
16+
| <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) |
1617
1718
tags:
1819
- NFS Actions
@@ -36,13 +37,15 @@ requestBody:
3637
- $ref: 'models/nfs_actions.yml#/nfs_action_snapshot'
3738
- $ref: 'models/nfs_actions.yml#/nfs_action_attach'
3839
- $ref: 'models/nfs_actions.yml#/nfs_action_detach'
40+
- $ref: 'models/nfs_actions.yml#/nfs_action_switch_performance_tier'
3941
discriminator:
4042
propertyName: type
4143
mapping:
4244
resize: 'models/nfs_actions.yml#/nfs_action_resize'
4345
snapshot: 'models/nfs_actions.yml#/nfs_action_snapshot'
4446
attach: 'models/nfs_actions.yml#/nfs_action_attach'
4547
detach: 'models/nfs_actions.yml#/nfs_action_detach'
48+
switch_performance_tier: 'models/nfs_actions.yml#/nfs_action_switch_performance_tier'
4649

4750
responses:
4851
'201':

specification/resources/nfs/nfs_create.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ requestBody:
2323
size_gib: 1024
2424
region: "atl1"
2525
vpc_ids: ["796c6fe3-2a1d-4da2-9f3e-38239827dc91"]
26+
performance_tier: "standard"
2627

2728
responses:
2829
'201':

specification/resources/nfs/parameters.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ size_gib:
2828
region:
2929
in: query
3030
name: region
31-
required: true
3231
description: The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
3332
schema:
3433
type: string

0 commit comments

Comments
 (0)