Skip to content

Commit 7639635

Browse files
Add description property to Managed Database firewall rules (#1129)
Co-authored-by: Harsh Maru <38807407+harshmaru7@users.noreply.github.com>
1 parent 381504b commit 7639635

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

specification/resources/databases/databases_create_cluster.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ requestBody:
8080
value: "163973392"
8181
- type: tag
8282
value: test
83+
description: "a test tag"
8384

8485
Restore from a Database Cluster Backup:
8586
value:

specification/resources/databases/databases_update_firewall_rules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ requestBody:
4141
value: '163973392'
4242
- type: tag
4343
value: backend
44+
description: 'a backend tag'
4445

4546
parameters:
4647
- $ref: 'parameters.yml#/database_cluster_uuid'

specification/resources/databases/examples/go/databases_update_firewall_rules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ source: |-
1818
{
1919
Type: "ip_addr",
2020
Value: "192.168.1.1",
21+
Description: "a development IP address",
2122
},
2223
{
2324
Type: "droplet",

specification/resources/databases/examples/python/databases_update_firewall_rules.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ source: |-
99
"rules": [
1010
{
1111
"type": "ip_addr",
12-
"value": "192.168.1.1"
12+
"value": "192.168.1.1",
13+
"description": "a development IP address",
1314
},
1415
{
1516
"type": "k8s",

specification/resources/databases/models/firewall_rule.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ properties:
3939
A time value given in ISO8601 combined date and time format that
4040
represents when the firewall rule was created.
4141
readOnly: true
42-
42+
description:
43+
type: string
44+
example: 'an IP address for local development'
45+
description: >-
46+
A human-readable description of the rule.
4347
required:
4448
- type
4549
- value

specification/resources/databases/responses/firewall_rules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ content:
2626
- uuid: adfe81a8-0fa1-4e2d-973f-06aa5af19b44
2727
cluster_uuid: 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
2828
type: ip_addr
29+
description: 'a development IP address'
2930
value: 192.168.1.1
3031
created_at: '2019-11-14T20:30:28Z'
3132
- uuid: b9b42276-8295-4313-b40f-74173a7f46e6

0 commit comments

Comments
 (0)