Skip to content

Commit

Permalink
Remove MongoDB references
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed May 4, 2023
1 parent 0b26f80 commit 029cbae
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 66 deletions.
55 changes: 23 additions & 32 deletions docs/modules/database_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ List and filter on Linode Managed Databases.

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable attributes can be found here: https://www.linode.com/docs/api/databases/#managed-mongodb-databases-list__responses |
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable attributes can be found here: https://www.linode.com/docs/api/databases/#managed-databases-list-all__responses |
| `values` | <center>`list`</center> | <center>**Required**</center> | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |

## Return Values
Expand All @@ -46,42 +46,33 @@ List and filter on Linode Managed Databases.
```json
[
{
"allow_list":[
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size":3,
"compression_type":"none",
"created":"2022-01-01T00:01:01",
"encrypted":false,
"engine":"mongodb",
"hosts":{
"primary":"lin-0000-0000.servers.linodedb.net",
"secondary":null
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id":123,
"label":"example-db",
"peers":[
"lin-0000-0000.servers.linodedb.net",
"lin-0000-0001.servers.linodedb.net",
"lin-0000-0002.servers.linodedb.net"
],
"port":27017,
"region":"us-east",
"replica_set":null,
"ssl_connection":true,
"status":"active",
"storage_engine":"wiredtiger",
"type":"g6-dedicated-2",
"updated":"2022-01-01T00:01:01",
"updates":{
"day_of_week":1,
"duration":3,
"frequency":"weekly",
"hour_of_day":0,
"week_of_month":null
"id": 123,
"instance_uri": "/v4/databases/mysql/instances/123",
"label": "example-db",
"region": "us-east",
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"updates": {
"day_of_week": 1,
"duration": 3,
"frequency": "weekly",
"hour_of_day": 0,
"week_of_month": null
},
"version":"4.4.10"
"version": "8.0.26"
}
]
```
Expand Down
53 changes: 22 additions & 31 deletions plugins/module_utils/doc_fragments/database_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,32 @@

result_images_samples = ['''[
{
"allow_list":[
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size":3,
"compression_type":"none",
"created":"2022-01-01T00:01:01",
"encrypted":false,
"engine":"mongodb",
"hosts":{
"primary":"lin-0000-0000.servers.linodedb.net",
"secondary":null
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id":123,
"label":"example-db",
"peers":[
"lin-0000-0000.servers.linodedb.net",
"lin-0000-0001.servers.linodedb.net",
"lin-0000-0002.servers.linodedb.net"
],
"port":27017,
"region":"us-east",
"replica_set":null,
"ssl_connection":true,
"status":"active",
"storage_engine":"wiredtiger",
"type":"g6-dedicated-2",
"updated":"2022-01-01T00:01:01",
"updates":{
"day_of_week":1,
"duration":3,
"frequency":"weekly",
"hour_of_day":0,
"week_of_month":null
"id": 123,
"instance_uri": "/v4/databases/mysql/instances/123",
"label": "example-db",
"region": "us-east",
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"updates": {
"day_of_week": 1,
"duration": 3,
"frequency": "weekly",
"hour_of_day": 0,
"week_of_month": null
},
"version":"4.4.10"
"version": "8.0.26"
}
]''']
8 changes: 5 additions & 3 deletions plugins/modules/database_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
required=True,
description=[
"The name of the field to filter on.",
"Valid filterable attributes can be found here: "
"https://www.linode.com/docs/api/databases/"
"#managed-mongodb-databases-list__responses",
(
"Valid filterable attributes can be found here: "
"https://www.linode.com/docs/api/databases/"
"#managed-databases-list-all__responses"
),
],
),
values=SpecField(
Expand Down

0 comments on commit 029cbae

Please sign in to comment.